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 <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 <krestrictedline.h>
00038
00039 #include "koeditorgeneral.h"
00040
00041 #include "ktimeedit.h"
00042
00043 class KDateEdit;
00044
00045 using namespace KCal;
00046
00047 class KOEditorGeneralEvent : public KOEditorGeneral
00048 {
00049 Q_OBJECT
00050 public:
00051 KOEditorGeneralEvent (QObject* parent=0,const char* name=0);
00052 virtual ~KOEditorGeneralEvent();
00053
00054 void initTime(QWidget *,QBoxLayout *);
00055 void initClass(QWidget *,QBoxLayout *);
00056
00057 void finishSetup();
00058
00060 void setDefaults(QDateTime from,QDateTime to,bool allDay);
00065 void readEvent( Event *, bool tmpl = false );
00067 void writeEvent(Event *);
00068
00070 bool validateInput();
00071
00072 public slots:
00073 void setDateTimes(QDateTime start, QDateTime end);
00074 void setDuration();
00075
00076 protected slots:
00077 void timeStuffDisable(bool disable);
00078 void dontAssociateTime(bool noTime);
00079
00080 void startTimeChanged(QTime);
00081 void startDateChanged(QDate);
00082 void endTimeChanged(QTime);
00083 void endDateChanged(QDate);
00084
00085 void emitDateTimeStr();
00086
00087 signals:
00088 void dateTimesChanged(QDateTime start,QDateTime end);
00089 void allDayChanged(bool);
00090 void recursChanged(bool);
00091 void dateTimeStrChanged(const QString &);
00092
00093 private:
00094 QLabel *mStartDateLabel;
00095 QLabel *mEndDateLabel;
00096 KDateEdit *mStartDateEdit;
00097 KDateEdit *mEndDateEdit;
00098 KTimeEdit *mStartTimeEdit;
00099 KTimeEdit *mEndTimeEdit;
00100 QLabel *mDurationLabel;
00101 QCheckBox *mNoTimeButton;
00102 QCheckBox *mRecursButton;
00103 QComboBox *mFreeTimeCombo;
00104
00105
00106 QDateTime mCurrStartDateTime;
00107 QDateTime mCurrEndDateTime;
00108 };
00109
00110 #endif
This file is part of the documentation for kdelibs Version 3.1.5.