Files
qt5-legatus-legacy/Lts/Plugins/CollateralDamageSimulation/Gui/CreateSimulation/cds_simulation_dialog.h
T
2026-08-13 18:33:10 +02:00

67 lines
1.6 KiB
C++
Executable File

/**
* Dialog to show affected participants and builsings by an impact
* @RDE_HEADER@
* $Id: ppm_msdl_edit.h 52239 2020-10-05 11:33:12Z thoden $
* $HeadURL: svn://192.168.133.21/TDS/branches/product/features/3dws_devel/Lts/Plugins/ParticipantManagement/Gui/MSDL/ppm_msdl_edit.h $
* $Author: thoden $
* Created by Hannes Fritsche, ESZS, 2024-08-05
*/
#pragma once
#include <LtsWidgets/lts_dialog.h>
#include <NGLLogger/INGLLogger.h>
class QListWidget;
namespace Ui
{
class SimulationDialog;
}
namespace InfrastructureManagement
{
namespace Interface
{
class Dtc;
}
}
namespace ParticipantManagement
{
namespace Interface
{
class Dtc;
}
}
namespace CollateralDamageSimulation
{
class BuildingModel;
class ParticipantModel;
class SimulationDialog : public LtsWidgets::LtsDialog
{
Q_OBJECT
public:
explicit SimulationDialog(QWidget *parent = nullptr);
void init(const QVector<int> &buildingsInRange,
const QVector<int> &participantsWithoutProtection,
const QVector<int> &participantsWithProtection,
const std::shared_ptr<InfrastructureManagement::Interface::Dtc> &ismDtc,
const std::shared_ptr<ParticipantManagement::Interface::Dtc> &ppmDtc);
void retranslate() override final;
private: // attributes
ParticipantModel *m_participantsWithoutProtectionModel { nullptr };
ParticipantModel *m_participantsWithProtectionModel { nullptr };
BuildingModel *m_buildingModel { nullptr };
Ui::SimulationDialog *m_ui;
};
} // namespace CollateralDamageSimulation