Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (ignore 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 @@ -2,16 +2,17 @@ #include <stdlib.h> #include <qfile.h> #include <qlayout.h> #include <qwidgetstack.h> #include <qpe/config.h> +#include "emulation_handler.h" #include "widget_layer.h" #include "emulation_widget.h" #include "metafactory.h" #include "profileconfig.h" #include "profilemanager.h" ProfileManager::ProfileManager( MetaFactory* fact ) : m_fact( fact ) @@ -78,22 +79,24 @@ Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { prof) ); QWidgetStack *stack = new QWidgetStack(parent); session->setWidgetStack( stack ); QWidget* dummy = new QWidget( stack ); QHBoxLayout* lay = new QHBoxLayout(dummy ); stack->addWidget( dummy, 0 ); stack->raiseWidget( 0 ); - WidgetLayer* wid = new EmulationWidget( prof, dummy ); - lay->addWidget( wid ); - - session->setEmulationWidget( wid ); - session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), - wid ) ); + EmulationHandler* handler = new EmulationHandler(prof,dummy ); + lay->addWidget( handler->widget() ); +// WidgetLayer* wid = new EmulationWidget( prof, dummy ); +// lay->addWidget( wid ); + +// session->setEmulationWidget( wid ); +// session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), +// wid ) ); session->connect(); return session; } void ProfileManager::save( ) { QFile::remove( (QString(getenv("HOME") )+ "/Settings/opie-console-profiles.conf" ) ); ProfileConfig conf("opie-console-profiles"); Profile::ValueList::Iterator it2; |