author | zecke <zecke> | 2002-09-28 18:29:02 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-28 18:29:02 (UTC) |
commit | bc88219d0a9cf935d90c88fe75e238e86c675937 (patch) (unidiff) | |
tree | 0121d1d3d881cf69948f3faf420a71d894dd6832 /noncore/apps/opie-console/mainwindow.h | |
parent | 18d575d0ee47a0700091de81bc3e8c54be4eae18 (diff) | |
download | opie-bc88219d0a9cf935d90c88fe75e238e86c675937.zip opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.gz opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.bz2 |
io_layer take Profile instead of Config
Profile added including some Config like stuff
io_serial getBaud -> baud
a default for gcc3 later
tabdwidget will be our central widget
profileconfig I needed groups() and clearAll
that's pretty much it
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h index db3a653..b6a8419 100644 --- a/noncore/apps/opie-console/mainwindow.h +++ b/noncore/apps/opie-console/mainwindow.h | |||
@@ -1,74 +1,79 @@ | |||
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 QMenuBar; | 15 | class QMenuBar; |
16 | class QAction; | 16 | class QAction; |
17 | class MetaFactory; | 17 | class MetaFactory; |
18 | 18 | ||
19 | class MainWindow : public QMainWindow { | 19 | class MainWindow : public QMainWindow { |
20 | Q_OBJECT | 20 | Q_OBJECT |
21 | public: | 21 | public: |
22 | MainWindow( ); | 22 | MainWindow( ); |
23 | ~MainWindow(); | 23 | ~MainWindow(); |
24 | 24 | ||
25 | /** | 25 | /** |
26 | * our factory to generate IOLayer and so on | 26 | * our factory to generate IOLayer and so on |
27 | * | 27 | * |
28 | */ | 28 | */ |
29 | MetaFactory* factory(); | 29 | MetaFactory* factory(); |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * A session contains a QWidget*, | 32 | * A session contains a QWidget*, |
33 | * an IOLayer* and some infos for us | 33 | * an IOLayer* and some infos for us |
34 | */ | 34 | */ |
35 | Session* currentSession(); | 35 | Session* currentSession(); |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * the session list | 38 | * the session list |
39 | */ | 39 | */ |
40 | QList<Session> sessions(); | 40 | QList<Session> sessions(); |
41 | protected slots: | 41 | |
42 | private slots: | ||
42 | void slotNew(); | 43 | void slotNew(); |
43 | void slotConnect(); | 44 | void slotConnect(); |
45 | void slotDisconnect(); | ||
46 | void slotTerminate(); | ||
47 | void slotConfigure(); | ||
48 | |||
44 | private: | 49 | private: |
45 | void initUI(); | 50 | void initUI(); |
46 | /** | 51 | /** |
47 | * the current session | 52 | * the current session |
48 | */ | 53 | */ |
49 | Session* m_curSession; | 54 | Session* m_curSession; |
50 | 55 | ||
51 | /** | 56 | /** |
52 | * the session list | 57 | * the session list |
53 | */ | 58 | */ |
54 | QList<Session> m_sessions; | 59 | QList<Session> m_sessions; |
55 | 60 | ||
56 | /** | 61 | /** |
57 | * the metafactory | 62 | * the metafactory |
58 | */ | 63 | */ |
59 | MetaFactory* m_factory; | 64 | MetaFactory* m_factory; |
60 | 65 | ||
61 | QToolBar* m_tool; | 66 | QToolBar* m_tool; |
62 | QMenuBar* m_bar; | 67 | QMenuBar* m_bar; |
63 | QPopupMenu* m_console; | 68 | QPopupMenu* m_console; |
64 | QPopupMenu* m_settings; | 69 | QPopupMenu* m_settings; |
65 | QPopupMenu* m_newsession; | 70 | QPopupMenu* m_sessionsPop; |
66 | QAction* m_connect; | 71 | QAction* m_connect; |
67 | QAction* m_disconnect; | 72 | QAction* m_disconnect; |
68 | QAction* m_terminate; | 73 | QAction* m_terminate; |
69 | QAction* m_set; | 74 | QAction* m_setProfiles; |
70 | 75 | ||
71 | }; | 76 | }; |
72 | 77 | ||
73 | 78 | ||
74 | #endif | 79 | #endif |