-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 6de0543..8dd55ac 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -27,96 +27,97 @@ class QPEToolBar; | |||
27 | 27 | ||
28 | namespace KCal { | 28 | 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, QString command = ""); | 38 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
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 | virtual void showMaximized (); | 45 | virtual void showMaximized (); |
46 | void configureAgenda( int ); | 46 | void configureAgenda( int ); |
47 | void recieve( const QCString& msg, const QByteArray& data ); | 47 | void recieve( const QCString& msg, const QByteArray& data ); |
48 | protected slots: | 48 | protected slots: |
49 | void setCaptionToDates(); | 49 | void setCaptionToDates(); |
50 | void about(); | 50 | void about(); |
51 | void licence(); | 51 | void licence(); |
52 | void faq(); | 52 | void faq(); |
53 | void usertrans(); | 53 | void usertrans(); |
54 | void features(); | 54 | void features(); |
55 | void synchowto(); | 55 | void synchowto(); |
56 | void kdesynchowto(); | 56 | void kdesynchowto(); |
57 | void multisynchowto(); | 57 | void multisynchowto(); |
58 | void whatsNew(); | 58 | void whatsNew(); |
59 | void keyBindings(); | 59 | void keyBindings(); |
60 | void aboutAutoSaving();; | 60 | void aboutAutoSaving();; |
61 | void aboutKnownBugs(); | 61 | void aboutKnownBugs(); |
62 | 62 | ||
63 | void processIncidenceSelection( Incidence * ); | 63 | void processIncidenceSelection( Incidence * ); |
64 | 64 | ||
65 | void importQtopia(); | 65 | void importQtopia(); |
66 | void importBday(); | 66 | void importBday(); |
67 | void importOL(); | 67 | void importOL(); |
68 | void importIcal(); | 68 | void importIcal(); |
69 | void importFile( QString, bool ); | 69 | void importFile( QString, bool ); |
70 | void quickImportIcal(); | 70 | void quickImportIcal(); |
71 | 71 | ||
72 | void slotModifiedChanged( bool ); | 72 | void slotModifiedChanged( bool ); |
73 | 73 | ||
74 | void save(); | 74 | void save(); |
75 | void saveStopTimer(); | ||
75 | void configureToolBar( int ); | 76 | void configureToolBar( int ); |
76 | void printSel(); | 77 | void printSel(); |
77 | void printCal(); | 78 | void printCal(); |
78 | void saveCalendar(); | 79 | void saveCalendar(); |
79 | void loadCalendar(); | 80 | void loadCalendar(); |
80 | void exportVCalendar(); | 81 | void exportVCalendar(); |
81 | void fillFilterMenu(); | 82 | void fillFilterMenu(); |
82 | void selectFilter( int ); | 83 | void selectFilter( int ); |
83 | void exportToPhone( int ); | 84 | void exportToPhone( int ); |
84 | void toggleBeamReceive(); | 85 | void toggleBeamReceive(); |
85 | void disableBR(bool); | 86 | void disableBR(bool); |
86 | 87 | ||
87 | private slots: | 88 | private slots: |
88 | void showConfigureAgenda(); | 89 | void showConfigureAgenda(); |
89 | void getFile( bool ); | 90 | void getFile( bool ); |
90 | void syncFileRequest(); | 91 | void syncFileRequest(); |
91 | 92 | ||
92 | protected: | 93 | protected: |
93 | void displayText( QString, QString); | 94 | void displayText( QString, QString); |
94 | void enableIncidenceActions( bool ); | 95 | void enableIncidenceActions( bool ); |
95 | 96 | ||
96 | private: | 97 | private: |
97 | bool mBRdisabled; | 98 | bool mBRdisabled; |
98 | #ifndef DESKTOP_VERSION | 99 | #ifndef DESKTOP_VERSION |
99 | QCopChannel* infrared; | 100 | QCopChannel* infrared; |
100 | #endif | 101 | #endif |
101 | QAction* brAction; | 102 | QAction* brAction; |
102 | KSyncManager* mSyncManager; | 103 | KSyncManager* mSyncManager; |
103 | bool mClosed; | 104 | bool mClosed; |
104 | void saveOnClose(); | 105 | void saveOnClose(); |
105 | bool mFlagKeyPressed; | 106 | bool mFlagKeyPressed; |
106 | bool mBlockAtStartup; | 107 | bool mBlockAtStartup; |
107 | QPEToolBar *iconToolBar; | 108 | QPEToolBar *iconToolBar; |
108 | void initActions(); | 109 | void initActions(); |
109 | void setDefaultPreferences(); | 110 | void setDefaultPreferences(); |
110 | void keyPressEvent ( QKeyEvent * ) ; | 111 | void keyPressEvent ( QKeyEvent * ) ; |
111 | void keyReleaseEvent ( QKeyEvent * ) ; | 112 | void keyReleaseEvent ( QKeyEvent * ) ; |
112 | QPopupMenu *configureToolBarMenu; | 113 | QPopupMenu *configureToolBarMenu; |
113 | QPopupMenu *selectFilterMenu; | 114 | QPopupMenu *selectFilterMenu; |
114 | QPopupMenu *configureAgendaMenu, *syncMenu; | 115 | QPopupMenu *configureAgendaMenu, *syncMenu; |
115 | CalendarLocal *mCalendar; | 116 | CalendarLocal *mCalendar; |
116 | CalendarView *mView; | 117 | CalendarView *mView; |
117 | QAction *mNewSubTodoAction; | 118 | QAction *mNewSubTodoAction; |
118 | 119 | ||
119 | QAction *mShowAction; | 120 | QAction *mShowAction; |
120 | QAction *mEditAction; | 121 | QAction *mEditAction; |
121 | QAction *mDeleteAction; | 122 | QAction *mDeleteAction; |
122 | QAction *mCloneAction; | 123 | QAction *mCloneAction; |