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, 7 insertions, 1 deletions
diff --git a/core/pim/datebook/datebook.h b/core/pim/datebook/datebook.h index 44627bb..fcdbfec 100644 --- a/core/pim/datebook/datebook.h +++ b/core/pim/datebook/datebook.h | |||
@@ -23,16 +23,17 @@ | |||
23 | #include <qpe/datebookdb.h> | 23 | #include <qpe/datebookdb.h> |
24 | 24 | ||
25 | #include <qmainwindow.h> | 25 | #include <qmainwindow.h> |
26 | 26 | ||
27 | class QAction; | 27 | class QAction; |
28 | class QWidgetStack; | 28 | class QWidgetStack; |
29 | class DateBookDay; | 29 | class DateBookDay; |
30 | class DateBookWeek; | 30 | class DateBookWeek; |
31 | class DateBookWeekLst; | ||
31 | class DateBookMonth; | 32 | class DateBookMonth; |
32 | class Event; | 33 | class Event; |
33 | class QDate; | 34 | class QDate; |
34 | class Ir; | 35 | class Ir; |
35 | 36 | ||
36 | class DateBook : public QMainWindow | 37 | class DateBook : public QMainWindow |
37 | { | 38 | { |
38 | Q_OBJECT | 39 | Q_OBJECT |
@@ -52,55 +53,60 @@ protected: | |||
52 | void closeEvent( QCloseEvent *e ); | 53 | void closeEvent( QCloseEvent *e ); |
53 | 54 | ||
54 | public slots: | 55 | public slots: |
55 | void flush(); | 56 | void flush(); |
56 | void reload(); | 57 | void reload(); |
57 | 58 | ||
58 | private slots: | 59 | private slots: |
59 | void fileNew(); | 60 | void fileNew(); |
61 | void slotNewEntry(const QDateTime &start, const QDateTime &end, const QString &str); | ||
60 | void slotSettings(); | 62 | void slotSettings(); |
63 | void newDefaultView(QAction *a); | ||
61 | void slotToday();// view today | 64 | void slotToday();// view today |
62 | void changeClock( bool newClock ); | 65 | void changeClock( bool newClock ); |
63 | void changeWeek( bool newDay ); | 66 | void changeWeek( bool newDay ); |
64 | void appMessage(const QCString& msg, const QByteArray& data); | 67 | void appMessage(const QCString& msg, const QByteArray& data); |
65 | // handle key events in the day view... | 68 | // handle key events in the day view... |
66 | void slotNewEventFromKey( const QString &str ); | 69 | void slotNewEventFromKey( const QString &str ); |
67 | void slotFind(); | 70 | void slotFind(); |
68 | void slotDoFind( const QString &, const QDate &, bool, bool, int ); | 71 | void slotDoFind( const QString &, const QDate &, bool, bool, int ); |
69 | 72 | ||
70 | void viewDay(); | 73 | void viewDay(); |
71 | void viewWeek(); | 74 | void viewWeek(); |
75 | void viewWeekLst(); | ||
72 | void viewMonth(); | 76 | void viewMonth(); |
73 | 77 | ||
74 | void showDay( int y, int m, int d ); | 78 | void showDay( int y, int m, int d ); |
75 | 79 | ||
76 | void editEvent( const Event &e ); | 80 | void editEvent( const Event &e ); |
77 | void removeEvent( const Event &e ); | 81 | void removeEvent( const Event &e ); |
78 | 82 | ||
79 | void receive( const QCString &msg, const QByteArray &data ); | 83 | void receive( const QCString &msg, const QByteArray &data ); |
80 | void setDocument( const QString & ); | 84 | void setDocument( const QString & ); |
81 | void beamEvent( const Event &e ); | 85 | void beamEvent( const Event &e ); |
82 | void beamDone( Ir *ir ); | 86 | void beamDone( Ir *ir ); |
83 | 87 | ||
84 | private: | 88 | private: |
85 | void addEvent( const Event &e ); | 89 | void addEvent( const Event &e ); |
86 | void initDay(); | 90 | void initDay(); |
87 | void initWeek(); | 91 | void initWeek(); |
92 | void initWeekLst(); | ||
88 | void initMonth(); | 93 | void initMonth(); |
89 | void loadSettings(); | 94 | void loadSettings(); |
90 | void saveSettings(); | 95 | void saveSettings(); |
91 | 96 | ||
92 | private: | 97 | private: |
93 | DateBookDB *db; | 98 | DateBookDB *db; |
94 | QWidgetStack *views; | 99 | QWidgetStack *views; |
95 | DateBookDay *dayView; | 100 | DateBookDay *dayView; |
96 | DateBookWeek *weekView; | 101 | DateBookWeek *weekView; |
97 | DateBookMonth *monthView; | 102 | DateBookMonth *monthView; |
98 | QAction *dayAction, *weekAction, *monthAction; | 103 | DateBookWeekLst *weekLstView; |
104 | QAction *dayAction, *weekAction, *weekLstAction, *monthAction; | ||
99 | bool aPreset; // have everything set to alarm? | 105 | bool aPreset; // have everything set to alarm? |
100 | int presetTime; // the standard time for the alarm | 106 | int presetTime; // the standard time for the alarm |
101 | int startTime; | 107 | int startTime; |
102 | bool ampm; | 108 | bool ampm; |
103 | bool onMonday; | 109 | bool onMonday; |
104 | 110 | ||
105 | bool syncing; | 111 | bool syncing; |
106 | bool inSearch; | 112 | bool inSearch; |