47 lines
1.2 KiB
C++
Executable File
47 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Settings Editor -> creating and editing existing default settings
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#include "main_window.h"
|
|
|
|
#include <LtsCommandLineParser/LtsCommandLineParser.h>
|
|
#include <NGLLogger/INGLLogger.h>
|
|
#include <nglapplication/nglapplication.h>
|
|
#include <LtsPluginManager/lts_plugin_loader.h>
|
|
#include <PluginInterfaces/style_plugin_interface.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
NGLApplication app(argc, argv);
|
|
app.createLogger("SettingsEditor", "log4cxx_settingsEditor.props");
|
|
NGL::INGLLogger &logger = app.baseLogger();
|
|
QCoreApplication::setApplicationName(QLatin1String("Settings Editor"));
|
|
QCoreApplication::setOrganizationName(QLatin1String("RME"));
|
|
|
|
LtsPluginManager::LtsPluginLoader::getInstance()->loadPlugins(LtsPluginManager::PluginType::STYLE,
|
|
nullptr,
|
|
{QStringLiteral("rde.light")}); // load style plugin
|
|
|
|
int retval = 0;
|
|
STARTUP_LOG(logger);
|
|
{
|
|
QScopedPointer<SettingsEditor::MainWindow> mw(new SettingsEditor::MainWindow);
|
|
|
|
mw->setWindowTitle(QLatin1String("ProjectSettingsEditor"));
|
|
|
|
mw->show();
|
|
|
|
app.setQuitOnLastWindowClosed(true);
|
|
|
|
retval = app.exec();
|
|
|
|
SHUTDOWN_LOG(logger);
|
|
}
|
|
|
|
return retval;
|
|
}
|