Qt6 Migration: BUILD_RTI guards und CMake fixes

- BUILD_RTI conditional compilation für RTI Connext DDS dependencies
- Namespace fixes in core_dtc.h (Core:: → DDS::Core::)
- CMakeLists.txt: BUILD_RTI option und conditional dependencies
- Handler minelayer: namespace closing mit BUILD_RTI guard
- Build erfolgreich mit BUILD_RTI=OFF validiert

Signed-off-by: Torsten Wierschin <torsten.wierschin@life-maps.com>
This commit is contained in:
torsten committed 2026-08-21 18:37:18 +02:00
1 parent c599be63e3
commit 950d669538
422 files changed
+1012 -598

No files matched your search

@@ -52,6 +52,7 @@ SET(CMAKE_INCLUDE_CURRENT_DIR ON)
include_directories(${CMAKE_SOURCE_DIR}/include) include_directories(${CMAKE_SOURCE_DIR}/include)
# Include directory for generated export headers # Include directory for generated export headers
include_directories(${CMAKE_BINARY_DIR}) include_directories(${CMAKE_BINARY_DIR})
include_directories(${CMAKE_BINARY_DIR}/Z/src/NGLLogger)
# Include directories for external dependencies and internal modules # Include directories for external dependencies and internal modules
include_directories(${CMAKE_SOURCE_DIR}/Z/src/NGLLogger) include_directories(${CMAKE_SOURCE_DIR}/Z/src/NGLLogger)
include_directories(${CMAKE_SOURCE_DIR}/Z/src/ngltools) include_directories(${CMAKE_SOURCE_DIR}/Z/src/ngltools)
@@ -59,6 +60,7 @@ include_directories(${CMAKE_SOURCE_DIR}/Lts/Viewer/SituationMap/Symbology)
include_directories(${CMAKE_SOURCE_DIR}/Lts/Viewer/LtsDataView) include_directories(${CMAKE_SOURCE_DIR}/Lts/Viewer/LtsDataView)
include_directories(${CMAKE_SOURCE_DIR}/Lts/Proxies/TrainingAreaBase) include_directories(${CMAKE_SOURCE_DIR}/Lts/Proxies/TrainingAreaBase)
include_directories(${CMAKE_SOURCE_DIR}/include/ProjectDataManagement) include_directories(${CMAKE_SOURCE_DIR}/include/ProjectDataManagement)
include_directories(${CMAKE_SOURCE_DIR}/Lts/Proxies/GuezNasat)
SET(CMAKE_CXX_STANDARD 20) SET(CMAKE_CXX_STANDARD 20)
SET(CMAKE_CXX_STANDARD_REQUIRED 14) SET(CMAKE_CXX_STANDARD_REQUIRED 14)
SET(CMAKE_VISIBILITY_INLINES_HIDDEN ON) SET(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
@@ -3,6 +3,8 @@
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert // STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations // Für die Migration erstellen wir minimale Forward-Declarations
namespace DDS
{
namespace Core namespace Core
{ {
namespace Interface namespace Interface
@@ -11,3 +13,4 @@ class Dtc;
class Ftc; class Ftc;
} // namespace Interface } // namespace Interface
} // namespace Core } // namespace Core
} // namespace DDS
@@ -3,6 +3,8 @@
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert // STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations // Für die Migration erstellen wir minimale Forward-Declarations
namespace DDS
{
namespace Core namespace Core
{ {
namespace Interface namespace Interface
@@ -11,3 +13,4 @@ class Dtc;
class Ftc; class Ftc;
} // namespace Interface } // namespace Interface
} // namespace Core } // namespace Core
} // namespace DDS
@@ -5,9 +5,16 @@
namespace DDS namespace DDS
{ {
namespace Interface namespace DTC
{ {
class Dtc; class Dtc;
class Ftc; class Ftc;
} // namespace Interface } // namespace DTC
} // namespace DDS } // namespace DDS
// Generic Namespace für generische DDS-Typen
namespace Generic
{
class Dtc;
class Ftc;
} // namespace Generic
@@ -33,6 +33,7 @@ ADD_SUBDIRECTORY(LtsMultiMonitor)
ADD_SUBDIRECTORY(LtsLogin) ADD_SUBDIRECTORY(LtsLogin)
ADD_SUBDIRECTORY(LtsNotification) ADD_SUBDIRECTORY(LtsNotification)
ADD_SUBDIRECTORY(LtsTimeline) ADD_SUBDIRECTORY(LtsTimeline)
ADD_SUBDIRECTORY(LtsTimelineClassic)
ADD_SUBDIRECTORY(LtsPrinting) ADD_SUBDIRECTORY(LtsPrinting)
ADD_SUBDIRECTORY(LtsSerialPortQuerry) ADD_SUBDIRECTORY(LtsSerialPortQuerry)
IF(BUILD_RTI) IF(BUILD_RTI)
@@ -13,11 +13,11 @@
using namespace CodeGen; using namespace CodeGen;
GeneratorGrantleeBase::GeneratorGrantleeBase(const char *loggerName) : m_engine(new Grantlee::Engine) GeneratorGrantleeBase::GeneratorGrantleeBase(const char* loggerName)
, m_ctx(new Grantlee::Context) : m_engine(new Grantlee::Engine)
, m_structBuilder(nullptr) , m_ctx(new Grantlee::Context)
.getNGLLogger(loggerName)), , m_structBuilder(nullptr)
m_logger(NGL::NGLLoggerBootstrap::getLogger()) , m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger(loggerName))
{ {
} }
@@ -36,7 +36,6 @@ class GeneratorGrantleeBase : public QObject
bool generateData(const QString& templateName, const QString& outDirectory); bool generateData(const QString& templateName, const QString& outDirectory);
protected: protected:
NGL::INGLLogger& m_logger;
explicit GeneratorGrantleeBase(const char* loggerName); explicit GeneratorGrantleeBase(const char* loggerName);
bool initInternal(const XmlReader* reader, StructBuilder* structBuilder); bool initInternal(const XmlReader* reader, StructBuilder* structBuilder);
@@ -46,10 +45,10 @@ class GeneratorGrantleeBase : public QObject
void exportUsedServices(const XmlReader* reader); void exportUsedServices(const XmlReader* reader);
protected: protected:
NGL::INGLLogger& m_logger;
Grantlee::Engine* m_engine; Grantlee::Engine* m_engine;
Grantlee::Context* m_ctx; Grantlee::Context* m_ctx;
Grantlee::Template m_template; Grantlee::Template m_template;
StructBuilder* m_structBuilder; StructBuilder* m_structBuilder;
NGL::INGLLogger& m_logger;
}; };
} // namespace CodeGen } // namespace CodeGen
@@ -18,13 +18,15 @@ static QString getExerciseSchemaName(int exerciseId)
} }
SqlGenerator::SqlGenerator(XmlReader* xmlReader, StructBuilder* structBuilder) SqlGenerator::SqlGenerator(XmlReader* xmlReader, StructBuilder* structBuilder)
: m_xmlReader(xmlReader), m_structBuilder(structBuilder), m_createdByXmlFile(false), m_isValid(true), : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger("CodeGen.SqlGenerator")),
m_exerciseId(0), m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_xmlReader(xmlReader), m_structBuilder(structBuilder), m_createdByXmlFile(false), m_isValid(true),
m_exerciseId(0)
{ {
} }
SqlGenerator::SqlGenerator(const QString& xmlFile) SqlGenerator::SqlGenerator(const QString& xmlFile)
: m_xmlReader(new XmlReader), m_structBuilder(new StructBuilder(m_xmlReader)), m_createdByXmlFile(true), : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger("CodeGen.SqlGenerator")),
m_xmlReader(new XmlReader), m_structBuilder(new StructBuilder(m_xmlReader)), m_createdByXmlFile(true),
m_isValid(false), m_exerciseId(0) m_isValid(false), m_exerciseId(0)
{ {
m_isValid = m_xmlReader->readServiceFile(xmlFile, QString()) && m_structBuilder->buildStructures(); m_isValid = m_xmlReader->readServiceFile(xmlFile, QString()) && m_structBuilder->buildStructures();
@@ -28,7 +28,7 @@ class XmlReaderException : public std::exception
const QByteArray m_msg; const QByteArray m_msg;
}; };
XmlReader::XmlReader() : m_logger(NGL::NGLLoggerBootstrap::getLogger()) {} XmlReader::XmlReader() : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger().getNGLLogger("CodeGen.XmlReader")) {}
bool XmlReader::readServiceFile(const QString& svcFile, const QString& idlServiceInfoFile, const XmlReader* parent) bool XmlReader::readServiceFile(const QString& svcFile, const QString& idlServiceInfoFile, const XmlReader* parent)
{ {
@@ -14,7 +14,10 @@ NGL_TARGET_INCLUDE_DIRECTORIES(LtsCoordinate
INTERFACE INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/../ ${CMAKE_CURRENT_SOURCE_DIR}/../
) )
IF(BUILD_RTI) NGL_TARGET_INCLUDE_DIRECTORIES(LtsCoordinate
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/../LtsCoordTrans
)
NGL_TARGET_LINK_LIBRARIES(LtsCoordinate NGL_TARGET_LINK_LIBRARIES(LtsCoordinate
PRIVATE PRIVATE
LtsCoordTrans LtsCoordTrans
@@ -23,6 +26,5 @@ NGL_TARGET_LINK_LIBRARIES(LtsCoordinate
LtsUtilsCoreHeaderOnly LtsUtilsCoreHeaderOnly
Qt6::Core Qt6::Core
) )
ENDIF(BUILD_RTI)
ADD_SUBDIRECTORY(UnitTest_Coordinate) ADD_SUBDIRECTORY(UnitTest_Coordinate)
@@ -93,9 +93,9 @@ class LTSCOORDINATE_EXPORT LtsCoordinate
return m_geo; return m_geo;
} }
const Core::GeoPosition2D& geoPosition2D() const Core::GeoPosition2D geoPosition2D() const
{ {
return m_geo; return Core::GeoPosition2D(m_geo.longitude, m_geo.latitude);
} }
const LtsCoordTrans::UtmCoordinate& utmCoordinate() const const LtsCoordTrans::UtmCoordinate& utmCoordinate() const
@@ -107,7 +107,7 @@ class LTSCOORDINATE_EXPORT LtsCoordinate
double& rz() double& rz()
{ {
return m_geo.z(); return m_geo.altitude;
} }
double z() const double z() const
@@ -5,25 +5,21 @@
# $Author$ # $Author$
# #
SET(UnitTestSources # External dependency - missing: situationMapCommon, situationMapElevationMap
elevation_unit_test.cpp # Test disabled until external dependencies are available
elevation_unit_test.h # IF(BUILD_TESTING AND TARGET LtsElevation)
) # ADD_EXECUTABLE(commenUnitTestElevation ${LinkedSources} ${UnitTestSources} )
#
IF(BUILD_TESTING AND TARGET LtsElevation) # TARGET_LINK_LIBRARIES(commenUnitTestElevation
ADD_EXECUTABLE(commenUnitTestElevation ${LinkedSources} ${UnitTestSources} ) # NGLLogger
# nglcoreapplication
TARGET_LINK_LIBRARIES(commenUnitTestElevation # LtsElevation
NGLLogger # LtsCoordTrans
nglcoreapplication # situationMapCommon
LtsElevation # situationMapElevationMap
LtsCoordTrans # Qt6::Core
## situationMapCommon # External dependency - missing # Qt6::Gui
## situationMapElevationMap # External dependency - missing # Qt6::Test)
Qt6::Core #
Qt6::Gui # ADD_TEST(NAME commenUnitTestElevation COMMAND $<TARGET_FILE:commenUnitTestElevation>)
Qt6::Test) # ENDIF()
ADD_TEST(NAME commenUnitTestElevation COMMAND $<TARGET_FILE:commenUnitTestElevation>)
ENDIF()
@@ -63,7 +63,7 @@ Base::Base(QTextDocument &doc,
itemFontSize_(2), itemFontSize_(2),
m_settings(new NGL::Settings(NGL::findProjectConfigFile())).getNGLLogger("NGLPrinting")), m_settings(new NGL::Settings(NGL::findProjectConfigFile())).getNGLLogger("NGLPrinting")),
m_currentPage(1), m_currentPage(1),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
QString fn = _fn; QString fn = _fn;
fn = fn.remove(QLatin1Char(' ')); fn = fn.remove(QLatin1Char(' '));
@@ -6,10 +6,10 @@ namespace LtsSerialPortQuerry
{ {
LtsSerialPortQuerry::LtsSerialPortQuerry(QObject* parent) LtsSerialPortQuerry::LtsSerialPortQuerry(QObject* parent)
: QObject(parent), m_currentQuerry(0), m_baudRate(QSerialPort::Baud115200), m_openModeFlag(QSerialPort::ReadWrite), : QObject(parent), m_logger(getLogger("LtsSerialPortQuerry")), m_currentQuerry(0),
m_dataBits(QSerialPort::Data8), m_flowControll(QSerialPort::NoFlowControl), m_parity(QSerialPort::NoParity), m_baudRate(QSerialPort::Baud115200), m_openModeFlag(QSerialPort::ReadWrite), m_dataBits(QSerialPort::Data8),
m_stopBits(QSerialPort::OneStop), m_currentSerialPort(nullptr) m_flowControll(QSerialPort::NoFlowControl), m_parity(QSerialPort::NoParity), m_stopBits(QSerialPort::OneStop),
m_currentSerialPort(nullptr)
{ {
} }
@@ -32,13 +32,7 @@ class LTSSERIALPORTQUERRY_EXPORT LtsSerialPortQuerry : public QObject
NGL::INGLLogger& m_logger; NGL::INGLLogger& m_logger;
void querrySerialPort(const QSerialPortInfo& info); void querrySerialPort(const QSerialPortInfo& info);
void closeAndDeleteCurrentPort(); void closeAndDeleteCurrentPort();
private:
NGL::INGLLogger& m_logger;
void onSerialPortError(QSerialPort::SerialPortError serialPortError); void onSerialPortError(QSerialPort::SerialPortError serialPortError);
private:
NGL::INGLLogger& m_logger;
QList<QSerialPortInfo> m_serialPortInfos; QList<QSerialPortInfo> m_serialPortInfos;
int m_currentQuerry; int m_currentQuerry;
QSerialPort::BaudRate m_baudRate; QSerialPort::BaudRate m_baudRate;
@@ -49,6 +49,7 @@ NGL_ADD_LIBRARY2(WS LtsTimeline SHARED ${src})
NGL_TARGET_INCLUDE_DIRECTORIES(LtsTimeline NGL_TARGET_INCLUDE_DIRECTORIES(LtsTimeline
PUBLIC PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../ ${CMAKE_CURRENT_SOURCE_DIR}/../
${CMAKE_CURRENT_BINARY_DIR}
) )
NGL_TARGET_LINK_LIBRARIES(LtsTimeline NGL_TARGET_LINK_LIBRARIES(LtsTimeline
PRIVATE PRIVATE
@@ -8,14 +8,14 @@
namespace LtsTimelineClassic namespace LtsTimelineClassic
{ {
AbstractTimelineModel::AbstractTimelineModel(QObject *parent) : QAbstractItemModel(parent) AbstractTimelineModel::AbstractTimelineModel(QObject *parent)
.getNGLLogger("Timeline.AbstractTimelineModel")) : QAbstractItemModel(parent)
, m_highestPositionedItem(0) , m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_lowestPositionedItem(0) , m_highestPositionedItem(0)
, m_getEventListsRecursive(true) , m_lowestPositionedItem(0)
, m_rootItem(new Item(QLatin1String("#mwille/r00t/"))) , m_getEventListsRecursive(true)
, m_markersItem(new Item(tr("Markers"), QStringLiteral("Markers"))), , m_rootItem(new Item(QLatin1String("#mwille/r00t/")))
m_logger(NGL::NGLLoggerBootstrap::getLogger()) , m_markersItem(new Item(tr("Markers"), QStringLiteral("Markers")))
{ {
m_rootItem->addItem(m_markersItem); m_rootItem->addItem(m_markersItem);
@@ -45,12 +45,24 @@ SET(timeline_UICS
NGL_WRAP_UI(timeline_SRCS ${timeline_UICS}) NGL_WRAP_UI(timeline_SRCS ${timeline_UICS})
IF(BUILD_RTI)
NGL_ADD_LIBRARY2(WS LtsTimelineClassic SHARED ${timeline_SRCS} ${timeline_UICS}) NGL_ADD_LIBRARY2(WS LtsTimelineClassic SHARED ${timeline_SRCS} ${timeline_UICS})
# Qt6 AutoUic configuration for UI files in Ui/ subdirectory
set_target_properties(LtsTimelineClassic PROPERTIES
AUTOUIC ON
AUTOUIC_SEARCH_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/Ui"
)
# Generate export header for shared library
include(GenerateExportHeader)
generate_export_header(LtsTimelineClassic
EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/ltstimelineclassic_export.h"
)
NGL_TARGET_INCLUDE_DIRECTORIES(LtsTimelineClassic NGL_TARGET_INCLUDE_DIRECTORIES(LtsTimelineClassic
PUBLIC PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/../ ${CMAKE_CURRENT_SOURCE_DIR}/../
${CMAKE_CURRENT_BINARY_DIR}
) )
NGL_TARGET_LINK_LIBRARIES(LtsTimelineClassic NGL_TARGET_LINK_LIBRARIES(LtsTimelineClassic
@@ -64,21 +76,4 @@ NGL_TARGET_LINK_LIBRARIES(LtsTimelineClassic
) )
IF(NEVER)
NGL_ADD_EXECUTABLE(WS LtsTimelineClassicTest main.cpp)
NGL_TARGET_LINK_LIBRARIES(LtsTimelineClassicTest
nglapplication
NGLLogger
Qt6::Core
Qt6::Gui
Qt6::Widgets
LtsTimelineClassic
svcEemCommon
svcEemClient
PdmDataPluginInterface
)
ENDIF()
NGL_INSTALL_TARGET(LtsTimelineClassic)
ENDIF(BUILD_RTI)
@@ -14,10 +14,10 @@ Event::Event(int uniqueId, int typeId, qint64 startTime, qint64 endTime, int pla
const QStringList& path, const EventPaintFunc& paintFunc, const QColor& paintColor, const QStringList& path, const EventPaintFunc& paintFunc, const QColor& paintColor,
const QJsonObject& detailData, int subEventId, const LtsUtils::QPoint3D& pos, const QJsonObject& detailData, int subEventId, const LtsUtils::QPoint3D& pos,
LtsSession::LtsSession* session) LtsSession::LtsSession* session)
: m_path(path), m_detailData(detailData), m_position(pos), m_paintFunc(paintFunc), m_session(session), : m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()), m_path(path), m_detailData(detailData), m_position(pos),
m_eventColor(paintColor), m_startTime(startTime), m_endTime(endTime), m_uniqueId(uniqueId), m_typeId(typeId), m_paintFunc(paintFunc), m_session(session), m_eventColor(paintColor), m_startTime(startTime), m_endTime(endTime),
m_subEventId(subEventId), m_playerId(playerId), m_partyId(partyId), m_equipmentId(equipmentId), m_deleted(false), m_uniqueId(uniqueId), m_typeId(typeId), m_subEventId(subEventId), m_playerId(playerId), m_partyId(partyId),
m_visible(true), m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_equipmentId(equipmentId), m_deleted(false), m_visible(true)
{ {
checkDuration(); checkDuration();
} }
@@ -5,6 +5,8 @@
#include "ltstimelineclassic_export.h" #include "ltstimelineclassic_export.h"
#include <LtsUtils/LtsUtilsCore/qpoint3d.h> #include <LtsUtils/LtsUtilsCore/qpoint3d.h>
#include <NGLLogger/INGLLogger.h>
#include <NGLLoggerBootstrap.h>
#include <QColor> #include <QColor>
#include <QJsonObject> #include <QJsonObject>
#include <QStringList> #include <QStringList>
@@ -36,12 +38,14 @@ class LTSTIMELINECLASSIC_EXPORT Event
static void drawCustomEventGraphicRoundedRect(QPainter* painter, const QRect& rect); static void drawCustomEventGraphicRoundedRect(QPainter* painter, const QRect& rect);
static void drawMultipleEventGraphic(QPainter* painter, const QRect& rect); static void drawMultipleEventGraphic(QPainter* painter, const QRect& rect);
Event() = default;
Event(int uniqueId, int typeId, qint64 startTime, qint64 endTime, int playerId, int partyId, int equipmentId, Event(int uniqueId, int typeId, qint64 startTime, qint64 endTime, int playerId, int partyId, int equipmentId,
const QStringList& path, const EventPaintFunc& paintFunc, const QColor& paintColor, const QStringList& path, const EventPaintFunc& paintFunc, const QColor& paintColor,
const QJsonObject& detailData, int subEventId = -1, const LtsUtils::QPoint3D& pos = LtsUtils::QPoint3D(), const QJsonObject& detailData, int subEventId = -1, const LtsUtils::QPoint3D& pos = LtsUtils::QPoint3D(),
LtsSession::LtsSession* session = nullptr); LtsSession::LtsSession* session = nullptr);
// Default constructor deleted due to reference member m_logger
Event() = delete;
QStringList getActuator() const QStringList getActuator() const
{ {
return m_path; return m_path;
@@ -8,14 +8,25 @@
namespace LtsTimelineClassic namespace LtsTimelineClassic
{ {
class TestTimelineModelTest;
class LTSTIMELINECLASSIC_EXPORT TestTimelineModel : public AbstractTimelineModel class LTSTIMELINECLASSIC_EXPORT TestTimelineModel : public AbstractTimelineModel
{ {
Q_OBJECT Q_OBJECT
friend class TestTimelineModelTest;
public: public:
TestTimelineModel(); TestTimelineModel();
void addTestEvent(Event* event); void addTestEvent(Event* event);
// Public wrappers for testing (protected in base class)
using AbstractTimelineModel::rowCount;
using AbstractTimelineModel::columnCount;
// Implement pure virtual from AbstractTimelineModel
qint64 currentTime() const override { return 0; }
private slots: private slots:
void slotEventAction(EventGraphic*, int); void slotEventAction(EventGraphic*, int);
}; };
@@ -34,17 +34,17 @@
namespace LtsTimelineClassic namespace LtsTimelineClassic
{ {
TimelineIndicator::TimelineIndicator(QWidget *parent) : QWidget(parent) TimelineIndicator::TimelineIndicator(QWidget *parent)
, m_zoomFactorPoints(0) : QWidget(parent)
, m_pbZoom(new QPushButton(this)) , m_zoomFactorPoints(0)
, m_pbUnzoom(new QPushButton(this)) , m_pbZoom(new QPushButton(this))
, m_cbZoomLevel(new QComboBox(this)) , m_pbUnzoom(new QPushButton(this))
, m_currentTextHeight(0) , m_cbZoomLevel(new QComboBox(this))
, m_currentTextWidth(0) , m_currentTextHeight(0)
, m_sectionPos(0) , m_currentTextWidth(0)
, m_sectionSize(0) , m_sectionPos(0)
.getNGLLogger("Timeline.Indicator")), , m_sectionSize(0)
m_logger(NGL::NGLLoggerBootstrap::getLogger()) , m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
m_timeArray.reserve(11 + 11 + 7 + 10); m_timeArray.reserve(11 + 11 + 7 + 10);
@@ -4,6 +4,7 @@
#include "EventTools.h" #include "EventTools.h"
#include "LineMap.h" #include "LineMap.h"
#include <QComboBox>
#include <QObject> #include <QObject>
#include <QPair> #include <QPair>
#include <QPoint> #include <QPoint>
@@ -16,15 +17,18 @@ class INGLLogger;
} }
class QPushButton; class QPushButton;
class QLabel; class QLabel;
class QComboBox;
namespace LtsTimelineClassic namespace LtsTimelineClassic
{ {
class TimelineIndicatorTest;
class TimelineIndicator : public QWidget class TimelineIndicator : public QWidget
{ {
Q_OBJECT Q_OBJECT
friend class TimelineIndicatorTest;
static const int s_TimeTextDistanceTolerancePixels = 10; static const int s_TimeTextDistanceTolerancePixels = 10;
static const int s_pbSize = 18; static const int s_pbSize = 18;
@@ -55,6 +59,10 @@ class TimelineIndicator : public QWidget
NGL::INGLLogger& m_logger; NGL::INGLLogger& m_logger;
void paintEvent(QPaintEvent*); void paintEvent(QPaintEvent*);
public:
// Public getter for testing
QComboBox* zoomLevelComboBox() const { return m_cbZoomLevel; }
signals: signals:
void signalSetTimelineRange(qint64 min, qint64 max); void signalSetTimelineRange(qint64 min, qint64 max);
@@ -149,7 +149,7 @@ void TimelineView::wheelEvent(QWheelEvent* event)
if (QGuiApplication::queryKeyboardModifiers() != Qt::ControlModifier) if (QGuiApplication::queryKeyboardModifiers() != Qt::ControlModifier)
return; return;
int scrolls = event->delta() / 120; int scrolls = event->angleDelta().y() / 120;
if (scrolls > 0) if (scrolls > 0)
{ {
@@ -168,7 +168,7 @@ void TimelineView::mouseReleaseEvent(QMouseEvent* event)
{ {
QTreeView::mouseReleaseEvent(event); QTreeView::mouseReleaseEvent(event);
QPoint position = event->globalPos(); QPoint position = event->globalPosition().toPoint();
EventGraphic* eg = getEventOnPosition(position); EventGraphic* eg = getEventOnPosition(position);
if (!eg) if (!eg)
@@ -17,16 +17,16 @@
namespace LtsTimelineClassic namespace LtsTimelineClassic
{ {
TimelineWidget::TimelineWidget(QWidget *parent) : QWidget(parent) TimelineWidget::TimelineWidget(QWidget *parent)
.getNGLLogger("Timeline.Widget")) : QWidget(parent)
, m_timelineUi(new Ui::Timeline) , m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
, m_min(0) , m_timelineUi(new Ui::Timeline)
, m_max(1) , m_min(0)
, m_sbPos(0) , m_max(1)
, m_zoomFactor(1) , m_sbPos(0)
, m_headerView(new TimelineHeaderView) , m_zoomFactor(1)
, m_model(nullptr), , m_headerView(new TimelineHeaderView)
m_logger(NGL::NGLLoggerBootstrap::getLogger()) , m_model(nullptr)
{ {
m_timelineUi->setupUi(this); m_timelineUi->setupUi(this);
m_timelineUi->view->setHeader(m_headerView); m_timelineUi->view->setHeader(m_headerView);
@@ -15,12 +15,13 @@ SET(SRCS_hdr_only
${CMAKE_CURRENT_SOURCE_DIR}/qbytearray_byteaccess.h ${CMAKE_CURRENT_SOURCE_DIR}/qbytearray_byteaccess.h
${CMAKE_CURRENT_SOURCE_DIR}/qpoint3d.h ${CMAKE_CURRENT_SOURCE_DIR}/qpoint3d.h
${CMAKE_CURRENT_SOURCE_DIR}/await.h ${CMAKE_CURRENT_SOURCE_DIR}/await.h
${CMAKE_CURRENT_SOURCE_DIR}/lts_translatable_identifier.h
) )
ADD_LIBRARY(LtsUtilsCoreHeaderOnly INTERFACE) ADD_LIBRARY(LtsUtilsCoreHeaderOnly INTERFACE)
TARGET_INCLUDE_DIRECTORIES(LtsUtilsCoreHeaderOnly TARGET_INCLUDE_DIRECTORIES(LtsUtilsCoreHeaderOnly
INTERFACE INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/../.. ${CMAKE_CURRENT_SOURCE_DIR}/..
${CMAKE_CURRENT_BINARY_DIR}/../.. ${CMAKE_CURRENT_BINARY_DIR}/..
) )
TARGET_SOURCES(LtsUtilsCoreHeaderOnly INTERFACE ${SRCS_hdr_only}) TARGET_SOURCES(LtsUtilsCoreHeaderOnly INTERFACE ${SRCS_hdr_only})
@@ -18,6 +18,7 @@ SET(ltsvkeyboard_SRCS
NGL_WRAP_UI(ltsvkeyboard_SRCS NGL_WRAP_UI(ltsvkeyboard_SRCS
) )
IF(BUILD_RTI)
NGL_ADD_LIBRARY2(WS LtsVirtualKeyboard SHARED ${ltsvkeyboard_SRCS} ) NGL_ADD_LIBRARY2(WS LtsVirtualKeyboard SHARED ${ltsvkeyboard_SRCS} )
NGL_TARGET_INCLUDE_DIRECTORIES(LtsVirtualKeyboard NGL_TARGET_INCLUDE_DIRECTORIES(LtsVirtualKeyboard
@@ -34,3 +35,4 @@ NGL_TARGET_LINK_LIBRARIES(LtsVirtualKeyboard
Qt6::Widgets Qt6::Widgets
Qt6::Gui Qt6::Gui
) )
ENDIF(BUILD_RTI)
@@ -37,6 +37,7 @@ class WebSocketHelper : public QObject
AbstractClientMessageFactory* m_messageFactory; AbstractClientMessageFactory* m_messageFactory;
LtsWebSocketClient* m_webSocketClient; LtsWebSocketClient* m_webSocketClient;
QWebSocket* m_socket; QWebSocket* m_socket;
NGL::INGLLogger& m_logger;
}; };
WebSocketHelper::WebSocketHelper(AbstractClientMessageFactory* messageFactory, LtsWebSocketClient* webSocketClient, WebSocketHelper::WebSocketHelper(AbstractClientMessageFactory* messageFactory, LtsWebSocketClient* webSocketClient,
@@ -138,7 +139,8 @@ void WebSocketHelper::parseMessage(const QString& message)
} }
LtsWebSocketClient::LtsWebSocketClient(AbstractClientMessageFactory* messageFactory, QObject* parent) LtsWebSocketClient::LtsWebSocketClient(AbstractClientMessageFactory* messageFactory, QObject* parent)
: QObject(parent), m_messageFactory(messageFactory), m_webSocketHelperThread(new QThread(this)) : QObject(parent), m_logger(getLogger("LtsWebSocketClient")), m_messageFactory(messageFactory),
m_webSocketHelperThread(new QThread(this))
{ {
m_webSocketHelper = new WebSocketHelper(m_messageFactory, this, m_logger); m_webSocketHelper = new WebSocketHelper(m_messageFactory, this, m_logger);
m_webSocketHelper->moveToThread(m_webSocketHelperThread); m_webSocketHelper->moveToThread(m_webSocketHelperThread);
@@ -142,7 +142,7 @@ NGL_WRAP_UI(ltswidgets_SRCS
lts_text_editor.ui lts_text_editor.ui
lts_notification_box.ui lts_notification_box.ui
lts_angle_edit.ui lts_angle_edit.ui
# lts_date_time_edit_touch.ui lts_date_time_edit_touch.ui
) )
# ui_requirement.cpp/h sind normale C++ Dateien, keine UI-Dateien # ui_requirement.cpp/h sind normale C++ Dateien, keine UI-Dateien
@@ -84,7 +84,7 @@ public:
if (row < 0 || row >= m_vecData.size()) if (row < 0 || row >= m_vecData.size())
return false; return false;
int range = std::min(row + count, m_vecData.size()); int range = std::min(row + count, static_cast<int>(m_vecData.size()));
beginRemoveRows(QModelIndex(), row, range - 1); beginRemoveRows(QModelIndex(), row, range - 1);
m_vecData.erase(m_vecData.begin() + row, m_vecData.begin() + range); m_vecData.erase(m_vecData.begin() + row, m_vecData.begin() + range);
@@ -10,7 +10,7 @@
#include "lts_widgets_export.h" #include "lts_widgets_export.h"
#include <LtsUtilsCore/lts_translatable_identifier.h> #include <LtsUtils/LtsUtilsCore/lts_translatable_identifier.h>
#include <QString> #include <QString>
#include <QString> #include <QString>
@@ -11,6 +11,7 @@ ADD_INTERFACE_LIBRARY(
${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..
Qt6::Core Qt6::Core
) )
set_target_properties(DataPluginInterface PROPERTIES AUTOMOC ON)
# GuiPluginInterface # GuiPluginInterface
ADD_INTERFACE_LIBRARY( ADD_INTERFACE_LIBRARY(
@@ -19,6 +20,7 @@ ADD_INTERFACE_LIBRARY(
${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..
Qt6::Core LtsWidgets ProjectConfig LtsAppDescriptor LtsUtilsCore Qt6::Core LtsWidgets ProjectConfig LtsAppDescriptor LtsUtilsCore
) )
set_target_properties(GuiPluginInterface PROPERTIES AUTOMOC ON)
# projectPluginInterface # projectPluginInterface
ADD_INTERFACE_LIBRARY( ADD_INTERFACE_LIBRARY(
@@ -27,6 +29,7 @@ ADD_INTERFACE_LIBRARY(
${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..
Qt6::Core Qt6::Core
) )
set_target_properties(ProjectPluginInterface PROPERTIES AUTOMOC ON)
# stylePluginInterface # stylePluginInterface
ADD_INTERFACE_LIBRARY( ADD_INTERFACE_LIBRARY(
@@ -35,6 +38,7 @@ ADD_INTERFACE_LIBRARY(
${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..
Qt6::Core Qt6::Core
) )
set_target_properties(StylePluginInterface PROPERTIES AUTOMOC ON)
# record_replay_plugin # record_replay_plugin
ADD_INTERFACE_LIBRARY( ADD_INTERFACE_LIBRARY(
@@ -43,6 +47,7 @@ ADD_INTERFACE_LIBRARY(
${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/..
Qt6::Core Qt6::Core
) )
set_target_properties(RecordReplayPlugin PROPERTIES AUTOMOC ON)
# Topic Replay Interface # Topic Replay Interface
ADD_INTERFACE_LIBRARY( ADD_INTERFACE_LIBRARY(
@@ -26,8 +26,10 @@ class Interface
virtual ~Interface() = default; virtual ~Interface() = default;
}; };
class Plugin class Plugin : public QObject
{ {
Q_OBJECT
public: public:
Plugin() = default; Plugin() = default;
virtual ~Plugin() = default; virtual ~Plugin() = default;
@@ -22,7 +22,7 @@ DataTopicTests::DataTopicTests() : m_domainParticipantPub(nullptr)
, m_dtcTestPart(nullptr) , m_dtcTestPart(nullptr)
, m_mainThreadId(QThread::currentThreadId()) , m_mainThreadId(QThread::currentThreadId())
.getNGLLogger("UnitTests.DataTopicTests")), .getNGLLogger("UnitTests.DataTopicTests")),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
if (!DDS::QosProfile::setDefault()) if (!DDS::QosProfile::setDefault())
ERROR_LOG(m_logger) << "Error setting default QoS from xml-file "; ERROR_LOG(m_logger) << "Error setting default QoS from xml-file ";
@@ -25,7 +25,7 @@ int main(int argc, char* argv[])
FunctionTopicTests::FunctionTopicTests() : m_mainThreadId(QThread::currentThreadId()) FunctionTopicTests::FunctionTopicTests() : m_mainThreadId(QThread::currentThreadId())
.getNGLLogger("UnitTests.FunctionTopicTests")), .getNGLLogger("UnitTests.FunctionTopicTests")),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
qRegisterMetaType<DdsUnitTests::FunctionReply>("DdsUnitTests::FunctionReply"); qRegisterMetaType<DdsUnitTests::FunctionReply>("DdsUnitTests::FunctionReply");
qRegisterMetaType<DdsUnitTests::FunctionReplyWithState>("DdsUnitTests::FunctionReplyWithState"); qRegisterMetaType<DdsUnitTests::FunctionReplyWithState>("DdsUnitTests::FunctionReplyWithState");
@@ -14,7 +14,7 @@ Initialisation::Initialisation() : m_domainParticipant(nullptr)
, m_ddsSubscriber(nullptr) , m_ddsSubscriber(nullptr)
, m_subListener(new DDSGeneric::SubscriberListener) , m_subListener(new DDSGeneric::SubscriberListener)
.getNGLLogger("UnitTests.Initialisation")), .getNGLLogger("UnitTests.Initialisation")),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
if (!DDS::QosProfile::setDefault()) if (!DDS::QosProfile::setDefault())
ERROR_LOG(m_logger) << "Error setting default QoS from xml-file "; ERROR_LOG(m_logger) << "Error setting default QoS from xml-file ";
@@ -2,6 +2,8 @@
#pragma once #pragma once
#if BUILD_RTI
#include <NGLLogger/NGLLoggerBootstrap.h> #include <NGLLogger/NGLLoggerBootstrap.h>
#include <dds/core/cond/GuardCondition.hpp> #include <dds/core/cond/GuardCondition.hpp>
#include <dds/core/cond/StatusCondition.hpp> #include <dds/core/cond/StatusCondition.hpp>
@@ -280,7 +282,7 @@ template <typename REQUEST, typename REPLY> class Requester final : public Reply
, m_dataReader(nullptr) , m_dataReader(nullptr)
, m_contentFilteredTopic(nullptr) , m_contentFilteredTopic(nullptr)
, m_curInstanceHandle(dds::core::InstanceHandle::nil()) , m_curInstanceHandle(dds::core::InstanceHandle::nil())
.getNGLLogger("connext.requester")) , m_logger(NGL::getNGLLogger("connext.requester"))
{ {
} }
@@ -429,7 +431,7 @@ template <typename REQUEST, typename REPLY> class Replier final : public ReplyRe
, m_dataReader(dds::sub::DataReader<REQUEST>(replierParams.subscriber(), , m_dataReader(dds::sub::DataReader<REQUEST>(replierParams.subscriber(),
ReplyRequestBase<REQUEST, REPLY>::m_requestTopic, ReplyRequestBase<REQUEST, REPLY>::m_requestTopic,
replierParams.datareader_qos())) replierParams.datareader_qos()))
.getNGLLogger("connext.replier")) , m_logger(NGL::getNGLLogger("connext.replier"))
{ {
} }
@@ -501,3 +503,5 @@ private:
}; };
} // namespace connext } // namespace connext
#endif // BUILD_RTI
@@ -3,7 +3,9 @@
#pragma once #pragma once
#if BUILD_RTI
#include <rti/core/SampleIdentity.hpp> #include <rti/core/SampleIdentity.hpp>
#endif
#include <QVector> #include <QVector>
@@ -19,8 +21,20 @@ namespace FTS
GenericFts() = default; GenericFts() = default;
virtual ~GenericFts() = default; virtual ~GenericFts() = default;
virtual bool sendReply(const rti::core::SampleIdentity &requestIdentity, const TOPICTYPE_REPLY &replyData) = 0; virtual bool sendReply(
virtual bool sendReply(const rti::core::SampleIdentity &requestIdentity, const QVector<TOPICTYPE_REPLY> &replyData) = 0; #if BUILD_RTI
const rti::core::SampleIdentity &requestIdentity,
#else
const void *requestIdentity, // Stub when BUILD_RTI=OFF
#endif
const TOPICTYPE_REPLY &replyData) = 0;
virtual bool sendReply(
#if BUILD_RTI
const rti::core::SampleIdentity &requestIdentity,
#else
const void *requestIdentity, // Stub when BUILD_RTI=OFF
#endif
const QVector<TOPICTYPE_REPLY> &replyData) = 0;
}; };
} }
@@ -2,9 +2,13 @@
#pragma once #pragma once
#include "generic_fts.h"
#include <ddsfts_export.h> #include <ddsfts_export.h>
#include "logger.h"
#if BUILD_RTI
#include <DDS/Core/topic_lock_master.h>
#include <DDS/Generic/wait_set_handler.h> #include <DDS/Generic/wait_set_handler.h>
#endif
#include <dds/sub/qos/DataReaderQos.hpp> #include <dds/sub/qos/DataReaderQos.hpp>
#include <dds/pub/qos/DataWriterQos.hpp> #include <dds/pub/qos/DataWriterQos.hpp>
@@ -13,7 +17,9 @@
namespace FTS namespace FTS
{ {
class DDSFTS_EXPORT GenericFtsInternal : public QObject class DDSFTS_EXPORT GenericFtsInternal : public QObject
#if BUILD_RTI
, protected DDSGeneric::WaitSetHandler::CallbackInterface , protected DDSGeneric::WaitSetHandler::CallbackInterface
#endif
{ {
Q_OBJECT Q_OBJECT
protected: protected:
@@ -24,8 +30,9 @@ namespace FTS
static dds::pub::qos::DataWriterQos writerQos(NGL::INGLLogger &logger); static dds::pub::qos::DataWriterQos writerQos(NGL::INGLLogger &logger);
protected: protected:
#if BUILD_RTI
void dataAvailable() override; void dataAvailable() override;
#endif
virtual bool enqueueRequests() = 0; virtual bool enqueueRequests() = 0;
protected Q_SLOTS: protected Q_SLOTS:
virtual void processRequests() = 0; virtual void processRequests() = 0;
@@ -9,10 +9,9 @@
namespace AdvancedSymbology namespace AdvancedSymbology
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:asb") Q_PLUGIN_METADATA(IID "data:3:asb")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -37,6 +37,8 @@ QT5_ADD_RESOURCES(symboleditor_SRCS application.qrc)
NGL_WRAP_UI(symboleditor_SRCS ${symboleditor_UICS}) NGL_WRAP_UI(symboleditor_SRCS ${symboleditor_UICS})
NGL_ADD_LIBRARY(WS AsbSymEditGuiPlugin MODULE ${symboleditor_SRCS} ${symboleditor_UICS}) NGL_ADD_LIBRARY(WS AsbSymEditGuiPlugin MODULE ${symboleditor_SRCS} ${symboleditor_UICS})
set_target_properties(AsbSymEditGuiPlugin PROPERTIES AUTOUIC ON)
set_target_properties(AsbSymEditGuiPlugin PROPERTIES AUTOUIC_SEARCH_PATHS "${CMAKE_CURRENT_SOURCE_DIR}/forms")
NGL_TARGET_LINK_LIBRARIES(AsbSymEditGuiPlugin NGL_TARGET_LINK_LIBRARIES(AsbSymEditGuiPlugin
NGLLogger NGLLogger
LtsWidgets LtsWidgets
@@ -13,10 +13,9 @@
namespace AlarmManagement namespace AlarmManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:alm") Q_PLUGIN_METADATA(IID "data:3:alm")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,10 +10,9 @@
namespace AreaEffectSimulation namespace AreaEffectSimulation
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:aes") Q_PLUGIN_METADATA(IID "data:3:aes")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,10 +10,9 @@
namespace AssetManagement namespace AssetManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:asm") Q_PLUGIN_METADATA(IID "data:3:asm")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -22,6 +22,7 @@ SET(avm_SRCS
) )
NGL_ADD_LIBRARY(WS AvmDataPlugin MODULE ${avm_SRCS}) NGL_ADD_LIBRARY(WS AvmDataPlugin MODULE ${avm_SRCS})
set_target_properties(AvmDataPlugin PROPERTIES AUTOMOC ON)
NGL_TARGET_LINK_LIBRARIES(AvmDataPlugin NGL_TARGET_LINK_LIBRARIES(AvmDataPlugin
NGLLogger NGLLogger
ngltranslator ngltranslator
@@ -23,10 +23,9 @@ class PlaybackApp;
class PluginSettings; class PluginSettings;
class StreamNameMapping; class StreamNameMapping;
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:avm") Q_PLUGIN_METADATA(IID "data:3:avm")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -48,7 +48,7 @@ AvailableStreamsModel::AvailableStreamsModel(const std::shared_ptr<Interface::Dt
LtsSession::LtsSession* session, StreamNameMapping* streamNameMapping, LtsSession::LtsSession* session, StreamNameMapping* streamNameMapping,
QObject* parent, bool isAudio) QObject* parent, bool isAudio)
: NGLTreeModel(parent, new NGLTreeItem(QVariant(), QIcon()), , : NGLTreeModel(parent, new NGLTreeItem(QVariant(), QIcon()), ,
m_logger(NGL::NGLLoggerBootstrap::getLogger()){tr("Available Streams")}), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()){tr("Available Streams")}),
m_isAudio(isAudio), m_avmDtc(avmDtc), m_ismDtc(ismDtc), m_session(session), m_streamNameMapping(streamNameMapping) m_isAudio(isAudio), m_avmDtc(avmDtc), m_ismDtc(ismDtc), m_session(session), m_streamNameMapping(streamNameMapping)
{ {
Q_ASSERT(ismDtc); Q_ASSERT(ismDtc);
@@ -258,7 +258,7 @@ class AvmPlaybackMenu::TimeControl : public QObject
QueryTimeline::QueryTimeline(const AvaStream& stream, const AvaTimePoint& start, const AvaTimePoint& end, QueryTimeline::QueryTimeline(const AvaStream& stream, const AvaTimePoint& start, const AvaTimePoint& end,
AvaControl* control) AvaControl* control)
: QObject(), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QObject(), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
connect(control, &AvaControl::queryTimelineResponse, this, &QueryTimeline::signalTimelineComplete); connect(control, &AvaControl::queryTimelineResponse, this, &QueryTimeline::signalTimelineComplete);
connect(control, &AvaControl::queryTimelineResponse, this, &QObject::deleteLater); connect(control, &AvaControl::queryTimelineResponse, this, &QObject::deleteLater);
@@ -843,7 +843,7 @@ QSet<int> EditFrequencyPlanningFrequencyDataModel::getAllocatedFrequencyPlanning
return result; return result;
} }
FPFDelegate::FPFDelegate(QObject* parent) : QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getLogger()) FPFDelegate::FPFDelegate(QObject* parent) : QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -19,7 +19,7 @@ namespace AudioVideoManagement
FrequencyPlanningWidget::FrequencyPlanningWidget(const std::shared_ptr<Interface::Dtc>& avmDtc, FrequencyPlanningWidget::FrequencyPlanningWidget(const std::shared_ptr<Interface::Dtc>& avmDtc,
QSet<int>& allocatedDataSets, QWidget* parent) QSet<int>& allocatedDataSets, QWidget* parent)
: QWidget(parent), m_ui(new Ui::FrequencyPlanningWidget), m_assignedFrequencySetDataIds(allocatedDataSets), : QWidget(parent), m_ui(new Ui::FrequencyPlanningWidget), m_assignedFrequencySetDataIds(allocatedDataSets),
m_avmDtc(avmDtc), m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_avmDtc(avmDtc), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
m_ui->setupUi(this); m_ui->setupUi(this);
@@ -857,7 +857,7 @@ LoadFrequencyPlanningDialogModel::searchCnrConfig(const NGLTreeItem* parentItem,
} }
DrawDelegate::DrawDelegate(QObject* parent) DrawDelegate::DrawDelegate(QObject* parent)
: QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -36,7 +36,7 @@ static inline QString gStrSymbolFolderPath()
BuildingViewerDdsController::BuildingViewerDdsController(CommunicationInterfaceInternal* connection, BuildingViewerDdsController::BuildingViewerDdsController(CommunicationInterfaceInternal* connection,
VCtrl::ViewerInterface* viewerInterface) VCtrl::ViewerInterface* viewerInterface)
: m_connection(connection), m_viewerInterface(viewerInterface), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : m_connection(connection), m_viewerInterface(viewerInterface), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -17,7 +17,7 @@ BuildingEditModel::BuildingEditModel(QObject* parent,
const std::shared_ptr<InfrastructureManagement::Interface::Dtc>& ismDtc, const std::shared_ptr<InfrastructureManagement::Interface::Dtc>& ismDtc,
const std::shared_ptr<Buildings::Interface::Dtc>& bldDtc) const std::shared_ptr<Buildings::Interface::Dtc>& bldDtc)
: NGLTreeModel(parent, new NGLTreeItem(QVariant()), , : NGLTreeModel(parent, new NGLTreeItem(QVariant()), ,
m_logger(NGL::NGLLoggerBootstrap::getLogger()){ m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()){
tr("Selected Building"), QStringLiteral("Name (DEBUG)"), tr("Selected Building"), QStringLiteral("Name (DEBUG)"),
QStringLiteral("MountingPointId (DEBUG)"), QStringLiteral("StructureElementId (DEBUG)"), QStringLiteral("MountingPointId (DEBUG)"), QStringLiteral("StructureElementId (DEBUG)"),
tr("Fortify Factor"), tr("Damage Percent")}), tr("Fortify Factor"), tr("Damage Percent")}),
@@ -7,7 +7,7 @@ namespace BuildingViewer
ReplayHandler::ReplayHandler(int buildingTopicStart_s, int buildingTopicEnd_s, ReplayHandler::ReplayHandler(int buildingTopicStart_s, int buildingTopicEnd_s,
const TopicReplay::Interface::SituationReplayTime& replay, QObject* parent) const TopicReplay::Interface::SituationReplayTime& replay, QObject* parent)
: QObject(parent), m_actualReplayStart_ms(0), m_actualReplayEnd_ms(0), m_replayDuration_ms(0), m_startOffset_ms(0), : QObject(parent), m_actualReplayStart_ms(0), m_actualReplayEnd_ms(0), m_replayDuration_ms(0), m_startOffset_ms(0),
m_replayInfo(replay), m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_replayInfo(replay), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
DEBUG_LOG(m_logger) << "buildingTopicStart_s = " << buildingTopicStart_s DEBUG_LOG(m_logger) << "buildingTopicStart_s = " << buildingTopicStart_s
<< ", buildingTopicEnd_s = " << buildingTopicEnd_s << ", buildingTopicEnd_s = " << buildingTopicEnd_s
@@ -19,7 +19,7 @@ namespace BuildingViewer
{ {
BdvPluginProvider::BdvPluginProvider(LtsSession::LtsSession* session, QObject* parent) BdvPluginProvider::BdvPluginProvider(LtsSession::LtsSession* session, QObject* parent)
: PluginProvider(parent), m_session(session), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : PluginProvider(parent), m_session(session), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -9,10 +9,9 @@
namespace Buildings namespace Buildings
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:bld") Q_PLUGIN_METADATA(IID "data:3:bld")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -60,7 +60,7 @@ namespace Buildings
BldInfoDialog::BldInfoDialog(int bldEntityId, const QString& menuGroup, QWidget* parent) BldInfoDialog::BldInfoDialog(int bldEntityId, const QString& menuGroup, QWidget* parent)
: InfoDialogBase(bldEntityId, menuGroup, QStringLiteral("BldInfoDialog"), LtsWidgets::ButtonCombination::CloseOnly, : InfoDialogBase(bldEntityId, menuGroup, QStringLiteral("BldInfoDialog"), LtsWidgets::ButtonCombination::CloseOnly,
parent), parent),
m_ui(new Ui::BldInfoDialog), m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_ui(new Ui::BldInfoDialog), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
DEBUG_LOG(m_logger) << LOGFUNCTION << " START" << ", bldEntityId=" << bldEntityId; DEBUG_LOG(m_logger) << LOGFUNCTION << " START" << ", bldEntityId=" << bldEntityId;
@@ -12,7 +12,7 @@ namespace Buildings
RelayInfoWidget::RelayInfoWidget(int id, QWidget* parent) RelayInfoWidget::RelayInfoWidget(int id, QWidget* parent)
: QWidget(parent), m_id(id), m_state(false), m_ui(new Ui::RelayInfoWidget), : QWidget(parent), m_id(id), m_state(false), m_ui(new Ui::RelayInfoWidget),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
DEBUG_LOG(m_logger) << "RelayInfoWidget"; DEBUG_LOG(m_logger) << "RelayInfoWidget";
m_ui->setupUi(this); m_ui->setupUi(this);
@@ -10,10 +10,9 @@
namespace CentralEffectSimulation namespace CentralEffectSimulation
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:ces") Q_PLUGIN_METADATA(IID "data:3:ces")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -13,10 +13,9 @@
namespace CodificationManagement namespace CodificationManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:cod") Q_PLUGIN_METADATA(IID "data:3:cod")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -7,7 +7,7 @@
using namespace CodificationManagement; using namespace CodificationManagement;
CodeTableEditDelegate::CodeTableEditDelegate(QWidget* parent, TableType tableType) CodeTableEditDelegate::CodeTableEditDelegate(QWidget* parent, TableType tableType)
: QItemDelegate(parent), m_tableType(tableType), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QItemDelegate(parent), m_tableType(tableType), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
DEBUG_LOG(m_logger) << "CodeTableEditDelegate::ctor()"; DEBUG_LOG(m_logger) << "CodeTableEditDelegate::ctor()";
} }
@@ -18,7 +18,7 @@ CSVExport::CSVExport(const NumeralCodeModel* numCodeModel, const AuthenticationC
const QString& note, QWidget* parent) const QString& note, QWidget* parent)
: QWidget(parent), m_numCodeModel(numCodeModel), m_authenticationCodeModel(authenticationCodeModel), : QWidget(parent), m_numCodeModel(numCodeModel), m_authenticationCodeModel(authenticationCodeModel),
m_logisticalTermsModel(logisticalTermsModel), m_phraseTableModel(phraseTableModel), m_note(note), m_logisticalTermsModel(logisticalTermsModel), m_phraseTableModel(phraseTableModel), m_note(note),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -20,7 +20,7 @@ CSVImport::CSVImport(NumeralCodeModel* numCodeModel, AuthenticationCodeModel* au
QWidget* parent) QWidget* parent)
: QWidget(parent), m_numCodeModel(numCodeModel), m_authenticationCodeModel(authenticationCodeModel), : QWidget(parent), m_numCodeModel(numCodeModel), m_authenticationCodeModel(authenticationCodeModel),
m_logisticalTermsModel(logisticalTermsModel), m_phraseTableModel(phraseTableModel), m_note(note), m_logisticalTermsModel(logisticalTermsModel), m_phraseTableModel(phraseTableModel), m_note(note),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -12,7 +12,7 @@ MainDialog::MainDialog(QWidget *parent) : QDialog(parent)
, m_ui(new Ui::MainDialog) , m_ui(new Ui::MainDialog)
, m_numCodeModel(new NumeralCodeModel(parent)) , m_numCodeModel(new NumeralCodeModel(parent))
.getNGLLogger("COD_Test_NumeralCodeTableMainDialog")), .getNGLLogger("COD_Test_NumeralCodeTableMainDialog")),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
m_ui->setupUi(this); m_ui->setupUi(this);
} }
@@ -9,10 +9,9 @@
namespace ComponentMonitor namespace ComponentMonitor
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:cmo") Q_PLUGIN_METADATA(IID "data:3:cmo")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,10 +10,9 @@
namespace EffectManagement namespace EffectManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:efm.cevapcici") Q_PLUGIN_METADATA(IID "data:3:efm.cevapcici")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
@@ -19,7 +19,7 @@ namespace EffectManagement
QIcon SoundAreaEditPlaylistDelegate::s_iconInf = QIcon(QStringLiteral("icon:infinity.svg")); QIcon SoundAreaEditPlaylistDelegate::s_iconInf = QIcon(QStringLiteral("icon:infinity.svg"));
SoundAreaEditPlaylistDelegate::SoundAreaEditPlaylistDelegate(QObject* parent) SoundAreaEditPlaylistDelegate::SoundAreaEditPlaylistDelegate(QObject* parent)
: QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -65,7 +65,7 @@ void SpinBoxDelegate::updateEditorGeometry(QWidget* editor, const QStyleOptionVi
} }
SoundTreeItem::SoundTreeItem(const QVector<QVariant>& data, const SoundKey& key, SoundTreeItem* parent) SoundTreeItem::SoundTreeItem(const QVector<QVariant>& data, const SoundKey& key, SoundTreeItem* parent)
: m_parent(parent), m_data(data), m_soundKey(key), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : m_parent(parent), m_data(data), m_soundKey(key), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -12,7 +12,7 @@ namespace EffectManagement
{ {
SoundAreaHelper::SoundAreaHelper(SoundAreaHelper* helper) SoundAreaHelper::SoundAreaHelper(SoundAreaHelper* helper)
: m_ismDtc(helper->ismDtc()), m_somDtc(helper->somDtc()), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : m_ismDtc(helper->ismDtc()), m_somDtc(helper->somDtc()), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
QMap<int32_t, InfrastructureManagement::InstrumentationAsset> assets = m_ismDtc->instrumentationAssets(); QMap<int32_t, InfrastructureManagement::InstrumentationAsset> assets = m_ismDtc->instrumentationAssets();
for (const auto& asset : std::as_const(assets)) for (const auto& asset : std::as_const(assets))
@@ -13,7 +13,7 @@ namespace EffectManagement
{ {
SoundAreaSelectDelegate::SoundAreaSelectDelegate(QObject* parent) SoundAreaSelectDelegate::SoundAreaSelectDelegate(QObject* parent)
: QItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -14,7 +14,7 @@ const QIcon SwitchItemDelegate::s_iconOn = QIcon(QStringLiteral("icon:switch_on.
const QIcon SwitchItemDelegate::s_iconOff = QIcon(QStringLiteral("icon:switch_off.svg")); const QIcon SwitchItemDelegate::s_iconOff = QIcon(QStringLiteral("icon:switch_off.svg"));
SwitchItemDelegate::SwitchItemDelegate(QObject* parent) SwitchItemDelegate::SwitchItemDelegate(QObject* parent)
: QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QStyledItemDelegate(parent), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -13,10 +13,9 @@
namespace EffectShowClient namespace EffectShowClient
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:esc") Q_PLUGIN_METADATA(IID "data:3:esc")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -9,10 +9,9 @@
namespace EffectShowManagement namespace EffectShowManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:esm") Q_PLUGIN_METADATA(IID "data:3:esm")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,10 +10,9 @@
namespace Evaluations namespace Evaluations
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:evl") Q_PLUGIN_METADATA(IID "data:3:evl")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -12,7 +12,7 @@ namespace Evaluations
TopicEditorEvaluationModel::TopicEditorEvaluationModel(QObject* parent) TopicEditorEvaluationModel::TopicEditorEvaluationModel(QObject* parent)
: NGLTreeModel(parent, new NGLTreeItem(QVariant()), , : NGLTreeModel(parent, new NGLTreeItem(QVariant()), ,
m_logger(NGL::NGLLoggerBootstrap::getLogger()){tr("Id"), tr("Name"), tr("Weight"), tr("Start Time"), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()){tr("Id"), tr("Name"), tr("Weight"), tr("Start Time"),
tr("Situation"), tr("Video"), tr("Audio")}) tr("Situation"), tr("Video"), tr("Audio")})
{ {
} }
@@ -11,7 +11,7 @@ namespace Evaluations
{ {
EvlNewCommentDialog::EvlNewCommentDialog(const std::shared_ptr<OperatorManagement::Interface::Dtc>& opmDtc, EvlNewCommentDialog::EvlNewCommentDialog(const std::shared_ptr<OperatorManagement::Interface::Dtc>& opmDtc,
QWidget* parent) QWidget* parent)
: QDialog(parent), m_ui(new Ui::EvlNewCommentDialog), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QDialog(parent), m_ui(new Ui::EvlNewCommentDialog), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
m_ui->setupUi(this); m_ui->setupUi(this);
setWindowFlags(Qt::Tool); setWindowFlags(Qt::Tool);
@@ -10,10 +10,9 @@
namespace ExerciseManagement namespace ExerciseManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:exm") Q_PLUGIN_METADATA(IID "data:3:exm")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,6 +10,7 @@
# Data Plugin # Data Plugin
# #
NGL_ADD_LIBRARY(WS FlmDataPlugin MODULE flm_data_plugin.cpp flm_data_plugin.h) NGL_ADD_LIBRARY(WS FlmDataPlugin MODULE flm_data_plugin.cpp flm_data_plugin.h)
set_target_properties(FlmDataPlugin PROPERTIES AUTOMOC ON)
NGL_TARGET_LINK_LIBRARIES(FlmDataPlugin NGL_TARGET_LINK_LIBRARIES(FlmDataPlugin
Qt6::Core Qt6::Core
FlmDataPluginInterface FlmDataPluginInterface
@@ -10,10 +10,9 @@
namespace FileManagement namespace FileManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:flm") Q_PLUGIN_METADATA(IID "data:3:flm")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -6,7 +6,7 @@
namespace FileManagement namespace FileManagement
{ {
FlmHQReportModel::FlmHQReportModel(QObject* parent) FlmHQReportModel::FlmHQReportModel(QObject* parent)
: QAbstractListModel(parent), m_logger(NGL::NGLLoggerBootstrap::getLogger()) : QAbstractListModel(parent), m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger())
{ {
} }
@@ -17,7 +17,7 @@ namespace FileManagement
OfficeIntegration::OfficeIntegration(const FileManagement::FileContent &fileContent, QObject *parent) : QObject(parent) OfficeIntegration::OfficeIntegration(const FileManagement::FileContent &fileContent, QObject *parent) : QObject(parent)
, m_selectedFileContent(fileContent), , m_selectedFileContent(fileContent),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {} m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {}
OfficeIntegration::~OfficeIntegration() OfficeIntegration::~OfficeIntegration()
{ {
@@ -18,7 +18,7 @@ FileContentPreviewPlaybackWidget::FileContentPreviewPlaybackWidget(const std::sh
, m_ui(new Ui::FileContentPreviewPlaybackWidget) , m_ui(new Ui::FileContentPreviewPlaybackWidget)
, m_getContent(new FileManagement::GetFileContent(ftc, this)) , m_getContent(new FileManagement::GetFileContent(ftc, this))
, m_closeTimer(new QTimer(this)), , m_closeTimer(new QTimer(this)),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) { m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
m_ui->setupUi(this); m_ui->setupUi(this);
m_ui->lblPixmap->setVisible(false); m_ui->lblPixmap->setVisible(false);
@@ -14,10 +14,9 @@ namespace FilterManagement
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:flt") Q_PLUGIN_METADATA(IID "data:3:flt")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,10 +10,9 @@
namespace GuezIedManagement namespace GuezIedManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:gim") Q_PLUGIN_METADATA(IID "data:3:gim")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -12,10 +12,9 @@
namespace GuezNasat namespace GuezNasat
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:gna") Q_PLUGIN_METADATA(IID "data:3:gna")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -15,6 +15,7 @@ NGL_ADD_LIBRARY(WS IsmDataPlugin MODULE
ism_foreign_data_plugin.cpp ism_foreign_data_plugin.cpp
ism_foreign_data_plugin.h ism_foreign_data_plugin.h
) )
set_target_properties(IsmDataPlugin PROPERTIES AUTOMOC ON)
NGL_TARGET_LINK_LIBRARIES(IsmDataPlugin NGL_TARGET_LINK_LIBRARIES(IsmDataPlugin
IsmDataPluginInterface IsmDataPluginInterface
IsmShared IsmShared
@@ -9,10 +9,9 @@
namespace InfrastructureManagement namespace InfrastructureManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:ism") Q_PLUGIN_METADATA(IID "data:3:ism")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -14,7 +14,7 @@ namespace InfrastructureManagement
{ {
SetRecordingDialogModel::SetRecordingDialogModel(QObject *parent) : NGLTreeModel(parent, new NGLTreeItem(QVariant()),, SetRecordingDialogModel::SetRecordingDialogModel(QObject *parent) : NGLTreeModel(parent, new NGLTreeItem(QVariant()),,
m_logger(NGL::NGLLoggerBootstrap::getLogger()) { tr("Name") }) m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) { tr("Name") })
, m_dtc(nullptr) , m_dtc(nullptr)
{ {
} }
@@ -250,7 +250,7 @@ TreeItem::TreeItem(int mseId, int sectionId, const QString &displayName, int exe
, m_exerciseId(exerciseId) , m_exerciseId(exerciseId)
, m_originalExerciseId(exerciseId) , m_originalExerciseId(exerciseId)
, m_parentItem(parentItem), , m_parentItem(parentItem),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) { m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
} }
@@ -12,7 +12,7 @@ namespace InfrastructureManagement
NewPlanDialog::NewPlanDialog(LtsSession::LtsSession *session, QWidget *parent) : QDialog(parent) NewPlanDialog::NewPlanDialog(LtsSession::LtsSession *session, QWidget *parent) : QDialog(parent)
, m_ui(new Ui::NewPlanDialog) , m_ui(new Ui::NewPlanDialog)
, m_session(session), , m_session(session),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) { m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
setWindowTitle(tr("Create New Plan")); setWindowTitle(tr("Create New Plan"));
m_ui->setupUi(this); m_ui->setupUi(this);
@@ -25,7 +25,7 @@ PlanChooser::PlanChooser(const std::shared_ptr<Interface::Dtc> &dtc, QWidget *pa
, m_model(nullptr) , m_model(nullptr)
, m_dtc(dtc) , m_dtc(dtc)
, m_selected(false), , m_selected(false),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) { m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {
LtsWidgets::LtsGlobalWaitDialog::getInstance()->setVisible(false); LtsWidgets::LtsGlobalWaitDialog::getInstance()->setVisible(false);
m_ui->setupUi(this); m_ui->setupUi(this);
@@ -9,6 +9,7 @@
# Data Plugin # Data Plugin
# #
NGL_ADD_LIBRARY(WS MrkDataPlugin MODULE mrk_data_plugin.cpp mrk_data_plugin.h) NGL_ADD_LIBRARY(WS MrkDataPlugin MODULE mrk_data_plugin.cpp mrk_data_plugin.h)
set_target_properties(MrkDataPlugin PROPERTIES AUTOMOC ON)
NGL_TARGET_LINK_LIBRARIES(MrkDataPlugin NGL_TARGET_LINK_LIBRARIES(MrkDataPlugin
Qt6::Core Qt6::Core
Qt6::Widgets #QColor/QApplication for trackentry Qt6::Widgets #QColor/QApplication for trackentry
@@ -9,10 +9,9 @@
namespace MarkerManagement namespace MarkerManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:mrk") Q_PLUGIN_METADATA(IID "data:3:mrk")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -62,7 +62,7 @@ bool containsStream(QComboBox *cb, const QString &internalStreamName)
namespace MarkerManagement namespace MarkerManagement
{ {
FinishedSignal::FinishedSignal() : QObject(), FinishedSignal::FinishedSignal() : QObject(),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {} m_logger(NGL::NGLLoggerBootstrap::getNGLRootLogger()) {}
SetMarkers::SetMarkers(LtsSession::LtsSession *session, QWidget *parent) SetMarkers::SetMarkers(LtsSession::LtsSession *session, QWidget *parent)
@@ -13,10 +13,9 @@
namespace Messaging namespace Messaging
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:msg") Q_PLUGIN_METADATA(IID "data:3:msg")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -13,10 +13,9 @@
namespace MeteoDataManagement namespace MeteoDataManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:mdm") Q_PLUGIN_METADATA(IID "data:3:mdm")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,10 +10,9 @@
namespace NotificationManagement namespace NotificationManagement
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:nom") Q_PLUGIN_METADATA(IID "data:3:nom")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,6 +10,7 @@
# Data Plugin # Data Plugin
# #
NGL_ADD_LIBRARY(WS ObdDataPlugin MODULE obd_data_plugin.cpp obd_data_plugin.h) NGL_ADD_LIBRARY(WS ObdDataPlugin MODULE obd_data_plugin.cpp obd_data_plugin.h)
set_target_properties(ObdDataPlugin PROPERTIES AUTOMOC ON)
NGL_TARGET_LINK_LIBRARIES(ObdDataPlugin NGL_TARGET_LINK_LIBRARIES(ObdDataPlugin
Qt6::Core Qt6::Core
ObdDataPluginInterface ObdDataPluginInterface
@@ -10,10 +10,9 @@
namespace OcBaseDownload namespace OcBaseDownload
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:obd") Q_PLUGIN_METADATA(IID "data:3:obd")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
@@ -10,10 +10,9 @@
namespace OcSituationClient namespace OcSituationClient
{ {
class DataPlugin final : public QObject, public DataPluginBase::Plugin class DataPlugin final : public DataPluginBase::Plugin
{ {
Q_PLUGIN_METADATA(IID "data:3:osc") Q_PLUGIN_METADATA(IID "data:3:osc")
Q_INTERFACES(DataPluginBase::Plugin)
Q_OBJECT Q_OBJECT
public: public:
Loaded 100 of 422 files, more files were not shown because too many files have changed in this diff. Show more