korganizer Library API Documentation

koeditorgeneraltodo.h

00001 /* 00002 This file is part of KOrganizer. 00003 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 As a special exception, permission is given to link this program 00020 with any edition of Qt, and distribute the resulting executable, 00021 without including the source code for Qt in the source distribution. 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
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:13 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003