blob: 769e4c731e2f56e17581478ab0c3c1fdae7cf4ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/***************************************************************************
datetime.h - description
-------------------
begin : Mon Jan 7 2002
copyright : (C) 2002 by Dominik Seichter
email : domseichter@web.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef DATETIME_H
#define DATETIME_H
/*
* This two includes are required, because you have to use
* KRenames internal structures and enums.
*/
#include "batchrenamer.h"
#include "pluginloader.h"
#include "plugin.h"
#include "helpdialog.h"
#include <stdio.h>
class KDatePicker;
class KIntSpinBox;
class QCheckBox;
class QButtonGroup;
class QGroupBox;
class QLabel;
class QVBoxLayout;
class QHBoxLayout;
class QPushButton;
class QString;
class QWidget;
class MyDatePlugin: public Plugin {
Q_OBJECT
public:
const QString getName() const;
const QString getAccelName() const;
const int type() const;
bool checkError();
void drawInterface( QWidget* w, QVBoxLayout* l );
void fillStructure();
QString processFile( BatchRenamer*, int, QString token, int );
const QPixmap getIcon() const;
private slots:
void changeDT();
protected:
QCheckBox* checkAccess;
QCheckBox* checkModification;
KDatePicker* kDate;
QLabel* labelTime;
KIntSpinBox* spinHour;
KIntSpinBox* spinMinute;
KIntSpinBox* spinSecond;
QPushButton* buttonCurrentDT;
QHBoxLayout* Layout0;
QVBoxLayout* Layout1;
QHBoxLayout* Layout2;
struct datevals {
QDate date; // Date
bool changeModification; // Change modification date
bool changeAccess; // Change access date
int hour;
int minute;
int second;
} dvals;
};
#endif
|