author | zecke <zecke> | 2002-10-08 20:03:29 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-08 20:03:29 (UTC) |
commit | 9237d1adcf23ee11f16881fbeea51e0bb3ec0b2f (patch) (side-by-side diff) | |
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) (show 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 @@ +#ifndef OPIE_IO_LAYER_BASE_H +#define OPIE_IO_LAYER_BASE_H + + +#include <qwidget.h> + +class QLabel; +class QComboBox; +class QVBoxLayout; +class QButtonGroup; +class QRadioButton; +class QHBoxLayout; +class IOLayerBase : public QWidget { + Q_OBJECT +public: + enum Flow { Software, Hardware }; + enum Parity{ Odd, Even }; + enum Speed{ Baud_115200, + Baud_57600, + Baud_38400, + Baud_19200, + Baud_9600 }; + IOLayerBase( QWidget* base, const char* name = 0l); + ~IOLayerBase(); + + void setFlow( Flow flo ); + void setParity( Parity par ); + void setSpeed( Speed speed ); + + Flow flow()const; + Parity parity()const; + Speed speed()const; +private: + QVBoxLayout* m_lroot; + QLabel* m_speedLabel; + QComboBox* m_speedBox; + QButtonGroup* m_groupFlow; + QRadioButton *m_flowHw, *m_flowSw; + + QButtonGroup* m_groupParity; + QRadioButton *m_parityOdd, *m_parityEven; + QHBoxLayout* m_hbox; + QHBoxLayout* m_hboxPar; +}; + + +#endif |