Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+46
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
Reference in new issue
Block a user