summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/emulation_handler.h
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/emulation_handler.h
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/emulation_handler.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/emulation_handler.h8
1 files changed, 8 insertions, 0 deletions
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 <qobject.h>
+#include <qcolor.h>
#include <qcstring.h>
/*
@@ -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;