22#ifndef __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_HXX__
23#define __ANTARES_TOOLBOX_COMPONENT_DATAGRID_RENDERER_HXX__
48inline IRenderer::CellStyle IRenderer::cellStyleWithNumericCheck(
int x,
int y)
const
51 ? ((y % 2) ? cellStyleDefaultAlternateDisabled : cellStyleDefaultDisabled)
52 : ((y % 2) ? cellStyleDefaultAlternate : cellStyleDefault);
55inline IRenderer::CellStyle IRenderer::cellStyle(
int,
int y)
const
57 return ((y % 2) ? cellStyleDefaultAlternate : cellStyleDefault);
60inline wxColour IRenderer::cellBackgroundColor(
int,
int)
const
62 return wxColour(255, 255, 255);
65inline wxColour IRenderer::cellTextColor(
int,
int)
const
67 return wxColour(255, 0, 0);
77 return Default::BorderColor();
82 return Default::BorderColor();
122 return Date::stepAny;
130inline void IRenderer::applyLayerFiltering(
size_t ,
VGridHelper* )
virtual bool circularShiftRowsUntilDate(MonthName month, uint daymonth)
Rotate all rows until a given date.
Definition renderer.hxx:125
virtual bool ensureDataAreLoaded()
Make sure all data are effectively loaded.
Definition renderer.hxx:43
virtual double asDouble(int x, int y) const
Read a cell as a double.
Definition renderer.hxx:115
virtual int internalHeight() const
The real height of the matrix in memory.
Definition renderer.hxx:38
virtual double cellNumericValue(int x, int y) const =0
Get the floating value of a Cell.
virtual wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition renderer.hxx:75
virtual wxString cellValue(int x, int y) const =0
Get the string representation of a Cell.
virtual uint maxWidthResize() const
The most suitable column count.
Definition renderer.hxx:85
virtual wxString asString(int x, int y) const
Read a cell as a string.
Definition renderer.hxx:110
virtual void hintForColumnWidth(int x, wxString &out) const
String to use.
Definition renderer.hxx:105
virtual int internalWidth() const
The real width of the matrix in memory.
Definition renderer.hxx:33
virtual bool onMatrixResize(uint oldX, uint oldY, uint &newX, uint &newY)
Event trigerred before resizing a matrix.
Definition renderer.hxx:70
virtual int width() const =0
The effective width of the grid.
virtual int cellAlignment(int x, int y) const
Get the alignment of a cell (-1: left, 0: center, +1: right)
Definition renderer.hxx:95
virtual Date::Precision precision()
Time Precision.
Definition renderer.hxx:120
virtual int height() const =0
The effective height of the grid.
virtual wxColour horizontalBorderColor(int x, int y) const
Get the color of the horizontal bottom border.
Definition renderer.hxx:80
virtual uint maxHeightResize() const
The most suitable column count.
Definition renderer.hxx:90
virtual int columnWidthCustom(int x) const
Get how the a column must resize (0: auto, >0: specific width, <0: use custom string)
Definition renderer.hxx:100
Wrapper between a wxGridTableBase and a renderer
Definition gridhelper.h:47