60 lines
1.7 KiB
C++
Executable File
60 lines
1.7 KiB
C++
Executable File
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "participant_org_chart.h"
|
|
|
|
#include <ParticipantManagement/logger.h>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
#include <ParticipantManagement/ppm_gui_combobox_plugin_interface.h>
|
|
#include <ParticipantManagement/ppm_participant_info_gui_plugin_interface.h>
|
|
#include <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:
|
|
NGL::INGLLogger &m_logger;
|
|
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;
|
|
};
|
|
|
|
}
|