/** * @RDE_HEADER@ * HMI Plugin for ParticipantManagement - Template Overview Dialog * $Id$ * $HeadURL$ * $Author$ * Created by Patric Karwat, SLSE, 2016-10-05 */ #pragma once #include "participant_template_chooser_model.h" #include #include #include #include #include #include #include namespace AdvancedSymbology { class ForeignDataInterface; } namespace Ui { class ParticipantTemplateChooser; } namespace ParticipantManagement { class ParticipantTemplateChooser : public LtsWidgets::LtsDialog , protected ParticipantManagement::Interface::Ftc::ModifyTemplateDataReplyHandler { Q_OBJECT public: explicit ParticipantTemplateChooser(const QString &menuGroup, bool asSupportService, LtsSession::LtsSession *session, QWidget *parent = nullptr); ~ParticipantTemplateChooser(); bool init(const std::shared_ptr &dtc, const std::shared_ptr &ftc, const std::shared_ptr &ppmGuiCbxIfc, const std::shared_ptr &ppmGuiOrgChartIfc); private slots: void onAddTemplate(); void onEditTemplate(); void onEditTemplateOrgChart(); void onRemoveTemplate(); void onPrint(); private: void retranslate() override; void onModifyTemplateDataReply(const Core::FunctionReplyObject &replyObject) override final { m_requestHelper->requestReply(replyObject); } void tableColumnOrganiserSetting() override; QString m_menuGroup; bool m_asSupportService; ParticipantTemplateChooserModel *m_model; std::shared_ptr m_dtc; std::shared_ptr m_ftc; std::shared_ptr m_ppmGuiCbxIfc; std::shared_ptr m_ppmGuiOrgChartIfc; std::shared_ptr m_asbIfc; LtsSession::LtsSession *m_session; LtsUtils::RequestHelper *m_requestHelper; Ui::ParticipantTemplateChooser *m_ui; LOGGER_T m_logger; }; } // namespace ParticipantManagement