75 lines
1.8 KiB
C++
Executable File
75 lines
1.8 KiB
C++
Executable File
/**
|
|
*@RDE_HEADER@
|
|
* GUI Plugin for HitLine - Info
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, NLSE, 2018-01-19
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
//Lts
|
|
#include <LtsWidgets/lts_dialog.h>
|
|
|
|
//ParticipantManagement
|
|
#include <ParticipantManagement/logger.h>
|
|
#include <ParticipantManagement/ppm_dtc.h>
|
|
|
|
//DDS
|
|
#include <ProjectDataManagement/pdm_dtc.h>
|
|
|
|
//SituationMap
|
|
#include <Plugins/SituationMapPlugin/situation_map_gui_plugin_interface.h>
|
|
|
|
|
|
namespace Ui
|
|
{
|
|
class HitLineInfoDialog;
|
|
}
|
|
|
|
namespace ParticipantManagement
|
|
{
|
|
|
|
// --------------------------------------------------------
|
|
// HitLineInfoDialog
|
|
// --------------------------------------------------------
|
|
class HitLineInfoDialog : public LtsWidgets::LtsDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit HitLineInfoDialog(int hitLineId, QWidget *parent = nullptr);
|
|
~HitLineInfoDialog();
|
|
|
|
bool init(const std::shared_ptr<ParticipantManagement::Interface::Dtc> &dtc,
|
|
const std::shared_ptr<ProjectDataManagement::Interface::Dtc> &pdmDtc,
|
|
const std::shared_ptr<SituationMap::ForeignGuiInterface> &sitMapGuiIfc);
|
|
|
|
private:
|
|
void retranslate() override;
|
|
void showHitLineInfos();
|
|
void findOnMap(int id);
|
|
|
|
|
|
private Q_SLOTS:
|
|
void onFindInjuryOnMap();
|
|
void onFindOriginatorOnMap();
|
|
|
|
private:
|
|
int m_hitLineId;
|
|
HitLineInfo m_hitLineInfo;
|
|
Participant m_participantOriginator;
|
|
Participant m_participantInjury;
|
|
TypeClass m_typeClass;
|
|
bool m_isInitialized;
|
|
|
|
std::shared_ptr<ParticipantManagement::Interface::Dtc> m_dtc;
|
|
std::shared_ptr<ProjectDataManagement::Interface::Dtc> m_pdmDtc;
|
|
std::shared_ptr<SituationMap::ForeignGuiInterface> m_sitMapGuiIfc;
|
|
|
|
Ui::HitLineInfoDialog *m_ui;
|
|
LOGGER_T m_logger;
|
|
};
|
|
} // namespace ParticipantManagement
|