31 lines
696 B
C++
Executable File
31 lines
696 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* AreaEffectManangement - Explosion Single Overview Dialog Model
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*
|
|
* Created by Mike Wille, SLSE, 2016-09-26
|
|
*/
|
|
|
|
#include "aes_explosions_single_model.h"
|
|
|
|
namespace AreaEffectSimulation
|
|
{
|
|
|
|
bool ExplosionsSingleModel::initModel(LtsSession::LtsSession *session)
|
|
{
|
|
if (!AesGuiBaseModel::initModel(session))
|
|
return false;
|
|
|
|
connect(m_aesDtc.get(), &Interface::Dtc::explosionSingleChanged,
|
|
this, &ExplosionsSingleModel::onDataChanged);
|
|
|
|
fillAvailableChargeIds(m_gearClass);
|
|
|
|
m_aesDtc->explosionSingles([this](const ExplosionSingle &item) { insertRow(item); });
|
|
return true;
|
|
}
|
|
|
|
} // namespace AreaEffectSimulation
|