Files
qt5-legatus-legacy/Lts/Plugins/AreaEffectSimulation/Gui/DangerArea/aes_danger_areas_model.cpp
T
2026-08-13 18:33:10 +02:00

34 lines
809 B
C++
Executable File

/**
* @RDE_HEADER@
* AreaEffectManangement - N Contamination Overview Dialog Model
* $Id$
* $HeadURL$
* $Author$
*
* Created by Malte Diers, SLSE, 2017-02-21
*/
#include "aes_danger_areas_model.h"
#include <Plugins/ProjectDataManagement/pdm_data_plugin_interface.h>
#include <QLocale>
namespace AreaEffectSimulation
{
DangerAreasModel::DangerAreasModel(QObject *parent)
: AesGuiBaseModel<DangerArea>(parent)
{}
bool DangerAreasModel::initModel(LtsSession::LtsSession *session)
{
if (!AesGuiBaseModel::initModel(session))
return false;
connect(m_aesDtc.get(), &Interface::Dtc::dangerAreaChanged,
this, &DangerAreasModel::onDataChanged);
m_aesDtc->dangerAreas([this](const DangerArea &item) { insertRow(item); });
return true;
}
} // namespace AreaEffectSimulation