Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
#include "mainwindow.h"
#include "settings.h"
#include <nglapplication/nglapplication.h>
#include <NGLLogger/NGLLoggerBootstrap.h>
#include <LtsCommandLineParser/LtsCommandLineParser.h>
int main(int argc, char *argv[])
{
NGLApplication app(argc, argv);
LtsCommandLineParser::LtsCommandLineParser options(LtsCommandLineParser::LtsCommandLineParser::ProvideCommandLineParameterOptions::CustomConfigFile);
if (!options.init())
return -1;
app.createLogger("WRP", "log4cxx_wrp.props");
NGL::INGLLogger &logger = app.logger("main");
QCoreApplication::setApplicationName(QLatin1String("WLS Random Position Generator"));
QCoreApplication::setOrganizationName(QLatin1String("RME"));
QString iniFile = options.iniFileSet() ? options.iniFile() : QStringLiteral("wrp_training_areas.ini");
WlsRandomPositions::Settings::setIniFile(iniFile);
WlsRandomPositions::MainWindow w;
w.show();
STARTUP_LOG(logger);
int iRet = app.exec();
SHUTDOWN_LOG(logger);
return iRet;
}