blob: 8672a7a43c44db337b9fcf5c6bdbfdae504bbbdd (
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
91
|
/***************************************************************************
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 TQCheckBox;
class TQButtonGroup;
class TQGroupBox;
class TQLabel;
class TQVBoxLayout;
class TQHBoxLayout;
class TQPushButton;
class TQString;
class TQWidget;
class MyDatePlugin: public Plugin {
Q_OBJECT
public:
const TQString getName() const;
const TQString getAccelName() const;
const int type() const;
bool checkError();
void drawInterface( TQWidget* w, TQVBoxLayout* l );
void fillStructure();
TQString processFile( BatchRenamer*, int, TQString token, int );
const TQPixmap getIcon() const;
private slots:
void changeDT();
protected:
TQCheckBox* checkAccess;
TQCheckBox* checkModification;
KDatePicker* kDate;
TQLabel* labelTime;
KIntSpinBox* spinHour;
KIntSpinBox* spinMinute;
KIntSpinBox* spinSecond;
TQPushButton* buttonCurrentDT;
TQHBoxLayout* Layout0;
TQVBoxLayout* Layout1;
TQHBoxLayout* Layout2;
struct datevals {
TQDate date; // Date
bool changeModification; // Change modification date
bool changeAccess; // Change access date
int hour;
int minute;
int second;
} dvals;
};
#endif
|