Enable Codification/OHP/PlanEditor/OrgChart plugin groups (G12 225); harden new_docker_build.sh
First-build fixes (DDS members, Qt6 transitive WebChannel/PrintSupport drops, logger init, Qt5 guard); script: log_warn, BUILD_WLS default ON, Poppler image+APT, XmlPatterns 6.0 wording
This commit is contained in:
11 files changed
+278
-61
No files matched your search
+29
-29
@@ -23,7 +23,7 @@
|
||||
|
||||
#include <LtsUtils/LtsUtilsGui/LtsUtilsGuiDds/request_helper.h>
|
||||
|
||||
#include <flm_data_plugin_interface.h>
|
||||
#include <Plugins/FileManagement/flm_data_plugin_interface.h>
|
||||
#include <FileManagement/flm_explorer_gui_plugin_interface.h>
|
||||
|
||||
#include <ParticipantManagement/ppm_data_plugin_interface.h>
|
||||
@@ -475,9 +475,9 @@ bool InterfaceImpl::fmsCreatePlan(bool clearGeometryModel)
|
||||
|
||||
FileManagement::FileContent fc = m_internal->m_flmDtc->fileContent(fileId);
|
||||
|
||||
m_internal->m_currentFolderId = fc.folderId();
|
||||
m_internal->m_currentFolderId = fc.folderId;
|
||||
m_internal->m_currentFileId = fileId;
|
||||
m_internal->m_currentNameOfPlan = QString::fromStdString(fc.name());
|
||||
m_internal->m_currentNameOfPlan = QString::fromStdString(fc.name);
|
||||
|
||||
QFileInfo fileInfo(m_internal->m_currentNameOfPlan);
|
||||
m_internal->m_planEditor->setNameOfPlan(fileInfo.baseName());
|
||||
@@ -511,7 +511,7 @@ bool InterfaceImpl::fmsModifyPlan(int fileId, bool saveAs)
|
||||
}
|
||||
|
||||
FileManagement::FileContent fileContent = m_internal->m_flmDtc->fileContent(fileId);
|
||||
bool differentUser = fileContent.operatorId() != LtsSessionData::LtsSessionData::getInstance()->getOperatorId();
|
||||
bool differentUser = fileContent.operatorId != LtsSessionData::LtsSessionData::getInstance()->getOperatorId();
|
||||
|
||||
if (saveAs || differentUser)
|
||||
{
|
||||
@@ -527,8 +527,8 @@ bool InterfaceImpl::fmsModifyPlan(int fileId, bool saveAs)
|
||||
}
|
||||
|
||||
|
||||
QString nameOfPlan = QString::fromStdString(fileContent.name());
|
||||
m_internal->m_currentFolderId = fileContent.folderId();
|
||||
QString nameOfPlan = QString::fromStdString(fileContent.name);
|
||||
m_internal->m_currentFolderId = fileContent.folderId;
|
||||
m_internal->m_currentNameOfPlan = nameOfPlan;
|
||||
m_internal->m_currentFileId = fileId;
|
||||
|
||||
@@ -592,7 +592,7 @@ void InterfaceImpl::fmsReadPlan()
|
||||
m_internal->m_planEditor->onPlanReset();
|
||||
|
||||
FileManagement::FileContent fc = m_internal->m_flmDtc->fileContent(fileId);
|
||||
QString nameOfPlan = QString::fromStdString(fc.name());
|
||||
QString nameOfPlan = QString::fromStdString(fc.name);
|
||||
|
||||
if (content.size() == 0)
|
||||
{
|
||||
@@ -606,8 +606,8 @@ void InterfaceImpl::fmsReadPlan()
|
||||
m_internal->m_planEditor->setPlan(content);
|
||||
|
||||
m_internal->m_currentNameOfPlan = nameOfPlan;
|
||||
m_internal->m_currentFolderId = fc.folderId();
|
||||
m_internal->m_currentFileId = fc.id();
|
||||
m_internal->m_currentFolderId = fc.folderId;
|
||||
m_internal->m_currentFileId = fc.id;
|
||||
|
||||
QFileInfo fileInfo(m_internal->m_currentNameOfPlan);
|
||||
m_internal->m_planEditor->setNameOfPlan(fileInfo.baseName());
|
||||
@@ -650,7 +650,7 @@ void InterfaceImpl::fmsImportPlan()
|
||||
if (fileId > 0)
|
||||
{
|
||||
FileManagement::FileContent fc = m_internal->m_flmDtc->fileContent(fileId);
|
||||
QString nameOfPlan = QString::fromStdString(fc.name());
|
||||
QString nameOfPlan = QString::fromStdString(fc.name);
|
||||
if (content.size() == 0)
|
||||
{
|
||||
ERROR_LOG(m_logger) << "Error plan [" << nameOfPlan << "] is empty";
|
||||
@@ -690,7 +690,7 @@ bool InterfaceImpl::fmsWritePlan(bool saveAs)
|
||||
|
||||
FileManagement::FileContent planFileContent;
|
||||
if (m_internal->m_flmDtc->getFile(FileManagement::FileType::TacticalPlan, m_internal->m_currentFolderId, m_internal->m_currentNameOfPlan, planFileContent))
|
||||
m_internal->m_currentFileId = planFileContent.id();
|
||||
m_internal->m_currentFileId = planFileContent.id;
|
||||
}
|
||||
|
||||
if (saveAs || (m_internal->m_currentFileId <= 0))
|
||||
@@ -726,7 +726,7 @@ void InterfaceImpl::fmsDeletePlan()
|
||||
if (fileId > 0)
|
||||
{
|
||||
FileManagement::FileContent fc = m_internal->m_flmDtc->fileContent(fileId);
|
||||
QString nameOfPlan = QString::fromStdString(fc.name());
|
||||
QString nameOfPlan = QString::fromStdString(fc.name);
|
||||
|
||||
LtsWidgets::Button doIt = LtsWidgets::LtsMessageDialog::showMessage(
|
||||
m_session->baseLayout()
|
||||
@@ -753,7 +753,7 @@ void InterfaceImpl::fmsDeletePlan()
|
||||
|
||||
void InterfaceImpl::onPlanContentChanged(const FileManagement::FileContent &data, DataModification modType)
|
||||
{
|
||||
if (data.fileType() != FileManagement::FileType::TacticalPlan)
|
||||
if (data.fileType != FileManagement::FileType::TacticalPlan)
|
||||
return;
|
||||
|
||||
switch (modType)
|
||||
@@ -761,7 +761,7 @@ void InterfaceImpl::onPlanContentChanged(const FileManagement::FileContent &data
|
||||
case DataModification::eModified :
|
||||
break;
|
||||
case DataModification::eRemoved :
|
||||
if (m_internal->m_currentFileId == data.id())
|
||||
if (m_internal->m_currentFileId == data.id)
|
||||
m_internal->m_currentFileId = -1;
|
||||
break;
|
||||
|
||||
@@ -780,7 +780,7 @@ void InterfaceImpl::onIterateParticipantsSidc()
|
||||
|
||||
auto gatherUpSidc = [&participantSidcsInUse](const ParticipantManagement::Participant & data)
|
||||
{
|
||||
const QString &sidcCode = QString::fromStdString(data.symbol());
|
||||
const QString &sidcCode = QString::fromStdString(data.symbol);
|
||||
|
||||
if (AdvancedSymbology::SidcCodec::isEncoded(sidcCode))
|
||||
{
|
||||
@@ -822,7 +822,7 @@ void InterfaceImpl::readSymbolFavouritesRequest(const QString &favName, QString
|
||||
return;
|
||||
}
|
||||
|
||||
int fileId = fileContent.id();
|
||||
int fileId = fileContent.id;
|
||||
QByteArray content;
|
||||
|
||||
if (!m_internal->m_flmGui->loadContent(fileId, content, true))
|
||||
@@ -929,23 +929,23 @@ void InterfaceImpl::storeSymbolFavouritesRequest(const QString &favName, const Q
|
||||
LtsWidgets::LtsMessageDialog::showMessage(m_session->baseLayout(), msg, m_internal->m_messageBoxTitle);
|
||||
return;
|
||||
}
|
||||
if (!m_internal->m_flmGui->saveContent(favContent.id(), favXMLContent.toUtf8(), QString()))
|
||||
if (!m_internal->m_flmGui->saveContent(favContent.id, favXMLContent.toUtf8(), QString()))
|
||||
ERROR_LOG(m_logger) << "Cannot save symbol favourites in library";
|
||||
}
|
||||
else
|
||||
{
|
||||
favContent.name(favName.toStdString());
|
||||
favContent.isTemplate(false);
|
||||
favContent.isUsedBy(false);
|
||||
favContent.usedBy(0);
|
||||
favContent.folderId(folderId);
|
||||
favContent.fileStatus(FileManagement::FileStatus::Valid);
|
||||
favContent.fileCategory(FileManagement::FileCategory::Global);
|
||||
favContent.fileType(FileManagement::FileType::OperatorFavourite);
|
||||
favContent.exerciseId();
|
||||
favContent.phaseId();
|
||||
favContent.lastModified(QDateTime::currentMSecsSinceEpoch());
|
||||
favContent.operatorId(LtsSessionData::LtsSessionData::getInstance()->getOperatorId());
|
||||
favContent.name = favName.toStdString();
|
||||
favContent.isTemplate = false;
|
||||
favContent.isUsedBy = false;
|
||||
favContent.usedBy = 0;
|
||||
favContent.folderId = folderId;
|
||||
favContent.fileStatus = FileManagement::FileStatus::Valid;
|
||||
favContent.fileCategory = FileManagement::FileCategory::Global;
|
||||
favContent.fileType = FileManagement::FileType::OperatorFavourite;
|
||||
favContent.exerciseId = 0;
|
||||
favContent.phaseId = 0;
|
||||
favContent.lastModified = QDateTime::currentMSecsSinceEpoch();
|
||||
favContent.operatorId = LtsSessionData::LtsSessionData::getInstance()->getOperatorId();
|
||||
|
||||
|
||||
ERROR_LOG(m_logger) << "New file content = " << favXMLContent;
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
#include <PluginInterfaces/gui_plugin_interface.h>
|
||||
#include <Lts/Common/ProjectConfig/project_defines.h>
|
||||
#include <PlanEditor/PlanEditorPlugin/plan_editor_gui_plugin_interface.h>
|
||||
#include <flm_data_plugin_interface.h>
|
||||
#include <Plugins/FileManagement/flm_data_plugin_interface.h>
|
||||
|
||||
#include <QtCore/QObject>
|
||||
|
||||
|
||||
Reference in new issue
Block a user