- cmake/FindRTI.cmake: Add INTERFACE placeholder targets when RTI not found - cmake/FindRTI.cmake: Force BUILD_RTI=OFF when RTI not installed - Lts/Common/LtsSession/CMakeLists.txt: Make LtsSessionDataDds conditional on BUILD_RTI - Lts/Viewer/CMakeLists.txt: Make LtsDataView conditional on BUILD_RTI - Lts/Plugins/*/CMakeLists.txt: 97 plugin files wrapped in BUILD_RTI conditionals - cmake/NGLMacros.cmake: Fix NGL_ADD_BIG_RESOURCES macro (removed premature return()) - Multiple Qt6 API fixes: QLinkedList→std::list, QStringRef→QStringView, etc. - BUILD_RTI_FIXES_SUMMARY.md: Comprehensive documentation of all fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
80 lines
2.3 KiB
C++
Executable File
80 lines
2.3 KiB
C++
Executable File
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <PresentationManagement/pre_dtc.h>
|
|
#include <Services/PresentationManagement/pre_ftc.h>
|
|
#include <Services/PresentationManagement/logger.h>
|
|
#include <Services/OperatorManagement/opm_dtc.h>
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
#include <LtsUtils/LtsUtilsGui/LtsUtilsGuiDds/request_helper.h>
|
|
#include <LtsSession/lts_session.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class PresentationManagementDialog;
|
|
}
|
|
|
|
namespace PresentationManagement
|
|
{
|
|
enum class ScriptsDialogMode
|
|
{
|
|
modeView = 0,
|
|
modeEdit = 1,
|
|
modeAdmin = 2
|
|
};
|
|
|
|
class PresentationManagementDialogModel;
|
|
class PresentationManagementDialogProxyModel;
|
|
|
|
class PresentationManagementDialog : public LtsWidgets::LtsDialog
|
|
, protected Interface::Ftc::PresentationRemoveReplyHandler
|
|
, protected Interface::Ftc::PresentationChangeStatusReplyHandler
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit PresentationManagementDialog(QWidget *parent = nullptr);
|
|
~PresentationManagementDialog();
|
|
|
|
bool init(const ScriptsDialogMode &dlgMode,
|
|
const std::shared_ptr<Interface::Dtc> &dtc,
|
|
const std::shared_ptr<Interface::Ftc> &ftc,
|
|
const std::shared_ptr<OperatorManagement::Interface::Dtc> &opmDtc,
|
|
LtsSession::LtsSession *session);
|
|
|
|
protected:
|
|
void onPresentationRemoveReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
|
void onPresentationChangeStatusReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); }
|
|
|
|
private:
|
|
void retranslate() override;
|
|
void changeStatus(const FileStatus &fs);
|
|
void tableColumnOrganiserSetting() override;
|
|
|
|
PresentationManagementDialogModel *m_model;
|
|
PresentationManagementDialogProxyModel *m_proxyModel;
|
|
Ui::PresentationManagementDialog *m_ui;
|
|
std::shared_ptr<PresentationManagement::Interface::Dtc> m_dtc;
|
|
std::shared_ptr<PresentationManagement::Interface::Ftc> m_ftc;
|
|
std::shared_ptr<OperatorManagement::Interface::Dtc> m_opmDtc;
|
|
LtsUtils::RequestHelper *m_requestHelper;
|
|
|
|
ScriptsDialogMode m_modeDialog;
|
|
LtsSession::LtsSession *m_session;
|
|
|
|
int m_loadedScriptId {-1};
|
|
private slots:
|
|
void slotAdd();
|
|
void slotEdit();
|
|
void slotRemove();
|
|
void slotDelete();
|
|
void slotRestore();
|
|
void enaDisa();
|
|
void slotSetScriptName(int scriptId);
|
|
|
|
};
|
|
|
|
}
|