korganizer
koeditorgeneraljournal.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KOEDITORGENERALJOURNAL_H
00026 #define KOEDITORGENERALJOURNAL_H
00027
00028 #include <qobject.h>
00029 #include <qdatetime.h>
00030
00031 class KDateEdit;
00032 class KTimeEdit;
00033 class KTextEdit;
00034 class QLineEdit;
00035 class QLabel;
00036 class QBoxLayout;
00037 class QCheckBox;
00038 class QWidget;
00039
00040 namespace KCal {
00041 class Incidence;
00042 class Journal;
00043 }
00044 using namespace KCal;
00045
00046 class KOEditorGeneralJournal : public QObject
00047 {
00048 Q_OBJECT
00049 public:
00050 KOEditorGeneralJournal ( QObject* parent=0, const char* name=0 );
00051 virtual ~KOEditorGeneralJournal();
00052
00053 void initDate( QWidget *, QBoxLayout * );
00054 void initDescription( QWidget *, QBoxLayout * );
00055 void initTitle( QWidget *parent, QBoxLayout *topLayout );
00056
00058 void setDefaults( const QDate &date );
00059 void setDate( const QDate &date );
00060 void setTime( const QTime &time );
00062 void readJournal( Journal *, bool tmpl = false );
00064 void writeJournal( Journal * );
00065
00067 bool validateInput();
00068
00069 void setDescription( const QString &text );
00070 void setSummary( const QString &text );
00071 void finishSetup();
00072
00073 protected:
00074 QLineEdit *mSummaryEdit;
00075 QLabel *mSummaryLabel;
00076 KTextEdit *mDescriptionEdit;
00077 QLabel *mDateLabel;
00078 KDateEdit *mDateEdit;
00079 QCheckBox *mTimeCheckBox;
00080 KTimeEdit *mTimeEdit;
00081 };
00082
00083 #endif
|