author | umopapisdn <umopapisdn> | 2003-04-12 03:56:46 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-04-12 03:56:46 (UTC) |
commit | 8c690a7bb709773217ba3d39d3ef769a2414cc72 (patch) (unidiff) | |
tree | a34bae70ee8dc46f40f60150e1703088fbc4da36 /core/pim/datebook/datebook.h | |
parent | 212aef7fd20182fe926644af2ab10a4b49549440 (diff) | |
download | opie-8c690a7bb709773217ba3d39d3ef769a2414cc72.zip opie-8c690a7bb709773217ba3d39d3ef769a2414cc72.tar.gz opie-8c690a7bb709773217ba3d39d3ef769a2414cc72.tar.bz2 |
New feature:
Added a configurable option to make the weeklist view display either no times at all, only start times, or both start and end time.
Also moved the configuration of default view from the menu into the preference dialog.
Diffstat (limited to 'core/pim/datebook/datebook.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/datebook.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/pim/datebook/datebook.h b/core/pim/datebook/datebook.h index 623862b..5216770 100644 --- a/core/pim/datebook/datebook.h +++ b/core/pim/datebook/datebook.h | |||
@@ -21,12 +21,15 @@ | |||
21 | #define DATEBOOK_H | 21 | #define DATEBOOK_H |
22 | 22 | ||
23 | #include <qpe/datebookdb.h> | 23 | #include <qpe/datebookdb.h> |
24 | 24 | ||
25 | #include <qmainwindow.h> | 25 | #include <qmainwindow.h> |
26 | 26 | ||
27 | enum { DAY=1,WEEK,WEEKLST,MONTH };// defaultView values | ||
28 | enum { NONE=0,NORMAL,EXTENDED };// WeekLstView's modes. | ||
29 | |||
27 | class QAction; | 30 | class QAction; |
28 | class QWidgetStack; | 31 | class QWidgetStack; |
29 | class DateBookDay; | 32 | class DateBookDay; |
30 | class DateBookWeek; | 33 | class DateBookWeek; |
31 | class DateBookWeekLst; | 34 | class DateBookWeekLst; |
32 | class DateBookMonth; | 35 | class DateBookMonth; |
@@ -64,13 +67,12 @@ public slots: | |||
64 | void reload(); | 67 | void reload(); |
65 | 68 | ||
66 | private slots: | 69 | private slots: |
67 | void fileNew(); | 70 | void fileNew(); |
68 | void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str, const QString &location=0); | 71 | void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str, const QString &location=0); |
69 | void slotSettings(); | 72 | void slotSettings(); |
70 | void newDefaultView(QAction *a); | ||
71 | void slotToday();// view today | 73 | void slotToday();// view today |
72 | void changeClock( bool newClock ); | 74 | void changeClock( bool newClock ); |
73 | void changeWeek( bool newDay ); | 75 | void changeWeek( bool newDay ); |
74 | void appMessage(const QCString& msg, const QByteArray& data); | 76 | void appMessage(const QCString& msg, const QByteArray& data); |
75 | // handle key events in the day view... | 77 | // handle key events in the day view... |
76 | void slotNewEventFromKey( const QString &str ); | 78 | void slotNewEventFromKey( const QString &str ); |
@@ -109,17 +111,19 @@ private: | |||
109 | QWidgetStack *views; | 111 | QWidgetStack *views; |
110 | DateBookDay *dayView; | 112 | DateBookDay *dayView; |
111 | DateBookWeek *weekView; | 113 | DateBookWeek *weekView; |
112 | DateBookMonth *monthView; | 114 | DateBookMonth *monthView; |
113 | DateBookWeekLst *weekLstView; | 115 | DateBookWeekLst *weekLstView; |
114 | QAction *dayAction, *weekAction, *weekLstAction, *monthAction; | 116 | QAction *dayAction, *weekAction, *weekLstAction, *monthAction; |
117 | int weeklistviewconfig; | ||
115 | bool aPreset; // have everything set to alarm? | 118 | bool aPreset; // have everything set to alarm? |
116 | int presetTime; // the standard time for the alarm | 119 | int presetTime; // the standard time for the alarm |
117 | int startTime; | 120 | int startTime; |
118 | int rowStyle; | 121 | int rowStyle; |
119 | bool bJumpToCurTime; //should jump to current time in dayview? | 122 | int defaultView; |
123 | bool bJumpToCurTime; //should jump to current time in dayview? | ||
120 | bool ampm; | 124 | bool ampm; |
121 | bool onMonday; | 125 | bool onMonday; |
122 | 126 | ||
123 | bool syncing; | 127 | bool syncing; |
124 | bool inSearch; | 128 | bool inSearch; |
125 | 129 | ||