From d7290c6b24266303abd95e7f38c0fecae395f355 Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 14 Oct 2002 22:58:11 +0000 Subject: A small console emulation layer... And some configuration stuff fonts are working colors are not fully working BackGround and ForeGround both are black :( --- (limited to 'noncore/apps/opie-console/emulation_handler.h') diff --git a/noncore/apps/opie-console/emulation_handler.h b/noncore/apps/opie-console/emulation_handler.h index 58b94bc..9af7680 100644 --- a/noncore/apps/opie-console/emulation_handler.h +++ b/noncore/apps/opie-console/emulation_handler.h @@ -2,6 +2,7 @@ #define OPIE_EMULATION_HANDLER_H #include +#include #include /* @@ -26,6 +27,7 @@ class Profile; class QWidget; class TEWidget; class TEmulation; +class QFont; class EmulationHandler : public QObject { Q_OBJECT public: @@ -43,15 +45,21 @@ public: void load( const Profile& ); QWidget* widget(); + void setColor( const QColor& fore, const QColor& back ); signals: void send( const QByteArray& ); void changeSize(int rows, int cols ); + public slots: void recv( const QByteArray& ); private slots: void recvEmulation( const char*, int len ); +private: + QFont font( int ); + QColor foreColor(int ); + QColor backColor(int ); private: TEWidget* m_teWid; -- cgit v0.9.0.2