author | hash <hash> | 2002-10-20 14:04:33 (UTC) |
---|---|---|
committer | hash <hash> | 2002-10-20 14:04:33 (UTC) |
commit | 6924185b50abfa448daa16a9f7cb6e532ec77ff9 (patch) (side-by-side diff) | |
tree | cd00862fc27c3739e7658e6dfaa39624197d8452 /noncore/apps/opie-console/profileeditordialog.cpp | |
parent | 97be4ef8e0579791095b2383e942cc53dd1e7fba (diff) | |
download | opie-6924185b50abfa448daa16a9f7cb6e532ec77ff9.zip opie-6924185b50abfa448daa16a9f7cb6e532ec77ff9.tar.gz opie-6924185b50abfa448daa16a9f7cb6e532ec77ff9.tar.bz2 |
added preliminary support for configuring the keyboard for each profile.
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index d124067..2dfc0fd 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp @@ -55,3 +55,3 @@ void ProfileEditorDialog::initUI() { - m_con = m_term = 0l; + m_con = m_term = m_key = 0l; @@ -66,2 +66,3 @@ void ProfileEditorDialog::initUI() m_tabCon = new QWidget(this); + m_tabKey = new QWidget(this); @@ -70,2 +71,3 @@ void ProfileEditorDialog::initUI() m_layTerm = new QHBoxLayout( m_tabTerm, 2 ); + m_layKey = new QHBoxLayout( m_tabKey, 2 ); @@ -96,2 +98,3 @@ void ProfileEditorDialog::initUI() tabWidget->addTab(m_tabTerm, "", QObject::tr("Terminal")); + tabWidget->addTab(m_tabKey, "", QObject::tr("Special Keys")); tabWidget->setCurrentTab( tabprof ); @@ -114,2 +117,3 @@ void ProfileEditorDialog::initUI() slotTermActivated( m_fact->external(m_prof.terminalName() ) ); + slotKeyActivated( "Default Keyboard" ); setCurrent( m_fact->external(m_prof.ioLayerName() ), m_conCmb ); @@ -152,2 +156,4 @@ void ProfileEditorDialog::accept() m_term->save( m_prof ); + if (m_key) + m_key->save( m_prof ); @@ -180,2 +186,3 @@ void ProfileEditorDialog::slotConActivated( const QString& str ) { m_layCon->addWidget( m_con ); + if(!m_showconntab) @@ -204 +211,12 @@ void ProfileEditorDialog::slotTermActivated( const QString& str ) { +void ProfileEditorDialog::slotKeyActivated(const QString &str) { + delete m_key; + m_key = m_fact->newKeyboardPlugin( str, m_tabKey ); + + if (m_key) { + + m_key->load(m_prof); + m_layKey->addWidget(m_key); + } + +} |