/** * @RDE_HEADER@ * GUI Plugin for ParticipantManagement - Participant Combat Power Dialog * $Id$ * $HeadURL$ * $Author$ * Created by Patric Karwat, SLSE, 2017-04-07 */ #pragma once #include "participant_org_chart.h" #include #include #include #include #include #include namespace Ui { class CombatPower; } namespace ParticipantManagement { //---------------------------------------------------------------------------- class CombatPower : public LtsWidgets::LtsDialog { Q_OBJECT public: explicit CombatPower(QWidget *parent = nullptr); ~CombatPower(); bool init(const std::shared_ptr &dtc , const std::shared_ptr &asbIfc , const std::shared_ptr &ppmGuiCbxIfc , const std::shared_ptr &ppmGuiInfoIfc); private slots: void onPartyChanged(); void onOpenInfo(int id); void onUpdateDynamicParticipantData(const ParticipantManagement::DynamicParticipantData &data, DataModification modType); void onUpdateParticipant(const Participant &data, DataModification modType); private: void retranslate() override; ParticipantManagement::LtsParticipantsOrgChart *m_orgChart; std::shared_ptr m_dtc; std::shared_ptr m_asbIfc; std::shared_ptr m_ppmGuiCbxIfc; std::shared_ptr m_ppmGuiInfoIfc; static int s_preselectedParty; Ui::CombatPower *m_ui; NGL::INGLLogger &m_logger; }; } //ParticipantManagement