From aec5a842670a66ff24572847d35375a31c0b379e Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 22 Feb 2010 18:35:24 +0000 Subject: Added KDE3 version of krename git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krename@1094420 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krename/datetime.h | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 krename/datetime.h (limited to 'krename/datetime.h') diff --git a/krename/datetime.h b/krename/datetime.h new file mode 100644 index 0000000..769e4c7 --- /dev/null +++ b/krename/datetime.h @@ -0,0 +1,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 + +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 + + -- cgit v1.2.3