Files
qt5-legatus-legacy/Lts/Plugins/ParticipantManagement/Gui/MSDL/ppm_msdl_edit.h
T
2026-08-13 18:33:10 +02:00

87 lines
2.1 KiB
C++
Executable File

/**
* @RDE_HEADER@
* $Id$
* $HeadURL$
* $Author$
* Created by Philipp Last, SLSE, 2017-10-26
*/
#pragma once
#include <ParticipantManagement/logger.h>
#include <Services/ParticipantManagement/ppm_dtc.h>
#include <Services/ParticipantManagement/ppm_ftc.h>
#include <Plugins/ParticipantManagement/ppm_gui_combobox_plugin_interface.h>
#include <LtsWidgets/lts_dialog.h>
#include <LtsSession/lts_session.h>
#include <LtsUtilsGuiDds/request_helper.h>
class QSortFilterProxyModel;
namespace AdvancedSymbology
{
class ForeignDataInterface;
}
namespace Ui
{
class MSDLDialog;
}
namespace ParticipantManagement
{
class ParticipantEditModel;
class ParticipantTreeEditHandler;
class MSDLEdit : public LtsWidgets::LtsDialog
{
Q_OBJECT
public:
MSDLEdit(LtsSession::LtsSession *session, QWidget *parent = nullptr);
~MSDLEdit();
bool init(const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc,
const std::shared_ptr<ParticipantManagement::Interface::Ftc> &ftc,
const std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> &ppmGuiCbxIfc);
private:
void retranslate() override;
bool apply() override;
void lock() override;
void unlock() override;
void tableColumnOrganiserSetting() override;
protected slots:
void onEnaDisa(); // enable/disable the widgets
void onAddItem();
void onEditItem();
void onPartyChanged();
void onImport();
void onExport();
void onDistypeEditor();
private:
QAction *m_actionRemove;
QAction *m_actionEdit;
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_ppmDtc;
std::shared_ptr<ParticipantManagement::Interface::Ftc> m_ppmFtc;
std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> m_ppmGuiCbxIfc;
std::shared_ptr<AdvancedSymbology::ForeignDataInterface> m_asb;
LtsSession::LtsSession *m_session;
ParticipantTreeEditHandler *m_pTreehandlerSystem;
ParticipantTreeEditHandler *m_pTreehandlerImport;
ParticipantEditModel *m_pModelSystem;
ParticipantEditModel *m_pModelImport;
Ui::MSDLDialog *m_ui;
NGL::INGLLogger &m_logger;
};
} //ParticipantManagement