korganizer
koeditorgeneraltodo.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _KOEDITORGENERALTODO_H
00025 #define _KOEDITORGENERALTODO_H
00026
00027 #include "koeditorgeneral.h"
00028 #include "koglobals.h"
00029
00030 #include <tqdatetime.h>
00031
00032 class KRestrictedLine;
00033
00034 class KDateEdit;
00035 class KTimeEdit;
00036
00037 namespace KCal {
00038 class Todo;
00039 }
00040 using namespace KCal;
00041
00042 class KOEditorGeneralTodo : public KOEditorGeneral
00043 {
00044 Q_OBJECT
00045 public:
00046 KOEditorGeneralTodo (TQObject* parent=0,const char* name=0);
00047 virtual ~KOEditorGeneralTodo();
00048
00049 void initTime(TQWidget *, TQBoxLayout *);
00050 void initStatus(TQWidget *, TQBoxLayout *);
00051 void initCompletion(TQWidget *, TQBoxLayout *);
00052 void initPriority(TQWidget *, TQBoxLayout *);
00053
00054 void finishSetup();
00055
00057 void setDefaults( const TQDateTime &due, bool allDay );
00059 void readTodo( Todo *todo, Calendar *calendar, const TQDate &date );
00061 void writeTodo(Todo *);
00062
00064 bool validateInput();
00065
00066 void updateRecurrenceSummary( Todo *todo );
00067
00069 void modified( Todo *todo, KOGlobals::HowChanged modification );
00070
00071 signals:
00072 void dueDateEditToggle( bool );
00073 void dateTimeStrChanged( const TQString & );
00074 void signalDateTimeChanged( const TQDateTime &, const TQDateTime & );
00075 void editRecurrence();
00076
00077 protected slots:
00078 void completedChanged( int );
00079 void completedChanged();
00080 void dateChanged();
00081 void startDateModified();
00082
00083 void enableDueEdit( bool enable );
00084 void enableStartEdit( bool enable );
00085 void enableTimeEdits( bool enable );
00086
00087 protected:
00088 void setCompletedDate();
00089
00090 private:
00091 bool mAlreadyComplete;
00092 bool mStartDateModified;
00093
00094 KDateEdit *mStartDateEdit;
00095 KTimeEdit *mStartTimeEdit;
00096 TQCheckBox *mTimeButton;
00097 TQCheckBox *mDueCheck;
00098 KDateEdit *mDueDateEdit;
00099 KTimeEdit *mDueTimeEdit;
00100 TQCheckBox *mCompletedToggle;
00101 TQComboBox *mCompletedCombo;
00102 TQLabel *mCompletedLabel;
00103 TQLabel *mPriorityLabel;
00104 TQComboBox *mPriorityCombo;
00105
00106 KDateEdit *mCompletionDateEdit;
00107 KTimeEdit *mCompletionTimeEdit;
00108
00109 TQCheckBox *mStartCheck;
00110
00111 TQDateTime mCompletedDateTime;
00112 };
00113
00114
00115 #endif
|