27 #include <QApplication>
28 #include <QMessageBox>
35 int ParexClientMode::operator()(
int argc,
char** argv)
37 int exit_status = EXIT_SUCCESS;
40 QApplication app(argc, argv,
true);
41 qRegisterMetaType<std::string>(
"std::string");
42 QObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
46 clientView.setVisible(
true);
47 exit_status = app.exec();
49 catch (exception& e) {
50 cerr << e.what() << endl;
51 QString qmess = QString(
"Exception: %1").arg(e.what());
52 QMessageBox::critical(0,
"Critical Error", qmess,
53 QMessageBox::Abort, QMessageBox::NoButton, QMessageBox::NoButton);
54 exit_status = EXIT_FAILURE;
57 cerr <<
"Unknown exception." << endl;
58 QString qmess = QString(
"Unknown exception.");
59 QMessageBox::critical(0,
"Critical Error", qmess);
60 exit_status = EXIT_FAILURE;
Interface/Implementation for the exec modes.
Namespace for startup modes for simPT tools.
Client for Parameter Exploration.
Namespace for SimPT parameter explorer package.