summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/default.cpp
authorzecke <zecke>2002-10-14 22:58:11 (UTC)
committer zecke <zecke>2002-10-14 22:58:11 (UTC)
commitd7290c6b24266303abd95e7f38c0fecae395f355 (patch) (unidiff)
treef8202b056d9ae8de1cfa818de60ff2929c520f90 /noncore/apps/opie-console/default.cpp
parentf5d1ce4b3887e0f09704abad5b9414c9cd90be4b (diff)
downloadopie-d7290c6b24266303abd95e7f38c0fecae395f355.zip
opie-d7290c6b24266303abd95e7f38c0fecae395f355.tar.gz
opie-d7290c6b24266303abd95e7f38c0fecae395f355.tar.bz2
A small console emulation layer...
And some configuration stuff fonts are working colors are not fully working BackGround and ForeGround both are black :(
Diffstat (limited to 'noncore/apps/opie-console/default.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/default.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/default.cpp b/noncore/apps/opie-console/default.cpp
index 5c1c05a..64c9542 100644
--- a/noncore/apps/opie-console/default.cpp
+++ b/noncore/apps/opie-console/default.cpp
@@ -10,5 +10,5 @@
10#include "modemconfigwidget.h" 10#include "modemconfigwidget.h"
11#include "terminalwidget.h" 11#include "terminalwidget.h"
12#include "vt102emulation.h" 12#include "MyPty.h"
13 13
14#include "default.h" 14#include "default.h"
@@ -50,4 +50,7 @@ extern "C" {
50 return new IOModem( prof ); 50 return new IOModem( prof );
51 } 51 }
52 IOLayer* newConsole( const Profile& prof ) {
53 return new MyPty(prof );
54 }
52 55
53 // Connection Widgets 56 // Connection Widgets
@@ -64,11 +67,14 @@ extern "C" {
64 return new BTConfigWidget(str, wid ); 67 return new BTConfigWidget(str, wid );
65 } 68 }
69 ProfileDialogWidget* newConsoleWid( const QString& str, QWidget* wid ) {
70 return 0l;
71 }
66 72
67 73
68 // Terminal Widget(s) 74 // Terminal Widget(s)
69/* ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) { 75 ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) {
70 return new TerminalWidget(na, wid,0 ); 76 return new TerminalWidget(na, wid,0 );
71 } 77 }
72*/ 78
73/* // VT Emulations 79/* // VT Emulations
74 EmulationLayer* newVT102( WidgetLayer* wid ) { 80 EmulationLayer* newVT102( WidgetLayer* wid ) {
@@ -91,4 +97,5 @@ Default::Default( MetaFactory* fact ) {
91 fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer ); 97 fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer );
92 fact->addIOLayerFactory( "modem", QObject::tr("Modem"), newModemLayer ); 98 fact->addIOLayerFactory( "modem", QObject::tr("Modem"), newModemLayer );
99 fact->addIOLayerFactory( "console", QObject::tr("Console"), newConsole );
93 100
94 fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget ); 101 fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget );
@@ -96,6 +103,7 @@ Default::Default( MetaFactory* fact ) {
96 fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget ); 103 fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget );
97 fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget ); 104 fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget );
105 fact->addConnectionWidgetFactory( "console", QObject::tr("Console"), newConsoleWid );
98 106
99// fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget ); 107 fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget );
100 108
101// fact->addEmulationLayer( "default", QObject::tr("Default Terminal"), newVT102 ); 109// fact->addEmulationLayer( "default", QObject::tr("Default Terminal"), newVT102 );