Adds immediate migration results in progress

This commit is contained in:
torsten committed 2026-08-19 11:18:24 +02:00
1 parent 8453e104c5
commit 3bb6e89496
2102 files changed
+17482 -15071

No files matched your search

@@ -73,7 +73,7 @@ bool SetRecordingDialog::init(const std::shared_ptr<Interface::Dtc> &ismDtc, con
if (!(m_ismDtc->enableMainStructureElement() &&
m_ismFtc->enableMainStructureElementModify()))
{
ERROR_LOG() << "Could not enable ISM topics";
ERROR_LOG(m_logger) << "Could not enable ISM topics";
return false;
}
@@ -88,7 +88,7 @@ bool SetRecordingDialog::init(const std::shared_ptr<Interface::Dtc> &ismDtc, con
{
delete m_model;
m_model = nullptr;
ERROR_LOG() << "Could not init model";
ERROR_LOG(m_logger) << "Could not init model";
return false;
}
@@ -41,6 +41,8 @@ public:
void onDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
bool apply() override final;
@@ -13,8 +13,8 @@
namespace InfrastructureManagement
{
SetRecordingDialogModel::SetRecordingDialogModel(QObject *parent)
: NGLTreeModel(parent, new NGLTreeItem(QVariant()), { tr("Name") })
SetRecordingDialogModel::SetRecordingDialogModel(QObject *parent) : NGLTreeModel(parent, new NGLTreeItem(QVariant()),,
m_logger(NGL::NGLLoggerBootstrap::getLogger()) { tr("Name") })
, m_dtc(nullptr)
{
}
@@ -53,7 +53,7 @@ bool SetRecordingDialogModel::initModel(const std::shared_ptr<Interface::Dtc> &d
if (!(m_dtc->enableMainStructureElement() &&
m_dtc->enableMountingPointAsset()))
{
ERROR_LOG() << "Could not enable Datatopics";
ERROR_LOG(m_logger) << "Could not enable Datatopics";
return false;
}
@@ -62,7 +62,7 @@ bool SetRecordingDialogModel::initModel(const std::shared_ptr<Interface::Dtc> &d
connect(m_dataInterface.get(), &ForeignDataInterface::mountingPointChanged,
this, &SetRecordingDialogModel::onMountingPointChanged);
INFO_LOG() << "initModel successfull";
INFO_LOG(m_logger) << "initModel successfull";
initData();
@@ -121,7 +121,7 @@ void SetRecordingDialogModel::initData()
if(mapGroup.contains(groupId))
continue;
const QString sectionText = InfrastructureManagement::toString(static_cast<InfrastructureManagement::BuildingGroup_def::type>(groupId));
DEBUG_LOG()<<" >> Adding section >> "<<sectionText;
DEBUG_LOG(m_logger)<<" >> Adding section >> "<<sectionText;
NGLTreeItem *sectionRoot = new NGLTreeItem(sectionText);
mapGroup.insert(groupId, sectionRoot);
m_rootItem->appendChild(mapGroup.value(groupId));
@@ -55,6 +55,8 @@ public Q_SLOTS:
void onMountingPointChanged(const MountingPoint &mountingPoint, DataModification modType);
private:
NGL::INGLLogger &m_logger;
static SimpleRecordingData toSimpleRecordingData(const MountingPoint &mountingPoint);
static SimpleRecordingData toSimpleRecordingData(const StructureElement &mountingPoint);
static bool hasCorrectType(const MountingPoint &mountingPoint);