summaryrefslogtreecommitdiff
authorjosef <josef>2002-10-14 16:48:18 (UTC)
committer josef <josef>2002-10-14 16:48:18 (UTC)
commit8168216f961dc60db1acdea8671eeaa93e3ed560 (patch) (side-by-side diff)
treecd9fe6e2e905069dbf140cd51e9fc910ec3eba3f
parentf48ddfb53e49550f9fe8e9502f2a44aeb8b359cc (diff)
downloadopie-8168216f961dc60db1acdea8671eeaa93e3ed560.zip
opie-8168216f961dc60db1acdea8671eeaa93e3ed560.tar.gz
opie-8168216f961dc60db1acdea8671eeaa93e3ed560.tar.bz2
- use OTabDialog::TextStyle (might be done for terminal sessions, too?)
- show only vt100 and vt102 entries - save profiles upon closing profiles manager dialog
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp1
-rw-r--r--noncore/apps/opie-console/profile.h2
-rw-r--r--noncore/apps/opie-console/profileeditordialog.cpp1
-rw-r--r--noncore/apps/opie-console/terminalwidget.cpp21
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
@@ -274,6 +274,7 @@ void MainWindow::slotConfigure() {
if ( QDialog::Accepted == ret ) {
qWarning("conf %d", conf.list().count() );
manager()->setProfiles( conf.list() );
+ manager()->save();
populateProfiles();
}
}
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
@@ -18,7 +18,7 @@ public:
enum Color { Black = 0,
White,
Gray };
- enum Terminal {VT102 = 0 };
+ enum Terminal {VT102 = 0, VT100 };
enum Font { Micro = 0, Small, Medium };
Profile();
Profile( const QString& name,
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
@@ -58,6 +58,7 @@ void ProfileEditorDialog::initUI()
QVBoxLayout *mainLayout = new QVBoxLayout( this );
OTabWidget *tabWidget = new OTabWidget( this );
+ tabWidget->setTabStyle(OTabWidget::TextTab);
mainLayout->add(tabWidget);
QWidget *tabprof;
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
@@ -13,7 +13,7 @@
namespace {
enum TermIds {
id_term_vt100,
- id_term_vt220,
+ id_term_vt102,
id_term_ansi
};
@@ -73,8 +73,8 @@ TerminalWidget::TerminalWidget( const QString& name, QWidget* parent,
// Fill in some options
m_terminalBox->insertItem( tr("VT 100"), id_term_vt100 );
- m_terminalBox->insertItem( tr("VT 220"), id_term_vt220 );
- m_terminalBox->insertItem( tr("ANSI"), id_term_ansi );
+ m_terminalBox->insertItem( tr("VT 102"), id_term_vt102 );
+ //m_terminalBox->insertItem( tr("ANSI"), id_term_ansi );
m_colorCmb->insertItem( tr("black on white"), id_term_black );
m_colorCmb->insertItem( tr("white on black"), id_term_white );
@@ -110,9 +110,12 @@ void TerminalWidget::load( const Profile& prof ) {
int opt_outbound = prof.readNumEntry("Outbound");
switch( term ) {
- case Profile::VT102:
+ case Profile::VT100:
m_terminalBox->setCurrentItem(id_term_vt100 );
break;
+ case Profile::VT102:
+ m_terminalBox->setCurrentItem(id_term_vt102 );
+ break;
default:
break;
};
@@ -152,14 +155,14 @@ void TerminalWidget::load( const Profile& prof ) {
void TerminalWidget::save( Profile& profile ) {
switch(m_terminalBox->currentItem() ) {
case id_term_vt100:
- profile.writeEntry("Terminal", Profile::VT102 );
- break;
- case id_term_vt220:
- profile.writeEntry("Terminal", Profile::VT102 );
+ profile.writeEntry("Terminal", Profile::VT100 );
break;
- case id_term_ansi:
+ case id_term_vt102:
profile.writeEntry("Terminal", Profile::VT102 );
break;
+ //case id_term_ansi:
+ // profile.writeEntry("Terminal", Profile::VT102 );
+ // break;
default:
break;
};