23 #include "config_build.h"
27 #include <QMessageBox>
32 int main(
int argc,
char* argv[])
36 QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates));
37 qRegisterMetaType<QVector<double>>(
"QVector<double>");
40 QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
42 QApplication app(argc, argv);
43 QApplication::setApplicationName(
"BornAgain");
45 QApplication::setOrganizationName(
"BornAgain");
47 QApplication::setWindowIcon(QIcon(
":/images/BornAgain.ico"));
61 if (!QDir().exists(dir))
68 if (options.
find(
"geometry"))
73 int result = QApplication::exec();
Collection of utilities to parse command line options.
Defines class ApplicationSettings.
void register1DDataLoaders()
register the concrete data loaders with the registration facility
Utility functions for data loaders.
Defines class MainWindow.
void MessageHandler(QtMsgType type, const QMessageLogContext &, const QString &msg)
This is set by main to be the message handler of our GUI.
Declares function MessageHandler.
Defines class Helpers functions.
Defines struct SessionData.
Handles command line and config file program options.
bool find(std::string name) const
Returns true if option with given name has been set.
bool disableHighDPISupport() const
QSize mainWindowSize() const
Application wide settings.
void loadStyle(ApplicationSettings::Style style)
int main(int argc, char *argv[])
void messageHandler(QtMsgType, const QMessageLogContext &, const QString &)
static QMainWindow * mainWindow
QString appDataFolder()
The folder where persistent application data shall be stored. Under Windows this is the AppData/Roami...
QString getBornAgainVersionString()
InstrumentLibrary instrumentLibrary