/** * This slot function opens the main help dialog */ void MainWindow::OpenHelpDialog() { if(!helpDialog) helpDialog = new HelpDialog; connect(helpDialog, SIGNAL(rejected()), this, SLOT(killDialog())); helpDialog->show(); }
/** * This slot function opens the route save dialog */ void MainWindow::OpenRouteDialog() { if(!routeSaveDialog) routeSaveDialog = new RouteSaveDialog; connect(routeSaveDialog, SIGNAL(sendroute()), this, SLOT(clientSendRoute())); connect(routeSaveDialog, SIGNAL(rejected()), this, SLOT(killDialog())); routeSaveDialog->show(); }
/** * This slot function opens acceleration start dialog. */ void MainWindow::OpenAccStartDialog() { if(!accstart) accstart = new accelerationstart(this); connect(accstart, SIGNAL(sendresult(QString, double)), this, SLOT(clientSendResult(QString, double))); connect(accstart, SIGNAL(rejected()), this, SLOT(killDialog())); accstart->show(); }
/** * This slot function opens the top results dialog */ void MainWindow::OpenResultDialog() { if (!topResultDialog) topResultDialog = new TopResultDialog; clientRequestCategoryList(); connect(topResultDialog, SIGNAL(refreshCategoryList()), this, SLOT(clientRequestCategoryList())); connect(topResultDialog, SIGNAL(refreshTopList(int)), this, SLOT(clientRequestTopList(int))); connect(topResultDialog, SIGNAL(rejected()), this, SLOT(killDialog())); topResultDialog->show(); }
/** * This slot function open users dialog. */ void MainWindow::openUsersDialog() { if(!usersDialog) usersDialog = new UsersDialog; connect(usersDialog, SIGNAL(getUserInfo(QString)), this, SLOT(requestGetUserInfo(QString))); //connect(usersDialog, SIGNAL(getUsers()), this, SLOT(requestGetUsers())); requestGetUsers(); connect(usersDialog, SIGNAL(rejected()), this, SLOT(killDialog())); usersDialog->show(); }
bool WorkStationGroup::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: askStatus(); break; case 1: killDialog(); break; case 2: killTimeoutDialog(); break; case 3: continueWaiting(); break; default: return QObject::qt_invoke( _id, _o ); } return TRUE; }