35 lines
748 B
C++
Executable File
35 lines
748 B
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* CustomView for Functional Area
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Philipp Dassow, SLEA, 2017-06-09
|
|
*/
|
|
#pragma once
|
|
|
|
#include <Viewer/LtsDataView/abstract_display_widget.h>
|
|
|
|
namespace Ui
|
|
{
|
|
class CustomViewTechnicalArea;
|
|
}
|
|
|
|
namespace AreaEffectSimulation
|
|
{
|
|
class TechnicalArea;
|
|
class CustomViewTechnicalArea final : public LtsDataView::AbstractDisplayWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CustomViewTechnicalArea(QWidget *parent = nullptr);
|
|
~CustomViewTechnicalArea();
|
|
bool init(const QModelIndex &idx) override final;
|
|
|
|
private:
|
|
bool calculateIcon(const AreaEffectSimulation::TechnicalArea &tecArea, const QColor &color);
|
|
|
|
Ui::CustomViewTechnicalArea *m_ui;
|
|
};
|
|
} // namespace AreaEffectSimulation
|