author | waspe <waspe> | 2004-02-22 12:57:58 (UTC) |
---|---|---|
committer | waspe <waspe> | 2004-02-22 12:57:58 (UTC) |
commit | 5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8 (patch) (unidiff) | |
tree | b97f5281b807b4218f437150a4e9082694e7a642 /core/apps/embeddedkonsole/TEWidget.h | |
parent | 908f9c9f0c68d1c3e5a620a69bbf0d05684e2ab3 (diff) | |
download | opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.zip opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.tar.gz opie-5bc4dbd932fcfa64773b6e17fe57c665bdcd50b8.tar.bz2 |
merged changes form qkonsole back into opie-embeddedkonsole (most likely not bugfree !)
Diffstat (limited to 'core/apps/embeddedkonsole/TEWidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/TEWidget.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/core/apps/embeddedkonsole/TEWidget.h b/core/apps/embeddedkonsole/TEWidget.h index 5597f27..792b109 100644 --- a/core/apps/embeddedkonsole/TEWidget.h +++ b/core/apps/embeddedkonsole/TEWidget.h | |||
@@ -36,9 +36,10 @@ class TESession; | |||
36 | // class Konsole; | 36 | // class Konsole; |
37 | 37 | ||
38 | class TEWidget : public QFrame | 38 | class TEWidget : public QFrame |
39 | // a widget representing attributed text | 39 | // a widget representing attributed text |
40 | { Q_OBJECT | 40 | { |
41 | Q_OBJECT | ||
41 | 42 | ||
42 | // friend class Konsole; | 43 | // friend class Konsole; |
43 | 44 | ||
44 | public: | 45 | public: |
@@ -73,8 +74,9 @@ public: | |||
73 | QSize sizeHint() const; | 74 | QSize sizeHint() const; |
74 | 75 | ||
75 | bool useHorzScroll; | 76 | bool useHorzScroll; |
76 | bool useBeep; | 77 | bool useBeep; |
78 | int color_menu_item; | ||
77 | 79 | ||
78 | void Bell(); | 80 | void Bell(); |
79 | void emitText(QString text); | 81 | void emitText(QString text); |
80 | void pasteClipboard(); | 82 | void pasteClipboard(); |
@@ -92,8 +94,13 @@ signals: | |||
92 | void beginSelectionSignal( const int x, const int y ); | 94 | void beginSelectionSignal( const int x, const int y ); |
93 | void extendSelectionSignal( const int x, const int y ); | 95 | void extendSelectionSignal( const int x, const int y ); |
94 | void endSelectionSignal(const BOOL preserve_line_breaks); | 96 | void endSelectionSignal(const BOOL preserve_line_breaks); |
95 | 97 | ||
98 | void changeFontSize(int); | ||
99 | void toggleFullScreen(); | ||
100 | void setFullScreen(bool); | ||
101 | void changeSession(int); | ||
102 | void newSession(); | ||
96 | 103 | ||
97 | protected: | 104 | protected: |
98 | virtual void styleChange( QStyle& ); | 105 | virtual void styleChange( QStyle& ); |
99 | 106 | ||
@@ -151,9 +158,9 @@ protected slots: | |||
151 | private: | 158 | private: |
152 | 159 | ||
153 | QChar (*fontMap)(QChar); // possible vt100 font extention | 160 | QChar (*fontMap)(QChar); // possible vt100 font extention |
154 | 161 | ||
155 | bool fixed_font; // has fixed pitch | 162 | // bool fixed_font; // has fixed pitch |
156 | int font_h; // height | 163 | int font_h; // height |
157 | int font_w; // width | 164 | int font_w; // width |
158 | int font_a; // ascend | 165 | int font_a; // ascend |
159 | 166 | ||
@@ -181,10 +188,11 @@ private: | |||
181 | QClipboard* cb; | 188 | QClipboard* cb; |
182 | QScrollBar* scrollbar, *hScrollbar; | 189 | QScrollBar* scrollbar, *hScrollbar; |
183 | 190 | ||
184 | int scrollLoc, hScrollLoc; | 191 | int scrollLoc, hScrollLoc; |
185 | int hposition, vcolumns; | 192 | int hposition, vcolumns; |
186 | 193 | ||
194 | int mouse_down_x, mouse_down_y; | ||
187 | 195 | ||
188 | //#define SCRNONE 0 | 196 | //#define SCRNONE 0 |
189 | //#define SCRLEFT 1 | 197 | //#define SCRLEFT 1 |
190 | //#define SCRRIGHT 2 | 198 | //#define SCRRIGHT 2 |
@@ -193,11 +201,13 @@ private: | |||
193 | BOOL hasBlinker; // has characters to blink | 201 | BOOL hasBlinker; // has characters to blink |
194 | QTimer* blinkT; // active when hasBlinker | 202 | QTimer* blinkT; // active when hasBlinker |
195 | QPopupMenu* m_drop; | 203 | QPopupMenu* m_drop; |
196 | QString dropText; | 204 | QString dropText; |
205 | |||
197 | public: | 206 | public: |
198 | // current session in this widget | 207 | // current session in this widget |
199 | TESession *currentSession; | 208 | TESession *currentSession; |
209 | |||
200 | private slots: | 210 | private slots: |
201 | void drop_menu_activated(int item); | 211 | void drop_menu_activated(int item); |
202 | }; | 212 | }; |
203 | 213 | ||