summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/modemconfigwidget.cpp3
-rw-r--r--noncore/apps/opie-console/terminalwidget.cpp2
2 files changed, 0 insertions, 5 deletions
diff --git a/noncore/apps/opie-console/modemconfigwidget.cpp b/noncore/apps/opie-console/modemconfigwidget.cpp
index ce44dab..37eb184 100644
--- a/noncore/apps/opie-console/modemconfigwidget.cpp
+++ b/noncore/apps/opie-console/modemconfigwidget.cpp
@@ -13,55 +13,52 @@ namespace {
13 void setCurrent( const QString& str, QComboBox* bo ) { 13 void setCurrent( const QString& str, QComboBox* bo ) {
14 uint b = bo->count(); 14 uint b = bo->count();
15 for (int i = 0; i < bo->count(); i++ ) { 15 for (int i = 0; i < bo->count(); i++ ) {
16 if ( bo->text(i) == str ) { 16 if ( bo->text(i) == str ) {
17 bo->setCurrentItem( i ); 17 bo->setCurrentItem( i );
18 return; 18 return;
19 } 19 }
20 } 20 }
21 bo->insertItem( str ); 21 bo->insertItem( str );
22 bo->setCurrentItem( b ); 22 bo->setCurrentItem( b );
23 } 23 }
24} 24}
25 25
26ModemConfigWidget::ModemConfigWidget( const QString& name, QWidget* parent, 26ModemConfigWidget::ModemConfigWidget( const QString& name, QWidget* parent,
27 const char* na ) 27 const char* na )
28 : ProfileDialogConnectionWidget( name, parent, na ) { 28 : ProfileDialogConnectionWidget( name, parent, na ) {
29 29
30 m_lay = new QVBoxLayout( this ); 30 m_lay = new QVBoxLayout( this );
31 m_device = new QLabel(tr( "Modem is attached to:" ), this ); 31 m_device = new QLabel(tr( "Modem is attached to:" ), this );
32 m_deviceCmb = new QComboBox(this ); 32 m_deviceCmb = new QComboBox(this );
33 m_deviceCmb->setEditable( TRUE ); 33 m_deviceCmb->setEditable( TRUE );
34 34
35 QLabel* telLabel = new QLabel( this ); 35 QLabel* telLabel = new QLabel( this );
36 telLabel->setText( tr( "Enter telefon number here:" ) ); 36 telLabel->setText( tr( "Enter telefon number here:" ) );
37 // m_telNumber = new QLineEdit( this );
38 QHBox *buttonBox = new QHBox( this ); 37 QHBox *buttonBox = new QHBox( this );
39 m_telNumber = new QLineEdit( buttonBox ); 38 m_telNumber = new QLineEdit( buttonBox );
40 QPushButton *atButton = new QPushButton( buttonBox ); 39 QPushButton *atButton = new QPushButton( buttonBox );
41 atButton->setText( tr( "AT commands" ) ); 40 atButton->setText( tr( "AT commands" ) );
42 // disabled for now
43 atButton->hide();
44 connect( atButton, SIGNAL( clicked() ), this, SLOT( slotAT() ) ); 41 connect( atButton, SIGNAL( clicked() ), this, SLOT( slotAT() ) );
45 42
46 QPushButton *dialButton = new QPushButton( buttonBox ); 43 QPushButton *dialButton = new QPushButton( buttonBox );
47 dialButton->setText( tr( "Enter number" ) ); 44 dialButton->setText( tr( "Enter number" ) );
48 connect( dialButton, SIGNAL( clicked() ), this, SLOT( slotDial() ) ); 45 connect( dialButton, SIGNAL( clicked() ), this, SLOT( slotDial() ) );
49 46
50 m_base = new IOLayerBase( this, "base" ); 47 m_base = new IOLayerBase( this, "base" );
51 48
52 m_lay->addWidget( m_device ); 49 m_lay->addWidget( m_device );
53 m_lay->addWidget( m_deviceCmb ); 50 m_lay->addWidget( m_deviceCmb );
54 m_lay->addWidget( telLabel ); 51 m_lay->addWidget( telLabel );
55 m_lay->addWidget( buttonBox ); 52 m_lay->addWidget( buttonBox );
56 m_lay->addWidget( m_base ); 53 m_lay->addWidget( m_base );
57 m_lay->addStretch( 0 ); 54 m_lay->addStretch( 0 );
58 55
59 m_deviceCmb->insertItem( "/dev/ttyS0" ); 56 m_deviceCmb->insertItem( "/dev/ttyS0" );
60 m_deviceCmb->insertItem( "/dev/ttyS1" ); 57 m_deviceCmb->insertItem( "/dev/ttyS1" );
61 m_deviceCmb->insertItem( "/dev/ttyS2" ); 58 m_deviceCmb->insertItem( "/dev/ttyS2" );
62 59
63 atConf = new ATConfigDialog( this, "ATConfig", true ); 60 atConf = new ATConfigDialog( this, "ATConfig", true );
64} 61}
65 62
66ModemConfigWidget::~ModemConfigWidget() { 63ModemConfigWidget::~ModemConfigWidget() {
67 64
diff --git a/noncore/apps/opie-console/terminalwidget.cpp b/noncore/apps/opie-console/terminalwidget.cpp
index eb14a3f..a8cee93 100644
--- a/noncore/apps/opie-console/terminalwidget.cpp
+++ b/noncore/apps/opie-console/terminalwidget.cpp
@@ -30,54 +30,52 @@ namespace {
30 enum FontIds { 30 enum FontIds {
31 id_size_small, 31 id_size_small,
32 id_size_medium, 32 id_size_medium,
33 id_size_large 33 id_size_large
34 }; 34 };
35}; 35};
36 36
37TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, 37TerminalWidget::TerminalWidget( const QString& name, QWidget* parent,
38 const char* na ) 38 const char* na )
39 : ProfileDialogTerminalWidget( name, parent, na ) { 39 : ProfileDialogTerminalWidget( name, parent, na ) {
40 40
41 m_terminal = new QLabel(tr("Terminal Type"), this ); 41 m_terminal = new QLabel(tr("Terminal Type"), this );
42 m_terminalBox = new QComboBox(this); 42 m_terminalBox = new QComboBox(this);
43 m_colorLabel = new QLabel(tr("Color scheme"), this); 43 m_colorLabel = new QLabel(tr("Color scheme"), this);
44 m_colorCmb = new QComboBox(this ); 44 m_colorCmb = new QComboBox(this );
45 45
46 m_groupSize = new QHButtonGroup(tr("Font size"), this ); 46 m_groupSize = new QHButtonGroup(tr("Font size"), this );
47 m_sizeSmall = new QRadioButton(tr("small"), m_groupSize ); 47 m_sizeSmall = new QRadioButton(tr("small"), m_groupSize );
48 m_sizeMedium = new QRadioButton(tr("medium"), m_groupSize ); 48 m_sizeMedium = new QRadioButton(tr("medium"), m_groupSize );
49 m_sizeLarge = new QRadioButton(tr("large"), m_groupSize ); 49 m_sizeLarge = new QRadioButton(tr("large"), m_groupSize );
50 50
51 m_groupConv = new QHGroupBox(tr("Line-break conversions"), this ); 51 m_groupConv = new QHGroupBox(tr("Line-break conversions"), this );
52 m_convInbound = new QCheckBox(tr("Inbound"), m_groupConv ); 52 m_convInbound = new QCheckBox(tr("Inbound"), m_groupConv );
53 m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv ); 53 m_convOutbound = new QCheckBox(tr("Outbound"), m_groupConv );
54 m_groupConv->hide();
55 54
56 m_groupOptions = new QHGroupBox( tr("Options"), this ); 55 m_groupOptions = new QHGroupBox( tr("Options"), this );
57 m_optionEcho = new QCheckBox(tr("Local echo"), m_groupOptions ); 56 m_optionEcho = new QCheckBox(tr("Local echo"), m_groupOptions );
58 m_optionWrap = new QCheckBox(tr("Line wrap"), m_groupOptions ); 57 m_optionWrap = new QCheckBox(tr("Line wrap"), m_groupOptions );
59 m_groupOptions->hide();
60 58
61 m_lroot = new QVBoxLayout( this ); 59 m_lroot = new QVBoxLayout( this );
62 m_typeBox = new QVBoxLayout( m_lroot ); 60 m_typeBox = new QVBoxLayout( m_lroot );
63 m_colorBox = new QVBoxLayout( m_lroot ); 61 m_colorBox = new QVBoxLayout( m_lroot );
64 62
65 // Layout 63 // Layout
66 m_typeBox->add(m_terminal ); 64 m_typeBox->add(m_terminal );
67 m_typeBox->add(m_terminalBox ); 65 m_typeBox->add(m_terminalBox );
68 m_lroot->add(m_groupSize ); 66 m_lroot->add(m_groupSize );
69 67
70 m_colorBox->add( m_colorLabel ); 68 m_colorBox->add( m_colorLabel );
71 m_colorBox->add( m_colorCmb ); 69 m_colorBox->add( m_colorCmb );
72 70
73 m_lroot->add(m_groupConv ); 71 m_lroot->add(m_groupConv );
74 m_lroot->add(m_groupOptions ); 72 m_lroot->add(m_groupOptions );
75 m_lroot->addStretch( 0 ); 73 m_lroot->addStretch( 0 );
76 74
77 // Fill in some options 75 // Fill in some options
78 qWarning("Options for terminal box"); 76 qWarning("Options for terminal box");
79 m_terminalBox->insertItem( tr("VT 100"), 0 ); // /*, id_term_vt100*/ ); 77 m_terminalBox->insertItem( tr("VT 100"), 0 ); // /*, id_term_vt100*/ );
80 m_terminalBox->insertItem( tr("VT 102"), 1 ); // /* , id_term_vt102 */); 78 m_terminalBox->insertItem( tr("VT 102"), 1 ); // /* , id_term_vt102 */);
81 m_terminalBox->insertItem( tr("Linux Console"), 2 ); //, id_term_linux ); 79 m_terminalBox->insertItem( tr("Linux Console"), 2 ); //, id_term_linux );
82 m_terminalBox->insertItem( tr("X-Terminal"), 3 ); //, id_term_xterm ); 80 m_terminalBox->insertItem( tr("X-Terminal"), 3 ); //, id_term_xterm );
83 //m_terminalBox->insertItem( tr("ANSI"), id_term_ansi ); 81 //m_terminalBox->insertItem( tr("ANSI"), id_term_ansi );