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 dateTimeStrChanged(
const QString &);
00091
00092
private:
00093 QLabel *mStartDateLabel;
00094 QLabel *mEndDateLabel;
00095 KDateEdit *mStartDateEdit;
00096 KDateEdit *mEndDateEdit;
00097
KOTimeEdit *mStartTimeEdit;
00098
KOTimeEdit *mEndTimeEdit;
00099 QLabel *mDurationLabel;
00100 QCheckBox *mNoTimeButton;
00101 QComboBox *mFreeTimeCombo;
00102
00103
00104 QDateTime mCurrStartDateTime;
00105 QDateTime mCurrEndDateTime;
00106 };
00107
00108
#endif