Diffstat (limited to 'kaddressbook/old_mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/old_mainwindow.h | 122 |
1 files changed, 122 insertions, 0 deletions
diff --git a/kaddressbook/old_mainwindow.h b/kaddressbook/old_mainwindow.h new file mode 100644 index 0000000..7b6f68c --- a/dev/null +++ b/kaddressbook/old_mainwindow.h | |||
@@ -0,0 +1,122 @@ | |||
1 | #ifndef KADR_MAINWINDOW_H | ||
2 | #define KADR_MAINWINDOW_H | ||
3 | |||
4 | #include <qmainwindow.h> | ||
5 | #include "kabcore.h" | ||
6 | |||
7 | //US#include <qtimer.h> | ||
8 | |||
9 | //US#include <libkcal/incidence.h> | ||
10 | |||
11 | //US#include "simplealarmclient.h" | ||
12 | |||
13 | //USclass QAction; | ||
14 | //USclass CalendarView; | ||
15 | |||
16 | //US#ifdef DESKTOP_VERSION | ||
17 | //US#define QPEToolBar QToolBar | ||
18 | //US#define QPEMenuBar QMenuBar | ||
19 | //US#endif | ||
20 | |||
21 | class KABCore; | ||
22 | |||
23 | //USclass QPEToolBar; | ||
24 | |||
25 | //US namespace KACore { | ||
26 | //USclass CalendarLocal; | ||
27 | //US} | ||
28 | |||
29 | //USusing namespace KACore; | ||
30 | |||
31 | class MainWindow : public QMainWindow | ||
32 | { | ||
33 | Q_OBJECT | ||
34 | public: | ||
35 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | ||
36 | ~MainWindow(); | ||
37 | |||
38 | public slots: | ||
39 | // void configureAgenda( int ); | ||
40 | void recieve( const QCString& msg, const QByteArray& data ); | ||
41 | |||
42 | protected slots: | ||
43 | /* | ||
44 | void setCaptionToDates(); | ||
45 | |||
46 | void about(); | ||
47 | |||
48 | void keyBindings(); | ||
49 | void aboutAutoSaving();; | ||
50 | void aboutKnownBugs(); | ||
51 | |||
52 | void processIncidenceSelection( Incidence * ); | ||
53 | |||
54 | void importQtopia(); | ||
55 | void importIcal(); | ||
56 | void importFile( QString, bool ); | ||
57 | void quickImportIcal(); | ||
58 | |||
59 | void slotModifiedChanged( bool ); | ||
60 | |||
61 | void save(); | ||
62 | void configureToolBar( int ); | ||
63 | void saveCalendar(); | ||
64 | void loadCalendar(); | ||
65 | void exportVCalendar(); | ||
66 | void checkAlarms(); | ||
67 | void writeAlarm(); | ||
68 | |||
69 | |||
70 | void syncSSH(); | ||
71 | void syncLocalFile(); | ||
72 | void syncWithFile( QString, bool ); | ||
73 | void quickSyncLocalFile(); | ||
74 | |||
75 | |||
76 | protected: | ||
77 | QString defaultFileName(); | ||
78 | |||
79 | void enableIncidenceActions( bool ); | ||
80 | */ | ||
81 | |||
82 | private: | ||
83 | /* | ||
84 | bool mFlagKeyPressed; | ||
85 | bool mBlockAtStartup; | ||
86 | |||
87 | QPEToolBar *iconToolBar; | ||
88 | |||
89 | void initActions(); | ||
90 | */ | ||
91 | /* void setDefaultPreferences(); | ||
92 | void keyPressEvent ( QKeyEvent * ) ; | ||
93 | void keyReleaseEvent ( QKeyEvent * ) ; | ||
94 | |||
95 | QPopupMenu *configureToolBarMenu; | ||
96 | QPopupMenu *configureAgendaMenu; | ||
97 | CalendarLocal *mCalendar; | ||
98 | CalendarView *mView; | ||
99 | QString getPassword(); | ||
100 | QAction *mNewSubTodoAction; | ||
101 | |||
102 | QAction *mShowAction; | ||
103 | QAction *mEditAction; | ||
104 | QAction *mDeleteAction; | ||
105 | |||
106 | void closeEvent( QCloseEvent* ce ); | ||
107 | |||
108 | SimpleAlarmClient mAlarmClient; | ||
109 | |||
110 | QTimer mSaveTimer; | ||
111 | QTimer alarmTimer; | ||
112 | bool mBlockSaveFlag; | ||
113 | bool mCalendarModifiedFlag; | ||
114 | |||
115 | QPixmap loadPixmap( QString ); | ||
116 | */ | ||
117 | private: | ||
118 | KABCore *mCore; | ||
119 | |||
120 | }; | ||
121 | |||
122 | #endif | ||