Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp index 1adb43d..1d7a4be 100644 --- a/noncore/apps/opie-console/mainwindow.cpp +++ b/noncore/apps/opie-console/mainwindow.cpp | |||
@@ -211,43 +211,47 @@ void MainWindow::slotNew() { | |||
211 | if ( ret == QDialog::Accepted ) { | 211 | if ( ret == QDialog::Accepted ) { |
212 | create( dlg.profile() ); | 212 | create( dlg.profile() ); |
213 | } | 213 | } |
214 | } | 214 | } |
215 | 215 | ||
216 | void MainWindow::slotRecordScript() { | 216 | void MainWindow::slotRecordScript() { |
217 | if (currentSession()) { | 217 | /* if (currentSession()) { |
218 | currentSession()->emulationLayer()->startRecording(); | 218 | currentSession()->emulationLayer()->startRecording(); |
219 | } | 219 | } |
220 | */ | ||
220 | } | 221 | } |
221 | 222 | ||
222 | void MainWindow::slotSaveScript() { | 223 | void MainWindow::slotSaveScript() { |
223 | if (currentSession() && currentSession()->emulationLayer()->isRecording()) { | 224 | /* if (currentSession() && currentSession()->emulationLayer()->isRecording()) { |
224 | MimeTypes types; | 225 | MimeTypes types; |
225 | QStringList script; | 226 | QStringList script; |
226 | script << "text/plain"; | 227 | script << "text/plain"; |
227 | types.insert("Script", script); | 228 | types.insert("Script", script); |
228 | QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types); | 229 | QString filename = OFileDialog::getSaveFileName(2, "/", QString::null, types); |
229 | if (!filename.isEmpty()) { | 230 | if (!filename.isEmpty()) { |
230 | currentSession()->emulationLayer()->script()->saveTo(filename); | 231 | currentSession()->emulationLayer()->script()->saveTo(filename); |
231 | currentSession()->emulationLayer()->clearScript(); | 232 | currentSession()->emulationLayer()->clearScript(); |
232 | } | 233 | } |
233 | } | 234 | } |
235 | */ | ||
234 | } | 236 | } |
235 | 237 | ||
236 | void MainWindow::slotRunScript() { | 238 | void MainWindow::slotRunScript() { |
239 | /* | ||
237 | if (currentSession()) { | 240 | if (currentSession()) { |
238 | MimeTypes types; | 241 | MimeTypes types; |
239 | QStringList script; | 242 | QStringList script; |
240 | script << "text/plain"; | 243 | script << "text/plain"; |
241 | types.insert("Script", script); | 244 | types.insert("Script", script); |
242 | QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types); | 245 | QString filename = OFileDialog::getOpenFileName(2, "/", QString::null, types); |
243 | if (!filename.isEmpty()) { | 246 | if (!filename.isEmpty()) { |
244 | Script script(DocLnk(filename).file()); | 247 | Script script(DocLnk(filename).file()); |
245 | currentSession()->emulationLayer()->runScript(&script); | 248 | currentSession()->emulationLayer()->runScript(&script); |
246 | } | 249 | } |
247 | } | 250 | } |
251 | */ | ||
248 | } | 252 | } |
249 | 253 | ||
250 | void MainWindow::slotConnect() { | 254 | void MainWindow::slotConnect() { |
251 | if ( currentSession() ) | 255 | if ( currentSession() ) |
252 | currentSession()->layer()->open(); | 256 | currentSession()->layer()->open(); |
253 | } | 257 | } |