-rw-r--r-- | noncore/apps/opie-console/metafactory.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/opie-console/metafactory.h | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 5 | ||||
-rw-r--r-- | noncore/apps/opie-console/session.cpp | 6 | ||||
-rw-r--r-- | noncore/apps/opie-console/session.h | 8 | ||||
-rw-r--r-- | noncore/apps/opie-console/widget.cpp | 12 | ||||
-rw-r--r-- | noncore/apps/opie-console/widget_layer.h | 3 |
7 files changed, 23 insertions, 19 deletions
diff --git a/noncore/apps/opie-console/metafactory.cpp b/noncore/apps/opie-console/metafactory.cpp index 02a9f9b..2b672cf 100644 --- a/noncore/apps/opie-console/metafactory.cpp +++ b/noncore/apps/opie-console/metafactory.cpp | |||
@@ -117,3 +117,3 @@ ProfileDialogWidget *MetaFactory::newTerminalPlugin( const QString& str, QWidget | |||
117 | } | 117 | } |
118 | EmulationLayer* MetaFactory::newEmulationLayer( const QString& str, Widget* wid) { | 118 | EmulationLayer* MetaFactory::newEmulationLayer( const QString& str, WidgetLayer* wid) { |
119 | EmulationLayer* lay = 0l; | 119 | EmulationLayer* lay = 0l; |
diff --git a/noncore/apps/opie-console/metafactory.h b/noncore/apps/opie-console/metafactory.h index 71c35a2..d05ece4 100644 --- a/noncore/apps/opie-console/metafactory.h +++ b/noncore/apps/opie-console/metafactory.h | |||
@@ -19,3 +19,3 @@ | |||
19 | 19 | ||
20 | class Widget; | 20 | class WidgetLayer; |
21 | class MetaFactory { | 21 | class MetaFactory { |
@@ -25,3 +25,3 @@ public: | |||
25 | typedef FileTransferLayer* (*filelayer)(IOLayer*); | 25 | typedef FileTransferLayer* (*filelayer)(IOLayer*); |
26 | typedef EmulationLayer* (*emulationLayer)(Widget* ); | 26 | typedef EmulationLayer* (*emulationLayer)(WidgetLayer* ); |
27 | 27 | ||
@@ -79,3 +79,3 @@ public: | |||
79 | ProfileDialogWidget* newTerminalPlugin( const QString&, QWidget* ); | 79 | ProfileDialogWidget* newTerminalPlugin( const QString&, QWidget* ); |
80 | EmulationLayer* newEmulationLayer(const QString&, Widget* ); | 80 | EmulationLayer* newEmulationLayer(const QString&, WidgetLayer* ); |
81 | 81 | ||
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index dcf3cbd..78751e7 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp | |||
@@ -9,3 +9,4 @@ | |||
9 | 9 | ||
10 | #include "widget.h" | 10 | #include "widget_layer.h" |
11 | #include "emulation_widget.h" | ||
11 | #include "metafactory.h" | 12 | #include "metafactory.h" |
@@ -82,3 +83,3 @@ Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { | |||
82 | stack->raiseWidget( 0 ); | 83 | stack->raiseWidget( 0 ); |
83 | Widget* wid = new Widget(dummy ); | 84 | WidgetLayer* wid = new EmulationWidget( prof, dummy ); |
84 | lay->addWidget( wid ); | 85 | lay->addWidget( wid ); |
diff --git a/noncore/apps/opie-console/session.cpp b/noncore/apps/opie-console/session.cpp index 42b0583..ff2c3e2 100644 --- a/noncore/apps/opie-console/session.cpp +++ b/noncore/apps/opie-console/session.cpp | |||
@@ -4,3 +4,3 @@ | |||
4 | #include "file_layer.h" | 4 | #include "file_layer.h" |
5 | #include "widget.h" | 5 | #include "widget_layer.h" |
6 | #include "emulation_layer.h" | 6 | #include "emulation_layer.h" |
@@ -39,3 +39,3 @@ EmulationLayer* Session::emulationLayer() { | |||
39 | } | 39 | } |
40 | Widget* Session::emulationWidget() { | 40 | WidgetLayer* Session::emulationWidget() { |
41 | return m_widLay; | 41 | return m_widLay; |
@@ -77,3 +77,3 @@ void Session::setEmulationLayer( EmulationLayer* lay ) { | |||
77 | } | 77 | } |
78 | void Session::setEmulationWidget( Widget* lay ) { | 78 | void Session::setEmulationWidget( WidgetLayer* lay ) { |
79 | delete m_widLay; | 79 | delete m_widLay; |
diff --git a/noncore/apps/opie-console/session.h b/noncore/apps/opie-console/session.h index c3673fc..64c2cdb 100644 --- a/noncore/apps/opie-console/session.h +++ b/noncore/apps/opie-console/session.h | |||
@@ -7,3 +7,3 @@ class IOLayer; | |||
7 | class EmulationLayer; | 7 | class EmulationLayer; |
8 | class Widget; | 8 | class WidgetLayer; |
9 | /** | 9 | /** |
@@ -44,3 +44,3 @@ public: | |||
44 | EmulationLayer* emulationLayer(); | 44 | EmulationLayer* emulationLayer(); |
45 | Widget* emulationWidget(); | 45 | WidgetLayer* emulationWidget(); |
46 | 46 | ||
@@ -60,3 +60,3 @@ public: | |||
60 | void setEmulationLayer( EmulationLayer* lay ); | 60 | void setEmulationLayer( EmulationLayer* lay ); |
61 | void setEmulationWidget( Widget* lay ); | 61 | void setEmulationWidget( WidgetLayer* lay ); |
62 | void setIOLayer( IOLayer* ); | 62 | void setIOLayer( IOLayer* ); |
@@ -69,3 +69,3 @@ private: | |||
69 | EmulationLayer* m_emLay; | 69 | EmulationLayer* m_emLay; |
70 | Widget* m_widLay; | 70 | WidgetLayer* m_widLay; |
71 | 71 | ||
diff --git a/noncore/apps/opie-console/widget.cpp b/noncore/apps/opie-console/widget.cpp index b8f2906..d948179 100644 --- a/noncore/apps/opie-console/widget.cpp +++ b/noncore/apps/opie-console/widget.cpp | |||
@@ -23,2 +23,3 @@ | |||
23 | # this is not right! EmulationLayer should send it... | 23 | # this is not right! EmulationLayer should send it... |
24 | i changed all those to use emulationLayer()->send() instead | ||
24 | i had to create a QByteArray before... | 25 | i had to create a QByteArray before... |
@@ -1232,3 +1233,4 @@ void Widget::dropEvent(QDropEvent* event) | |||
1232 | // ibot: this should be pretty wrong... | 1233 | // ibot: this should be pretty wrong... |
1233 | currentSession->layer()->send( tmp.setRawData( dropText.local8Bit())); | 1234 | // now it sends to the right layer |
1235 | currentSession-> emulationLayer()->send( tmp.setRawData( dropText.local8Bit())); | ||
1234 | } | 1236 | } |
@@ -1243,3 +1245,3 @@ void Widget::dropEvent(QDropEvent* event) | |||
1243 | QByteArray tmp; | 1245 | QByteArray tmp; |
1244 | currentSession->layer()->send( tmp.setRawData( dropText.local8Bit())); | 1246 | currentSession->emulationLayer()->send( tmp.setRawData( dropText.local8Bit())); |
1245 | } | 1247 | } |
@@ -1259,3 +1261,3 @@ void Widget::drop_menu_activated(int item) | |||
1259 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); | 1261 | //currentSession->getEmulation()->sendString(dropText.local8Bit()); |
1260 | currentSession->layer()->send( tmp.setRawData( dropText.local8Bit())); | 1262 | currentSession->emulationLayer()->send( tmp.setRawData( dropText.local8Bit())); |
1261 | 1263 | ||
@@ -1266,3 +1268,3 @@ void Widget::drop_menu_activated(int item) | |||
1266 | tmp.setRawData( "cd " ); | 1268 | tmp.setRawData( "cd " ); |
1267 | currentSession->layer()->send( tmp ); | 1269 | currentSession->emulationLayer()->send( tmp ); |
1268 | struct stat statbuf; | 1270 | struct stat statbuf; |
@@ -1284,3 +1286,3 @@ void Widget::drop_menu_activated(int item) | |||
1284 | //currentSession->getEmulation()->sendString("\n"); | 1286 | //currentSession->getEmulation()->sendString("\n"); |
1285 | currentSession->layer()->send( tmp ); | 1287 | currentSession->emulationLayer()->send( tmp ); |
1286 | // KWM::activate((Window)this->winId()); | 1288 | // KWM::activate((Window)this->winId()); |
diff --git a/noncore/apps/opie-console/widget_layer.h b/noncore/apps/opie-console/widget_layer.h index 5bd2ef9..01a4614 100644 --- a/noncore/apps/opie-console/widget_layer.h +++ b/noncore/apps/opie-console/widget_layer.h | |||
@@ -104,4 +104,5 @@ public: | |||
104 | * reload configuration | 104 | * reload configuration |
105 | * @param const Profile& config, the config to be used (may be the same as in constructor) | ||
105 | */ | 106 | */ |
106 | virtual void reloadConfig() = 0; | 107 | virtual void reloadConfig( const Profile& config ) = 0; |
107 | 108 | ||