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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/emulation_handler.cpp b/noncore/apps/opie-console/emulation_handler.cpp index 2087f57..d5a435e 100644 --- a/noncore/apps/opie-console/emulation_handler.cpp +++ b/noncore/apps/opie-console/emulation_handler.cpp | |||
@@ -205,48 +205,51 @@ bool EmulationHandler::isRecording() { | |||
205 | bool EmulationHandler::isLogging() { | 205 | bool EmulationHandler::isLogging() { |
206 | return (m_log != 0); | 206 | return (m_log != 0); |
207 | } | 207 | } |
208 | 208 | ||
209 | void EmulationHandler::startRecording() { | 209 | void EmulationHandler::startRecording() { |
210 | if (!isRecording()) | 210 | if (!isRecording()) |
211 | m_script = new Script(); | 211 | m_script = new Script(); |
212 | } | 212 | } |
213 | 213 | ||
214 | void EmulationHandler::startLogging(const QString fileName) { | 214 | void EmulationHandler::startLogging(const QString fileName) { |
215 | m_logFileName = fileName; | 215 | m_logFileName = fileName; |
216 | if (!isLogging()) | 216 | if (!isLogging()) |
217 | m_log = new Logger(m_logFileName); | 217 | m_log = new Logger(m_logFileName); |
218 | } | 218 | } |
219 | 219 | ||
220 | QString EmulationHandler::logFileName() { | 220 | QString EmulationHandler::logFileName() { |
221 | return m_logFileName; | 221 | return m_logFileName; |
222 | } | 222 | } |
223 | 223 | ||
224 | void EmulationHandler::clearScript() { | 224 | void EmulationHandler::clearScript() { |
225 | if (isRecording()) { | 225 | if (isRecording()) { |
226 | delete m_script; | 226 | delete m_script; |
227 | m_script = 0; | 227 | m_script = 0; |
228 | } | 228 | } |
229 | } | 229 | } |
230 | 230 | ||
231 | void EmulationHandler::clearLog() { | 231 | void EmulationHandler::clearLog() { |
232 | if (isLogging()) { | 232 | if (isLogging()) { |
233 | delete m_log; | 233 | delete m_log; |
234 | m_log = 0; | 234 | m_log = 0; |
235 | } | 235 | } |
236 | } | 236 | } |
237 | 237 | ||
238 | void EmulationHandler::runScript(const Script *script) { | 238 | void EmulationHandler::runScript(const Script *script) { |
239 | emit send(script->script()); | 239 | emit send(script->script()); |
240 | } | 240 | } |
241 | 241 | ||
242 | void EmulationHandler::copy() { | 242 | void EmulationHandler::copy() { |
243 | m_teWid->emitSelection(); | 243 | m_teWid->emitSelection(); |
244 | } | 244 | } |
245 | void EmulationHandler::paste() { | 245 | void EmulationHandler::paste() { |
246 | m_teWid->pasteClipboard(); | 246 | m_teWid->pasteClipboard(); |
247 | } | 247 | } |
248 | 248 | ||
249 | void EmulationHandler::setWrap(int columns) { | 249 | void EmulationHandler::setWrap(int columns) { |
250 | m_teWid->setWrapAt(columns); | 250 | m_teWid->setWrapAt(columns); |
251 | } | 251 | } |
252 | 252 | ||
253 | void EmulationHandler::setScrollbarLocation(int index) { | ||
254 | m_teWid->setScrollbarLocation(index); | ||
255 | } | ||