author | zecke <zecke> | 2002-10-14 17:46:45 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-14 17:46:45 (UTC) |
commit | 2c5e8939ba073a42c032f5a9660ed0dd4580bf88 (patch) (unidiff) | |
tree | 163d660eb057ba0f78c119465d85413d3524ed1b /noncore/apps/opie-console/profilemanager.cpp | |
parent | 51e18b363eb37621479a059af58da3040db1be7e (diff) | |
download | opie-2c5e8939ba073a42c032f5a9660ed0dd4580bf88.zip opie-2c5e8939ba073a42c032f5a9660ed0dd4580bf88.tar.gz opie-2c5e8939ba073a42c032f5a9660ed0dd4580bf88.tar.bz2 |
The new old TerminalWidget I'm anything but happy about it
Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index 4b88dec..113327c 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp | |||
@@ -4,12 +4,13 @@ | |||
4 | #include <qfile.h> | 4 | #include <qfile.h> |
5 | #include <qlayout.h> | 5 | #include <qlayout.h> |
6 | #include <qwidgetstack.h> | 6 | #include <qwidgetstack.h> |
7 | 7 | ||
8 | #include <qpe/config.h> | 8 | #include <qpe/config.h> |
9 | 9 | ||
10 | #include "emulation_handler.h" | ||
10 | #include "widget_layer.h" | 11 | #include "widget_layer.h" |
11 | #include "emulation_widget.h" | 12 | #include "emulation_widget.h" |
12 | #include "metafactory.h" | 13 | #include "metafactory.h" |
13 | #include "profileconfig.h" | 14 | #include "profileconfig.h" |
14 | #include "profilemanager.h" | 15 | #include "profilemanager.h" |
15 | 16 | ||
@@ -80,18 +81,20 @@ Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { | |||
80 | QWidgetStack *stack = new QWidgetStack(parent); | 81 | QWidgetStack *stack = new QWidgetStack(parent); |
81 | session->setWidgetStack( stack ); | 82 | session->setWidgetStack( stack ); |
82 | QWidget* dummy = new QWidget( stack ); | 83 | QWidget* dummy = new QWidget( stack ); |
83 | QHBoxLayout* lay = new QHBoxLayout(dummy ); | 84 | QHBoxLayout* lay = new QHBoxLayout(dummy ); |
84 | stack->addWidget( dummy, 0 ); | 85 | stack->addWidget( dummy, 0 ); |
85 | stack->raiseWidget( 0 ); | 86 | stack->raiseWidget( 0 ); |
86 | WidgetLayer* wid = new EmulationWidget( prof, dummy ); | 87 | EmulationHandler* handler = new EmulationHandler(prof,dummy ); |
87 | lay->addWidget( wid ); | 88 | lay->addWidget( handler->widget() ); |
88 | 89 | // WidgetLayer* wid = new EmulationWidget( prof, dummy ); | |
89 | session->setEmulationWidget( wid ); | 90 | // lay->addWidget( wid ); |
90 | session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), | 91 | |
91 | wid ) ); | 92 | // session->setEmulationWidget( wid ); |
93 | // session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), | ||
94 | // wid ) ); | ||
92 | session->connect(); | 95 | session->connect(); |
93 | 96 | ||
94 | return session; | 97 | return session; |
95 | } | 98 | } |
96 | void ProfileManager::save( ) { | 99 | void ProfileManager::save( ) { |
97 | QFile::remove( (QString(getenv("HOME") )+ "/Settings/opie-console-profiles.conf" ) ); | 100 | QFile::remove( (QString(getenv("HOME") )+ "/Settings/opie-console-profiles.conf" ) ); |