summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h
index 3d1e1c8..db3a653 100644
--- a/noncore/apps/opie-console/mainwindow.h
+++ b/noncore/apps/opie-console/mainwindow.h
@@ -1,64 +1,67 @@
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 */
14class QToolBar; 14class QToolBar;
15class QMenuBar; 15class QMenuBar;
16class QAction; 16class QAction;
17class MetaFactory; 17class MetaFactory;
18
18class MainWindow : public QMainWindow { 19class MainWindow : public QMainWindow {
19 Q_OBJECT 20 Q_OBJECT
20public: 21public:
21 MainWindow( ); 22 MainWindow( );
22 ~MainWindow(); 23 ~MainWindow();
23 24
24 /** 25 /**
25 * our factory to generate IOLayer and so on 26 * our factory to generate IOLayer and so on
26 * 27 *
27 */ 28 */
28 MetaFactory* factory(); 29 MetaFactory* factory();
29 30
30 /** 31 /**
31 * A session contains a QWidget*, 32 * A session contains a QWidget*,
32 * an IOLayer* and some infos for us 33 * an IOLayer* and some infos for us
33 */ 34 */
34 Session* currentSession(); 35 Session* currentSession();
35 36
36 /** 37 /**
37 * the session list 38 * the session list
38 */ 39 */
39 QList<Session> sessions(); 40 QList<Session> sessions();
40 41protected slots:
42 void slotNew();
43 void slotConnect();
41private: 44private:
42 void initUI(); 45 void initUI();
43 /** 46 /**
44 * the current session 47 * the current session
45 */ 48 */
46 Session* m_curSession; 49 Session* m_curSession;
47 50
48 /** 51 /**
49 * the session list 52 * the session list
50 */ 53 */
51 QList<Session> m_sessions; 54 QList<Session> m_sessions;
52 55
53 /** 56 /**
54 * the metafactory 57 * the metafactory
55 */ 58 */
56 MetaFactory* m_factory; 59 MetaFactory* m_factory;
57 60
58 QToolBar* m_tool; 61 QToolBar* m_tool;
59 QMenuBar* m_bar; 62 QMenuBar* m_bar;
60 QPopupMenu* m_console; 63 QPopupMenu* m_console;
61 QPopupMenu* m_settings; 64 QPopupMenu* m_settings;
62 QPopupMenu* m_newsession; 65 QPopupMenu* m_newsession;
63 QAction* m_connect; 66 QAction* m_connect;
64 QAction* m_disconnect; 67 QAction* m_disconnect;