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 "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
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:53:23 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003