66 lines
2.0 KiB
C++
Executable File
66 lines
2.0 KiB
C++
Executable File
/**
|
|
* @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 <ParticipantManagement/logger.h>
|
|
#include <Services/ParticipantManagement/ppm_dtc.h>
|
|
#include <Plugins/ParticipantManagement/ppm_gui_combobox_plugin_interface.h>
|
|
#include <Plugins/ParticipantManagement/ppm_participant_info_gui_plugin_interface.h>
|
|
#include <Plugins/AdvancedSymbology/asb_data_plugin_interface.h>
|
|
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
|
|
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<ParticipantManagement::Interface::Dtc> &dtc
|
|
, const std::shared_ptr<AdvancedSymbology::ForeignDataInterface> &asbIfc
|
|
, const std::shared_ptr<ForeignGuiComboboxInterface> &ppmGuiCbxIfc
|
|
, const std::shared_ptr<ForeignParticipantInfoGuiInterface> &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<ParticipantManagement::Interface::Dtc> m_dtc;
|
|
std::shared_ptr<AdvancedSymbology::ForeignDataInterface> m_asbIfc;
|
|
std::shared_ptr<ParticipantManagement::ForeignGuiComboboxInterface> m_ppmGuiCbxIfc;
|
|
std::shared_ptr<ParticipantManagement::ForeignParticipantInfoGuiInterface> m_ppmGuiInfoIfc;
|
|
|
|
static int s_preselectedParty;
|
|
|
|
Ui::CombatPower *m_ui;
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
} //ParticipantManagement
|