Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index e8bdb2e..95a46f9 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp | |||
@@ -69,12 +69,20 @@ Profile::ValueList ProfileManager::all()const { | |||
69 | * raise the dummy | 69 | * raise the dummy |
70 | * call session->connect(= | 70 | * call session->connect(= |
71 | * this way we only need to reparent | 71 | * this way we only need to reparent |
72 | * in TabWidget | 72 | * in TabWidget |
73 | */ | 73 | */ |
74 | Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { | 74 | Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { |
75 | /* TEST PROFILE!!! | ||
76 | Profile prof; | ||
77 | QString str = "/dev/ttyS0"; | ||
78 | prof.writeEntry("Device",str ); | ||
79 | prof.writeEntry("Baud", 115200 ); | ||
80 | prof.setIOLayer("serial"); | ||
81 | prof.setName( "test"); | ||
82 | */ | ||
75 | Session* session = new Session(); | 83 | Session* session = new Session(); |
76 | session->setName( prof.name() ); | 84 | session->setName( prof.name() ); |
77 | /* translate the internal name to the external */ | 85 | /* translate the internal name to the external */ |
78 | session->setIOLayer(m_fact->newIOLayer( m_fact->external(prof.ioLayerName()) , | 86 | session->setIOLayer(m_fact->newIOLayer( m_fact->external(prof.ioLayerName()) , |
79 | prof) ); | 87 | prof) ); |
80 | 88 | ||
@@ -82,12 +90,13 @@ Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { | |||
82 | session->setWidgetStack( stack ); | 90 | session->setWidgetStack( stack ); |
83 | QWidget* dummy = new QWidget( stack ); | 91 | QWidget* dummy = new QWidget( stack ); |
84 | QHBoxLayout* lay = new QHBoxLayout( dummy ); | 92 | QHBoxLayout* lay = new QHBoxLayout( dummy ); |
85 | stack->addWidget( dummy, 0 ); | 93 | stack->addWidget( dummy, 0 ); |
86 | stack->raiseWidget( 0 ); | 94 | stack->raiseWidget( 0 ); |
87 | EmulationHandler* handler = new EmulationHandler(prof,dummy ); | 95 | EmulationHandler* handler = new EmulationHandler(prof,dummy ); |
96 | session->setEmulationHandler( handler ); | ||
88 | lay->addWidget( handler->widget() ); | 97 | lay->addWidget( handler->widget() ); |
89 | // WidgetLayer* wid = new EmulationWidget( prof, dummy ); | 98 | // WidgetLayer* wid = new EmulationWidget( prof, dummy ); |
90 | // lay->addWidget( wid ); | 99 | // lay->addWidget( wid ); |
91 | 100 | ||
92 | // session->setEmulationWidget( wid ); | 101 | // session->setEmulationWidget( wid ); |
93 | // session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), | 102 | // session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), |