Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index a7541f0..49f9653 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -286,29 +286,26 @@ void MainWindow::slotNew() { | |||
286 | } | 286 | } |
287 | 287 | ||
288 | void MainWindow::slotRecordScript() { | 288 | void MainWindow::slotRecordScript() { |
289 | /* if (currentSession()) { | 289 | if (currentSession()) { |
290 | currentSession()->emulationLayer()->startRecording(); | 290 | currentSession()->emulationHandler()->startRecording(); |
291 | } | 291 | } |
292 | */ | ||
293 | } | 292 | } |
294 | 293 | ||
295 | void MainWindow::slotSaveScript() { | 294 | void MainWindow::slotSaveScript() { |
296 | /* if (currentSession() && currentSession()->emulationLayer()->isRecording()) { | 295 | if (currentSession() && currentSession()->emulationHandler()->isRecording()) { |
297 | MimeTypes types; | 296 | MimeTypes types; |
298 | QStringList script; | 297 | QStringList script; |
299 | script << "text/plain"; | 298 | script << "text/plain"; |
300 | types.insert("Script", script); | 299 | types.insert("Script", script); |
301 | QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types); | 300 | QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types); |
302 | if (!filename.isEmpty()) { | 301 | if (!filename.isEmpty()) { |
303 | currentSession()->emulationLayer()->script()->saveTo(filename); | 302 | currentSession()->emulationHandler()->script()->saveTo(filename); |
304 | currentSession()->emulationLayer()->clearScript(); | 303 | currentSession()->emulationHandler()->clearScript(); |
305 | } | 304 | } |
306 | } | 305 | } |
307 | */ | ||
308 | } | 306 | } |
309 | 307 | ||
310 | void MainWindow::slotRunScript() { | 308 | void MainWindow::slotRunScript() { |
311 | /* | ||
312 | if (currentSession()) { | 309 | if (currentSession()) { |
313 | MimeTypes types; | 310 | MimeTypes types; |
314 | QStringList script; | 311 | QStringList script; |
@@ -317,10 +314,9 @@ void MainWindow::slotRunScript() { | |||
317 | QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types); | 314 | QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types); |
318 | if (!filename.isEmpty()) { | 315 | if (!filename.isEmpty()) { |
319 | Script script(DocLnk(filename).file()); | 316 | Script script(DocLnk(filename).file()); |
320 | currentSession()->emulationLayer()->runScript(&script); | 317 | currentSession()->emulationHandler()->runScript(&script); |
321 | } | 318 | } |
322 | } | 319 | } |
323 | */ | ||
324 | } | 320 | } |
325 | 321 | ||
326 | void MainWindow::slotConnect() { | 322 | void MainWindow::slotConnect() { |