/** * @RDE_HEADER@ * AreaEffectManangement - Explosion Area Overview Dialog Model * $Id$ * $HeadURL$ * $Author$ * * Created by Mike Wille, SLSE, 2016-09-26 */ #include "aes_explosions_area_model.h" namespace AreaEffectSimulation { bool ExplosionsAreaModel::initModel(LtsSession::LtsSession *session) { updateEffectStateComboboxFilterData(true); if (!AesGuiBaseModel::initModel(session)) return false; connect(m_aesDtc.get(), &Interface::Dtc::explosionAreaChanged, this, &ExplosionsAreaModel::onDataChanged); fillAvailableChargeIds(m_gearClass); m_aesDtc->explosionAreas([this](const ExplosionArea &item) { insertRow(item); }); return true; } } // namespace AreaEffectSimulation