koeditorgeneraltodo.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _KOEDITORGENERALTODO_H
00024 #define _KOEDITORGENERALTODO_H
00025
00026 #include "koeditorgeneral.h"
00027 #include <qdatetime.h>
00028
00029 class KRestrictedLine;
00030
00031 class KDateEdit;
00032 class KTimeEdit;
00033
00034 namespace KCal {
00035 class Todo;
00036 }
00037 using namespace KCal;
00038
00039 class KOEditorGeneralTodo : public KOEditorGeneral
00040 {
00041 Q_OBJECT
00042 public:
00043 KOEditorGeneralTodo (QObject* parent=0,const char* name=0);
00044 virtual ~KOEditorGeneralTodo();
00045
00046 void initTime(QWidget *, QBoxLayout *);
00047 void initStatus(QWidget *, QBoxLayout *);
00048 void initCompletion(QWidget *, QBoxLayout *);
00049 void initPriority(QWidget *, QBoxLayout *);
00050
00051 void finishSetup();
00052
00054 void setDefaults(QDateTime due,bool allDay);
00056 void readTodo(Todo *);
00058 void writeTodo(Todo *);
00059
00061 bool validateInput();
00062
00064 void modified (Todo*, int);
00065
00066 signals:
00067 void todoCompleted( Todo * );
00068 void dueDateEditToggle( bool );
00069 void dateTimeStrChanged( const QString & );
00070 void signalDateTimeChanged( QDateTime, QDateTime );
00071
00072 protected slots:
00073 void completedChanged(int);
00074 void dateChanged();
00075 void startDateModified();
00076
00077 void enableDueEdit( bool enable );
00078 void enableStartEdit( bool enable );
00079 void enableTimeEdits( bool enable );
00080 void showAlarm();
00081
00082 protected:
00083 void setCompletedDate();
00084
00085 private:
00086 bool mAlreadyComplete;
00087 bool mStartDateModified;
00088
00089 KDateEdit *mStartDateEdit;
00090 KTimeEdit *mStartTimeEdit;
00091 QCheckBox *mTimeButton;
00092 QCheckBox *mDueCheck;
00093 KDateEdit *mDueDateEdit;
00094 KTimeEdit *mDueTimeEdit;
00095 QComboBox *mCompletedCombo;
00096 QLabel *mCompletedLabel;
00097 QLabel *mPriorityLabel;
00098 QComboBox *mPriorityCombo;
00099
00100 QCheckBox *mStartCheck;
00101
00102 QDateTime mCompleted;
00103 };
00104
00105
00106 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.