author | wazlaf <wazlaf> | 2002-10-20 14:53:08 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-10-20 14:53:08 (UTC) |
commit | 18ba3be9ca69c42476e310649e3068d2d5f8a03b (patch) (unidiff) | |
tree | d6a68e8f1a319ef8320d714356beebcf440a630f /noncore/apps/opie-console/emulation_layer.h | |
parent | 9f442f5af601d1e15bb4d0509ed012e61609260d (diff) | |
download | opie-18ba3be9ca69c42476e310649e3068d2d5f8a03b.zip opie-18ba3be9ca69c42476e310649e3068d2d5f8a03b.tar.gz opie-18ba3be9ca69c42476e310649e3068d2d5f8a03b.tar.bz2 |
scripting fixed (moved from emulation_layer to emulation_handler). Scripts now use QByteArray instead of QString
Diffstat (limited to 'noncore/apps/opie-console/emulation_layer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_layer.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/noncore/apps/opie-console/emulation_layer.h b/noncore/apps/opie-console/emulation_layer.h index 928ad04..73e5bf6 100644 --- a/noncore/apps/opie-console/emulation_layer.h +++ b/noncore/apps/opie-console/emulation_layer.h | |||
@@ -29,13 +29,12 @@ | |||
29 | #include "widget_layer.h" | 29 | #include "widget_layer.h" |
30 | #include "screen.h" | 30 | #include "screen.h" |
31 | #include <qtimer.h> | 31 | #include <qtimer.h> |
32 | #include <stdio.h> | 32 | #include <stdio.h> |
33 | #include <qtextcodec.h> | 33 | #include <qtextcodec.h> |
34 | #include "keytrans.h" | 34 | #include "keytrans.h" |
35 | #include "script.h" | ||
36 | 35 | ||
37 | class EmulationLayer : public QObject | 36 | class EmulationLayer : public QObject |
38 | { Q_OBJECT | 37 | { Q_OBJECT |
39 | 38 | ||
40 | public: | 39 | public: |
41 | 40 | ||
@@ -102,28 +101,12 @@ public: | |||
102 | virtual void setConnect(bool r); | 101 | virtual void setConnect(bool r); |
103 | void setColumns(int columns); | 102 | void setColumns(int columns); |
104 | 103 | ||
105 | void setKeytrans(int no); | 104 | void setKeytrans(int no); |
106 | void setKeytrans(const char * no); | 105 | void setKeytrans(const char * no); |
107 | 106 | ||
108 | /* Scripts */ | ||
109 | |||
110 | /* Create a new script and record all typed characters */ | ||
111 | void startRecording(); | ||
112 | |||
113 | /* Return whether we are currently recording a script */ | ||
114 | bool isRecording(); | ||
115 | |||
116 | /* Return the current script (or NULL) */ | ||
117 | Script *script(); | ||
118 | |||
119 | /* Stop recording and remove the current script from memory */ | ||
120 | void clearScript(); | ||
121 | |||
122 | /* Run a script by forwarding its keys to the EmulationLayer */ | ||
123 | void runScript(const Script *); | ||
124 | protected: | 107 | protected: |
125 | 108 | ||
126 | WidgetLayer* gui; | 109 | WidgetLayer* gui; |
127 | Screen* scr; // referes to one `screen' | 110 | Screen* scr; // referes to one `screen' |
128 | Screen* screen[2]; // 0 = primary, 1 = alternate | 111 | Screen* screen[2]; // 0 = primary, 1 = alternate |
129 | void setScreen(int n); // set `scr' to `screen[n]' | 112 | void setScreen(int n); // set `scr' to `screen[n]' |
@@ -153,11 +136,10 @@ private: | |||
153 | private: | 136 | private: |
154 | 137 | ||
155 | QTimer bulk_timer; | 138 | QTimer bulk_timer; |
156 | int bulk_nlcnt; // bulk newline counter | 139 | int bulk_nlcnt; // bulk newline counter |
157 | char* SelectedText; | 140 | char* SelectedText; |
158 | int bulk_incnt; // bulk counter | 141 | int bulk_incnt; // bulk counter |
159 | Script *m_script; | ||
160 | 142 | ||
161 | }; | 143 | }; |
162 | 144 | ||
163 | #endif // ifndef EMULATION_H | 145 | #endif // ifndef EMULATION_H |