Diffstat (limited to 'core/apps/embeddedkonsole/konsole.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/konsole.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/core/apps/embeddedkonsole/konsole.h b/core/apps/embeddedkonsole/konsole.h index 819ea5d..40003d4 100644 --- a/core/apps/embeddedkonsole/konsole.h +++ b/core/apps/embeddedkonsole/konsole.h | |||
@@ -9,17 +9,17 @@ | |||
9 | /* This file is part of Konsole, an X terminal. */ | 9 | /* This file is part of Konsole, an X terminal. */ |
10 | /* */ | 10 | /* */ |
11 | /* The material contained in here more or less directly orginates from */ | 11 | /* The material contained in here more or less directly orginates from */ |
12 | /* kvt, which is copyright (c) 1996 by Matthias Ettrich <ettrich@kde.org> */ | 12 | /* kvt, which is copyright (c) 1996 by Matthias Ettrich <ettrich@kde.org> */ |
13 | /* */ | 13 | /* */ |
14 | /* -------------------------------------------------------------------------- */ | 14 | /* -------------------------------------------------------------------------- */ |
15 | /* */ | 15 | /* */ |
16 | /* Ported Konsole to Qt/Embedded */ | 16 | /* Ported Konsole to Qt/Embedded */ |
17 | /* */ | 17 | /* */ |
18 | /* Copyright (C) 2000 by John Ryland <jryland@trolltech.com> */ | 18 | /* Copyright (C) 2000 by John Ryland <jryland@trolltech.com> */ |
19 | /* */ | 19 | /* */ |
20 | /* -------------------------------------------------------------------------- */ | 20 | /* -------------------------------------------------------------------------- */ |
21 | 21 | ||
22 | #ifndef KONSOLE_H | 22 | #ifndef KONSOLE_H |
23 | #define KONSOLE_H | 23 | #define KONSOLE_H |
24 | 24 | ||
25 | 25 | ||
@@ -27,12 +27,14 @@ | |||
27 | #include <qaction.h> | 27 | #include <qaction.h> |
28 | #include <qpopupmenu.h> | 28 | #include <qpopupmenu.h> |
29 | #include <qstrlist.h> | 29 | #include <qstrlist.h> |
30 | #include <qintdict.h> | 30 | #include <qintdict.h> |
31 | #include <qptrdict.h> | 31 | #include <qptrdict.h> |
32 | #include <qtabwidget.h> | 32 | #include <qtabwidget.h> |
33 | #include <qpe/qpetoolbar.h> | ||
34 | #include <qcombobox.h> | ||
33 | 35 | ||
34 | #include "MyPty.h" | 36 | #include "MyPty.h" |
35 | #include "TEWidget.h" | 37 | #include "TEWidget.h" |
36 | #include "TEmuVt102.h" | 38 | #include "TEmuVt102.h" |
37 | #include "session.h" | 39 | #include "session.h" |
38 | 40 | ||
@@ -45,28 +47,32 @@ Q_OBJECT | |||
45 | public: | 47 | public: |
46 | 48 | ||
47 | Konsole(QWidget* parent = 0, const char* name = 0, WFlags fl = 0); | 49 | Konsole(QWidget* parent = 0, const char* name = 0, WFlags fl = 0); |
48 | Konsole(const char * name, const char* pgm, QStrList & _args, int histon); | 50 | Konsole(const char * name, const char* pgm, QStrList & _args, int histon); |
49 | ~Konsole(); | 51 | ~Konsole(); |
50 | void setColLin(int columns, int lines); | 52 | void setColLin(int columns, int lines); |
51 | 53 | QPEToolBar *secondToolBar; | |
52 | void show(); | 54 | void show(); |
53 | 55 | void setColor(); | |
56 | int lastSelectedMenu; | ||
54 | private slots: | 57 | private slots: |
55 | void doneSession(TESession*,int); | 58 | void doneSession(TESession*,int); |
56 | void changeColumns(int); | 59 | void changeColumns(int); |
57 | void fontChanged(int); | 60 | void fontChanged(int); |
61 | void configMenuSelected(int ); | ||
62 | void colorMenuSelected(int); | ||
58 | void enterCommand(int); | 63 | void enterCommand(int); |
59 | void hitEnter(); | 64 | void hitEnter(); |
60 | void hitSpace(); | 65 | void hitSpace(); |
61 | void hitTab(); | 66 | void hitTab(); |
62 | void hitPaste(); | 67 | void hitPaste(); |
63 | void hitUp(); | 68 | void hitUp(); |
64 | void hitDown(); | 69 | void hitDown(); |
65 | void switchSession(QWidget *); | 70 | void switchSession(QWidget *); |
66 | void newSession(); | 71 | void newSession(); |
72 | void changeCommand(const QString &, int); | ||
67 | 73 | ||
68 | private: | 74 | private: |
69 | void init(const char* _pgm, QStrList & _args); | 75 | void init(const char* _pgm, QStrList & _args); |
70 | void initSession(const char* _pgm, QStrList & _args); | 76 | void initSession(const char* _pgm, QStrList & _args); |
71 | void runSession(TESession* s); | 77 | void runSession(TESession* s); |
72 | void setColorPixmaps(); | 78 | void setColorPixmaps(); |
@@ -103,15 +109,15 @@ private: | |||
103 | int nsessions; | 109 | int nsessions; |
104 | QList<VTFont> fonts; | 110 | QList<VTFont> fonts; |
105 | int cfont; | 111 | int cfont; |
106 | QCString se_pgm; | 112 | QCString se_pgm; |
107 | QStrList se_args; | 113 | QStrList se_args; |
108 | 114 | ||
109 | QPopupMenu* fontList; | 115 | QPopupMenu* fontList,*configMenu,*colorMenu; |
110 | 116 | QComboBox *commonCombo; | |
111 | // history scrolling I think | 117 | // history scrolling I think |
112 | bool b_scroll; | 118 | bool b_scroll; |
113 | 119 | ||
114 | int n_keytab; | 120 | int n_keytab; |
115 | int n_scroll; | 121 | int n_scroll; |
116 | int n_render; | 122 | int n_render; |
117 | QString pmPath; // pixmap path | 123 | QString pmPath; // pixmap path |