Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+1
@@ -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;
|
||||
|
||||
+12
-12
@@ -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);
|
||||
|
||||
+3
@@ -40,6 +40,9 @@ private Q_SLOTS:
|
||||
|
||||
|
||||
private:
|
||||
|
||||
|
||||
NGL::INGLLogger &m_logger;
|
||||
void retranslate() override;
|
||||
bool apply() override;
|
||||
bool checkEqNr();
|
||||
|
||||
+1
-1
@@ -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 ";
|
||||
|
||||
}
|
||||
}
|
||||
+2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user