/** * @RDE_HEADER@ * CustomView for AES Explosion * $Id$ * $HeadURL$ * $Author$ * Created by Mike Wille, SLSE, 2016-04-08 */ #pragma once #include #include namespace Ui { class CustomViewExplosion; } namespace AreaEffectSimulation { class ExplosionArea; class ExplosionSingle; class CustomViewExplosion final : public LtsDataView::AbstractDisplayWidget { Q_OBJECT public: explicit CustomViewExplosion(LtsSession::LtsSession *session, QWidget *parent = nullptr); ~CustomViewExplosion(); bool init(const QModelIndex &idx) override final; private: bool calculateIcon(const AreaEffectSimulation::ExplosionArea &area, const QColor &color); bool calculateIcon(const AreaEffectSimulation::ExplosionSingle &single, const QColor &color); LtsSession::LtsSession *m_session; Ui::CustomViewExplosion *m_ui; }; } // namespace AreaEffectSimulation