Diffstat (limited to 'noncore/apps/opie-console/emulation_handler.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/emulation_handler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index bdc8b43..bb3dd28 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp | |||
@@ -171,24 +171,30 @@ QPushButton* EmulationHandler::cornerButton() { | |||
171 | Script *EmulationHandler::script() { | 171 | Script *EmulationHandler::script() { |
172 | return m_script; | 172 | return m_script; |
173 | } | 173 | } |
174 | 174 | ||
175 | bool EmulationHandler::isRecording() { | 175 | bool EmulationHandler::isRecording() { |
176 | return (m_script != 0); | 176 | return (m_script != 0); |
177 | } | 177 | } |
178 | 178 | ||
179 | void EmulationHandler::startRecording() { | 179 | void EmulationHandler::startRecording() { |
180 | if (!isRecording()) | 180 | if (!isRecording()) |
181 | m_script = new Script(); | 181 | m_script = new Script(); |
182 | } | 182 | } |
183 | 183 | ||
184 | void EmulationHandler::clearScript() { | 184 | void EmulationHandler::clearScript() { |
185 | if (isRecording()) { | 185 | if (isRecording()) { |
186 | delete m_script; | 186 | delete m_script; |
187 | m_script = 0; | 187 | m_script = 0; |
188 | } | 188 | } |
189 | } | 189 | } |
190 | 190 | ||
191 | void EmulationHandler::runScript(const Script *script) { | 191 | void EmulationHandler::runScript(const Script *script) { |
192 | emit send(script->script()); | 192 | emit send(script->script()); |
193 | } | 193 | } |
194 | 194 | ||
195 | void EmulationHandler::copy() { | ||
196 | m_teWid->emitSelection(); | ||
197 | } | ||
198 | void EmulationHandler::paste() { | ||
199 | m_teWid->pasteClipboard(); | ||
200 | } | ||