korganizer
koeditorgeneralevent.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _KOEDITORGENERALEVENT_H
00025 #define _KOEDITORGENERALEVENT_H
00026
00027 #include "koeditorgeneral.h"
00028 #include <tqdatetime.h>
00029
00030 class TQLabel;
00031 class KDateEdit;
00032 class KTimeEdit;
00033 class TQCheckBox;
00034 class TQComboBox;
00035 class TQBoxLayout;
00036
00037 namespace KCal {
00038 class Event;
00039 }
00040 using namespace KCal;
00041
00042 class KOEditorGeneralEvent : public KOEditorGeneral
00043 {
00044 Q_OBJECT
00045
00046 public:
00047 KOEditorGeneralEvent (TQObject* parent=0,const char* name=0);
00048 virtual ~KOEditorGeneralEvent();
00049
00050 void initTime(TQWidget *,TQBoxLayout *);
00051 void initClass(TQWidget *,TQBoxLayout *);
00052 void initInvitationBar( TQWidget* parent, TQBoxLayout *layout );
00053
00054 void finishSetup();
00055
00057 void setDefaults( const TQDateTime &from, const TQDateTime &to, bool allDay );
00062 void readEvent( Event *event, Calendar *calendar, const TQDate &date, bool tmpl = false );
00064 void writeEvent( Event * );
00065
00067 bool validateInput();
00068
00069 void updateRecurrenceSummary( Event *event );
00070
00071 TQFrame* invitationBar() const { return mInvitationBar; }
00072
00073 public slots:
00074 void setDateTimes( const TQDateTime &start, const TQDateTime &end );
00075 void setDuration();
00076
00077 protected slots:
00078 void timeStuffDisable( bool disable );
00079 void associateTime( bool time );
00080
00081 void startTimeChanged( TQTime );
00082 void startDateChanged( const TQDate& );
00083 void endTimeChanged( TQTime );
00084 void endDateChanged( const TQDate& );
00085
00086 void emitDateTimeStr();
00087
00088 signals:
00089 void allDayChanged(bool);
00090 void dateTimeStrChanged( const TQString & );
00091 void dateTimesChanged( const TQDateTime &start, const TQDateTime &end );
00092 void editRecurrence();
00093 void acceptInvitation();
00094 void declineInvitation();
00095
00096 private:
00097 TQLabel *mStartDateLabel;
00098 TQLabel *mEndDateLabel;
00099 KDateEdit *mStartDateEdit;
00100 KDateEdit *mEndDateEdit;
00101 KTimeEdit *mStartTimeEdit;
00102 KTimeEdit *mEndTimeEdit;
00103 TQLabel *mDurationLabel;
00104 TQCheckBox *mAlldayEventCheckbox;
00105 TQComboBox *mFreeTimeCombo;
00106 TQFrame *mInvitationBar;
00107
00108
00109 TQDateTime mCurrStartDateTime;
00110 TQDateTime mCurrEndDateTime;
00111 };
00112
00113 #endif
|