summaryrefslogtreecommitdiff
path: root/core/apps/embeddedkonsole/TEWidget.h
Unidiff
Diffstat (limited to 'core/apps/embeddedkonsole/TEWidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/embeddedkonsole/TEWidget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/apps/embeddedkonsole/TEWidget.h b/core/apps/embeddedkonsole/TEWidget.h
index 3f9f4ae..40e1aea 100644
--- a/core/apps/embeddedkonsole/TEWidget.h
+++ b/core/apps/embeddedkonsole/TEWidget.h
@@ -1,78 +1,78 @@
1/* ----------------------------------------------------------------------- */ 1/* ----------------------------------------------------------------------- */
2/* */ 2/* */
3/* [te_widget.h] Terminal Emulation Widget */ 3/* [te_widget.h] Terminal Emulation Widget */
4/* */ 4/* */
5/* ----------------------------------------------------------------------- */ 5/* ----------------------------------------------------------------------- */
6/* */ 6/* */
7/* Copyright (c) 1997,1998 by Lars Doelle <lars.doelle@on-line.de> */ 7/* Copyright (c) 1997,1998 by Lars Doelle <lars.doelle@on-line.de> */
8/* */ 8/* */
9/* This file is part of Konsole - an X terminal for KDE */ 9/* This file is part of Konsole - an X terminal for KDE */
10/* */ 10/* */
11/* ----------------------------------------------------------------------- */ 11/* ----------------------------------------------------------------------- */
12 /* */ 12/* */
13/* Ported Konsole to Qt/Embedded */ 13/* Ported Konsole to Qt/Embedded */
14 /* */ 14/* */
15/* Copyright (C) 2000 by John Ryland <jryland@trolltech.com> */ 15/* Copyright (C) 2000 by John Ryland <jryland@trolltech.com> */
16 /* */ 16/* */
17/* -------------------------------------------------------------------------- */ 17/* -------------------------------------------------------------------------- */
18
19#ifndef TE_WIDGET_H 18#ifndef TE_WIDGET_H
20#define TE_WIDGET_H 19#define TE_WIDGET_H
21 20
22#include <qwidget.h> 21#include <qwidget.h>
23#include <qlabel.h> 22#include <qlabel.h>
24#include <qtimer.h> 23#include <qtimer.h>
25#include <qcolor.h> 24#include <qcolor.h>
26#include <qkeycode.h> 25#include <qkeycode.h>
27#include <qscrollbar.h> 26#include <qscrollbar.h>
28 27
29#include <qpopupmenu.h> 28#include <qpopupmenu.h>
30 29
31#include "TECommon.h" 30#include "TECommon.h"
32 31
33extern unsigned short vt100_graphics[32]; 32extern unsigned short vt100_graphics[32];
34 33
35class TESession; 34class TESession;
36 35
37// class Konsole; 36// class Konsole;
38 37
39class TEWidget : public QFrame 38class TEWidget : public QFrame
40// a widget representing attributed text 39// a widget representing attributed text
41{ Q_OBJECT 40{ Q_OBJECT
42 41
43// friend class Konsole; 42// friend class Konsole;
44 43
45public: 44public:
46 45
47 TEWidget(QWidget *parent=0, const char *name=0); 46 TEWidget(QWidget *parent=0, const char *name=0);
48 virtual ~TEWidget(); 47 virtual ~TEWidget();
49 48
50public: 49public:
51 50
52 QColor getDefaultBackColor(); 51 QColor getDefaultBackColor();
53 52
54 const ColorEntry* getColorTable() const; 53 const ColorEntry* getColorTable() const;
54 const ColorEntry* getdefaultColorTable() const;
55 void setColorTable(const ColorEntry table[]); 55 void setColorTable(const ColorEntry table[]);
56 56
57 void setScrollbarLocation(int loc); 57 void setScrollbarLocation(int loc);
58 enum { SCRNONE=0, SCRLEFT=1, SCRRIGHT=2 }; 58 enum { SCRNONE=0, SCRLEFT=1, SCRRIGHT=2 };
59 59
60 void setScroll(int cursor, int lines); 60 void setScroll(int cursor, int lines);
61 void doScroll(int lines); 61 void doScroll(int lines);
62 62
63 void emitSelection(); 63 void emitSelection();
64 64
65public: 65public:
66 66
67 void setImage(const ca* const newimg, int lines, int columns); 67 void setImage(const ca* const newimg, int lines, int columns);
68 68
69 int Lines() { return lines; } 69 int Lines() { return lines; }
70 int Columns() { return columns; } 70 int Columns() { return columns; }
71 71
72 void calcGeometry(); 72 void calcGeometry();
73 void propagateSize(); 73 void propagateSize();
74 QSize calcSize(int cols, int lins) const; 74 QSize calcSize(int cols, int lins) const;
75 75
76 QSize sizeHint() const; 76 QSize sizeHint() const;
77 77
78public: 78public: