Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h index 7ef9c26..c8b0b65 100644 --- a/noncore/apps/opie-console/mainwindow.h +++ b/noncore/apps/opie-console/mainwindow.h | |||
@@ -10,84 +10,86 @@ | |||
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 QMenuBar; | 15 | class QMenuBar; |
16 | class QAction; | 16 | class QAction; |
17 | class MetaFactory; | 17 | class MetaFactory; |
18 | class TabWidget; | 18 | class TabWidget; |
19 | class ProfileManager; | 19 | class ProfileManager; |
20 | class Profile; | 20 | class Profile; |
21 | class MainWindow : public QMainWindow { | 21 | class MainWindow : public QMainWindow { |
22 | Q_OBJECT | 22 | Q_OBJECT |
23 | public: | 23 | public: |
24 | MainWindow(); | 24 | MainWindow(); |
25 | ~MainWindow(); | 25 | ~MainWindow(); |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * our factory to generate IOLayer and so on | 28 | * our factory to generate IOLayer and so on |
29 | * | 29 | * |
30 | */ | 30 | */ |
31 | MetaFactory* factory(); | 31 | MetaFactory* factory(); |
32 | 32 | ||
33 | /** | 33 | /** |
34 | * A session contains a QWidget*, | 34 | * A session contains a QWidget*, |
35 | * an IOLayer* and some infos for us | 35 | * an IOLayer* and some infos for us |
36 | */ | 36 | */ |
37 | Session* currentSession(); | 37 | Session* currentSession(); |
38 | 38 | ||
39 | /** | 39 | /** |
40 | * the session list | 40 | * the session list |
41 | */ | 41 | */ |
42 | QList<Session> sessions(); | 42 | QList<Session> sessions(); |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * | 45 | * |
46 | */ | 46 | */ |
47 | ProfileManager* manager(); | 47 | ProfileManager* manager(); |
48 | TabWidget* tabWidget(); | 48 | TabWidget* tabWidget(); |
49 | 49 | ||
50 | private slots: | 50 | private slots: |
51 | void slotNew(); | 51 | void slotNew(); |
52 | void slotConnect(); | 52 | void slotConnect(); |
53 | void slotDisconnect(); | 53 | void slotDisconnect(); |
54 | void slotTerminate(); | 54 | void slotTerminate(); |
55 | void slotConfigure(); | 55 | void slotConfigure(); |
56 | void slotClose(); | 56 | void slotClose(); |
57 | void slotProfile(int); | 57 | void slotProfile(int); |
58 | void slotTransfer(); | ||
58 | 59 | ||
59 | private: | 60 | private: |
60 | void initUI(); | 61 | void initUI(); |
61 | void populateProfiles(); | 62 | void populateProfiles(); |
62 | void create( const Profile& ); | 63 | void create( const Profile& ); |
63 | /** | 64 | /** |
64 | * the current session | 65 | * the current session |
65 | */ | 66 | */ |
66 | Session* m_curSession; | 67 | Session* m_curSession; |
67 | 68 | ||
68 | /** | 69 | /** |
69 | * the session list | 70 | * the session list |
70 | */ | 71 | */ |
71 | QList<Session> m_sessions; | 72 | QList<Session> m_sessions; |
72 | 73 | ||
73 | /** | 74 | /** |
74 | * the metafactory | 75 | * the metafactory |
75 | */ | 76 | */ |
76 | MetaFactory* m_factory; | 77 | MetaFactory* m_factory; |
77 | ProfileManager* m_manager; | 78 | ProfileManager* m_manager; |
78 | 79 | ||
79 | TabWidget* m_consoleWindow; | 80 | TabWidget* m_consoleWindow; |
80 | QToolBar* m_tool; | 81 | QToolBar* m_tool; |
81 | QMenuBar* m_bar; | 82 | QMenuBar* m_bar; |
82 | QPopupMenu* m_console; | 83 | QPopupMenu* m_console; |
83 | QPopupMenu* m_settings; | 84 | QPopupMenu* m_settings; |
84 | QPopupMenu* m_sessionsPop; | 85 | QPopupMenu* m_sessionsPop; |
85 | QAction* m_connect; | 86 | QAction* m_connect; |
86 | QAction* m_disconnect; | 87 | QAction* m_disconnect; |
87 | QAction* m_terminate; | 88 | QAction* m_terminate; |
89 | QAction* m_transfer; | ||
88 | QAction* m_setProfiles; | 90 | QAction* m_setProfiles; |
89 | 91 | ||
90 | }; | 92 | }; |
91 | 93 | ||
92 | 94 | ||
93 | #endif | 95 | #endif |