-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/profile.h | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 1 | ||||
-rw-r--r-- | noncore/apps/opie-console/terminalwidget.cpp | 21 |
4 files changed, 15 insertions, 10 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 27bcc09..415259e 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -275,4 +275,5 @@ void MainWindow::slotConfigure() { | |||
275 | qWarning("conf %d", conf.list().count() ); | 275 | qWarning("conf %d", conf.list().count() ); |
276 | manager()->setProfiles( conf.list() ); | 276 | manager()->setProfiles( conf.list() ); |
277 | manager()->save(); | ||
277 | populateProfiles(); | 278 | populateProfiles(); |
278 | } | 279 | } |
diff --git a/noncore/apps/opie-console/profile.h b/noncore/apps/opie-console/profile.h index 78fe6ab..1b71cda 100644 --- a/noncore/apps/opie-console/profile.h +++ b/noncore/apps/opie-console/profile.h | |||
@@ -19,5 +19,5 @@ public: | |||
19 | White, | 19 | White, |
20 | Gray }; | 20 | Gray }; |
21 | enum Terminal {VT102 = 0 }; | 21 | enum Terminal {VT102 = 0, VT100 }; |
22 | enum Font { Micro = 0, Small, Medium }; | 22 | enum Font { Micro = 0, Small, Medium }; |
23 | Profile(); | 23 | Profile(); |
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index 914fd25..094c871 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -59,4 +59,5 @@ void ProfileEditorDialog::initUI() | |||
59 | QVBoxLayout *mainLayout = new QVBoxLayout( this ); | 59 | QVBoxLayout *mainLayout = new QVBoxLayout( this ); |
60 | OTabWidget *tabWidget = new OTabWidget( this ); | 60 | OTabWidget *tabWidget = new OTabWidget( this ); |
61 | tabWidget->setTabStyle(OTabWidget::TextTab); | ||
61 | mainLayout->add(tabWidget); | 62 | mainLayout->add(tabWidget); |
62 | 63 | ||
diff --git a/noncore/apps/opie-console/terminalwidget.cpp b/noncore/apps/opie-console/terminalwidget.cpp index 80627c4..2d37be2 100644 --- a/noncore/apps/opie-console/terminalwidget.cpp +++ b/noncore/apps/opie-console/terminalwidget.cpp | |||
@@ -14,5 +14,5 @@ namespace { | |||
14 | enum TermIds { | 14 | enum TermIds { |
15 | id_term_vt100, | 15 | id_term_vt100, |
16 | id_term_vt220, | 16 | id_term_vt102, |
17 | id_term_ansi | 17 | id_term_ansi |
18 | }; | 18 | }; |
@@ -74,6 +74,6 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent, | |||
74 | // Fill in some options | 74 | // Fill in some options |
75 | m_terminalBox->insertItem( tr("VT 100"), id_term_vt100 ); | 75 | m_terminalBox->insertItem( tr("VT 100"), id_term_vt100 ); |
76 | m_terminalBox->insertItem( tr("VT 220"), id_term_vt220 ); | 76 | m_terminalBox->insertItem( tr("VT 102"), id_term_vt102 ); |
77 | m_terminalBox->insertItem( tr("ANSI"), id_term_ansi ); | 77 | //m_terminalBox->insertItem( tr("ANSI"), id_term_ansi ); |
78 | 78 | ||
79 | m_colorCmb->insertItem( tr("black on white"), id_term_black ); | 79 | m_colorCmb->insertItem( tr("black on white"), id_term_black ); |
@@ -111,7 +111,10 @@ void TerminalWidget::load( const Profile& prof ) { | |||
111 | 111 | ||
112 | switch( term ) { | 112 | switch( term ) { |
113 | case Profile::VT102: | 113 | case Profile::VT100: |
114 | m_terminalBox->setCurrentItem(id_term_vt100 ); | 114 | m_terminalBox->setCurrentItem(id_term_vt100 ); |
115 | break; | 115 | break; |
116 | case Profile::VT102: | ||
117 | m_terminalBox->setCurrentItem(id_term_vt102 ); | ||
118 | break; | ||
116 | default: | 119 | default: |
117 | break; | 120 | break; |
@@ -153,12 +156,12 @@ void TerminalWidget::save( Profile& profile ) { | |||
153 | switch(m_terminalBox->currentItem() ) { | 156 | switch(m_terminalBox->currentItem() ) { |
154 | case id_term_vt100: | 157 | case id_term_vt100: |
155 | profile.writeEntry("Terminal", Profile::VT102 ); | 158 | profile.writeEntry("Terminal", Profile::VT100 ); |
156 | break; | ||
157 | case id_term_vt220: | ||
158 | profile.writeEntry("Terminal", Profile::VT102 ); | ||
159 | break; | 159 | break; |
160 | case id_term_ansi: | 160 | case id_term_vt102: |
161 | profile.writeEntry("Terminal", Profile::VT102 ); | 161 | profile.writeEntry("Terminal", Profile::VT102 ); |
162 | break; | 162 | break; |
163 | //case id_term_ansi: | ||
164 | // profile.writeEntry("Terminal", Profile::VT102 ); | ||
165 | // break; | ||
163 | default: | 166 | default: |
164 | break; | 167 | break; |