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., 675 Mass Ave, Cambridge, MA 02139, 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 "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
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:31 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001