24 #ifndef _KOEDITORGENERALTODO_H
25 #define _KOEDITORGENERALTODO_H
27 #include "koeditorgeneral.h"
28 #include "koglobals.h"
30 #include <tqdatetime.h>
32 class KRestrictedLine;
42 class KOEditorGeneralTodo : public KOEditorGeneral
47 KOEditorGeneralTodo (TQObject* parent=0, const char* name=0);
48 virtual ~KOEditorGeneralTodo();
50 void initTime(TQWidget *, TQBoxLayout *);
51 void iniStatus(TQWidget *, TQBoxLayout *);
52 void initCompletion(TQWidget *, TQBoxLayout *);
53 void initPriority(TQWidget *, TQBoxLayout *);
58 void setDefaults( const TQDateTime &due, bool allDay );
60 void readTodo( Todo *todo, Calendar *calendar, const TQDate &date );
62 void writeTodo( Todo *);
67 void updateRecurrenceSummary( Todo *todo );
70 void modified( Todo *todo, KOGlobals::HowChanged modification );
73 void dueDateEditToggle( bool );
74 void dateTimeStrChanged( const TQString & );
75 void signalDateTimeChanged( const TQDateTime &, const TQDateTime & );
76 void editRecurrence();
79 void completedChanged( int );
80 void completedChanged();
82 void startDateModified();
84 void enableDueEdit( bool enable );
85 void enableStartEdit( bool enable );
86 void enableTimeEdits( bool enable );
89 void setCompletedDate();
92 bool mAlreadyComplete;
93 bool mStartDateModified;
95 KDateEdit *mStartDateEdit;
96 KTimeEdit *mStartTimeEdit;
97 TQCheckBox *mTimeButton;
98 TQCheckBox *mDueCheck;
99 KDateEdit *mDueDateEdit;
100 KTimeEdit *mDueTimeEdit;
101 TQCheckBox *mCompletedToggle;
102 TQComboBox *mCompletedCombo;
103 TQLabel *mCompletedLabel;
104 TQLabel *mPriorityLabel;
105 TQComboBox *mPriorityCombo;
107 KDateEdit *mCompletionDateEdit;
108 KTimeEdit *mCompletionTimeEdit;
110 TQCheckBox *mStartCheck;
112 TQDateTime mCompletedDateTime;
|