Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h index 16b6252..7cc2aa5 100644 --- a/noncore/apps/opie-console/mainwindow.h +++ b/noncore/apps/opie-console/mainwindow.h | |||
@@ -1,72 +1,72 @@ | |||
1 | #ifndef OPIE_MAIN_WINDOW_H | 1 | #ifndef OPIE_MAIN_WINDOW_H |
2 | #define OPIE_MAIN_WINDOW_H | 2 | #define OPIE_MAIN_WINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include <qlist.h> | 5 | #include <qlist.h> |
6 | 6 | ||
7 | #include "session.h" | 7 | #include "session.h" |
8 | 8 | ||
9 | /** | 9 | /** |
10 | * this is the MainWindow of the new opie console | 10 | * this is the MainWindow of the new opie console |
11 | * it's also the dispatcher between the different | 11 | * it's also the dispatcher between the different |
12 | * actions supported by the gui | 12 | * actions supported by the gui |
13 | */ | 13 | */ |
14 | class QToolBar; | 14 | class QToolBar; |
15 | class QToolButton; | 15 | class QToolButton; |
16 | class QMenuBar; | 16 | class QMenuBar; |
17 | class QAction; | 17 | class QAction; |
18 | class MetaFactory; | 18 | class MetaFactory; |
19 | class TabWidget; | 19 | class TabWidget; |
20 | class ProfileManager; | 20 | class ProfileManager; |
21 | class Profile; | 21 | class Profile; |
22 | class FunctionKeyboard; | 22 | class FunctionKeyboard; |
23 | class FKey; | 23 | class FKey; |
24 | class QuickButton; | 24 | |
25 | 25 | ||
26 | class MainWindow : public QMainWindow { | 26 | class MainWindow : public QMainWindow { |
27 | Q_OBJECT | 27 | Q_OBJECT |
28 | public: | 28 | public: |
29 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags fl = 0 ); | 29 | MainWindow( QWidget *parent = 0, const char *name = 0, WFlags fl = 0 ); |
30 | ~MainWindow(); | 30 | ~MainWindow(); |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * our factory to generate IOLayer and so on | 33 | * our factory to generate IOLayer and so on |
34 | * | 34 | * |
35 | */ | 35 | */ |
36 | MetaFactory* factory(); | 36 | MetaFactory* factory(); |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * A session contains a QWidget*, | 39 | * A session contains a QWidget*, |
40 | * an IOLayer* and some infos for us | 40 | * an IOLayer* and some infos for us |
41 | */ | 41 | */ |
42 | Session* currentSession(); | 42 | Session* currentSession(); |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * the session list | 45 | * the session list |
46 | */ | 46 | */ |
47 | QList<Session> sessions(); | 47 | QList<Session> sessions(); |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * | 50 | * |
51 | */ | 51 | */ |
52 | ProfileManager* manager(); | 52 | ProfileManager* manager(); |
53 | TabWidget* tabWidget(); | 53 | TabWidget* tabWidget(); |
54 | 54 | ||
55 | private slots: | 55 | private slots: |
56 | void slotNew(); | 56 | void slotNew(); |
57 | void slotConnect(); | 57 | void slotConnect(); |
58 | void slotDisconnect(); | 58 | void slotDisconnect(); |
59 | void slotTerminate(); | 59 | void slotTerminate(); |
60 | void slotConfigure(); | 60 | void slotConfigure(); |
61 | void slotClose(); | 61 | void slotClose(); |
62 | void slotProfile(int); | 62 | void slotProfile(int); |
63 | void slotTransfer(); | 63 | void slotTransfer(); |
64 | void slotOpenKeb(bool); | 64 | void slotOpenKeb(bool); |
65 | void slotOpenButtons(bool); | 65 | void slotOpenButtons(bool); |
66 | void slotRecordScript(); | 66 | void slotRecordScript(); |
67 | void slotSaveScript(); | 67 | void slotSaveScript(); |
68 | void slotRunScript(); | 68 | void slotRunScript(); |
69 | void slotFullscreen(); | 69 | void slotFullscreen(); |
70 | void slotSessionChanged( Session* ); | 70 | void slotSessionChanged( Session* ); |
71 | void slotKeyReceived(FKey, ushort, ushort, bool); | 71 | void slotKeyReceived(FKey, ushort, ushort, bool); |
72 | 72 | ||
@@ -76,56 +76,55 @@ private slots: | |||
76 | 76 | ||
77 | /* save the currentSession() to Profiles */ | 77 | /* save the currentSession() to Profiles */ |
78 | void slotSaveSession(); | 78 | void slotSaveSession(); |
79 | 79 | ||
80 | private: | 80 | private: |
81 | void initUI(); | 81 | void initUI(); |
82 | void populateProfiles(); | 82 | void populateProfiles(); |
83 | void create( const Profile& ); | 83 | void create( const Profile& ); |
84 | /** | 84 | /** |
85 | * the current session | 85 | * the current session |
86 | */ | 86 | */ |
87 | Session* m_curSession; | 87 | Session* m_curSession; |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * the session list | 90 | * the session list |
91 | */ | 91 | */ |
92 | QList<Session> m_sessions; | 92 | QList<Session> m_sessions; |
93 | 93 | ||
94 | /** | 94 | /** |
95 | * the metafactory | 95 | * the metafactory |
96 | */ | 96 | */ |
97 | MetaFactory* m_factory; | 97 | MetaFactory* m_factory; |
98 | ProfileManager* m_manager; | 98 | ProfileManager* m_manager; |
99 | 99 | ||
100 | TabWidget* m_consoleWindow; | 100 | TabWidget* m_consoleWindow; |
101 | QToolBar* m_tool; | 101 | QToolBar* m_tool; |
102 | QToolBar* m_icons; | 102 | QToolBar* m_icons; |
103 | QToolBar* m_keyBar; | 103 | QToolBar* m_keyBar; |
104 | QToolBar* m_buttonBar; | 104 | QToolBar* m_buttonBar; |
105 | QMenuBar* m_bar; | 105 | QMenuBar* m_bar; |
106 | QPopupMenu* m_console; | 106 | QPopupMenu* m_console; |
107 | QPopupMenu* m_settings; | 107 | QPopupMenu* m_settings; |
108 | QPopupMenu* m_sessionsPop; | 108 | QPopupMenu* m_sessionsPop; |
109 | QPopupMenu* m_scripts; | 109 | QPopupMenu* m_scripts; |
110 | QAction* m_connect; | 110 | QAction* m_connect; |
111 | QAction* m_disconnect; | 111 | QAction* m_disconnect; |
112 | QAction* m_terminate; | 112 | QAction* m_terminate; |
113 | QAction* m_transfer; | 113 | QAction* m_transfer; |
114 | QAction* m_setProfiles; | 114 | QAction* m_setProfiles; |
115 | QAction* m_openKeys; | 115 | QAction* m_openKeys; |
116 | QAction* m_openButtons; | 116 | QAction* m_openButtons; |
117 | QAction* m_recordScript; | 117 | QAction* m_recordScript; |
118 | QAction* m_saveScript; | 118 | QAction* m_saveScript; |
119 | QAction* m_runScript; | 119 | QAction* m_runScript; |
120 | QAction* m_fullscreen; | 120 | QAction* m_fullscreen; |
121 | QAction* m_closewindow; | 121 | QAction* m_closewindow; |
122 | 122 | ||
123 | FunctionKeyboard *m_kb; | 123 | FunctionKeyboard *m_kb; |
124 | QuickButton *m_qb; | ||
125 | bool m_isFullscreen; | 124 | bool m_isFullscreen; |
126 | 125 | ||
127 | QWidget* savedParentFullscreen; | 126 | QWidget* savedParentFullscreen; |
128 | }; | 127 | }; |
129 | 128 | ||
130 | 129 | ||
131 | #endif | 130 | #endif |