author | harlekin <harlekin> | 2002-10-14 23:53:11 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-14 23:53:11 (UTC) |
commit | 06330eede01fa5082ec382045b63454b2262bba6 (patch) (unidiff) | |
tree | f376fbe312afa908428d128de1684b30dca7d90c | |
parent | b3ad9188f40cf6e3c170cc48be3ed180d509036f (diff) | |
download | opie-06330eede01fa5082ec382045b63454b2262bba6.zip opie-06330eede01fa5082ec382045b63454b2262bba6.tar.gz opie-06330eede01fa5082ec382045b63454b2262bba6.tar.bz2 |
push the gui a bit up
-rw-r--r-- | noncore/apps/opie-console/iolayerbase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/iolayerbase.cpp b/noncore/apps/opie-console/iolayerbase.cpp index 08acb75..49ed284 100644 --- a/noncore/apps/opie-console/iolayerbase.cpp +++ b/noncore/apps/opie-console/iolayerbase.cpp | |||
@@ -45,55 +45,57 @@ IOLayerBase::IOLayerBase( QWidget* par, const char* name ) | |||
45 | m_groupParity = new QButtonGroup(tr("Parity"), this ); | 45 | m_groupParity = new QButtonGroup(tr("Parity"), this ); |
46 | m_parityNone = new QRadioButton(tr("None"), m_groupParity ); | 46 | m_parityNone = new QRadioButton(tr("None"), m_groupParity ); |
47 | m_parityOdd = new QRadioButton(tr("Odd"), m_groupParity ); | 47 | m_parityOdd = new QRadioButton(tr("Odd"), m_groupParity ); |
48 | m_parityEven = new QRadioButton(tr("Even"), m_groupParity ); | 48 | m_parityEven = new QRadioButton(tr("Even"), m_groupParity ); |
49 | 49 | ||
50 | m_lroot = new QVBoxLayout( this ); | 50 | m_lroot = new QVBoxLayout( this ); |
51 | m_lroot->add(m_speedLabel ); | 51 | m_lroot->add(m_speedLabel ); |
52 | m_lroot->add(m_speedBox ); | 52 | m_lroot->add(m_speedBox ); |
53 | m_lroot->setStretchFactor(m_speedLabel, 1); | 53 | m_lroot->setStretchFactor(m_speedLabel, 1); |
54 | m_lroot->setStretchFactor(m_speedBox, 1 ); | 54 | m_lroot->setStretchFactor(m_speedBox, 1 ); |
55 | 55 | ||
56 | m_hbox = new QHBoxLayout(m_groupFlow, 2 ); | 56 | m_hbox = new QHBoxLayout(m_groupFlow, 2 ); |
57 | m_hbox->add(m_flowHw ); | 57 | m_hbox->add(m_flowHw ); |
58 | m_hbox->add(m_flowSw ); | 58 | m_hbox->add(m_flowSw ); |
59 | m_hbox->add(m_flowNone ); | 59 | m_hbox->add(m_flowNone ); |
60 | m_lroot->add(m_groupFlow ); | 60 | m_lroot->add(m_groupFlow ); |
61 | m_lroot->setStretchFactor(m_groupFlow, 2 ); | 61 | m_lroot->setStretchFactor(m_groupFlow, 2 ); |
62 | 62 | ||
63 | m_hboxPar = new QHBoxLayout( m_groupParity, 2 ); | 63 | m_hboxPar = new QHBoxLayout( m_groupParity, 2 ); |
64 | m_hboxPar->add(m_parityOdd ); | 64 | m_hboxPar->add(m_parityOdd ); |
65 | m_hboxPar->add(m_parityEven ); | 65 | m_hboxPar->add(m_parityEven ); |
66 | m_hboxPar->add(m_parityNone ); | 66 | m_hboxPar->add(m_parityNone ); |
67 | m_lroot->add(m_groupParity ); | 67 | m_lroot->add(m_groupParity ); |
68 | m_lroot->setStretchFactor(m_groupParity, 2 ); | 68 | m_lroot->setStretchFactor(m_groupParity, 2 ); |
69 | m_lroot->addStretch(2); | ||
69 | 70 | ||
70 | // profiles | 71 | // profiles |
71 | m_speedBox->insertItem(tr("115200 baud"), id_baud_115200 ); | 72 | m_speedBox->insertItem(tr("115200 baud"), id_baud_115200 ); |
72 | m_speedBox->insertItem(tr("57600 baud"), id_baud_57600 ); | 73 | m_speedBox->insertItem(tr("57600 baud"), id_baud_57600 ); |
73 | m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); | 74 | m_speedBox->insertItem(tr("38400 baud"), id_baud_38400 ); |
74 | m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); | 75 | m_speedBox->insertItem(tr("19200 baud"), id_baud_19200 ); |
75 | m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); | 76 | m_speedBox->insertItem(tr("9600 baud"), id_baud_9600 ); |
77 | |||
76 | }; | 78 | }; |
77 | IOLayerBase::~IOLayerBase() { | 79 | IOLayerBase::~IOLayerBase() { |
78 | 80 | ||
79 | } | 81 | } |
80 | void IOLayerBase::setFlow( Flow flo ) { | 82 | void IOLayerBase::setFlow( Flow flo ) { |
81 | switch ( flo ) { | 83 | switch ( flo ) { |
82 | case Software: | 84 | case Software: |
83 | m_flowSw->setChecked( true ); | 85 | m_flowSw->setChecked( true ); |
84 | break; | 86 | break; |
85 | case Hardware: | 87 | case Hardware: |
86 | m_flowHw->setChecked( true ); | 88 | m_flowHw->setChecked( true ); |
87 | break; | 89 | break; |
88 | case None: | 90 | case None: |
89 | m_flowNone->setChecked( true ); | 91 | m_flowNone->setChecked( true ); |
90 | break; | 92 | break; |
91 | } | 93 | } |
92 | } | 94 | } |
93 | 95 | ||
94 | void IOLayerBase::setParity( Parity par ) { | 96 | void IOLayerBase::setParity( Parity par ) { |
95 | switch( par ) { | 97 | switch( par ) { |
96 | case NonePar: | 98 | case NonePar: |
97 | m_parityNone->setChecked( true ); | 99 | m_parityNone->setChecked( true ); |
98 | break; | 100 | break; |
99 | case Odd: | 101 | case Odd: |