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 "ktimeedit.h"
00038 #include "koeditorgeneral.h"
00039 #include "koglobals.h"
00040
00041 class KRestrictedLine;
00042
00043 class KDateEdit;
00044
00045 using namespace KCal;
00046
00047 class KOEditorGeneralTodo : public KOEditorGeneral
00048 {
00049 Q_OBJECT
00050 public:
00051 KOEditorGeneralTodo (QObject* parent=0,const char* name=0);
00052 virtual ~KOEditorGeneralTodo();
00053
00054 void initTime(QWidget *, QBoxLayout *);
00055 void initStatus(QWidget *, QBoxLayout *);
00056 void initCompletion(QWidget *, QBoxLayout *);
00057 void initPriority(QWidget *, QBoxLayout *);
00058
00059 void finishSetup();
00060
00062 void setDefaults(QDateTime due,bool allDay);
00064 void readTodo(Todo *);
00066 void writeTodo(Todo *);
00067
00069 bool validateInput();
00070
00072 void modified (Todo*, int);
00073
00074 signals:
00075 void openCategoryDialog();
00076
00077 protected slots:
00078 void completedChanged(int);
00079
00080 void enableDueEdit( bool enable );
00081 void enableStartEdit( bool enable );
00082 void enableTimeEdits( bool enable );
00083 void showAlarm();
00084
00085 protected:
00086 void setCompletedDate();
00087
00088 private:
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 kdelibs Version 3.1.4.