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).
44 lines
1.1 KiB
Plaintext
Executable File
44 lines
1.1 KiB
Plaintext
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Convert DSS enumerations to translatable strings
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
{% autoescape off %}
|
|
// filename: {{ namespace_abbr }}_translation.cpp
|
|
|
|
#include "{{ namespace_abbr }}_translation.h"
|
|
#include <QCoreApplication>
|
|
|
|
namespace {{ namespace }}
|
|
{
|
|
{% for idl_enum in idl_enums %}
|
|
//
|
|
// {{ idl_enum.name }}
|
|
//
|
|
QString toString({{ idl_enum.name }} state)
|
|
{
|
|
switch(state)
|
|
{{% for idl_member in idl_enum.member %}
|
|
case {{ idl_enum.name }}::{{ idl_member.key }}: return QCoreApplication::translate("{{ idl_enum.name }}", "{{ idl_member.key }}");
|
|
{% endfor %}
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("{{ idl_enum.name }}", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
{% endfor %}
|
|
|
|
{% for dt in dataTopics.member %}{% if dt.hasTrColumns %}{% for tr in dt.trColumns %}
|
|
// {{ dt.name }}::{{ tr.name }}
|
|
QString tr{{ dt.name }}{{ tr.nameCc }}(const std::string &text)
|
|
{
|
|
return QCoreApplication::translate("{{ dt.name }}", text.c_str(), "{{ tr.name }}");
|
|
}
|
|
{% endfor %}{% endif %}{% endfor %}
|
|
|
|
} // namespace {{ namespace }}
|
|
|
|
{% endautoescape %}
|