Kept: TetraIF/, Z/src, Lts/Common, Lts/Proxies/TrainingAreaBase (tabTelegrams dependency of TetraIF) plus build scaffolding (cmake/, include/, external/, doxygen/, tests/, translations/, lts-cc.conf, CTestCustom.ctest, new_docker_build.sh, rti_license.dat). Removed: out-of-scope Lts modules (Application, DDS, Plugins, Projects, Services, Tools, Viewer, all Proxies except TrainingAreaBase), top-level src/, specs/, Qt5 tree (qt5-before + .gitmodules entry), migration reports and leftover scripts.
57 lines
1021 B
C++
Executable File
57 lines
1021 B
C++
Executable File
// needed: libQt5Sql5-postgresql
|
|
|
|
/* TODO:
|
|
*
|
|
* hint for custom queries and their 'editibility'
|
|
* autocompletion of tablenames (& columns?)
|
|
* csv export for iuliana
|
|
* to insert something, DataModel must use QVariant as data storage !
|
|
*
|
|
*/
|
|
|
|
#include "BrowserWnd.h"
|
|
|
|
#include <nglapplication/nglapplication.h>
|
|
#include <QtCore/QDebug>
|
|
#include <QtCore/QTimer>
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
QStringList params;
|
|
params << QStringLiteral("--darkStyle");
|
|
|
|
int setDarkStyle = false;
|
|
|
|
for (int i = 0; i < argc; i++)
|
|
{
|
|
switch (params.indexOf(QString::fromUtf8(argv[i])))
|
|
{
|
|
case 0: // darkStyle
|
|
{
|
|
setDarkStyle = true;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
if (setDarkStyle)
|
|
{
|
|
qunsetenv("TDS_DEVEL"); // no dark style
|
|
}
|
|
else
|
|
{
|
|
qputenv("TDS_DEVEL", "1");
|
|
}
|
|
|
|
|
|
|
|
NGLApplication a(argc, argv);
|
|
a.createLogger("SQLBrowser", "log4cxx_sqlbrowser.props");
|
|
|
|
BrowserWnd browserWnd;
|
|
QTimer::singleShot(0, &browserWnd, &BrowserWnd::startConnect);
|
|
|
|
return a.exec();
|
|
}
|