-rw-r--r-- | korganizer/mainwindow.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index ee4aaa6..a681f42 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -1,115 +1,116 @@ | |||
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 | 7 | ||
8 | #include <libkcal/incidence.h> | 8 | #include <libkcal/incidence.h> |
9 | #include "simplealarmclient.h" | 9 | #include "simplealarmclient.h" |
10 | 10 | ||
11 | class QAction; | 11 | class QAction; |
12 | class CalendarView; | 12 | class CalendarView; |
13 | class KSyncProfile; | 13 | class KSyncProfile; |
14 | #ifdef DESKTOP_VERSION | 14 | #ifdef DESKTOP_VERSION |
15 | 15 | ||
16 | #define QPEToolBar QToolBar | 16 | #define QPEToolBar QToolBar |
17 | #define QPEMenuBar QMenuBar | 17 | #define QPEMenuBar QMenuBar |
18 | #endif | 18 | #endif |
19 | class QPEToolBar; | 19 | class QPEToolBar; |
20 | 20 | ||
21 | namespace KCal { | 21 | namespace KCal { |
22 | class CalendarLocal; | 22 | class CalendarLocal; |
23 | } | 23 | } |
24 | 24 | ||
25 | using namespace KCal; | 25 | using namespace KCal; |
26 | 26 | ||
27 | class MainWindow : public QMainWindow | 27 | class MainWindow : public QMainWindow |
28 | { | 28 | { |
29 | Q_OBJECT | 29 | Q_OBJECT |
30 | public: | 30 | public: |
31 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 31 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
32 | ~MainWindow(); | 32 | ~MainWindow(); |
33 | public slots: | 33 | public slots: |
34 | void configureAgenda( int ); | 34 | void configureAgenda( int ); |
35 | void recieve( const QCString& msg, const QByteArray& data ); | 35 | void recieve( const QCString& msg, const QByteArray& data ); |
36 | static QString defaultFileName(); | 36 | static QString defaultFileName(); |
37 | static QString resourcePath(); | 37 | static QString resourcePath(); |
38 | protected slots: | 38 | protected slots: |
39 | void setCaptionToDates(); | 39 | void setCaptionToDates(); |
40 | int ringSync(); | 40 | int ringSync(); |
41 | void multiSync( bool askforPrefs = false ); | 41 | void multiSync( bool askforPrefs = false ); |
42 | void about(); | 42 | void about(); |
43 | void faq(); | 43 | void faq(); |
44 | void usertrans(); | 44 | void usertrans(); |
45 | void features(); | 45 | void features(); |
46 | void synchowto(); | 46 | void synchowto(); |
47 | void whatsNew(); | 47 | void whatsNew(); |
48 | void keyBindings(); | 48 | void keyBindings(); |
49 | void aboutAutoSaving();; | 49 | void aboutAutoSaving();; |
50 | void aboutKnownBugs(); | 50 | void aboutKnownBugs(); |
51 | 51 | ||
52 | void processIncidenceSelection( Incidence * ); | 52 | void processIncidenceSelection( Incidence * ); |
53 | 53 | ||
54 | void importQtopia(); | 54 | void importQtopia(); |
55 | void importBday(); | 55 | void importBday(); |
56 | void importOL(); | ||
56 | void importIcal(); | 57 | void importIcal(); |
57 | void importFile( QString, bool ); | 58 | void importFile( QString, bool ); |
58 | void quickImportIcal(); | 59 | void quickImportIcal(); |
59 | 60 | ||
60 | void slotModifiedChanged( bool ); | 61 | void slotModifiedChanged( bool ); |
61 | 62 | ||
62 | void save(); | 63 | void save(); |
63 | void configureToolBar( int ); | 64 | void configureToolBar( int ); |
64 | void printSel(); | 65 | void printSel(); |
65 | void printCal(); | 66 | void printCal(); |
66 | void saveCalendar(); | 67 | void saveCalendar(); |
67 | void loadCalendar(); | 68 | void loadCalendar(); |
68 | void exportVCalendar(); | 69 | void exportVCalendar(); |
69 | 70 | ||
70 | void slotSyncMenu( int ); | 71 | void slotSyncMenu( int ); |
71 | void syncSSH(); | 72 | void syncSSH(); |
72 | void confSync(); | 73 | void confSync(); |
73 | void syncSharp(); | 74 | void syncSharp(); |
74 | void syncLocalFile(); | 75 | void syncLocalFile(); |
75 | bool syncWithFile( QString, bool ); | 76 | bool syncWithFile( QString, bool ); |
76 | void quickSyncLocalFile(); | 77 | void quickSyncLocalFile(); |
77 | 78 | ||
78 | 79 | ||
79 | protected: | 80 | protected: |
80 | void displayText( QString, QString); | 81 | void displayText( QString, QString); |
81 | void displayFile( QString, QString); | 82 | void displayFile( QString, QString); |
82 | 83 | ||
83 | void enableIncidenceActions( bool ); | 84 | void enableIncidenceActions( bool ); |
84 | 85 | ||
85 | private: | 86 | private: |
86 | void saveOnClose(); | 87 | void saveOnClose(); |
87 | int mCurrentSyncProfile; | 88 | int mCurrentSyncProfile; |
88 | void syncRemote( KSyncProfile* , bool ask = true); | 89 | void syncRemote( KSyncProfile* , bool ask = true); |
89 | void fillSyncMenu(); | 90 | void fillSyncMenu(); |
90 | bool mFlagKeyPressed; | 91 | bool mFlagKeyPressed; |
91 | bool mBlockAtStartup; | 92 | bool mBlockAtStartup; |
92 | QPEToolBar *iconToolBar; | 93 | QPEToolBar *iconToolBar; |
93 | void initActions(); | 94 | void initActions(); |
94 | void setDefaultPreferences(); | 95 | void setDefaultPreferences(); |
95 | void keyPressEvent ( QKeyEvent * ) ; | 96 | void keyPressEvent ( QKeyEvent * ) ; |
96 | void keyReleaseEvent ( QKeyEvent * ) ; | 97 | void keyReleaseEvent ( QKeyEvent * ) ; |
97 | QPopupMenu *configureToolBarMenu; | 98 | QPopupMenu *configureToolBarMenu; |
98 | QPopupMenu *configureAgendaMenu, *syncMenu; | 99 | QPopupMenu *configureAgendaMenu, *syncMenu; |
99 | CalendarLocal *mCalendar; | 100 | CalendarLocal *mCalendar; |
100 | CalendarView *mView; | 101 | CalendarView *mView; |
101 | QString getPassword(); | 102 | QString getPassword(); |
102 | QAction *mNewSubTodoAction; | 103 | QAction *mNewSubTodoAction; |
103 | 104 | ||
104 | QAction *mShowAction; | 105 | QAction *mShowAction; |
105 | QAction *mEditAction; | 106 | QAction *mEditAction; |
106 | QAction *mDeleteAction; | 107 | QAction *mDeleteAction; |
107 | void closeEvent( QCloseEvent* ce ); | 108 | void closeEvent( QCloseEvent* ce ); |
108 | SimpleAlarmClient mAlarmClient; | 109 | SimpleAlarmClient mAlarmClient; |
109 | QTimer mSaveTimer; | 110 | QTimer mSaveTimer; |
110 | bool mBlockSaveFlag; | 111 | bool mBlockSaveFlag; |
111 | bool mCalendarModifiedFlag; | 112 | bool mCalendarModifiedFlag; |
112 | QPixmap loadPixmap( QString ); | 113 | QPixmap loadPixmap( QString ); |
113 | }; | 114 | }; |
114 | 115 | ||
115 | #endif | 116 | #endif |