author | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
commit | 48b3a7159c613b59ca3f838517373620b8afd1d5 (patch) (unidiff) | |
tree | e634b8bd762b38e49bc5fbee3c1719c5b596f8a2 /noncore/apps/opie-console/mainwindow.h | |
parent | 50edb4865c45aa51874b2284d12939bf4fe69041 (diff) | |
download | opie-48b3a7159c613b59ca3f838517373620b8afd1d5.zip opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.gz opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.bz2 |
The basic gui outline
a MainWindow
a Session
and a Factory
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h new file mode 100644 index 0000000..7786c95 --- a/dev/null +++ b/noncore/apps/opie-console/mainwindow.h | |||
@@ -0,0 +1,57 @@ | |||
1 | #ifndef OPIE_MAIN_WINDOW_H | ||
2 | #define OPIE_MAIN_WINDOW_H | ||
3 | |||
4 | #include <qmainwindow.h> | ||
5 | #include <qlist.h> | ||
6 | |||
7 | #include "session.h" | ||
8 | |||
9 | /** | ||
10 | * this is the MainWindow of the new opie console | ||
11 | * it's also the dispatcher between the different | ||
12 | * actions supported by the gui | ||
13 | */ | ||
14 | class MetaFactory; | ||
15 | class MainWindow : public QMainWindow { | ||
16 | Q_OBJECT | ||
17 | public: | ||
18 | MainWindow( ); | ||
19 | ~MainWindow(); | ||
20 | |||
21 | /** | ||
22 | * our factory to generate IOLayer and so on | ||
23 | * | ||
24 | */ | ||
25 | MetaFactory* factory(); | ||
26 | |||
27 | /** | ||
28 | * A session contains a QWidget*, | ||
29 | * an IOLayer* and some infos for us | ||
30 | */ | ||
31 | Session* currentSession(); | ||
32 | |||
33 | /** | ||
34 | * the session list | ||
35 | */ | ||
36 | QList<Session> sessions(); | ||
37 | |||
38 | private: | ||
39 | /** | ||
40 | * the current session | ||
41 | */ | ||
42 | Session* m_curSession; | ||
43 | |||
44 | /** | ||
45 | * the session list | ||
46 | */ | ||
47 | QList<Session> m_sessions; | ||
48 | |||
49 | /** | ||
50 | * the metafactory | ||
51 | */ | ||
52 | MetaFactory* m_factory; | ||
53 | |||
54 | }; | ||
55 | |||
56 | |||
57 | #endif | ||