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

@@ -58,6 +58,7 @@ private Q_SLOTS:
void onCoordinate(const QPointF &coord, double radius);
void onClearCoordinate();
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
bool apply() override;
void dialogCanceled () override;
@@ -60,7 +60,7 @@ bool FolderContentEditDialog::init(LtsSession::LtsSessionDataDds *session)
m_session = session;
if (!m_session->getFtc<OcBaseDownload::DataInterface>(m_obdFtc))
{
ERROR_LOG() << "Cant get Obd FTC can't download";
ERROR_LOG(m_logger) << "Cant get Obd FTC can't download";
return false;
}
@@ -130,7 +130,7 @@ void FolderContentEditDialog::onOcPdfDownloadClicked()
}
const QString matrixOperator = LtsSessionData::LtsSessionData::getInstance()->getOperatorName();
DEBUG_LOG()<<Q_FUNC_INFO<<" folderId:" <<folderId<<" operatorName: "<<matrixOperator;
DEBUG_LOG(m_logger)<<Q_FUNC_INFO<<" folderId:" <<folderId<<" operatorName: "<<matrixOperator;
OcBaseDownload::OcPdfDownloadRequest req(folderId,matrixOperator.toStdString());
m_requestHelper->startSingleRequest([req, this]()
{
@@ -157,13 +157,13 @@ void FolderContentEditDialog::onPreviewFile()
if(m_pdfWidget == nullptr)
{
WARNING_LOG()<<" pdf widget not initialized. trying to init...";
WARNING_LOG(m_logger)<<" pdf widget not initialized. trying to init...";
initPdfWidow();
}
QFile f(m_currViewPath);
if(f.open(QIODevice::ReadOnly))
{
DEBUG_LOG() << "Current File: " << m_currViewPath;
DEBUG_LOG(m_logger) << "Current File: " << m_currViewPath;
setPage(1);
setZoomFactor(ZOOM_DEFAULT);
setRotation(Poppler::Page::Rotate0);
@@ -178,7 +178,7 @@ void FolderContentEditDialog::onPreviewFile()
void FolderContentEditDialog::onDeleteFile()
{
TRACE_LOG()<<" delete file START ";
TRACE_LOG(m_logger)<<" delete file START ";
QItemSelectionModel *select = m_ui->filesView->selectionModel();
if(select == nullptr)
return;
@@ -190,7 +190,7 @@ void FolderContentEditDialog::onDeleteFile()
for(const auto index : std::as_const(indexList))
{
fileInfoList << m_fileSystemModel->fileInfo(index);
TRACE_LOG()<< "file path:"<<fileInfoList.last().absoluteFilePath();
TRACE_LOG(m_logger)<< "file path:"<<fileInfoList.last().absoluteFilePath();
}
QDir dir;
@@ -198,11 +198,11 @@ void FolderContentEditDialog::onDeleteFile()
for (auto fileInfo : fileInfoList)
{
bool success = dir.remove(fileInfo.fileName());
TRACE_LOG()<< "remove file:"<<fileInfo.absoluteFilePath() << " | succeed? "<< success;
TRACE_LOG(m_logger)<< "remove file:"<<fileInfo.absoluteFilePath() << " | succeed? "<< success;
}
}
TRACE_LOG() <<" delete file End ";
TRACE_LOG(m_logger) <<" delete file End ";
}
@@ -211,7 +211,7 @@ void FolderContentEditDialog::onDeleteFile()
void FolderContentEditDialog::setDefaultFileSystemPath(QString path)
{
m_filesysPath = path.isEmpty() ? QDir::homePath() : path;
TRACE_LOG()<<" set default filesystem path: "<< path;
TRACE_LOG(m_logger)<<" set default filesystem path: "<< path;
}
@@ -220,7 +220,7 @@ void FolderContentEditDialog::setPage(int pageNo)
{
if (m_pageNo == pageNo)
return;
DEBUG_LOG() << "setPage = " << pageNo;
DEBUG_LOG(m_logger) << "setPage = " << pageNo;
m_pageNo = pageNo;
m_pdfWidget->setPage(pageNo);
emit currentPageChanged(m_pageNo);
@@ -246,7 +246,7 @@ void FolderContentEditDialog::setZoomFactor(double zoomFactor)
{
if (qFuzzyCompare(m_zoomFactor, zoomFactor))
return;
DEBUG_LOG() << "setZoomFactor = " << zoomFactor;
DEBUG_LOG(m_logger) << "setZoomFactor = " << zoomFactor;
m_zoomFactor = zoomFactor;
m_pdfWidget->setZoomFactor(zoomFactor);
}
@@ -257,7 +257,7 @@ void FolderContentEditDialog::setRotation(int rotation)
{
if (m_rotation == rotation)
return;
DEBUG_LOG() << "setRotation = " << rotation;
DEBUG_LOG(m_logger) << "setRotation = " << rotation;
m_rotation = rotation;
m_pdfWidget->setRotation(getRotationFromValue(m_rotation));
emit rotationChanged(rotation);
@@ -40,6 +40,9 @@ private Q_SLOTS:
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
bool apply() override;
bool checkEqNr();
@@ -203,7 +203,7 @@ void FaultMessage::onSpecificsEquipmentChanged(const TrainingAreaBaseOC::Specifi
m_ownEquipmentId = data.equipmentNumber();
if (m_ownEquipmentId <= 0)
WARNING_LOG() << "EquipmentNumber " << data.equipmentNumber() << " is not present ";
WARNING_LOG(m_logger) << "EquipmentNumber " << data.equipmentNumber() << " is not present ";
}
}
@@ -40,6 +40,8 @@ private Q_SLOTS:
void onSpecificsEquipmentChanged(const TrainingAreaBaseOC::SpecificsEquipment &data, const DataModification &modType);
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
bool apply() override;
void timText(QLineEdit *le, QLabel *lbl);
@@ -154,7 +154,7 @@ bool OcParticipantInfo::setUiValues()
}
};
if (!m_sitMapGuiIfc->setMovementTrackCallback(this, onMovementTrackChangedFunc))
ERROR_LOG() << Q_FUNC_INFO << " setMovementTrackCallback failed";
ERROR_LOG(m_logger) << Q_FUNC_INFO << " setMovementTrackCallback failed";
}
break;
}
@@ -37,6 +37,9 @@ public:
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
static void setRed(QWidget *w, bool bRed);
@@ -28,6 +28,8 @@ Q_SIGNALS:
void updateAesList(const QSet<int> &newList);
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
private:
@@ -38,6 +38,8 @@ public:
QVariant data(const QModelIndex &, int) const override;
private:
NGL::INGLLogger &m_logger;
LtsSession::LtsSession *m_session;
std::shared_ptr<AreaEffectSimulation::Interface::Dtc> m_aesDtc;
std::shared_ptr<ProjectDataManagement::Interface::Dtc> m_pdmDtc;
@@ -25,7 +25,7 @@ SelfTest::SelfTest(LtsSession::LtsSession *session, QWidget *parent)
if ( m_session->getDtc<TrainingAreaBaseOC::DataInterface>(m_tabocDtc))
{
WARNING_LOG() << "load tab settings";
WARNING_LOG(m_logger) << "load tab settings";
connect(m_tabocDtc.get(), &TrainingAreaBaseOC::Interface::Dtc::technicalStateSfmChanged,
this, &SelfTest::onSfmStatusChanged);
@@ -35,6 +35,8 @@ private Q_SLOTS:
void onCheckLastCondition();
private:
NGL::INGLLogger &m_logger;
void retranslate() override;
QString getTechStatError(u_char errorID) const;
@@ -51,6 +51,7 @@ private Q_SLOTS:
void onResetRange();
void onSoundCheck();
private:
NGL::INGLLogger &m_logger;
void loadOperatorSettings();
void retranslate() override;
bool apply() override;