Diffstat (limited to 'korganizer/koeditorgeneraltodo.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeditorgeneraltodo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koeditorgeneraltodo.h b/korganizer/koeditorgeneraltodo.h index b198539..2e56a7a 100644 --- a/korganizer/koeditorgeneraltodo.h +++ b/korganizer/koeditorgeneraltodo.h | |||
@@ -30,80 +30,81 @@ | |||
30 | #include <qgroupbox.h> | 30 | #include <qgroupbox.h> |
31 | #include <qlineedit.h> | 31 | #include <qlineedit.h> |
32 | #include <qcombobox.h> | 32 | #include <qcombobox.h> |
33 | #include <qmultilineedit.h> | 33 | #include <qmultilineedit.h> |
34 | #include <qlistview.h> | 34 | #include <qlistview.h> |
35 | #include <qradiobutton.h> | 35 | #include <qradiobutton.h> |
36 | 36 | ||
37 | #include "koeditorgeneral.h" | 37 | #include "koeditorgeneral.h" |
38 | #include "koglobals.h" | 38 | #include "koglobals.h" |
39 | 39 | ||
40 | class KRestrictedLine; | 40 | class KRestrictedLine; |
41 | 41 | ||
42 | class KDateEdit; | 42 | class KDateEdit; |
43 | 43 | ||
44 | using namespace KCal; | 44 | using namespace KCal; |
45 | 45 | ||
46 | class KOEditorGeneralTodo : public KOEditorGeneral | 46 | class KOEditorGeneralTodo : public KOEditorGeneral |
47 | { | 47 | { |
48 | Q_OBJECT | 48 | Q_OBJECT |
49 | public: | 49 | public: |
50 | KOEditorGeneralTodo (QObject* parent=0,const char* name=0); | 50 | KOEditorGeneralTodo (QObject* parent=0,const char* name=0); |
51 | virtual ~KOEditorGeneralTodo(); | 51 | virtual ~KOEditorGeneralTodo(); |
52 | 52 | ||
53 | void initTime(QWidget *, QBoxLayout *); | 53 | void initTime(QWidget *, QBoxLayout *); |
54 | void initStatus(QWidget *, QBoxLayout *); | 54 | void initStatus(QWidget *, QBoxLayout *); |
55 | void initCompletion(QWidget *, QBoxLayout *); | 55 | void initCompletion(QWidget *, QBoxLayout *); |
56 | void initPriority(QWidget *, QBoxLayout *); | 56 | void initPriority(QWidget *, QBoxLayout *); |
57 | 57 | ||
58 | void finishSetup(); | 58 | void finishSetup(); |
59 | 59 | ||
60 | /** Set widgets to default values */ | 60 | /** Set widgets to default values */ |
61 | void setDefaults(QDateTime due,bool allDay); | 61 | void setDefaults(QDateTime due,bool allDay); |
62 | /** Read todo object and setup widgets accordingly */ | 62 | /** Read todo object and setup widgets accordingly */ |
63 | void readTodo(Todo *); | 63 | void readTodo(Todo *); |
64 | /** Write todo settings to event object */ | 64 | /** Write todo settings to event object */ |
65 | void writeTodo(Todo *); | 65 | void writeTodo(Todo *); |
66 | 66 | ||
67 | /** Check if the input is valid. */ | 67 | /** Check if the input is valid. */ |
68 | bool validateInput(); | 68 | bool validateInput(); |
69 | 69 | ||
70 | /** The todo has been modified externally */ | 70 | /** The todo has been modified externally */ |
71 | void modified (Todo*, int); | 71 | void modified (Todo*, int); |
72 | 72 | ||
73 | signals: | 73 | signals: |
74 | void openCategoryDialog(); | 74 | void openCategoryDialog(); |
75 | void datesChecked(); | 75 | void datesChecked(); |
76 | 76 | ||
77 | protected slots: | 77 | protected slots: |
78 | void startDateChanged(QDate newdate); | ||
78 | void completedChanged(int); | 79 | void completedChanged(int); |
79 | 80 | ||
80 | void enableDueEdit( bool enable ); | 81 | void enableDueEdit( bool enable ); |
81 | void enableStartEdit( bool enable ); | 82 | void enableStartEdit( bool enable ); |
82 | void enableTimeEdits( bool enable ); | 83 | void enableTimeEdits( bool enable ); |
83 | void showAlarm(); | 84 | void showAlarm(); |
84 | 85 | ||
85 | protected: | 86 | protected: |
86 | void setCompletedDate(); | 87 | void setCompletedDate(); |
87 | 88 | ||
88 | private: | 89 | private: |
89 | friend class KOTodoEditor; | 90 | friend class KOTodoEditor; |
90 | KDateEdit *mStartDateEdit; | 91 | KDateEdit *mStartDateEdit; |
91 | KOTimeEdit *mStartTimeEdit; | 92 | KOTimeEdit *mStartTimeEdit; |
92 | KDateEdit *mCompleteDateEdit; | 93 | KDateEdit *mCompleteDateEdit; |
93 | KOTimeEdit *mCompleteTimeEdit; | 94 | KOTimeEdit *mCompleteTimeEdit; |
94 | QCheckBox *mTimeButton; | 95 | QCheckBox *mTimeButton; |
95 | QCheckBox *mDueCheck; | 96 | QCheckBox *mDueCheck; |
96 | KDateEdit *mDueDateEdit; | 97 | KDateEdit *mDueDateEdit; |
97 | KOTimeEdit *mDueTimeEdit; | 98 | KOTimeEdit *mDueTimeEdit; |
98 | QComboBox *mCompletedCombo; | 99 | QComboBox *mCompletedCombo; |
99 | QLabel *mCompletedLabel; | 100 | QLabel *mCompletedLabel; |
100 | QLabel *mPriorityLabel; | 101 | QLabel *mPriorityLabel; |
101 | QComboBox *mPriorityCombo; | 102 | QComboBox *mPriorityCombo; |
102 | 103 | ||
103 | QCheckBox *mStartCheck; | 104 | QCheckBox *mStartCheck; |
104 | 105 | ||
105 | QDateTime mCompleted; | 106 | QDateTime mCompleted; |
106 | }; | 107 | }; |
107 | 108 | ||
108 | 109 | ||
109 | #endif | 110 | #endif |