24 #ifndef KOEDITORFREEBUSY_H
25 #define KOEDITORFREEBUSY_H
27 #include "koattendeeeditor.h"
30 #include <tqdatetime.h>
33 class KDIntervalColorRectangle;
36 class KDGanttViewItem;
50 KOEditorFreeBusy( int spacing = 8, TQWidget *parent = 0,
51 const char *name = 0 );
52 virtual ~KOEditorFreeBusy();
54 void setUpdateEnabled( bool enabled );
55 bool updateEnabled() const;
59 void clearAttendees();
68 void dateTimesChanged( const TQDateTime &, const TQDateTime & );
71 void slotInsertFreeBusy( KCal::FreeBusy *fb, const TQString &email );
73 void setDateTimes( const TQDateTime &, const TQDateTime & );
75 void editFreeBusyUrl( KDGanttViewItem *item );
78 void slotUpdateGanttView( const TQDateTime &, const TQDateTime & );
79 void slotScaleChanged( int );
80 void slotCenterOnStart() ;
81 void slotZoomToTime();
83 void showAttendeeStatusMenu();
89 void slotIntervalColorRectangleMoved( const TQDateTime& start, const TQDateTime& end );
91 void removeAttendee();
92 void listViewClicked( int button, KDGanttViewItem* item );
95 void timerEvent( TQTimerEvent* );
98 TQListViewItem* hasExampleAttendee() const;
99 void updateCurrentItem();
100 void clearSelection() const;
101 void setSelected ( int index );
103 void changeStatusForMe( KCal::Attendee::PartStat status );
104 virtual bool eventFilter( TQObject *watched, TQEvent *event );
107 void slotOrganizerChanged( const TQString &newOrganizer );
109 void updateFreeBusyData( FreeBusyItem * );
111 bool findFreeSlot( TQDateTime &dtFrom, TQDateTime &dtTo );
112 bool tryDate( TQDateTime &tryFrom, TQDateTime &tryTo );
113 bool tryDate( FreeBusyItem *attendee,
114 TQDateTime &tryFrom, TQDateTime &tryTo );
115 void updateStatusSummary();
117 KDGanttView *mGanttView;
118 KDIntervalColorRectangle* mEventRectangle;
119 TQLabel *mStatusSummaryLabel;
121 TQComboBox *scaleCombo;
123 TQDateTime mDtStart, mDtEnd;
125 TQTimer mReloadTimer;
129 TQString mCurrentOrganizer;
Common base class for attendee editor and free busy view.
|