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 <qframe.h>
00027 #include <qlabel.h>
00028 #include <qcheckbox.h>
00029 #include <qpushbutton.h>
00030 #include <qgroupbox.h>
00031 #include <qlineedit.h>
00032 #include <qcombobox.h>
00033 #include <qmultilineedit.h>
00034 #include <qlistview.h>
00035 #include <qradiobutton.h>
00036
00037 #include "koeditorgeneral.h"
00038 #include "koglobals.h"
00039
00040 class KRestrictedLine;
00041
00042 class KDateEdit;
00043
00044 using namespace KCal;
00045
00046 class KOEditorGeneralTodo : public KOEditorGeneral
00047 {
00048 Q_OBJECT
00049 public:
00050 KOEditorGeneralTodo (QObject* parent=0,const char* name=0);
00051 virtual ~KOEditorGeneralTodo();
00052
00053 void initTime(QWidget *, QBoxLayout *);
00054 void initStatus(QWidget *, QBoxLayout *);
00055 void initCompletion(QWidget *, QBoxLayout *);
00056 void initPriority(QWidget *, QBoxLayout *);
00057
00058 void finishSetup();
00059
00061 void setDefaults(QDateTime due,bool allDay);
00063 void readTodo(Todo *);
00065 void writeTodo(Todo *);
00066
00068 bool validateInput();
00069
00071 void modified (Todo*, int);
00072
00073 protected slots:
00074 void completedChanged(int);
00075
00076 void enableDueEdit( bool enable );
00077 void enableStartEdit( bool enable );
00078 void enableTimeEdits( bool enable );
00079 void showAlarm();
00080
00081 protected:
00082 void setCompletedDate();
00083
00084 private:
00085 KDateEdit *mStartDateEdit;
00086 KOTimeEdit *mStartTimeEdit;
00087 QCheckBox *mTimeButton;
00088 QCheckBox *mDueCheck;
00089 KDateEdit *mDueDateEdit;
00090 KOTimeEdit *mDueTimeEdit;
00091 QComboBox *mCompletedCombo;
00092 QLabel *mCompletedLabel;
00093 QLabel *mPriorityLabel;
00094 QComboBox *mPriorityCombo;
00095
00096 QCheckBox *mStartCheck;
00097
00098 QDateTime mCompleted;
00099 };
00100
00101
00102 #endif
This file is part of the documentation for korganizer Library Version 3.2.2.