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) (side-by-side diff)
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
@@ -9,7 +9,7 @@
#include "btconfigwidget.h"
#include "modemconfigwidget.h"
#include "terminalwidget.h"
-#include "vt102emulation.h"
+#include "MyPty.h"
#include "default.h"
@@ -49,6 +49,9 @@ extern "C" {
IOLayer* newModemLayer( const Profile& prof ) {
return new IOModem( prof );
}
+ IOLayer* newConsole( const Profile& prof ) {
+ return new MyPty(prof );
+ }
// Connection Widgets
ProfileDialogWidget* newSerialWidget( const QString& str, QWidget* wid ) {
@@ -63,13 +66,16 @@ extern "C" {
ProfileDialogWidget* newBTWidget( const QString& str, QWidget* wid ) {
return new BTConfigWidget(str, wid );
}
+ ProfileDialogWidget* newConsoleWid( const QString& str, QWidget* wid ) {
+ return 0l;
+ }
// Terminal Widget(s)
-/* ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) {
+ ProfileDialogWidget* newTerminalWidget(const QString& na, QWidget* wid) {
return new TerminalWidget(na, wid,0 );
}
-*/
+
/* // VT Emulations
EmulationLayer* newVT102( WidgetLayer* wid ) {
return new Vt102Emulation( wid );
@@ -90,13 +96,15 @@ Default::Default( MetaFactory* fact ) {
fact->addIOLayerFactory( "irda", QObject::tr("Infrared"), newIrDaLayer );
fact->addIOLayerFactory( "bt", QObject::tr("Bluetooth"), newBTLayer );
fact->addIOLayerFactory( "modem", QObject::tr("Modem"), newModemLayer );
+ fact->addIOLayerFactory( "console", QObject::tr("Console"), newConsole );
fact->addConnectionWidgetFactory( "serial", QObject::tr("Serial"), newSerialWidget );
fact->addConnectionWidgetFactory( "irda", QObject::tr("Infrared"), newIrDaWidget );
fact->addConnectionWidgetFactory( "modem", QObject::tr("Modem"), newModemWidget );
fact->addConnectionWidgetFactory( "bt", QObject::tr("Bluetooth"), newBTWidget );
+ fact->addConnectionWidgetFactory( "console", QObject::tr("Console"), newConsoleWid );
-// fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget );
+ fact->addTerminalWidgetFactory( "default", QObject::tr("Default Terminal"), newTerminalWidget );
// fact->addEmulationLayer( "default", QObject::tr("Default Terminal"), newVT102 );
}