Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+54
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
|
||||
*/
|
||||
|
||||
#include <cstdlib>
|
||||
#include <getopt.h>
|
||||
#include <string>
|
||||
#include <nglapplication/nglapplication.h>
|
||||
#include <QString>
|
||||
#include <QDir>
|
||||
|
||||
#include "symboleditor.h"
|
||||
#include "nglsettings.h"
|
||||
|
||||
#include <LtsPluginManager/lts_plugin_loader.h>
|
||||
#include <PluginInterfaces/style_plugin_interface.h>
|
||||
#include <PluginInterfaces/project_plugin_interface.h>
|
||||
|
||||
#include <NGLLogger/NGLLoggerBootstrap.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
NGLApplication app(argc, argv);
|
||||
app.createLogger("SymbolApp");
|
||||
|
||||
QCoreApplication::addLibraryPath(QString::fromLocal8Bit(qgetenv("GFS_PATH")) + QLatin1Literal("/lib"));
|
||||
// und auch in ../lib
|
||||
QCoreApplication::addLibraryPath(QCoreApplication::applicationDirPath() + QLatin1Literal("/../lib"));
|
||||
|
||||
// QString ini = QString::fromStdString(qgetenv("GFS_PATH").toStdString()) + QLatin1Literal("/gfs.cfg");
|
||||
// .. to keep some compatibility to old resource structure TODO: rm !
|
||||
|
||||
LtsPluginManager::LtsPluginLoader *pluginLoader = LtsPluginManager::LtsPluginLoader::getInstance();
|
||||
|
||||
pluginLoader->loadPlugins(LtsPluginManager::PluginType::STYLE, nullptr, QStringList() << QStringLiteral("rde.light"));
|
||||
pluginLoader->loadPlugins(LtsPluginManager::PluginType::PROJECT, nullptr, QStringList() << QStringLiteral("legatus"));
|
||||
|
||||
|
||||
QDir::setSearchPaths(QLatin1String("icon"), QStringList(QLatin1String(":/style/icons/")));
|
||||
QDir::setSearchPaths(QLatin1String("icon"), QStringList(QLatin1String(":/style/"))); // FIXME: does qt check for recursion ??
|
||||
|
||||
STARTUP_LOG(app.baseLogger());
|
||||
|
||||
SymbolEditor *edit = new SymbolEditor(QString(), QString(), QString(), false);
|
||||
if (!edit)
|
||||
return -1;
|
||||
|
||||
edit->show();
|
||||
|
||||
int result = app.exec();
|
||||
delete edit;
|
||||
SHUTDOWN_LOG(app.baseLogger());
|
||||
return result;
|
||||
} // int main(int argc, char *argv[])
|
||||
Reference in new issue
Block a user