25 #ifndef KDATENAVIGATOR_H
26 #define KDATENAVIGATOR_H
29 #include <tqdatetime.h>
31 #include <libkcal/incidencebase.h>
45 class KDateNavigator: public TQFrame
50 KDateNavigator( TQWidget *parent = 0, const char *name = 0 );
58 void setBaseDate( const TQDate & );
60 KCal::DateList selectedDates() const { return mSelectedDates; }
62 TQSizePolicy sizePolicy () const;
64 NavigatorBar *navigatorBar() const { return mNavigatorBar; }
65 TQDate startDate() const;
66 TQDate endDate() const;
67 void setUpdateNeeded();
77 void selectDates( const KCal::DateList & );
80 void updateDayMatrix();
84 void datesSelected( const KCal::DateList & );
85 void incidenceDropped( Incidence *, const TQDate & );
86 void incidenceDroppedMove( Incidence *, const TQDate & );
87 void weekClicked( const TQDate & );
91 void nextMonthClicked();
92 void prevMonthClicked();
93 void nextYearClicked();
94 void prevYearClicked();
96 void monthSelected( int month );
97 void yearSelected( int year );
102 void wheelEvent( TQWheelEvent * );
104 bool eventFilter( TQObject *, TQEvent * );
106 void setShowWeekNums( bool enabled );
109 NavigatorBar *mNavigatorBar;
111 TQLabel *mHeadings[ 7 ];
112 TQLabel *mWeeknos[ 7 ];
116 KCal::DateList mSelectedDates;
120 KDateNavigator( const KDateNavigator & );
121 KDateNavigator &operator=( const KDateNavigator & );
Replacement for kdpdatebuton.cpp that used 42 widgets for the day matrix to be displayed.
|