Qt6 Migration: Complete migration with DDS/RTI support and build validation
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>
This commit is contained in:
18662 files changed
+4115092
-5435
No files matched your search
@@ -0,0 +1,106 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
*
|
||||
* TableModel for dynamic topics
|
||||
*
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QAbstractItemModel>
|
||||
#include <QSortFilterProxyModel>
|
||||
#include <QVector>
|
||||
#include <QDateTime>
|
||||
#include <QSharedPointer>
|
||||
#include <QStringList>
|
||||
|
||||
#include <dds/core/xtypes/DynamicData.hpp>
|
||||
|
||||
#include <LtsUtilsCore/data_modification_enum.h>
|
||||
#include "logger.h"
|
||||
|
||||
class QDomDocument;
|
||||
class QDomElement;
|
||||
class TelegramSortModel;
|
||||
|
||||
class TelegramModel final : public QAbstractTableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit TelegramModel(QObject *parent = nullptr);
|
||||
|
||||
enum Column
|
||||
{
|
||||
DateTime = 0,
|
||||
TopicName = 1,
|
||||
TypeName = 2,
|
||||
Info = 3,
|
||||
Maximum = Info
|
||||
};
|
||||
|
||||
struct TelegramData
|
||||
{
|
||||
QDateTime dateTime;
|
||||
std::string typeName;
|
||||
QString topicName;
|
||||
QString info;
|
||||
DataModification modType;
|
||||
QSharedPointer<dds::core::xtypes::DynamicData> legatusData;
|
||||
|
||||
void toXml(QDomDocument &doc, QDomElement &de) const;
|
||||
bool fromXml(QDomElement &de);
|
||||
};
|
||||
|
||||
int rowCount(const QModelIndex &parent) const override;
|
||||
int columnCount(const QModelIndex &parent) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
TelegramData telegramData(const QModelIndex &index) const;
|
||||
|
||||
void processData(const dds::core::xtypes::DynamicData &data, const QString &topicName, DataModification modType);
|
||||
|
||||
const QString topicName(const QModelIndex &index) const;
|
||||
const std::string typeName(const QModelIndex &index) const;
|
||||
const QSharedPointer<dds::core::xtypes::DynamicData> dynamicData(const QModelIndex &index) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
Qt::DropActions supportedDropActions() const override;
|
||||
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const override;
|
||||
QStringList mimeTypes() const override;
|
||||
|
||||
void onTypeCodeInfosChanged();
|
||||
|
||||
bool deleteRow(const QModelIndex &index);
|
||||
|
||||
public slots:
|
||||
void onClear();
|
||||
|
||||
signals:
|
||||
void send(const QSharedPointer<dds::core::xtypes::DynamicData> &data, const QString &topicName);
|
||||
|
||||
private:
|
||||
QString getString(const dds::core::xtypes::DynamicData &data, uint32_t member_index) const;
|
||||
QString getInfo(const dds::core::xtypes::DynamicData &data, const QString &topicName) const;
|
||||
QMap<QString, QString> getInfoInternal(const dds::core::xtypes::DynamicData &data, const QStringList &fields) const;
|
||||
|
||||
|
||||
QVector<TelegramData> m_data;
|
||||
QMap<QString, QStringList> m_infoList;
|
||||
NGL::INGLLogger &m_logger;
|
||||
|
||||
friend class TelegramSortModel;
|
||||
};
|
||||
|
||||
class TelegramSortModel final : public QSortFilterProxyModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
using QSortFilterProxyModel::QSortFilterProxyModel;
|
||||
protected:
|
||||
bool lessThan(const QModelIndex &left,
|
||||
const QModelIndex &right) const override;
|
||||
};
|
||||
Reference in new issue
Block a user