21 #ifndef __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_SCENARIO_BUILDER_H__
22 #define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_SCENARIO_BUILDER_H__
24 #include "../renderer.h"
25 #include <antares/study/scenario-builder/rules.h>
26 #include "../../../../toolbox/input/area.h"
28 namespace Antares::Component::Datagrid::Renderer
36 int width()
const override;
38 wxString
cellValue(
int x,
int y)
const override;
40 void resetColors(
int,
int, wxColour&, wxColour&)
const override
50 IRenderer::CellStyle cellStyle(
int col,
int row)
const override;
52 void control(wxWindow* gridPanel)
54 pGridPanel = gridPanel;
73 wxWindow* pGridPanel =
nullptr;
88 int height()
const override;
89 wxString
rowCaption(
int rowIndx)
const override;
91 bool valid()
const override;
106 bool valid()
const override;
Data provider for Datagrids.
Definition: renderer.h:50
Definition: scenario-builder-renderer-base.h:83
wxString rowCaption(int rowIndx) const override
Get the caption of a row.
Definition: scenario-builder-renderer-base.cpp:132
int height() const override
The effective height of the grid.
Definition: scenario-builder-renderer-base.cpp:123
Definition: scenario-builder-renderer-base.h:31
wxString cellValue(int x, int y) const override
Get the string representation of a Cell.
Definition: scenario-builder-renderer-base.cpp:62
void onRulesChanged(Data::ScenarioBuilder::Rules::Ptr rules)
Event: A rules set has been changed.
Definition: scenario-builder-renderer-base.cpp:38
virtual void onStudyClosed()
Event: the study has been closed.
Definition: scenario-builder-renderer-base.cpp:113
uint maxWidthResize() const override
The most suitable column count.
Definition: scenario-builder-renderer-base.h:45
wxString columnCaption(int colIndx) const override
Get the caption of a column.
Definition: scenario-builder-renderer-base.cpp:57
int width() const override
The effective width of the grid.
Definition: scenario-builder-renderer-base.cpp:52
Definition: scenario-builder-renderer-base.h:101
void onStudyClosed() override
Event: the study has been closed.
Definition: scenario-builder-renderer-base.cpp:164
Definition for a single area.
Definition: area.h:51
std::shared_ptr< Rules > Ptr
Smart pointer.
Definition: rules.h:53