SVN_SILENT made messages (.desktop file)
[kdeadmin.git] / kcron / kttask.h
blobf0af5574a3c5f1ed82c9dbef385c0b95f26cd921
1 /***************************************************************************
2 * KT task editor window header *
3 * -------------------------------------------------------------------- *
4 * Copyright (C) 1999, Gary Meyer <gary@meyer.net> *
5 * -------------------------------------------------------------------- *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 ***************************************************************************/
12 #ifndef KTTASK_H
13 #define KTTASK_H
15 #include <kdialog.h>
16 //Added by qt3to4:
17 #include <QLabel>
19 class QLabel;
20 class QLineEdit;
21 class QCheckBox;
22 class Q3ButtonGroup;
23 class QPushButton;
25 class CTTask;
27 /**
28 * Task editor window.
30 class KTTask : public KDialog
32 Q_OBJECT
34 public:
36 /**
37 * Initialize from CTTask.
39 KTTask(CTTask* _cttask = 0, const QString &_caption="");
41 /**
42 * Destroy.
44 ~KTTask();
46 private slots:
48 /**
49 * Browse for command file.
51 void slotBrowse();
53 /**
54 * Command has been changed. Refresh icon.
56 void slotCommandChanged();
58 /**
59 * Daily checkbox has been changed.
61 void slotDailyChanged();
63 /**
64 * Override QDialog::accept ()
66 void accept();
68 /**
69 * Apply changes and close.
71 void slotOK();
73 /**
74 * Cancel and close.
76 void slotCancel();
78 /**
79 * Set or clear all month checkboxes
81 void slotAllMonths();
83 /**
84 * A month checkbox has changed
86 void slotMonthChanged();
88 /**
89 * Set or clear all day of month checkboxes
91 void slotAllDaysOfMonth();
93 /**
94 * A day of month checkbox has changed
96 void slotDayOfMonthChanged();
98 /**
99 * Set or clear all day of week checkboxes
101 void slotAllDaysOfWeek();
104 * A day of week checkbox has changed
106 void slotDayOfWeekChanged();
109 * Set or clear all hour checkboxes
111 void slotAllHours();
114 * An hour checkbox has changed
116 void slotHourChanged();
119 * Set or clear all minute checkboxes
121 void slotAllMinutes();
124 * A minute checkbox has changed
126 void slotMinuteChanged();
128 private:
131 * Task.
133 CTTask* cttask;
136 // Widgets.
138 QLabel* labUser;
139 QLineEdit* leUser;
141 QLabel* labIcon;
143 QLabel* labComment;
144 QLineEdit* leComment;
146 QLabel* labCommand;
147 QLineEdit* leCommand;
148 QPushButton* pbBrowse;
150 QCheckBox* chkEnabled;
151 QCheckBox* chkSilent;
153 Q3ButtonGroup* bgMonth;
154 QCheckBox* cbMonth[13];
155 QPushButton* pbAllMonths;
157 Q3ButtonGroup* bgDayOfMonth;
158 QPushButton* pbDayOfMonth[32];
159 QPushButton* pbAllDaysOfMonth;
161 Q3ButtonGroup* bgDayOfWeek;
162 QCheckBox* cbDayOfWeek[8];
163 QPushButton* pbAllDaysOfWeek;
165 Q3ButtonGroup* bgEveryDay;
166 QCheckBox* cbEveryDay;
168 Q3ButtonGroup* bgHour;
169 QLabel* labAM;
170 QLabel* labPM;
171 QPushButton* pbHour[25];
172 QPushButton* pbAllHours;
174 Q3ButtonGroup* bgMinute;
175 QPushButton* pbMinute[61];
176 QPushButton* pbAllMinutes;
181 #endif // KTTASK_H