author | zautrix <zautrix> | 2005-02-06 01:23:43 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-06 01:23:43 (UTC) |
commit | 118f5aab05c9ace5612d5c4fd69e7c5a59bed67b (patch) (unidiff) | |
tree | e097f3fecb6e2ae692b91ac29e58e6d5a51154c8 /korganizer/mainwindow.h | |
parent | 659f07aa44f44aebb74c83e7319021cfeb87f275 (diff) | |
download | kdepimpi-118f5aab05c9ace5612d5c4fd69e7c5a59bed67b.zip kdepimpi-118f5aab05c9ace5612d5c4fd69e7c5a59bed67b.tar.gz kdepimpi-118f5aab05c9ace5612d5c4fd69e7c5a59bed67b.tar.bz2 |
better week choose
-rw-r--r-- | korganizer/mainwindow.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 8dd55ac..076ab94 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -2,141 +2,146 @@ | |||
2 | #define KORGE_MAINWINDOW_H | 2 | #define KORGE_MAINWINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include <qtimer.h> | 5 | #include <qtimer.h> |
6 | #include <qdict.h> | 6 | #include <qdict.h> |
7 | #include <qfile.h> | 7 | #include <qfile.h> |
8 | #include <qtextstream.h> | 8 | #include <qtextstream.h> |
9 | #include <qregexp.h> | 9 | #include <qregexp.h> |
10 | 10 | ||
11 | #include <libkcal/incidence.h> | 11 | #include <libkcal/incidence.h> |
12 | #include "simplealarmclient.h" | 12 | #include "simplealarmclient.h" |
13 | #include <ksyncmanager.h> | 13 | #include <ksyncmanager.h> |
14 | #ifndef DESKTOP_VERSION | 14 | #ifndef DESKTOP_VERSION |
15 | #include <qcopchannel_qws.h> | 15 | #include <qcopchannel_qws.h> |
16 | #endif | 16 | #endif |
17 | class QAction; | 17 | class QAction; |
18 | class CalendarView; | 18 | class CalendarView; |
19 | class KSyncProfile; | 19 | class KSyncProfile; |
20 | #ifdef DESKTOP_VERSION | 20 | #ifdef DESKTOP_VERSION |
21 | 21 | ||
22 | #define QPEToolBar QToolBar | 22 | #define QPEToolBar QToolBar |
23 | #define QPEMenuBar QMenuBar | 23 | #define QPEMenuBar QMenuBar |
24 | #endif | 24 | #endif |
25 | class QPEToolBar; | 25 | class QPEToolBar; |
26 | class QPEMenuBar; | ||
26 | 27 | ||
27 | 28 | ||
28 | namespace KCal { | 29 | namespace KCal { |
29 | class CalendarLocal; | 30 | class CalendarLocal; |
30 | } | 31 | } |
31 | 32 | ||
32 | using namespace KCal; | 33 | using namespace KCal; |
33 | 34 | ||
34 | class MainWindow : public QMainWindow | 35 | class MainWindow : public QMainWindow |
35 | { | 36 | { |
36 | Q_OBJECT | 37 | Q_OBJECT |
37 | public: | 38 | public: |
38 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 39 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
39 | ~MainWindow(); | 40 | ~MainWindow(); |
40 | bool beamReceiveEnabled(); | 41 | bool beamReceiveEnabled(); |
41 | static QString defaultFileName(); | 42 | static QString defaultFileName(); |
42 | static QString syncFileName(); | 43 | static QString syncFileName(); |
43 | static QString resourcePath(); | 44 | static QString resourcePath(); |
44 | public slots: | 45 | public slots: |
46 | void updateWeekNum(const KCal::DateList &); | ||
47 | void updateWeek(QDate); | ||
45 | virtual void showMaximized (); | 48 | virtual void showMaximized (); |
46 | void configureAgenda( int ); | 49 | void configureAgenda( int ); |
47 | void recieve( const QCString& msg, const QByteArray& data ); | 50 | void recieve( const QCString& msg, const QByteArray& data ); |
48 | protected slots: | 51 | protected slots: |
49 | void setCaptionToDates(); | 52 | void setCaptionToDates(); |
50 | void about(); | 53 | void about(); |
51 | void licence(); | 54 | void licence(); |
52 | void faq(); | 55 | void faq(); |
53 | void usertrans(); | 56 | void usertrans(); |
54 | void features(); | 57 | void features(); |
55 | void synchowto(); | 58 | void synchowto(); |
56 | void kdesynchowto(); | 59 | void kdesynchowto(); |
57 | void multisynchowto(); | 60 | void multisynchowto(); |
58 | void whatsNew(); | 61 | void whatsNew(); |
59 | void keyBindings(); | 62 | void keyBindings(); |
60 | void aboutAutoSaving();; | 63 | void aboutAutoSaving();; |
61 | void aboutKnownBugs(); | 64 | void aboutKnownBugs(); |
62 | 65 | ||
63 | void processIncidenceSelection( Incidence * ); | 66 | void processIncidenceSelection( Incidence * ); |
64 | 67 | ||
65 | void importQtopia(); | 68 | void importQtopia(); |
66 | void importBday(); | 69 | void importBday(); |
67 | void importOL(); | 70 | void importOL(); |
68 | void importIcal(); | 71 | void importIcal(); |
69 | void importFile( QString, bool ); | 72 | void importFile( QString, bool ); |
70 | void quickImportIcal(); | 73 | void quickImportIcal(); |
71 | 74 | ||
72 | void slotModifiedChanged( bool ); | 75 | void slotModifiedChanged( bool ); |
73 | 76 | ||
74 | void save(); | 77 | void save(); |
75 | void saveStopTimer(); | 78 | void saveStopTimer(); |
76 | void configureToolBar( int ); | 79 | void configureToolBar( int ); |
77 | void printSel(); | 80 | void printSel(); |
78 | void printCal(); | 81 | void printCal(); |
79 | void saveCalendar(); | 82 | void saveCalendar(); |
80 | void loadCalendar(); | 83 | void loadCalendar(); |
81 | void exportVCalendar(); | 84 | void exportVCalendar(); |
82 | void fillFilterMenu(); | 85 | void fillFilterMenu(); |
83 | void selectFilter( int ); | 86 | void selectFilter( int ); |
84 | void exportToPhone( int ); | 87 | void exportToPhone( int ); |
85 | void toggleBeamReceive(); | 88 | void toggleBeamReceive(); |
86 | void disableBR(bool); | 89 | void disableBR(bool); |
87 | 90 | signals: | |
91 | void selectWeek ( int ); | ||
88 | private slots: | 92 | private slots: |
89 | void showConfigureAgenda(); | 93 | void showConfigureAgenda(); |
90 | void getFile( bool ); | 94 | void getFile( bool ); |
91 | void syncFileRequest(); | 95 | void syncFileRequest(); |
92 | 96 | ||
93 | protected: | 97 | protected: |
94 | void displayText( QString, QString); | 98 | void displayText( QString, QString); |
95 | void enableIncidenceActions( bool ); | 99 | void enableIncidenceActions( bool ); |
96 | 100 | ||
97 | private: | 101 | private: |
98 | bool mBRdisabled; | 102 | bool mBRdisabled; |
99 | #ifndef DESKTOP_VERSION | 103 | #ifndef DESKTOP_VERSION |
100 | QCopChannel* infrared; | 104 | QCopChannel* infrared; |
101 | #endif | 105 | #endif |
102 | QAction* brAction; | 106 | QAction* brAction; |
103 | KSyncManager* mSyncManager; | 107 | KSyncManager* mSyncManager; |
104 | bool mClosed; | 108 | bool mClosed; |
105 | void saveOnClose(); | 109 | void saveOnClose(); |
106 | bool mFlagKeyPressed; | 110 | bool mFlagKeyPressed; |
107 | bool mBlockAtStartup; | 111 | bool mBlockAtStartup; |
108 | QPEToolBar *iconToolBar; | 112 | QPEToolBar *iconToolBar; |
109 | void initActions(); | 113 | void initActions(); |
110 | void setDefaultPreferences(); | 114 | void setDefaultPreferences(); |
111 | void keyPressEvent ( QKeyEvent * ) ; | 115 | void keyPressEvent ( QKeyEvent * ) ; |
112 | void keyReleaseEvent ( QKeyEvent * ) ; | 116 | void keyReleaseEvent ( QKeyEvent * ) ; |
113 | QPopupMenu *configureToolBarMenu; | 117 | QPopupMenu *configureToolBarMenu; |
114 | QPopupMenu *selectFilterMenu; | 118 | QPopupMenu *selectFilterMenu; |
115 | QPopupMenu *configureAgendaMenu, *syncMenu; | 119 | QPopupMenu *configureAgendaMenu, *syncMenu; |
116 | CalendarLocal *mCalendar; | 120 | CalendarLocal *mCalendar; |
117 | CalendarView *mView; | 121 | CalendarView *mView; |
118 | QAction *mNewSubTodoAction; | 122 | QAction *mNewSubTodoAction; |
123 | QPEMenuBar *menuBarWeek; | ||
119 | 124 | ||
120 | QAction *mShowAction; | 125 | QAction *mShowAction; |
121 | QAction *mEditAction; | 126 | QAction *mEditAction; |
122 | QAction *mDeleteAction; | 127 | QAction *mDeleteAction; |
123 | QAction *mCloneAction; | 128 | QAction *mCloneAction; |
124 | QAction *mMoveAction; | 129 | QAction *mMoveAction; |
125 | QAction *mBeamAction; | 130 | QAction *mBeamAction; |
126 | QAction *mCancelAction; | 131 | QAction *mCancelAction; |
127 | 132 | ||
128 | QAction *mToggleNav; | 133 | QAction *mToggleNav; |
129 | QAction *mToggleFilter; | 134 | QAction *mToggleFilter; |
130 | QAction *mToggleAllday; | 135 | QAction *mToggleAllday; |
131 | 136 | ||
132 | 137 | ||
133 | void closeEvent( QCloseEvent* ce ); | 138 | void closeEvent( QCloseEvent* ce ); |
134 | SimpleAlarmClient mAlarmClient; | 139 | SimpleAlarmClient mAlarmClient; |
135 | QTimer mSaveTimer; | 140 | QTimer mSaveTimer; |
136 | //bool mBlockSaveFlag; | 141 | //bool mBlockSaveFlag; |
137 | bool mCalendarModifiedFlag; | 142 | bool mCalendarModifiedFlag; |
138 | QPixmap loadPixmap( QString ); | 143 | QPixmap loadPixmap( QString ); |
139 | }; | 144 | }; |
140 | 145 | ||
141 | 146 | ||
142 | #endif | 147 | #endif |