-rw-r--r-- | korganizer/mainwindow.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 7d3d492..fdcf7c4 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -29,49 +29,51 @@ namespace KCal { | |||
29 | class CalendarLocal; | 29 | class CalendarLocal; |
30 | } | 30 | } |
31 | 31 | ||
32 | using namespace KCal; | 32 | using namespace KCal; |
33 | 33 | ||
34 | class MainWindow : public QMainWindow | 34 | class MainWindow : public QMainWindow |
35 | { | 35 | { |
36 | Q_OBJECT | 36 | Q_OBJECT |
37 | public: | 37 | public: |
38 | MainWindow( QWidget *parent = 0, const char *name = 0 ); | 38 | MainWindow( QWidget *parent = 0, const char *name = 0 ); |
39 | ~MainWindow(); | 39 | ~MainWindow(); |
40 | bool beamReceiveEnabled(); | 40 | bool beamReceiveEnabled(); |
41 | static QString defaultFileName(); | 41 | static QString defaultFileName(); |
42 | static QString syncFileName(); | 42 | static QString syncFileName(); |
43 | static QString resourcePath(); | 43 | static QString resourcePath(); |
44 | public slots: | 44 | public slots: |
45 | void setUsesBigPixmaps ( bool ); | 45 | void setUsesBigPixmaps ( bool ); |
46 | void setCaption ( const QString & ); | 46 | void setCaption ( const QString & ); |
47 | void updateWeekNum(const KCal::DateList &); | 47 | void updateWeekNum(const KCal::DateList &); |
48 | void updateWeek(QDate); | 48 | void updateWeek(QDate); |
49 | void updateFilterToolbar(); | 49 | void updateFilterToolbar(); |
50 | virtual void showMaximized (); | 50 | virtual void showMaximized (); |
51 | void configureAgenda( int ); | 51 | void configureAgenda( int ); |
52 | void recieve( const QCString& msg, const QByteArray& data ); | 52 | void recieve( const QCString& msg, const QByteArray& data ); |
53 | void receiveStart( const QCString& msg, const QByteArray& data ); | ||
53 | protected slots: | 54 | protected slots: |
55 | void loadDataAfterStart(); | ||
54 | void calHint(); | 56 | void calHint(); |
55 | void startMultiSync(); | 57 | void startMultiSync(); |
56 | void setCaptionToDates(); | 58 | void setCaptionToDates(); |
57 | void weekAction(); | 59 | void weekAction(); |
58 | void about(); | 60 | void about(); |
59 | void licence(); | 61 | void licence(); |
60 | void faq(); | 62 | void faq(); |
61 | void usertrans(); | 63 | void usertrans(); |
62 | void features(); | 64 | void features(); |
63 | void synchowto(); | 65 | void synchowto(); |
64 | void storagehowto(); | 66 | void storagehowto(); |
65 | void timetrackinghowto(); | 67 | void timetrackinghowto(); |
66 | void kdesynchowto(); | 68 | void kdesynchowto(); |
67 | void multisynchowto(); | 69 | void multisynchowto(); |
68 | void whatsNew(); | 70 | void whatsNew(); |
69 | void keyBindings(); | 71 | void keyBindings(); |
70 | void aboutAutoSaving();; | 72 | void aboutAutoSaving();; |
71 | void aboutKnownBugs(); | 73 | void aboutKnownBugs(); |
72 | 74 | ||
73 | void processIncidenceSelection( Incidence * ); | 75 | void processIncidenceSelection( Incidence * ); |
74 | 76 | ||
75 | void importQtopia(); | 77 | void importQtopia(); |
76 | void importBday(); | 78 | void importBday(); |
77 | void importOL(); | 79 | void importOL(); |
@@ -95,48 +97,52 @@ class MainWindow : public QMainWindow | |||
95 | void fillFilterMenuTB(); | 97 | void fillFilterMenuTB(); |
96 | void selectFilter( int ); | 98 | void selectFilter( int ); |
97 | void fillFilterMenuPopup(); | 99 | void fillFilterMenuPopup(); |
98 | void selectFilterPopup( int ); | 100 | void selectFilterPopup( int ); |
99 | void exportToPhone( int ); | 101 | void exportToPhone( int ); |
100 | void toggleBeamReceive(); | 102 | void toggleBeamReceive(); |
101 | void disableBR(bool); | 103 | void disableBR(bool); |
102 | signals: | 104 | signals: |
103 | void selectWeek ( int ); | 105 | void selectWeek ( int ); |
104 | private slots: | 106 | private slots: |
105 | void slotResetFocus(); | 107 | void slotResetFocus(); |
106 | void slotResetFocusLoop(); | 108 | void slotResetFocusLoop(); |
107 | void showConfigureAgenda(); | 109 | void showConfigureAgenda(); |
108 | void getFile( bool ); | 110 | void getFile( bool ); |
109 | void syncFileRequest(); | 111 | void syncFileRequest(); |
110 | 112 | ||
111 | protected: | 113 | protected: |
112 | int mFocusLoop; | 114 | int mFocusLoop; |
113 | void hideEvent ( QHideEvent * ); | 115 | void hideEvent ( QHideEvent * ); |
114 | QString sentSyncFile(); | 116 | QString sentSyncFile(); |
115 | void displayText( QString, QString); | 117 | void displayText( QString, QString); |
116 | void enableIncidenceActions( bool ); | 118 | void enableIncidenceActions( bool ); |
117 | 119 | ||
118 | private: | 120 | private: |
121 | |||
122 | QCString mCStringMess; | ||
123 | QByteArray mByteData; | ||
124 | |||
119 | //void setMenuBar( QMenuBar * ); | 125 | //void setMenuBar( QMenuBar * ); |
120 | bool mBRdisabled; | 126 | bool mBRdisabled; |
121 | #ifndef DESKTOP_VERSION | 127 | #ifndef DESKTOP_VERSION |
122 | QCopChannel* infrared; | 128 | QCopChannel* infrared; |
123 | #endif | 129 | #endif |
124 | QAction* brAction; | 130 | QAction* brAction; |
125 | KSyncManager* mSyncManager; | 131 | KSyncManager* mSyncManager; |
126 | bool mClosed; | 132 | bool mClosed; |
127 | void saveOnClose(); | 133 | void saveOnClose(); |
128 | bool mFlagKeyPressed; | 134 | bool mFlagKeyPressed; |
129 | bool mBlockAtStartup; | 135 | bool mBlockAtStartup; |
130 | KMenuBar *menuBar1; | 136 | KMenuBar *menuBar1; |
131 | QPEToolBar *iconToolBar; | 137 | QPEToolBar *iconToolBar; |
132 | QPEToolBar *viewToolBar; | 138 | QPEToolBar *viewToolBar; |
133 | QPEToolBar *navigatorToolBar; | 139 | QPEToolBar *navigatorToolBar; |
134 | QPEToolBar *filterToolBar; | 140 | QPEToolBar *filterToolBar; |
135 | KMenuBar *filterMenubar; | 141 | KMenuBar *filterMenubar; |
136 | QPopupMenu * filterPopupMenu; | 142 | QPopupMenu * filterPopupMenu; |
137 | QPopupMenu * mCurrentItemMenu; | 143 | QPopupMenu * mCurrentItemMenu; |
138 | void initActions(); | 144 | void initActions(); |
139 | void setDefaultPreferences(); | 145 | void setDefaultPreferences(); |
140 | void resizeEvent( QResizeEvent* e); | 146 | void resizeEvent( QResizeEvent* e); |
141 | void keyPressEvent ( QKeyEvent * ) ; | 147 | void keyPressEvent ( QKeyEvent * ) ; |
142 | void keyReleaseEvent ( QKeyEvent * ) ; | 148 | void keyReleaseEvent ( QKeyEvent * ) ; |