24 #ifndef _KOEDITORGENERALEVENT_H
25 #define _KOEDITORGENERALEVENT_H
27 #include "koeditorgeneral.h"
28 #include <tqdatetime.h>
42 class KOEditorGeneralEvent : public KOEditorGeneral
47 KOEditorGeneralEvent (TQObject* parent=0, const char* name=0);
48 virtual ~KOEditorGeneralEvent();
50 void initTime(TQWidget *,TQBoxLayout *);
51 void initClass(TQWidget *,TQBoxLayout *);
52 void initInvitationBar( TQWidget* parent, TQBoxLayout *layout );
57 void setDefaults( const TQDateTime &from, const TQDateTime &to, bool allDay );
62 void readEvent( Event *event, Calendar *calendar, const TQDate &date, bool tmpl = false );
64 void writeEvent( Event * );
69 void updateRecurrenceSummary( Event *event );
71 TQFrame* invitationBar() const { return mInvitationBar; }
74 void setDateTimes( const TQDateTime &start, const TQDateTime &end );
78 void timeStuffDisable( bool disable );
79 void associateTime( bool time );
81 void startTimeChanged( TQTime );
82 void startDateChanged( const TQDate& );
83 void endTimeChanged( TQTime );
84 void endDateChanged( const TQDate& );
86 void emitDateTimeStr();
89 void allDayChanged( bool);
90 void dateTimeStrChanged( const TQString & );
91 void dateTimesChanged( const TQDateTime &start, const TQDateTime &end );
92 void editRecurrence();
93 void acceptInvitation();
94 void declineInvitation();
97 TQLabel *mStartDateLabel;
98 TQLabel *mEndDateLabel;
99 KDateEdit *mStartDateEdit;
100 KDateEdit *mEndDateEdit;
101 KTimeEdit *mStartTimeEdit;
102 KTimeEdit *mEndTimeEdit;
103 TQLabel *mDurationLabel;
104 TQCheckBox *mAlldayEventCheckbox;
105 TQComboBox *mFreeTimeCombo;
106 TQFrame *mInvitationBar;
109 TQDateTime mCurrStartDateTime;
110 TQDateTime mCurrEndDateTime;
|