author | harlekin <harlekin> | 2004-04-22 18:58:37 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-04-22 18:58:37 (UTC) |
commit | 5c6499c56cd5c00603634546e6ba8c4d9da9741d (patch) (unidiff) | |
tree | 3ad98bb1a0150b1dd69c79fd58e6e59ce8556e51 /noncore/apps/opie-console/iolayerbase.cpp | |
parent | 53d6c4b8bfcb119635b26b78dee0ae4be8490b90 (diff) | |
download | opie-5c6499c56cd5c00603634546e6ba8c4d9da9741d.zip opie-5c6499c56cd5c00603634546e6ba8c4d9da9741d.tar.gz opie-5c6499c56cd5c00603634546e6ba8c4d9da9741d.tar.bz2 |
2400 and 4800 baud added, also free font selection
Diffstat (limited to 'noncore/apps/opie-console/iolayerbase.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.cpp b/noncore/apps/opie-console/iolayerbase.cpp index b434e66..0f64d6a 100644 --- a/noncore/apps/opie-console/iolayerbase.cpp +++ b/noncore/apps/opie-console/iolayerbase.cpp | |||
@@ -24,7 +24,9 @@ namespace { | |||
24 | id_baud_57600, | 24 | id_baud_57600, |
25 | id_baud_38400, | 25 | id_baud_38400, |
26 | id_baud_19200, | 26 | id_baud_19200, |
27 | id_baud_9600 | 27 | id_baud_9600, |
28 | id_baud_4800, | ||
29 | id_baud_2400 | ||
28 | }; | 30 | }; |
29 | 31 | ||
30 | enum DataIds { | 32 | enum DataIds { |
@@ -86,7 +88,8 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) | |||
86 | m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); | 88 | m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); |
87 | m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); | 89 | m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); |
88 | m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); | 90 | m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); |
89 | 91 | m_speedBox->insertItem(tr("4800 baud"), id_baud_4800 ); | |
92 | m_speedBox->insertItem(tr("2400 baud"), id_baud_2400 ); | ||
90 | }; | 93 | }; |
91 | IOLayerBase::~IOLayerBase() { | 94 | IOLayerBase::~IOLayerBase() { |
92 | 95 | ||
@@ -133,6 +136,12 @@ void IOLayerBase::setSpeed( Speed sp ) { | |||
133 | case Baud_19200: | 136 | case Baud_19200: |
134 | index = id_baud_19200; | 137 | index = id_baud_19200; |
135 | break; | 138 | break; |
139 | case Baud_4800: | ||
140 | index = id_baud_4800; | ||
141 | break; | ||
142 | case Baud_2400: | ||
143 | index = id_baud_2400; | ||
144 | break; | ||
136 | default: | 145 | default: |
137 | case Baud_9600: | 146 | case Baud_9600: |
138 | index = id_baud_9600; | 147 | index = id_baud_9600; |
@@ -208,6 +217,12 @@ IOLayerBase::Speed IOLayerBase::speed()const{ | |||
208 | case id_baud_19200: | 217 | case id_baud_19200: |
209 | return Baud_19200; | 218 | return Baud_19200; |
210 | break; | 219 | break; |
220 | case id_baud_4800: | ||
221 | return Baud_4800; | ||
222 | break; | ||
223 | case id_baud_2400: | ||
224 | return Baud_2400; | ||
225 | break; | ||
211 | default: | 226 | default: |
212 | case id_baud_9600: | 227 | case id_baud_9600: |
213 | return Baud_9600; | 228 | return Baud_9600; |