author | zecke <zecke> | 2002-10-08 20:03:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-08 20:03:29 (UTC) |
commit | 9237d1adcf23ee11f16881fbeea51e0bb3ec0b2f (patch) (unidiff) | |
tree | da7ac82c0abd3948d5e18e6e8db3a9277d4922ac /noncore/apps/opie-console/iolayerbase.h | |
parent | b81a4afcb4d363bf1ee50aa7b43a1f1566addc9d (diff) | |
download | opie-9237d1adcf23ee11f16881fbeea51e0bb3ec0b2f.zip opie-9237d1adcf23ee11f16881fbeea51e0bb3ec0b2f.tar.gz opie-9237d1adcf23ee11f16881fbeea51e0bb3ec0b2f.tar.bz2 |
Default added the TerminalEmulation Widget
MainWindow:
do save the profiles on deconstruction
MetaFactory
Brown Paper bag bug fixed. take care of the right name
in terminalWidget....
opie-console.pro
add the widgets
IOLayerBase
a basic widget for speed, parity and flow control settings
Terminal Widget
a the ported TerminalConfiguration dialog
Diffstat (limited to 'noncore/apps/opie-console/iolayerbase.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.h b/noncore/apps/opie-console/iolayerbase.h new file mode 100644 index 0000000..7ef3f4d --- a/dev/null +++ b/noncore/apps/opie-console/iolayerbase.h | |||
@@ -0,0 +1,47 @@ | |||
1 | #ifndef OPIE_IO_LAYER_BASE_H | ||
2 | #define OPIE_IO_LAYER_BASE_H | ||
3 | |||
4 | |||
5 | #include <qwidget.h> | ||
6 | |||
7 | class QLabel; | ||
8 | class QComboBox; | ||
9 | class QVBoxLayout; | ||
10 | class QButtonGroup; | ||
11 | class QRadioButton; | ||
12 | class QHBoxLayout; | ||
13 | class IOLayerBase : public QWidget { | ||
14 | Q_OBJECT | ||
15 | public: | ||
16 | enum Flow { Software, Hardware }; | ||
17 | enum Parity{ Odd, Even }; | ||
18 | enum Speed{ Baud_115200, | ||
19 | Baud_57600, | ||
20 | Baud_38400, | ||
21 | Baud_19200, | ||
22 | Baud_9600 }; | ||
23 | IOLayerBase( QWidget* base, const char* name = 0l); | ||
24 | ~IOLayerBase(); | ||
25 | |||
26 | void setFlow( Flow flo ); | ||
27 | void setParity( Parity par ); | ||
28 | void setSpeed( Speed speed ); | ||
29 | |||
30 | Flow flow()const; | ||
31 | Parity parity()const; | ||
32 | Speed speed()const; | ||
33 | private: | ||
34 | QVBoxLayout* m_lroot; | ||
35 | QLabel* m_speedLabel; | ||
36 | QComboBox* m_speedBox; | ||
37 | QButtonGroup* m_groupFlow; | ||
38 | QRadioButton *m_flowHw, *m_flowSw; | ||
39 | |||
40 | QButtonGroup* m_groupParity; | ||
41 | QRadioButton *m_parityOdd, *m_parityEven; | ||
42 | QHBoxLayout* m_hbox; | ||
43 | QHBoxLayout* m_hboxPar; | ||
44 | }; | ||
45 | |||
46 | |||
47 | #endif | ||