summaryrefslogtreecommitdiffstats
path: root/kcron/kttask.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit37333bf25ad9a4c538250f5af2f9f1d666362883 (patch)
treec45e8df5b9efbffe07eb3d9340df7811c7e16943 /kcron/kttask.h
downloadtdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.tar.gz
tdeadmin-37333bf25ad9a4c538250f5af2f9f1d666362883.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcron/kttask.h')
-rw-r--r--kcron/kttask.h184
1 files changed, 184 insertions, 0 deletions
diff --git a/kcron/kttask.h b/kcron/kttask.h
new file mode 100644
index 0000000..7920593
--- /dev/null
+++ b/kcron/kttask.h
@@ -0,0 +1,184 @@
+/***************************************************************************
+ * KT task editor window header *
+ * -------------------------------------------------------------------- *
+ * Copyright (C) 1999, Gary Meyer <gary@meyer.net> *
+ * -------------------------------------------------------------------- *
+ * 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 KTTASK_H
+#define KTTASK_H
+
+#include <config.h>
+
+#include <kdialog.h>
+
+class QLabel;
+class QLineEdit;
+class QCheckBox;
+class QButtonGroup;
+class QPushButton;
+class KAccel;
+
+class CTTask;
+
+/**
+ * Task editor window.
+ */
+class KTTask : public KDialog
+{
+ Q_OBJECT
+
+public:
+
+/**
+ * Initialize from CTTask.
+ */
+ KTTask(CTTask* _cttask = 0, const QString &_caption="");
+
+/**
+ * Destroy.
+ */
+ ~KTTask();
+
+private slots:
+
+/**
+ * Browse for command file.
+ */
+ void slotBrowse();
+
+/**
+ * Command has been changed. Refresh icon.
+ */
+ void slotCommandChanged();
+
+/**
+ * Daily checkbox has been changed.
+ */
+ void slotDailyChanged();
+
+/**
+ * Apply changes and close.
+ */
+ void slotOK();
+
+/**
+ * Cancel and close.
+ */
+ void slotCancel();
+
+/**
+ * Set or clear all month checkboxes
+ */
+ void slotAllMonths();
+
+/**
+ * A month checkbox has changed
+ */
+ void slotMonthChanged();
+
+/**
+ * Set or clear all day of month checkboxes
+ */
+ void slotAllDaysOfMonth();
+
+/**
+ * A day of month checkbox has changed
+ */
+ void slotDayOfMonthChanged();
+
+/**
+ * Set or clear all day of week checkboxes
+ */
+ void slotAllDaysOfWeek();
+
+/**
+ * A day of week checkbox has changed
+ */
+ void slotDayOfWeekChanged();
+
+/**
+ * Set or clear all hour checkboxes
+ */
+ void slotAllHours();
+
+/**
+ * An hour checkbox has changed
+ */
+ void slotHourChanged();
+
+/**
+ * Set or clear all minute checkboxes
+ */
+ void slotAllMinutes();
+
+/**
+ * A minute checkbox has changed
+ */
+ void slotMinuteChanged();
+
+private:
+
+/**
+ * Task.
+ */
+ CTTask* cttask;
+
+/**
+ * Key accelerator.
+ */
+
+ KAccel* key_accel;
+
+ // Widgets.
+
+ QLabel* labUser;
+ QLineEdit* leUser;
+
+ QLabel* labIcon;
+
+ QLabel* labComment;
+ QLineEdit* leComment;
+
+ QLabel* labCommand;
+ QLineEdit* leCommand;
+ QPushButton* pbBrowse;
+
+ QCheckBox* chkEnabled;
+ QCheckBox* chkSilent;
+
+ QButtonGroup* bgMonth;
+ QCheckBox* cbMonth[13];
+ QPushButton* pbAllMonths;
+
+ QButtonGroup* bgDayOfMonth;
+ QPushButton* pbDayOfMonth[32];
+ QPushButton* pbAllDaysOfMonth;
+
+ QButtonGroup* bgDayOfWeek;
+ QCheckBox* cbDayOfWeek[8];
+ QPushButton* pbAllDaysOfWeek;
+
+ QButtonGroup* bgEveryDay;
+ QCheckBox* cbEveryDay;
+
+ QButtonGroup* bgHour;
+ QLabel* labAM;
+ QLabel* labPM;
+ QPushButton* pbHour[25];
+ QPushButton* pbAllHours;
+
+ QButtonGroup* bgMinute;
+ QPushButton* pbMinute[61];
+ QPushButton* pbAllMinutes;
+
+ QPushButton* pbOk;
+ QPushButton* pbCancel;
+
+};
+
+#endif // KTTASK_H