koeditorgeneralevent.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _KOEDITORGENERALEVENT_H
00024 #define _KOEDITORGENERALEVENT_H
00025
00026 #include "koeditorgeneral.h"
00027 #include <qdatetime.h>
00028
00029 class QLabel;
00030 class KDateEdit;
00031 class KTimeEdit;
00032 class QCheckBox;
00033 class QComboBox;
00034 class QBoxLayout;
00035
00036 namespace KCal {
00037 class Event;
00038 }
00039 using namespace KCal;
00040
00041 class KOEditorGeneralEvent : public KOEditorGeneral
00042 {
00043 Q_OBJECT
00044 public:
00045 KOEditorGeneralEvent (QObject* parent=0,const char* name=0);
00046 virtual ~KOEditorGeneralEvent();
00047
00048 void initTime(QWidget *,QBoxLayout *);
00049 void initClass(QWidget *,QBoxLayout *);
00050
00051 void finishSetup();
00052
00054 void setDefaults( QDateTime from, QDateTime to, bool allDay );
00059 void readEvent( Event *, bool tmpl = false );
00061 void writeEvent( Event * );
00062
00064 bool validateInput();
00065
00066 public slots:
00067 void setDateTimes( QDateTime start, QDateTime end );
00068 void setDuration();
00069
00070 protected slots:
00071 void timeStuffDisable( bool disable );
00072 void dontAssociateTime( bool noTime );
00073
00074 void startTimeChanged( QTime );
00075 void startDateChanged( QDate );
00076 void endTimeChanged( QTime );
00077 void endDateChanged( QDate );
00078
00079 void emitDateTimeStr();
00080
00081 signals:
00082 void allDayChanged(bool);
00083 void dateTimeStrChanged( const QString & );
00084 void dateTimesChanged( QDateTime start, QDateTime end );
00085
00086 private:
00087 QLabel *mStartDateLabel;
00088 QLabel *mEndDateLabel;
00089 KDateEdit *mStartDateEdit;
00090 KDateEdit *mEndDateEdit;
00091 KTimeEdit *mStartTimeEdit;
00092 KTimeEdit *mEndTimeEdit;
00093 QLabel *mDurationLabel;
00094 QCheckBox *mNoTimeButton;
00095 QComboBox *mFreeTimeCombo;
00096
00097
00098 QDateTime mCurrStartDateTime;
00099 QDateTime mCurrEndDateTime;
00100 };
00101
00102 #endif
This file is part of the documentation for korganizer Library Version 3.3.2.