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 "koeditorgeneral.h"
00029
00030 #include <tqobject.h>
00031 #include <tqdatetime.h>
00032
00033 class KDateEdit;
00034 class KTimeEdit;
00035 class KTextEdit;
00036 class TQLineEdit;
00037 class TQLabel;
00038 class TQBoxLayout;
00039 class TQCheckBox;
00040 class TQWidget;
00041
00042 namespace KCal {
00043 class Incidence;
00044 class Journal;
00045 }
00046 using namespace KCal;
00047
00048 class KOEditorGeneralJournal : public KOEditorGeneral
00049 {
00050 Q_OBJECT
00051 public:
00052 KOEditorGeneralJournal ( TQWidget *parent=0, const char* name=0 );
00053 virtual ~KOEditorGeneralJournal();
00054
00055 void initDate( TQWidget *, TQBoxLayout * );
00056 void initDescription( TQWidget *, TQBoxLayout * );
00057 void initTitle( TQWidget *parent, TQBoxLayout *topLayout );
00058
00060 void setDefaults( const TQDate &date );
00061 void setDate( const TQDate &date );
00062 void setTime( const TQTime &time );
00064 void readJournal( Journal *, const TQDate &, bool tmpl = false );
00066 void writeJournal( Journal * );
00067
00069 bool validateInput();
00070
00071 void setDescription( const TQString &text );
00072 void setSummary( const TQString &text );
00073 void finishSetup();
00074
00075 protected:
00076 TQLineEdit *mSummaryEdit;
00077 TQLabel *mSummaryLabel;
00078 KTextEdit *mDescriptionEdit;
00079 TQLabel *mDateLabel;
00080 KDateEdit *mDateEdit;
00081 TQCheckBox *mTimeCheckBox;
00082 KTimeEdit *mTimeEdit;
00083 };
00084
00085 #endif
|