-rw-r--r-- | korganizer/kdatenavigator.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/korganizer/kdatenavigator.h b/korganizer/kdatenavigator.h index 3ae1648..0aeb77a 100644 --- a/korganizer/kdatenavigator.h +++ b/korganizer/kdatenavigator.h | |||
@@ -33,43 +33,45 @@ | |||
33 | 33 | ||
34 | class QPushButton; | 34 | class QPushButton; |
35 | class QTimer; | 35 | class QTimer; |
36 | 36 | ||
37 | class KCalendarSystem; | 37 | class KCalendarSystem; |
38 | 38 | ||
39 | class NavigatorBar; | 39 | class NavigatorBar; |
40 | 40 | ||
41 | class KDateNavigator: public QFrame | 41 | class KDateNavigator: public QFrame |
42 | { | 42 | { |
43 | Q_OBJECT | 43 | Q_OBJECT |
44 | public: | 44 | public: |
45 | KDateNavigator( QWidget *parent = 0, Calendar *calendar = 0, | 45 | KDateNavigator( QWidget *parent = 0,const char *name = 0 ); |
46 | bool show_week_numbers = false, const char *name = 0, | ||
47 | QDate date = QDate::currentDate() ); | ||
48 | ~KDateNavigator(); | 46 | ~KDateNavigator(); |
49 | 47 | ||
50 | /** The DateNavigator automatically checks for | 48 | /** The DateNavigator automatically checks for |
51 | * the passage of midnight. If rollover type is | 49 | * the passage of midnight. If rollover type is |
52 | * set to None, no signals are emitted and no | 50 | * set to None, no signals are emitted and no |
53 | * processing is done. With rollover set to | 51 | * processing is done. With rollover set to |
54 | * FollowDay, the day highlighter changes at | 52 | * FollowDay, the day highlighter changes at |
55 | * midnight and dayPassed() is emitted. | 53 | * midnight and dayPassed() is emitted. |
56 | * With FollowMonth, it has the same effect | 54 | * With FollowMonth, it has the same effect |
57 | * as FollowDay but also adjusts the month that is | 55 | * as FollowDay but also adjusts the month that is |
58 | * visible and emits monthPassed() when the month changes. | 56 | * visible and emits monthPassed() when the month changes. |
59 | */ | 57 | */ |
60 | enum RolloverType { None, FollowDay, FollowMonth } ; | 58 | enum RolloverType { None, FollowDay, FollowMonth } ; |
61 | void enableRollover( RolloverType ); | 59 | void enableRollover( RolloverType ); |
62 | 60 | ||
63 | void setShowWeekNums( bool enabled ); | 61 | void setShowWeekNums( bool enabled ); |
62 | void setCalendar( Calendar * ); | ||
63 | void setBaseDate( const QDate & ); | ||
64 | KCal::DateList selectedDates() const { return mSelectedDates; } | ||
65 | NavigatorBar *navigatorBar() const { return mNavigatorBar; } | ||
64 | 66 | ||
65 | public slots: | 67 | public slots: |
66 | void selectDates( const KCal::DateList & ); | 68 | void selectDates( const KCal::DateList & ); |
67 | void updateView(); | 69 | void updateView(); |
68 | void updateConfig(); | 70 | void updateConfig(); |
69 | void updateDayMatrix(); | 71 | void updateDayMatrix(); |
70 | 72 | ||
71 | signals: | 73 | signals: |
72 | void datesSelected( const KCal::DateList & ); | 74 | void datesSelected( const KCal::DateList & ); |
73 | void eventDropped( Event * ); | 75 | void eventDropped( Event * ); |
74 | void weekClicked( const QDate &); | 76 | void weekClicked( const QDate &); |
75 | 77 | ||