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"
42 int width()
const override;
44 wxString
cellValue(
int x,
int y)
const override;
46 void resetColors(
int,
int, wxColour&, wxColour&)
const override
55 IRenderer::CellStyle cellStyle(
int col,
int row)
const override;
57 void control(wxWindow* gridPanel)
59 pGridPanel = gridPanel;
77 wxWindow* pGridPanel =
nullptr;
92 int height()
const override;
93 wxString
rowCaption(
int rowIndx)
const override;
95 bool valid()
const override;
110 bool valid()
const override;
Data provider for Datagrids.
Definition renderer.h:53
Definition scenario-builder-renderer-base.h:87
wxString rowCaption(int rowIndx) const override
Get the caption of a row.
Definition scenario-builder-renderer-base.cpp:122
int height() const override
The effective height of the grid.
Definition scenario-builder-renderer-base.cpp:115
Definition scenario-builder-renderer-base.h:37
wxString cellValue(int x, int y) const override
Get the string representation of a Cell.
Definition scenario-builder-renderer-base.cpp:66
void onRulesChanged(Data::ScenarioBuilder::Rules::Ptr rules)
Event: A rules set has been changed.
Definition scenario-builder-renderer-base.cpp:44
virtual void onStudyClosed()
Event: the study has been closed.
Definition scenario-builder-renderer-base.cpp:105
uint maxWidthResize() const override
The most suitable column count.
Definition scenario-builder-renderer-base.h:51
wxString columnCaption(int colIndx) const override
Get the caption of a column.
Definition scenario-builder-renderer-base.cpp:61
int width() const override
The effective width of the grid.
Definition scenario-builder-renderer-base.cpp:56
Definition scenario-builder-renderer-base.h:105
void onStudyClosed() override
Event: the study has been closed.
Definition scenario-builder-renderer-base.cpp:152
Definition for a single area.
Definition area.h:52
std::shared_ptr< Rules > Ptr
Smart pointer.
Definition rules.h:55