21#ifndef __ANTARES_TOOLBOX_COMPONENTS_DATAGRID__GRID_HELPER_HXX__
22#define __ANTARES_TOOLBOX_COMPONENTS_DATAGRID__GRID_HELPER_HXX__
40inline double VGridHelper::GetValueAsDouble(
int row,
int col)
45inline bool VGridHelper::GetValueAsBool(
int row,
int col)
47 return !Yuni::Math::Zero(GetValueAsDouble(row, col));
57 assert(col < (uint)indicesCols.size());
58 return indicesCols[col];
63 assert(row < (uint)indicesRows.size());
64 return indicesRows[row];
67inline bool VGridHelper::CanValueAs(
int,
int,
const wxString&)
Data provider for Datagrids.
Definition renderer.h:53
virtual int GetNumberCols() override
Get the number of columns that the wxGrid should display.
Definition gridhelper.hxx:35
int realRow(uint row) const
Get the real index used by the renderer of a given row index used by the wxGrid.
Definition gridhelper.hxx:61
bool IsEmptyCell(int, int) override
Get if a cell is empty or not (unused)
Definition gridhelper.hxx:50
Renderer::IRenderer * renderer() const
The renderer.
Definition gridhelper.hxx:72
int realCol(uint col) const
Get the real index used by the renderer of a given column index used by the wxGrid.
Definition gridhelper.hxx:55
virtual double GetNumericValue(int row, int col) const
Get the float value of the cell at a given position.
Definition gridhelper.cpp:536
virtual int GetNumberRows() override
Get the number of rows that the wxGrid should display.
Definition gridhelper.hxx:30