Major Changes:
- Merged latest Qt5 devel content from dlbo (292 files changed, 7 new dirs)
- Consolidated forward-declarations and include folders
- Removed unneeded modules per Niklas' repo check list
Build System Fixes:
- Fixed CMake VERSION_GREATER syntax in ParticipantManagement/CMakeLists.txt
- Added VLC packages (libvlc-dev, vlc-plugin-base) to docker_build.sh
- Added PostgreSQL dev packages (libpq-dev, postgresql-server-dev-all) to Dockerfile
- Fixed locale warnings (ANSI_X3.4-1968 → C.UTF-8)
- Fixed ArcGIS SDK path warnings when BUILD_ARCGIS=OFF
Code Generation Fixes:
- Fixed IDL enum collisions (PortType→CorePortType/DdsutPortType, PdmEventType)
- Fixed Grantlee template svc_translation.cpp.grantlee:
- Changed {{ idl_enum.name }}_def:: to {{ idl_enum.name }}::
- Fixed .underlying() calls for C++11 scoped enums (enum class)
- Removed generated files from repo (moc_*, *_dtc.h, *_ftc.h)
Validation:
- BUILD_RTI=ON: SUCCESS
- BUILD_RTI=OFF: SUCCESS
- C++17 standard maintained for RTI 7.7 compatibility
- Ubuntu 26.04 Docker environment verified
Remaining Warnings (expected):
- BgViewer, KDChart, KDReports, Poppler-Qt6 not found (optional features)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
606 lines
29 KiB
C++
606 lines
29 KiB
C++
/**
|
|
* @RDE_HEADER@
|
|
* Convert DSS enumerations to translatable strings
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
|
|
// filename: tab_translation.cpp
|
|
|
|
#include "tab_translation.h"
|
|
#include <QCoreApplication>
|
|
|
|
namespace TrainingAreaBase
|
|
{
|
|
|
|
//
|
|
// AgdusHwMode
|
|
//
|
|
QString toString(AgdusHwMode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case AgdusHwMode::withoutHelmetWithoutVest: return QCoreApplication::translate("AgdusHwMode", "withoutHelmetWithoutVest");
|
|
case AgdusHwMode::withHelmetWithoutVest: return QCoreApplication::translate("AgdusHwMode", "withHelmetWithoutVest");
|
|
case AgdusHwMode::withHelmetWithVest: return QCoreApplication::translate("AgdusHwMode", "withHelmetWithVest");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("AgdusHwMode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// FaultPositionHandling
|
|
//
|
|
QString toString(FaultPositionHandling state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case FaultPositionHandling::FaultPositionHandling_NoChange: return QCoreApplication::translate("FaultPositionHandling", "FaultPositionHandling_NoChange");
|
|
case FaultPositionHandling::NoPositions: return QCoreApplication::translate("FaultPositionHandling", "NoPositions");
|
|
case FaultPositionHandling::InvalidPositionValue: return QCoreApplication::translate("FaultPositionHandling", "InvalidPositionValue");
|
|
case FaultPositionHandling::EstimatedPosition: return QCoreApplication::translate("FaultPositionHandling", "EstimatedPosition");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("FaultPositionHandling", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// FirMode
|
|
//
|
|
QString toString(FirMode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case FirMode::NoFir: return QCoreApplication::translate("FirMode", "NoFir");
|
|
case FirMode::Fir: return QCoreApplication::translate("FirMode", "Fir");
|
|
case FirMode::FirSpzMarder: return QCoreApplication::translate("FirMode", "FirSpzMarder");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("FirMode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L19_Oi
|
|
//
|
|
QString toString(L19_Oi state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L19_Oi::L19_Oi_Empty: return QCoreApplication::translate("L19_Oi", "L19_Oi_Empty");
|
|
case L19_Oi::L19_Oi_F1: return QCoreApplication::translate("L19_Oi", "L19_Oi_F1");
|
|
case L19_Oi::L19_Oi_F2: return QCoreApplication::translate("L19_Oi", "L19_Oi_F2");
|
|
case L19_Oi::L19_Oi_F3: return QCoreApplication::translate("L19_Oi", "L19_Oi_F3");
|
|
case L19_Oi::L19_Oi_F4: return QCoreApplication::translate("L19_Oi", "L19_Oi_F4");
|
|
case L19_Oi::L19_Oi_F5: return QCoreApplication::translate("L19_Oi", "L19_Oi_F5");
|
|
case L19_Oi::L19_Oi_F6: return QCoreApplication::translate("L19_Oi", "L19_Oi_F6");
|
|
case L19_Oi::L19_Oi_F7: return QCoreApplication::translate("L19_Oi", "L19_Oi_F7");
|
|
case L19_Oi::L19_Oi_F8: return QCoreApplication::translate("L19_Oi", "L19_Oi_F8");
|
|
case L19_Oi::L19_Oi_F9: return QCoreApplication::translate("L19_Oi", "L19_Oi_F9");
|
|
case L19_Oi::L19_Oi_L: return QCoreApplication::translate("L19_Oi", "L19_Oi_L");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L19_Oi", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L22_FireHaltCategory
|
|
//
|
|
QString toString(L22_FireHaltCategory state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L22_FireHaltCategory::L22_FireHaltCategory_A: return QCoreApplication::translate("L22_FireHaltCategory", "L22_FireHaltCategory_A");
|
|
case L22_FireHaltCategory::L22_FireHaltCategory_R: return QCoreApplication::translate("L22_FireHaltCategory", "L22_FireHaltCategory_R");
|
|
case L22_FireHaltCategory::L22_FireHaltCategory_E: return QCoreApplication::translate("L22_FireHaltCategory", "L22_FireHaltCategory_E");
|
|
case L22_FireHaltCategory::L22_FireHaltCategory_C: return QCoreApplication::translate("L22_FireHaltCategory", "L22_FireHaltCategory_C");
|
|
case L22_FireHaltCategory::L22_FireHaltCategory_F: return QCoreApplication::translate("L22_FireHaltCategory", "L22_FireHaltCategory_F");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L22_FireHaltCategory", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L25_KindGuidingLine
|
|
//
|
|
QString toString(L25_KindGuidingLine state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L25_KindGuidingLine::FFA: return QCoreApplication::translate("L25_KindGuidingLine", "FFA");
|
|
case L25_KindGuidingLine::NFA: return QCoreApplication::translate("L25_KindGuidingLine", "NFA");
|
|
case L25_KindGuidingLine::RFA: return QCoreApplication::translate("L25_KindGuidingLine", "RFA");
|
|
case L25_KindGuidingLine::FSCL: return QCoreApplication::translate("L25_KindGuidingLine", "FSCL");
|
|
case L25_KindGuidingLine::RFL: return QCoreApplication::translate("L25_KindGuidingLine", "RFL");
|
|
case L25_KindGuidingLine::FSSL: return QCoreApplication::translate("L25_KindGuidingLine", "FSSL");
|
|
case L25_KindGuidingLine::NFL: return QCoreApplication::translate("L25_KindGuidingLine", "NFL");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L25_KindGuidingLine", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L26_EffectingSystemType
|
|
//
|
|
QString toString(L26_EffectingSystemType state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L26_EffectingSystemType::Pzh2000: return QCoreApplication::translate("L26_EffectingSystemType", "Pzh2000");
|
|
case L26_EffectingSystemType::RRohr: return QCoreApplication::translate("L26_EffectingSystemType", "RRohr");
|
|
case L26_EffectingSystemType::Mars: return QCoreApplication::translate("L26_EffectingSystemType", "Mars");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L26_EffectingSystemType", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L27_EffectorId
|
|
//
|
|
QString toString(L27_EffectorId state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L27_EffectorId::A: return QCoreApplication::translate("L27_EffectorId", "A");
|
|
case L27_EffectorId::B: return QCoreApplication::translate("L27_EffectorId", "B");
|
|
case L27_EffectorId::C: return QCoreApplication::translate("L27_EffectorId", "C");
|
|
case L27_EffectorId::D: return QCoreApplication::translate("L27_EffectorId", "D");
|
|
case L27_EffectorId::E: return QCoreApplication::translate("L27_EffectorId", "E");
|
|
case L27_EffectorId::F: return QCoreApplication::translate("L27_EffectorId", "F");
|
|
case L27_EffectorId::G: return QCoreApplication::translate("L27_EffectorId", "G");
|
|
case L27_EffectorId::H: return QCoreApplication::translate("L27_EffectorId", "H");
|
|
case L27_EffectorId::I: return QCoreApplication::translate("L27_EffectorId", "I");
|
|
case L27_EffectorId::J: return QCoreApplication::translate("L27_EffectorId", "J");
|
|
case L27_EffectorId::K: return QCoreApplication::translate("L27_EffectorId", "K");
|
|
case L27_EffectorId::L: return QCoreApplication::translate("L27_EffectorId", "L");
|
|
case L27_EffectorId::M: return QCoreApplication::translate("L27_EffectorId", "M");
|
|
case L27_EffectorId::N: return QCoreApplication::translate("L27_EffectorId", "N");
|
|
case L27_EffectorId::O: return QCoreApplication::translate("L27_EffectorId", "O");
|
|
case L27_EffectorId::P: return QCoreApplication::translate("L27_EffectorId", "P");
|
|
case L27_EffectorId::Q: return QCoreApplication::translate("L27_EffectorId", "Q");
|
|
case L27_EffectorId::R: return QCoreApplication::translate("L27_EffectorId", "R");
|
|
case L27_EffectorId::S: return QCoreApplication::translate("L27_EffectorId", "S");
|
|
case L27_EffectorId::T: return QCoreApplication::translate("L27_EffectorId", "T");
|
|
case L27_EffectorId::U: return QCoreApplication::translate("L27_EffectorId", "U");
|
|
case L27_EffectorId::V: return QCoreApplication::translate("L27_EffectorId", "V");
|
|
case L27_EffectorId::W: return QCoreApplication::translate("L27_EffectorId", "W");
|
|
case L27_EffectorId::X: return QCoreApplication::translate("L27_EffectorId", "X");
|
|
case L27_EffectorId::Y: return QCoreApplication::translate("L27_EffectorId", "Y");
|
|
case L27_EffectorId::Z: return QCoreApplication::translate("L27_EffectorId", "Z");
|
|
case L27_EffectorId::B1: return QCoreApplication::translate("L27_EffectorId", "B1");
|
|
case L27_EffectorId::B2: return QCoreApplication::translate("L27_EffectorId", "B2");
|
|
case L27_EffectorId::B3: return QCoreApplication::translate("L27_EffectorId", "B3");
|
|
case L27_EffectorId::B4: return QCoreApplication::translate("L27_EffectorId", "B4");
|
|
case L27_EffectorId::B5: return QCoreApplication::translate("L27_EffectorId", "B5");
|
|
case L27_EffectorId::B6: return QCoreApplication::translate("L27_EffectorId", "B6");
|
|
case L27_EffectorId::B7: return QCoreApplication::translate("L27_EffectorId", "B7");
|
|
case L27_EffectorId::B8: return QCoreApplication::translate("L27_EffectorId", "B8");
|
|
case L27_EffectorId::C1: return QCoreApplication::translate("L27_EffectorId", "C1");
|
|
case L27_EffectorId::C2: return QCoreApplication::translate("L27_EffectorId", "C2");
|
|
case L27_EffectorId::C3: return QCoreApplication::translate("L27_EffectorId", "C3");
|
|
case L27_EffectorId::C4: return QCoreApplication::translate("L27_EffectorId", "C4");
|
|
case L27_EffectorId::C5: return QCoreApplication::translate("L27_EffectorId", "C5");
|
|
case L27_EffectorId::C6: return QCoreApplication::translate("L27_EffectorId", "C6");
|
|
case L27_EffectorId::C7: return QCoreApplication::translate("L27_EffectorId", "C7");
|
|
case L27_EffectorId::C8: return QCoreApplication::translate("L27_EffectorId", "C8");
|
|
case L27_EffectorId::NO_211: return QCoreApplication::translate("L27_EffectorId", "NO_211");
|
|
case L27_EffectorId::NO_212: return QCoreApplication::translate("L27_EffectorId", "NO_212");
|
|
case L27_EffectorId::NO_213: return QCoreApplication::translate("L27_EffectorId", "NO_213");
|
|
case L27_EffectorId::NO_214: return QCoreApplication::translate("L27_EffectorId", "NO_214");
|
|
case L27_EffectorId::NO_215: return QCoreApplication::translate("L27_EffectorId", "NO_215");
|
|
case L27_EffectorId::NO_216: return QCoreApplication::translate("L27_EffectorId", "NO_216");
|
|
case L27_EffectorId::NO_217: return QCoreApplication::translate("L27_EffectorId", "NO_217");
|
|
case L27_EffectorId::NO_218: return QCoreApplication::translate("L27_EffectorId", "NO_218");
|
|
case L27_EffectorId::NO_221: return QCoreApplication::translate("L27_EffectorId", "NO_221");
|
|
case L27_EffectorId::NO_222: return QCoreApplication::translate("L27_EffectorId", "NO_222");
|
|
case L27_EffectorId::NO_223: return QCoreApplication::translate("L27_EffectorId", "NO_223");
|
|
case L27_EffectorId::NO_224: return QCoreApplication::translate("L27_EffectorId", "NO_224");
|
|
case L27_EffectorId::NO_225: return QCoreApplication::translate("L27_EffectorId", "NO_225");
|
|
case L27_EffectorId::NO_226: return QCoreApplication::translate("L27_EffectorId", "NO_226");
|
|
case L27_EffectorId::NO_227: return QCoreApplication::translate("L27_EffectorId", "NO_227");
|
|
case L27_EffectorId::NO_228: return QCoreApplication::translate("L27_EffectorId", "NO_228");
|
|
case L27_EffectorId::NO_311: return QCoreApplication::translate("L27_EffectorId", "NO_311");
|
|
case L27_EffectorId::NO_312: return QCoreApplication::translate("L27_EffectorId", "NO_312");
|
|
case L27_EffectorId::NO_313: return QCoreApplication::translate("L27_EffectorId", "NO_313");
|
|
case L27_EffectorId::NO_314: return QCoreApplication::translate("L27_EffectorId", "NO_314");
|
|
case L27_EffectorId::NO_315: return QCoreApplication::translate("L27_EffectorId", "NO_315");
|
|
case L27_EffectorId::NO_316: return QCoreApplication::translate("L27_EffectorId", "NO_316");
|
|
case L27_EffectorId::NO_317: return QCoreApplication::translate("L27_EffectorId", "NO_317");
|
|
case L27_EffectorId::NO_318: return QCoreApplication::translate("L27_EffectorId", "NO_318");
|
|
case L27_EffectorId::NO_321: return QCoreApplication::translate("L27_EffectorId", "NO_321");
|
|
case L27_EffectorId::NO_322: return QCoreApplication::translate("L27_EffectorId", "NO_322");
|
|
case L27_EffectorId::NO_323: return QCoreApplication::translate("L27_EffectorId", "NO_323");
|
|
case L27_EffectorId::NO_324: return QCoreApplication::translate("L27_EffectorId", "NO_324");
|
|
case L27_EffectorId::NO_325: return QCoreApplication::translate("L27_EffectorId", "NO_325");
|
|
case L27_EffectorId::NO_326: return QCoreApplication::translate("L27_EffectorId", "NO_326");
|
|
case L27_EffectorId::NO_327: return QCoreApplication::translate("L27_EffectorId", "NO_327");
|
|
case L27_EffectorId::NO_328: return QCoreApplication::translate("L27_EffectorId", "NO_328");
|
|
case L27_EffectorId::NO_411: return QCoreApplication::translate("L27_EffectorId", "NO_411");
|
|
case L27_EffectorId::NO_412: return QCoreApplication::translate("L27_EffectorId", "NO_412");
|
|
case L27_EffectorId::NO_413: return QCoreApplication::translate("L27_EffectorId", "NO_413");
|
|
case L27_EffectorId::NO_414: return QCoreApplication::translate("L27_EffectorId", "NO_414");
|
|
case L27_EffectorId::NO_415: return QCoreApplication::translate("L27_EffectorId", "NO_415");
|
|
case L27_EffectorId::NO_416: return QCoreApplication::translate("L27_EffectorId", "NO_416");
|
|
case L27_EffectorId::NO_417: return QCoreApplication::translate("L27_EffectorId", "NO_417");
|
|
case L27_EffectorId::NO_418: return QCoreApplication::translate("L27_EffectorId", "NO_418");
|
|
case L27_EffectorId::NO_421: return QCoreApplication::translate("L27_EffectorId", "NO_421");
|
|
case L27_EffectorId::NO_422: return QCoreApplication::translate("L27_EffectorId", "NO_422");
|
|
case L27_EffectorId::NO_423: return QCoreApplication::translate("L27_EffectorId", "NO_423");
|
|
case L27_EffectorId::NO_424: return QCoreApplication::translate("L27_EffectorId", "NO_424");
|
|
case L27_EffectorId::NO_425: return QCoreApplication::translate("L27_EffectorId", "NO_425");
|
|
case L27_EffectorId::NO_426: return QCoreApplication::translate("L27_EffectorId", "NO_426");
|
|
case L27_EffectorId::NO_427: return QCoreApplication::translate("L27_EffectorId", "NO_427");
|
|
case L27_EffectorId::NO_428: return QCoreApplication::translate("L27_EffectorId", "NO_428");
|
|
case L27_EffectorId::NO_511: return QCoreApplication::translate("L27_EffectorId", "NO_511");
|
|
case L27_EffectorId::NO_512: return QCoreApplication::translate("L27_EffectorId", "NO_512");
|
|
case L27_EffectorId::NO_513: return QCoreApplication::translate("L27_EffectorId", "NO_513");
|
|
case L27_EffectorId::NO_514: return QCoreApplication::translate("L27_EffectorId", "NO_514");
|
|
case L27_EffectorId::NO_515: return QCoreApplication::translate("L27_EffectorId", "NO_515");
|
|
case L27_EffectorId::NO_516: return QCoreApplication::translate("L27_EffectorId", "NO_516");
|
|
case L27_EffectorId::NO_517: return QCoreApplication::translate("L27_EffectorId", "NO_517");
|
|
case L27_EffectorId::NO_518: return QCoreApplication::translate("L27_EffectorId", "NO_518");
|
|
case L27_EffectorId::NO_521: return QCoreApplication::translate("L27_EffectorId", "NO_521");
|
|
case L27_EffectorId::NO_522: return QCoreApplication::translate("L27_EffectorId", "NO_522");
|
|
case L27_EffectorId::NO_523: return QCoreApplication::translate("L27_EffectorId", "NO_523");
|
|
case L27_EffectorId::NO_524: return QCoreApplication::translate("L27_EffectorId", "NO_524");
|
|
case L27_EffectorId::NO_525: return QCoreApplication::translate("L27_EffectorId", "NO_525");
|
|
case L27_EffectorId::NO_526: return QCoreApplication::translate("L27_EffectorId", "NO_526");
|
|
case L27_EffectorId::NO_527: return QCoreApplication::translate("L27_EffectorId", "NO_527");
|
|
case L27_EffectorId::NO_528: return QCoreApplication::translate("L27_EffectorId", "NO_528");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L27_EffectorId", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L28_Status
|
|
//
|
|
QString toString(L28_Status state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L28_Status::NichtEinsatzbereit: return QCoreApplication::translate("L28_Status", "NichtEinsatzbereit");
|
|
case L28_Status::Einsatzbereit: return QCoreApplication::translate("L28_Status", "Einsatzbereit");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L28_Status", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L4_TargetGeometry
|
|
//
|
|
QString toString(L4_TargetGeometry state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L4_TargetGeometry::Point: return QCoreApplication::translate("L4_TargetGeometry", "Point");
|
|
case L4_TargetGeometry::Area: return QCoreApplication::translate("L4_TargetGeometry", "Area");
|
|
case L4_TargetGeometry::Radial: return QCoreApplication::translate("L4_TargetGeometry", "Radial");
|
|
case L4_TargetGeometry::Linear: return QCoreApplication::translate("L4_TargetGeometry", "Linear");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L4_TargetGeometry", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// L7_Request
|
|
//
|
|
QString toString(L7_Request state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case L7_Request::ABR: return QCoreApplication::translate("L7_Request", "ABR");
|
|
case L7_Request::BEK: return QCoreApplication::translate("L7_Request", "BEK");
|
|
case L7_Request::BEL: return QCoreApplication::translate("L7_Request", "BEL");
|
|
case L7_Request::BLE: return QCoreApplication::translate("L7_Request", "BLE");
|
|
case L7_Request::NIE: return QCoreApplication::translate("L7_Request", "NIE");
|
|
case L7_Request::SPE: return QCoreApplication::translate("L7_Request", "SPE");
|
|
case L7_Request::STO: return QCoreApplication::translate("L7_Request", "STO");
|
|
case L7_Request::UBW: return QCoreApplication::translate("L7_Request", "UBW");
|
|
case L7_Request::VER: return QCoreApplication::translate("L7_Request", "VER");
|
|
case L7_Request::ZSL: return QCoreApplication::translate("L7_Request", "ZSL");
|
|
case L7_Request::ZER: return QCoreApplication::translate("L7_Request", "ZER");
|
|
case L7_Request::BWL: return QCoreApplication::translate("L7_Request", "BWL");
|
|
case L7_Request::MRK: return QCoreApplication::translate("L7_Request", "MRK");
|
|
case L7_Request::WRN: return QCoreApplication::translate("L7_Request", "WRN");
|
|
case L7_Request::BLI: return QCoreApplication::translate("L7_Request", "BLI");
|
|
case L7_Request::BEI: return QCoreApplication::translate("L7_Request", "BEI");
|
|
case L7_Request::BEW: return QCoreApplication::translate("L7_Request", "BEW");
|
|
case L7_Request::BEO: return QCoreApplication::translate("L7_Request", "BEO");
|
|
case L7_Request::BLW: return QCoreApplication::translate("L7_Request", "BLW");
|
|
case L7_Request::MBE: return QCoreApplication::translate("L7_Request", "MBE");
|
|
case L7_Request::MBL: return QCoreApplication::translate("L7_Request", "MBL");
|
|
case L7_Request::MIR: return QCoreApplication::translate("L7_Request", "MIR");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("L7_Request", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// MineHandgrenadeSensorMode
|
|
//
|
|
QString toString(MineHandgrenadeSensorMode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case MineHandgrenadeSensorMode::PersonellMode: return QCoreApplication::translate("MineHandgrenadeSensorMode", "PersonellMode");
|
|
case MineHandgrenadeSensorMode::NormalVehicleMode: return QCoreApplication::translate("MineHandgrenadeSensorMode", "NormalVehicleMode");
|
|
case MineHandgrenadeSensorMode::OcVehicleMode: return QCoreApplication::translate("MineHandgrenadeSensorMode", "OcVehicleMode");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("MineHandgrenadeSensorMode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// MinelayerMode
|
|
//
|
|
QString toString(MinelayerMode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case MinelayerMode::NoMinelayerDevice: return QCoreApplication::translate("MinelayerMode", "NoMinelayerDevice");
|
|
case MinelayerMode::MinelayerTrailer: return QCoreApplication::translate("MinelayerMode", "MinelayerTrailer");
|
|
case MinelayerMode::MinelayerThrower: return QCoreApplication::translate("MinelayerMode", "MinelayerThrower");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("MinelayerMode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// OpticalCode
|
|
//
|
|
QString toString(OpticalCode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case OpticalCode::OpticalCode_NoChange: return QCoreApplication::translate("OpticalCode", "OpticalCode_NoChange");
|
|
case OpticalCode::Osag10: return QCoreApplication::translate("OpticalCode", "Osag10");
|
|
case OpticalCode::Osag20Basic: return QCoreApplication::translate("OpticalCode", "Osag20Basic");
|
|
case OpticalCode::SisoStandard: return QCoreApplication::translate("OpticalCode", "SisoStandard");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("OpticalCode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// PositionUpdateIntervall
|
|
//
|
|
QString toString(PositionUpdateIntervall state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case PositionUpdateIntervall::Vehicle: return QCoreApplication::translate("PositionUpdateIntervall", "Vehicle");
|
|
case PositionUpdateIntervall::Personell: return QCoreApplication::translate("PositionUpdateIntervall", "Personell");
|
|
case PositionUpdateIntervall::Aircraft: return QCoreApplication::translate("PositionUpdateIntervall", "Aircraft");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("PositionUpdateIntervall", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// PowerMethod
|
|
//
|
|
QString toString(PowerMethod state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case PowerMethod::Unknown: return QCoreApplication::translate("PowerMethod", "Unknown");
|
|
case PowerMethod::PowerOn: return QCoreApplication::translate("PowerMethod", "PowerOn");
|
|
case PowerMethod::PowerOff: return QCoreApplication::translate("PowerMethod", "PowerOff");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("PowerMethod", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// ServiceControlEnum
|
|
//
|
|
QString toString(ServiceControlEnum state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case ServiceControlEnum::PRESHUTDOWN: return QCoreApplication::translate("ServiceControlEnum", "PRESHUTDOWN");
|
|
case ServiceControlEnum::SHUTDOWN: return QCoreApplication::translate("ServiceControlEnum", "SHUTDOWN");
|
|
case ServiceControlEnum::STOP: return QCoreApplication::translate("ServiceControlEnum", "STOP");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("ServiceControlEnum", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// SpecialSensorStandardMode
|
|
//
|
|
QString toString(SpecialSensorStandardMode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case SpecialSensorStandardMode::NoSpecialSensorStandard: return QCoreApplication::translate("SpecialSensorStandardMode", "NoSpecialSensorStandard");
|
|
case SpecialSensorStandardMode::ZABC: return QCoreApplication::translate("SpecialSensorStandardMode", "ZABC");
|
|
case SpecialSensorStandardMode::CSF: return QCoreApplication::translate("SpecialSensorStandardMode", "CSF");
|
|
case SpecialSensorStandardMode::PzBr: return QCoreApplication::translate("SpecialSensorStandardMode", "PzBr");
|
|
case SpecialSensorStandardMode::MRF: return QCoreApplication::translate("SpecialSensorStandardMode", "MRF");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("SpecialSensorStandardMode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// SwitichingPositionIntervall
|
|
//
|
|
QString toString(SwitichingPositionIntervall state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case SwitichingPositionIntervall::SwitichingPositionIntervall_NoChange: return QCoreApplication::translate("SwitichingPositionIntervall", "SwitichingPositionIntervall_NoChange");
|
|
case SwitichingPositionIntervall::On: return QCoreApplication::translate("SwitichingPositionIntervall", "On");
|
|
case SwitichingPositionIntervall::Off: return QCoreApplication::translate("SwitichingPositionIntervall", "Off");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("SwitichingPositionIntervall", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// ThrowingType
|
|
//
|
|
QString toString(ThrowingType state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case ThrowingType::Straight: return QCoreApplication::translate("ThrowingType", "Straight");
|
|
case ThrowingType::Right: return QCoreApplication::translate("ThrowingType", "Right");
|
|
case ThrowingType::Left: return QCoreApplication::translate("ThrowingType", "Left");
|
|
case ThrowingType::LeftAndRight: return QCoreApplication::translate("ThrowingType", "LeftAndRight");
|
|
case ThrowingType::SingleRight: return QCoreApplication::translate("ThrowingType", "SingleRight");
|
|
case ThrowingType::SingleLeft: return QCoreApplication::translate("ThrowingType", "SingleLeft");
|
|
case ThrowingType::SingleLeftAndRight: return QCoreApplication::translate("ThrowingType", "SingleLeftAndRight");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("ThrowingType", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// BlockedAreaMode
|
|
//
|
|
QString toString(BlockedAreaMode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case BlockedAreaMode::Enter: return QCoreApplication::translate("BlockedAreaMode", "Enter");
|
|
case BlockedAreaMode::Leave: return QCoreApplication::translate("BlockedAreaMode", "Leave");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("BlockedAreaMode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// ControlDataCode
|
|
//
|
|
QString toString(ControlDataCode state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case ControlDataCode::rsv: return QCoreApplication::translate("ControlDataCode", "rsv");
|
|
case ControlDataCode::Flashing: return QCoreApplication::translate("ControlDataCode", "Flashing");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("ControlDataCode", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// Qualification
|
|
//
|
|
QString toString(Qualification state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case Qualification::NotDefined: return QCoreApplication::translate("Qualification", "NotDefined");
|
|
case Qualification::FAA: return QCoreApplication::translate("Qualification", "FAA");
|
|
case Qualification::FAB: return QCoreApplication::translate("Qualification", "FAB");
|
|
case Qualification::SANPers: return QCoreApplication::translate("Qualification", "SANPers");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("Qualification", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// SanitationResult
|
|
//
|
|
QString toString(SanitationResult state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case SanitationResult::NoEffect: return QCoreApplication::translate("SanitationResult", "NoEffect");
|
|
case SanitationResult::Unhandled: return QCoreApplication::translate("SanitationResult", "Unhandled");
|
|
case SanitationResult::Insufficient: return QCoreApplication::translate("SanitationResult", "Insufficient");
|
|
case SanitationResult::Sufficient: return QCoreApplication::translate("SanitationResult", "Sufficient");
|
|
case SanitationResult::Optimal: return QCoreApplication::translate("SanitationResult", "Optimal");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("SanitationResult", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// SanitationEvaluation
|
|
//
|
|
QString toString(SanitationEvaluation state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case SanitationEvaluation::NotApplicable: return QCoreApplication::translate("SanitationEvaluation", "NotApplicable");
|
|
case SanitationEvaluation::Okay: return QCoreApplication::translate("SanitationEvaluation", "Okay");
|
|
case SanitationEvaluation::PartlyWrong: return QCoreApplication::translate("SanitationEvaluation", "PartlyWrong");
|
|
case SanitationEvaluation::Wrong: return QCoreApplication::translate("SanitationEvaluation", "Wrong");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("SanitationEvaluation", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// ShootingResult
|
|
//
|
|
QString toString(ShootingResult state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case ShootingResult::NearMiss: return QCoreApplication::translate("ShootingResult", "NearMiss");
|
|
case ShootingResult::Hit: return QCoreApplication::translate("ShootingResult", "Hit");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("ShootingResult", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// TrajectoryError
|
|
//
|
|
QString toString(TrajectoryError state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case TrajectoryError::Ok: return QCoreApplication::translate("TrajectoryError", "Ok");
|
|
case TrajectoryError::BelowMinimalDistance: return QCoreApplication::translate("TrajectoryError", "BelowMinimalDistance");
|
|
case TrajectoryError::AboveMaximallDistance: return QCoreApplication::translate("TrajectoryError", "AboveMaximallDistance");
|
|
case TrajectoryError::Invalid: return QCoreApplication::translate("TrajectoryError", "Invalid");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("TrajectoryError", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// TreatmentResult
|
|
//
|
|
QString toString(TreatmentResult state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case TreatmentResult::None: return QCoreApplication::translate("TreatmentResult", "None");
|
|
case TreatmentResult::Success: return QCoreApplication::translate("TreatmentResult", "Success");
|
|
case TreatmentResult::Stabilized: return QCoreApplication::translate("TreatmentResult", "Stabilized");
|
|
case TreatmentResult::Failure: return QCoreApplication::translate("TreatmentResult", "Failure");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("TreatmentResult", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
//
|
|
// WeaponSystemType
|
|
//
|
|
QString toString(WeaponSystemType state)
|
|
{
|
|
switch(state)
|
|
{
|
|
case WeaponSystemType::PZH: return QCoreApplication::translate("WeaponSystemType", "PZH");
|
|
case WeaponSystemType::MRS: return QCoreApplication::translate("WeaponSystemType", "MRS");
|
|
case WeaponSystemType::MARS: return QCoreApplication::translate("WeaponSystemType", "MARS");
|
|
default: break;
|
|
}
|
|
return QCoreApplication::translate("WeaponSystemType", "Unknown (%1)").arg(static_cast<int>(state));
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace TrainingAreaBase
|
|
|
|
|