21 #include "../cpp_simshell/common/InstallDirs.h"
25 #include <QApplication>
26 #include <QMessageBox>
34 int main(
int argc,
char **argv)
36 int exit_status = EXIT_SUCCESS;
39 QApplication app(argc, argv,
true);
40 qRegisterMetaType<std::string>(
"std::string");
41 qRegisterMetaType<Timeable<>::Stopclock::TClock::duration>(
"Timeable<>::Stopclock::TClock::duration");
42 QObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
45 QStringList search_paths = QIcon::themeSearchPaths();
47 QIcon::setThemeSearchPaths(search_paths);
48 QIcon::setThemeName(
"Tango");
53 exit_status = app.exec();
55 catch (exception& e) {
56 cerr << e.what() << endl;
57 QString qmess = QString(
"Exception caught: %1").arg(e.what());
58 QMessageBox::critical(0,
"Critical Error", qmess,
59 QMessageBox::Abort, QMessageBox::NoButton, QMessageBox::NoButton);
60 exit_status = EXIT_FAILURE;
63 cerr <<
"Unknown exception." << endl;
64 QString qmess = QString(
"Unknown exception.");
65 QMessageBox::critical(0,
"Critical Error", qmess);
66 exit_status = EXIT_FAILURE;
static std::string GetDataDir()
Utility method: get name of the directory for data files.
Interface for the TissueEditor.
Main GUI class for cell editor.
Namespace for clock and timekeeping related classes.