author | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-17 14:27:55 (UTC) |
commit | b411ec2d8961d07c3e2e9aefc9e04322b7851859 (patch) (unidiff) | |
tree | 79e2a70f1ad32562456b0bfa03aa2b916095fbb0 /korganizer/mainwindow.h | |
parent | 2d81c75c4ffb8f144ae58e90e68496500d07a19e (diff) | |
download | kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.zip kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.gz kdepimpi-b411ec2d8961d07c3e2e9aefc9e04322b7851859.tar.bz2 |
qdebugcleanup
-rw-r--r-- | korganizer/mainwindow.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index f2a6c60..45ed04d 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -1,64 +1,56 @@ | |||
1 | #ifndef KORGE_MAINWINDOW_H | 1 | #ifndef KORGE_MAINWINDOW_H |
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 <qmenubar.h> | 8 | #include <qmenubar.h> |
9 | #include <qtextstream.h> | 9 | #include <qtextstream.h> |
10 | #include <qregexp.h> | 10 | #include <qregexp.h> |
11 | 11 | ||
12 | #include <libkcal/incidence.h> | 12 | #include <libkcal/incidence.h> |
13 | #include "simplealarmclient.h" | ||
14 | #include <ksyncmanager.h> | 13 | #include <ksyncmanager.h> |
15 | #ifndef DESKTOP_VERSION | 14 | #ifndef DESKTOP_VERSION |
16 | #include <qcopchannel_qws.h> | 15 | #include <qcopchannel_qws.h> |
17 | #endif | 16 | #endif |
18 | class QAction; | 17 | class QAction; |
19 | class CalendarView; | 18 | class CalendarView; |
20 | class KSyncProfile; | 19 | class KSyncProfile; |
21 | #ifdef DESKTOP_VERSION | 20 | #ifdef DESKTOP_VERSION |
22 | 21 | ||
23 | #define QPEToolBar QToolBar | 22 | #define QPEToolBar QToolBar |
24 | #define QPEMenuBar QMenuBar | 23 | #define QPEMenuBar QMenuBar |
25 | #endif | 24 | #endif |
26 | class QPEToolBar; | 25 | class QPEToolBar; |
27 | class QPEMenuBar; | 26 | class QPEMenuBar; |
28 | 27 | ||
29 | 28 | ||
30 | namespace KCal { | 29 | namespace KCal { |
31 | class CalendarLocal; | 30 | class CalendarLocal; |
32 | } | 31 | } |
33 | 32 | ||
34 | class KOMenuBar : public QMenuBar | ||
35 | { | ||
36 | public: | ||
37 | KOMenuBar( QWidget *parent=0 ): QMenuBar (parent ) {;} | ||
38 | QSize sizeHint () const{ qDebug("sizejint ");return QSize ( 40,25 );} | ||
39 | }; | ||
40 | |||
41 | using namespace KCal; | 33 | using namespace KCal; |
42 | 34 | ||
43 | class MainWindow : public QMainWindow | 35 | class MainWindow : public QMainWindow |
44 | { | 36 | { |
45 | Q_OBJECT | 37 | Q_OBJECT |
46 | public: | 38 | public: |
47 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 39 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
48 | ~MainWindow(); | 40 | ~MainWindow(); |
49 | bool beamReceiveEnabled(); | 41 | bool beamReceiveEnabled(); |
50 | static QString defaultFileName(); | 42 | static QString defaultFileName(); |
51 | static QString syncFileName(); | 43 | static QString syncFileName(); |
52 | static QString resourcePath(); | 44 | static QString resourcePath(); |
53 | public slots: | 45 | public slots: |
54 | void setCaption ( const QString & ); | 46 | void setCaption ( const QString & ); |
55 | void updateWeekNum(const KCal::DateList &); | 47 | void updateWeekNum(const KCal::DateList &); |
56 | void updateWeek(QDate); | 48 | void updateWeek(QDate); |
57 | void updateFilterToolbar(); | 49 | void updateFilterToolbar(); |
58 | virtual void showMaximized (); | 50 | virtual void showMaximized (); |
59 | void configureAgenda( int ); | 51 | void configureAgenda( int ); |
60 | void recieve( const QCString& msg, const QByteArray& data ); | 52 | void recieve( const QCString& msg, const QByteArray& data ); |
61 | protected slots: | 53 | protected slots: |
62 | void setCaptionToDates(); | 54 | void setCaptionToDates(); |
63 | void weekAction(); | 55 | void weekAction(); |
64 | void about(); | 56 | void about(); |
@@ -143,33 +135,32 @@ class MainWindow : public QMainWindow | |||
143 | QPopupMenu *selectFilterMenuTB; | 135 | QPopupMenu *selectFilterMenuTB; |
144 | QPopupMenu *configureAgendaMenu, *syncMenu; | 136 | QPopupMenu *configureAgendaMenu, *syncMenu; |
145 | CalendarLocal *mCalendar; | 137 | CalendarLocal *mCalendar; |
146 | CalendarView *mView; | 138 | CalendarView *mView; |
147 | QAction *mNewSubTodoAction; | 139 | QAction *mNewSubTodoAction; |
148 | QAction *mWeekAction; | 140 | QAction *mWeekAction; |
149 | QFont mWeekFont; | 141 | QFont mWeekFont; |
150 | QPixmap mWeekPixmap; | 142 | QPixmap mWeekPixmap; |
151 | QColor mWeekBgColor; | 143 | QColor mWeekBgColor; |
152 | 144 | ||
153 | QAction *mShowAction; | 145 | QAction *mShowAction; |
154 | QAction *mEditAction; | 146 | QAction *mEditAction; |
155 | QAction *mDeleteAction; | 147 | QAction *mDeleteAction; |
156 | QAction *mCloneAction; | 148 | QAction *mCloneAction; |
157 | QAction *mMoveAction; | 149 | QAction *mMoveAction; |
158 | QAction *mBeamAction; | 150 | QAction *mBeamAction; |
159 | QAction *mCancelAction; | 151 | QAction *mCancelAction; |
160 | 152 | ||
161 | QAction *mToggleNav; | 153 | QAction *mToggleNav; |
162 | QAction *mToggleFilter; | 154 | QAction *mToggleFilter; |
163 | QAction *mToggleAllday; | 155 | QAction *mToggleAllday; |
164 | QAction *actionFilterMenuTB; | 156 | QAction *actionFilterMenuTB; |
165 | 157 | ||
166 | void closeEvent( QCloseEvent* ce ); | 158 | void closeEvent( QCloseEvent* ce ); |
167 | SimpleAlarmClient mAlarmClient; | ||
168 | QTimer mSaveTimer; | 159 | QTimer mSaveTimer; |
169 | //bool mBlockSaveFlag; | 160 | //bool mBlockSaveFlag; |
170 | bool mCalendarModifiedFlag; | 161 | bool mCalendarModifiedFlag; |
171 | QPixmap loadPixmap( QString ); | 162 | QPixmap loadPixmap( QString ); |
172 | }; | 163 | }; |
173 | 164 | ||
174 | 165 | ||
175 | #endif | 166 | #endif |