Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.h b/noncore/apps/opie-console/emulation_handler.h index 58b94bc..9af7680 100644 --- a/noncore/apps/opie-console/emulation_handler.h +++ b/noncore/apps/opie-console/emulation_handler.h | |||
@@ -1,62 +1,70 @@ | |||
1 | #ifndef OPIE_EMULATION_HANDLER_H | 1 | #ifndef OPIE_EMULATION_HANDLER_H |
2 | #define OPIE_EMULATION_HANDLER_H | 2 | #define OPIE_EMULATION_HANDLER_H |
3 | 3 | ||
4 | #include <qobject.h> | 4 | #include <qobject.h> |
5 | #include <qcolor.h> | ||
5 | #include <qcstring.h> | 6 | #include <qcstring.h> |
6 | 7 | ||
7 | /* | 8 | /* |
8 | * Badly ibotty lacks the time to finish | 9 | * Badly ibotty lacks the time to finish |
9 | * his widget in time.. | 10 | * his widget in time.. |
10 | * Never the less we've to have an EmulationWidget | 11 | * Never the less we've to have an EmulationWidget |
11 | * This is why I'm taking the inferior not cleaned | 12 | * This is why I'm taking the inferior not cleaned |
12 | * up TE* KDE STUFF | 13 | * up TE* KDE STUFF |
13 | */ | 14 | */ |
14 | 15 | ||
15 | /** | 16 | /** |
16 | * This is the layer above the IOLayer* | 17 | * This is the layer above the IOLayer* |
17 | * This nice QObject here will get stuff from | 18 | * This nice QObject here will get stuff from |
18 | * got a slot and a signal | 19 | * got a slot and a signal |
19 | * the signal for data | 20 | * the signal for data |
20 | * the slot for receiving | 21 | * the slot for receiving |
21 | * it'll set up the widget internally | 22 | * it'll set up the widget internally |
22 | * and manage the communication between | 23 | * and manage the communication between |
23 | * the pre QByteArray world! | 24 | * the pre QByteArray world! |
24 | */ | 25 | */ |
25 | class Profile; | 26 | class Profile; |
26 | class QWidget; | 27 | class QWidget; |
27 | class TEWidget; | 28 | class TEWidget; |
28 | class TEmulation; | 29 | class TEmulation; |
30 | class QFont; | ||
29 | class EmulationHandler : public QObject { | 31 | class EmulationHandler : public QObject { |
30 | Q_OBJECT | 32 | Q_OBJECT |
31 | public: | 33 | public: |
32 | /** | 34 | /** |
33 | * simple c'tor the parent of the TEWdiget | 35 | * simple c'tor the parent of the TEWdiget |
34 | * and a name | 36 | * and a name |
35 | * and a Profile | 37 | * and a Profile |
36 | */ | 38 | */ |
37 | EmulationHandler( const Profile&, QWidget* parent, const char* name = 0l ); | 39 | EmulationHandler( const Profile&, QWidget* parent, const char* name = 0l ); |
38 | 40 | ||
39 | /** | 41 | /** |
40 | * delete all components | 42 | * delete all components |
41 | */ | 43 | */ |
42 | ~EmulationHandler(); | 44 | ~EmulationHandler(); |
43 | 45 | ||
44 | void load( const Profile& ); | 46 | void load( const Profile& ); |
45 | QWidget* widget(); | 47 | QWidget* widget(); |
48 | void setColor( const QColor& fore, const QColor& back ); | ||
46 | signals: | 49 | signals: |
47 | void send( const QByteArray& ); | 50 | void send( const QByteArray& ); |
48 | void changeSize(int rows, int cols ); | 51 | void changeSize(int rows, int cols ); |
49 | 52 | ||
53 | |||
50 | public slots: | 54 | public slots: |
51 | void recv( const QByteArray& ); | 55 | void recv( const QByteArray& ); |
52 | 56 | ||
53 | private slots: | 57 | private slots: |
54 | void recvEmulation( const char*, int len ); | 58 | void recvEmulation( const char*, int len ); |
59 | private: | ||
60 | QFont font( int ); | ||
61 | QColor foreColor(int ); | ||
62 | QColor backColor(int ); | ||
55 | 63 | ||
56 | private: | 64 | private: |
57 | TEWidget* m_teWid; | 65 | TEWidget* m_teWid; |
58 | TEmulation* m_teEmu; | 66 | TEmulation* m_teEmu; |
59 | 67 | ||
60 | }; | 68 | }; |
61 | 69 | ||
62 | #endif | 70 | #endif |