Lts/Common: drop the 17 submodules excluded from the RELEASE_BUILD branch of Lts/Common/CMakeLists.txt (CodeGen, LtsAppManager, LtsBotan, LtsCoordinate, LtsElevation, LtsLogin, LtsMultiMonitor, LtsPluginManager, LtsPrinting, LtsProjectionWorkstation, LtsScriptTimeline, LtsSession, LtsTimeline, LtsTimelineClassic, LtsVirtualKeyboard, LtsWidgets, TopicEditorBase). Only the 13 subdirectories actually built remain. TrainingAreaBase: drop sources of targets excluded by IF(NOT RELEASE_BUILD) / IF(BUILD_RTI) (svcTabClient, svcTabServer, svcTrainingAreaBase exe, RecordReplayPlugin customization) and the 7 plugin directories not added in the release path (AdlerJson, ApacheHlaJson, DebugJsonDir, HlaJson, Nmea, UAS, WlsTetra). Only tabTelegrams, svcTabCommon and the TetraJson plugin are compiled. Cross-checked: no kept compiled source includes headers from the removed modules (GuiPluginInterface - the only LtsWidgets consumer - is itself NOT RELEASE_BUILD-guarded).
58 lines
1.1 KiB
C++
Executable File
58 lines
1.1 KiB
C++
Executable File
|
|
|
|
|
|
#include "settings.h"
|
|
|
|
#include <nglsettings/nglsettings_settings.h>
|
|
#include <ngltools/ngltools_filesystem.h>
|
|
#include <QtCore/QSettings>
|
|
#include <QtCore/QJsonDocument>
|
|
|
|
#include "LtsUtils/LtsUtilsCore/lts_portrange.h"
|
|
|
|
namespace TrainingAreaBase
|
|
{
|
|
class NGLSettingsClass : public NGL::Settings
|
|
{
|
|
public:
|
|
NGLSettingsClass()
|
|
: NGL::Settings(s_iniFile.isEmpty() ? NGL::findProjectConfigFile() : s_iniFile)
|
|
{}
|
|
static void setIniFile(const QString &fn)
|
|
{
|
|
s_iniFile = fn;
|
|
}
|
|
static QString s_iniFile;
|
|
};
|
|
QString NGLSettingsClass::s_iniFile;
|
|
Q_GLOBAL_STATIC(NGLSettingsClass, s)
|
|
|
|
|
|
NGL::Settings *Settings::settings()
|
|
{
|
|
return s();
|
|
}
|
|
|
|
|
|
void Settings::setIniFile(const QString &ini)
|
|
{
|
|
NGLSettingsClass::setIniFile(ini);
|
|
}
|
|
|
|
QString Settings::rxDir()
|
|
{
|
|
return s()->zsks_rxPath();
|
|
}
|
|
|
|
QString Settings::txDir()
|
|
{
|
|
return s()->zsks_txPath();
|
|
}
|
|
|
|
QPair<quint16, quint16> Settings::getWebSocketServerPortRange(int type)
|
|
{
|
|
return LtsUtils::fromQPoint(settings()->settings()->value(QString(QStringLiteral("TAB/webSocketServerPortRange/%1")).arg(type), QPoint()).toPoint());
|
|
}
|
|
|
|
}
|