Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index 5c5c2b3..c48ea53 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -4,9 +4,10 @@ | |||
4 | #include <qmessagebox.h> | 4 | #include <qmessagebox.h> |
5 | #include <qstringlist.h> | 5 | #include <qstringlist.h> |
6 | #include <qcombobox.h> | 6 | #include <qcombobox.h> |
7 | #include <qcheckbox.h> | ||
7 | 8 | ||
8 | 9 | ||
9 | #include "profileeditorplugins.h" | 10 | //#include "profileeditorplugins.h" |
10 | #include "metafactory.h" | 11 | #include "metafactory.h" |
11 | #include "profileeditordialog.h" | 12 | #include "profileeditordialog.h" |
12 | 13 | ||
@@ -78,6 +79,7 @@ void ProfileEditorDialog::initUI() | |||
78 | QLabel *term = new QLabel(tr("Terminal"), tabprof ); | 79 | QLabel *term = new QLabel(tr("Terminal"), tabprof ); |
79 | m_conCmb = new QComboBox( tabprof ); | 80 | m_conCmb = new QComboBox( tabprof ); |
80 | m_termCmb = new QComboBox( tabprof ); | 81 | m_termCmb = new QComboBox( tabprof ); |
82 | m_autoConnect = new QCheckBox(tr("Auto connect after load"), tabprof); | ||
81 | 83 | ||
82 | // layouting | 84 | // layouting |
83 | QVBoxLayout *vbox3 = new QVBoxLayout(tabprof, 2); | 85 | QVBoxLayout *vbox3 = new QVBoxLayout(tabprof, 2); |
@@ -87,6 +89,7 @@ void ProfileEditorDialog::initUI() | |||
87 | vbox3->add(m_conCmb ); | 89 | vbox3->add(m_conCmb ); |
88 | vbox3->add(term ); | 90 | vbox3->add(term ); |
89 | vbox3->add(m_termCmb ); | 91 | vbox3->add(m_termCmb ); |
92 | vbox3->add(m_autoConnect); | ||
90 | vbox3->addStretch(1); | 93 | vbox3->addStretch(1); |
91 | 94 | ||
92 | tabWidget->addTab(tabprof, "", QObject::tr("Profile")); | 95 | tabWidget->addTab(tabprof, "", QObject::tr("Profile")); |
@@ -112,6 +115,7 @@ void ProfileEditorDialog::initUI() | |||
112 | slotTermActivated( m_fact->external(m_prof.terminalName() ) ); | 115 | slotTermActivated( m_fact->external(m_prof.terminalName() ) ); |
113 | setCurrent( m_fact->external(m_prof.ioLayerName() ), m_conCmb ); | 116 | setCurrent( m_fact->external(m_prof.ioLayerName() ), m_conCmb ); |
114 | setCurrent( m_fact->external(m_prof.terminalName() ), m_termCmb ); | 117 | setCurrent( m_fact->external(m_prof.terminalName() ), m_termCmb ); |
118 | m_autoConnect->setChecked(m_prof.autoConnect()); | ||
115 | 119 | ||
116 | 120 | ||
117 | // signal and slots | 121 | // signal and slots |
@@ -141,6 +145,7 @@ void ProfileEditorDialog::accept() | |||
141 | m_prof.setName(profName()); | 145 | m_prof.setName(profName()); |
142 | m_prof.setIOLayer( m_fact->internal(m_conCmb ->currentText() ) ); | 146 | m_prof.setIOLayer( m_fact->internal(m_conCmb ->currentText() ) ); |
143 | m_prof.setTerminalName( m_fact->internal(m_termCmb->currentText() ) ); | 147 | m_prof.setTerminalName( m_fact->internal(m_termCmb->currentText() ) ); |
148 | m_prof.setAutoConnect( m_autoConnect->isChecked() ); | ||
144 | 149 | ||
145 | if (m_con ) | 150 | if (m_con ) |
146 | m_con->save( m_prof ); | 151 | m_con->save( m_prof ); |