summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 2673335..3fe9040 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -1,22 +1,23 @@
1#include <assert.h> 1#include <assert.h>
2 2
3#include <qaction.h> 3#include <qaction.h>
4#include <qmenubar.h> 4#include <qmenubar.h>
5#include <qtoolbar.h> 5#include <qtoolbar.h>
6#include <qmessagebox.h> 6#include <qmessagebox.h>
7#include <qwhatsthis.h> 7#include <qwhatsthis.h>
8#include <qfileinfo.h> 8#include <qfileinfo.h>
9 9
10#include <qpe/filemanager.h> 10#include <qpe/filemanager.h>
11#include <qpe/qpeapplication.h>
11 12
12#include <opie/ofiledialog.h> 13#include <opie/ofiledialog.h>
13 14
14#include "TEmulation.h" 15#include "TEmulation.h"
15#include "profileeditordialog.h" 16#include "profileeditordialog.h"
16#include "configdialog.h" 17#include "configdialog.h"
17#include "default.h" 18#include "default.h"
18#include "profilemanager.h" 19#include "profilemanager.h"
19#include "mainwindow.h" 20#include "mainwindow.h"
20#include "tabwidget.h" 21#include "tabwidget.h"
21#include "transferdialog.h" 22#include "transferdialog.h"
22#include "function_keyboard.h" 23#include "function_keyboard.h"
@@ -301,27 +302,26 @@ MetaFactory* MainWindow::factory() {
301} 302}
302 303
303Session* MainWindow::currentSession() { 304Session* MainWindow::currentSession() {
304 return m_curSession; 305 return m_curSession;
305} 306}
306 307
307QList<Session> MainWindow::sessions() { 308QList<Session> MainWindow::sessions() {
308 return m_sessions; 309 return m_sessions;
309} 310}
310 311
311void MainWindow::slotNew() { 312void MainWindow::slotNew() {
312 ProfileEditorDialog dlg(factory() ); 313 ProfileEditorDialog dlg(factory() );
313 dlg.showMaximized();
314 dlg.setCaption( tr("New Connection") ); 314 dlg.setCaption( tr("New Connection") );
315 int ret = dlg.exec(); 315 int ret = QPEApplication::execDialog( &dlg );
316 316
317 if ( ret == QDialog::Accepted ) { 317 if ( ret == QDialog::Accepted ) {
318 create( dlg.profile() ); 318 create( dlg.profile() );
319 } 319 }
320} 320}
321 321
322void MainWindow::slotRecordScript() { 322void MainWindow::slotRecordScript() {
323 if (currentSession()) { 323 if (currentSession()) {
324 currentSession()->emulationHandler()->startRecording(); 324 currentSession()->emulationHandler()->startRecording();
325 m_saveScript->setEnabled(true); 325 m_saveScript->setEnabled(true);
326 m_recordScript->setEnabled(false); 326 m_recordScript->setEnabled(false);
327 } 327 }
@@ -416,27 +416,26 @@ void MainWindow::slotQuickLaunch() {
416 create( prof ); 416 create( prof );
417 } else { 417 } else {
418 Profile newProf = Profile( "default", "console", "default" , 0, 3, 0 ); 418 Profile newProf = Profile( "default", "console", "default" , 0, 3, 0 );
419 newProf.setAutoConnect( true ); 419 newProf.setAutoConnect( true );
420 create( newProf ); 420 create( newProf );
421 slotSaveSession(); 421 slotSaveSession();
422 } 422 }
423 423
424} 424}
425 425
426void MainWindow::slotConfigure() { 426void MainWindow::slotConfigure() {
427 ConfigDialog conf( manager()->all(), factory() ); 427 ConfigDialog conf( manager()->all(), factory() );
428 conf.showMaximized();
429 428
430 int ret = conf.exec(); 429 int ret = QPEApplication::execDialog( &conf );
431 430
432 if ( QDialog::Accepted == ret ) { 431 if ( QDialog::Accepted == ret ) {
433 manager()->setProfiles( conf.list() ); 432 manager()->setProfiles( conf.list() );
434 manager()->save(); 433 manager()->save();
435 populateProfiles(); 434 populateProfiles();
436 } 435 }
437} 436}
438/* 437/*
439 * we will remove 438 * we will remove
440 * this window from the tabwidget 439 * this window from the tabwidget
441 * remove it from the list 440 * remove it from the list
442 * delete it 441 * delete it