Antares Simulator
Power System Simulator
|
Public Types | |
using | IRenderer = Antares::Component::Datagrid::Renderer::IRenderer |
Convenient alias. | |
using | OutputViewerComponent = Antares::Window::OutputViewer::Component |
The output viewer. | |
using | DatagridType = Antares::Component::Datagrid::Component |
Grid. | |
using | CellType = Yuni::CString<64, false> |
![]() | |
enum | CellStyle { cellStyleDefault = 0 , cellStyleCustom , cellStyleDefaultAlternate , cellStyleDefaultDisabled , cellStyleDefaultAlternateDisabled , cellStyleDefaultCenter , cellStyleDefaultCenterAlternate , cellStyleDefaultCenterDisabled , cellStyleDefaultCenterAlternateDisabled , cellStyleWarning , cellStyleError , cellStyleDisabled , cellStyleAverage , cellStyleSum , cellStyleMinMax , cellStyleConstraintEnabled , cellStyleConstraintDisabled , cellStyleConstraintNoWeight , cellStyleConstraintWeight , cellStyleConstraintWeightCount , cellStyleConstraintOperator , cellStyleConstraintType , cellStyleLayerDisabled , cellStyleFilterYearByYearOn , cellStyleFilterYearByYearOff , cellStyleFilterSynthesisOn , cellStyleFilterSynthesisOff , cellStyleFilterUndefined , cellStyleAdqPatchVirtual , cellStyleAdqPatchOutside , cellStyleAdqPatchInside , cellStyleMax } |
Public Member Functions | |
Constructor & Destructor | |
AreaLinkRenderer (OutputViewerComponent *component, const Antares::Matrix< CellType > *matrix) | |
Constructor. | |
virtual | ~AreaLinkRenderer () |
Destructor. | |
virtual int | width () const |
The effective width of the grid. | |
virtual int | height () const |
The effective height of the grid. | |
virtual wxString | columnCaption (int colIndx) const |
Get the caption of a column. | |
virtual wxString | rowCaption (int rowIndx) const |
Get the caption of a row. | |
virtual wxString | cellValue (int, int) const |
Get the string representation of a Cell. | |
virtual double | cellNumericValue (int, int) const |
Get the floating value of a Cell. | |
virtual bool | cellValue (int x, int y, const Yuni::String &value) |
Try to modify a cell value. | |
virtual void | resetColors (int, int, wxColour &, wxColour &) const |
virtual Date::Precision | precision () |
Time Precision. | |
virtual IRenderer::CellStyle | cellStyle (int, int) const |
virtual wxColour | cellBackgroundColor (int, int) const |
virtual wxColour | cellTextColor (int, int) const |
virtual wxColour | verticalBorderColor (int x, int y) const |
Get the color of the vertical right border. | |
virtual int | cellAlignment (int, int) const |
Get the alignment of a cell (-1: left, 0: center, +1: right) | |
virtual bool | valid () const |
virtual void | onScroll () |
A scroll event has been triggered. | |
virtual void | onSelectCell (unsigned x, unsigned y) |
virtual void | onExternalSelectCell (unsigned x, unsigned y) |
![]() | |
IRenderer () | |
Default constructor. | |
virtual | ~IRenderer () |
Destructor. | |
virtual int | internalWidth () const |
The real width of the matrix in memory. | |
virtual int | internalHeight () const |
The real height of the matrix in memory. | |
virtual wxString | asString (int x, int y) const |
Read a cell as a string. | |
virtual double | asDouble (int x, int y) const |
Read a cell as a double. | |
void | appendCellValue (int x, int y, Yuni::String &s) const |
IRenderer::CellStyle | cellStyleWithNumericCheck (int x, int y) const |
virtual wxColour | horizontalBorderColor (int x, int y) const |
Get the color of the horizontal bottom border. | |
virtual int | columnWidthCustom (int x) const |
Get how the a column must resize (0: auto, >0: specific width, <0: use custom string) | |
virtual void | hintForColumnWidth (int x, wxString &out) const |
String to use. | |
virtual bool | ensureDataAreLoaded () |
Make sure all data are effectively loaded. | |
virtual uint | maxWidthResize () const |
The most suitable column count. | |
virtual uint | maxHeightResize () const |
The most suitable column count. | |
virtual void | resizeMatrixToXColumns (uint) |
Resize the internal matrix with a given col count. | |
virtual bool | onMatrixResize (uint oldX, uint oldY, uint &newX, uint &newY) |
Event trigerred before resizing a matrix. | |
virtual void | onMatrixLoad () |
Event triggered right after a matrix was loaded by the renderer. | |
virtual bool | circularShiftRowsUntilDate (MonthName month, uint daymonth) |
Rotate all rows until a given date. | |
virtual void | onSelectCell (uint, uint) |
A cell has been selected. | |
virtual void | applyLayerFiltering (size_t layerID, VGridHelper *gridHelper) |
Grid | |
using | MatrixType = Antares::Matrix<CellType> |
Matrix. | |
OutputViewerComponent * | pComponent |
Reference to the parent control. | |
DatagridType * | pGrid |
const MatrixType * | pMatrix |
The matrix. | |
uint | pWidth |
The pseudo Width. | |
uint | pHeight |
The pseudo height. | |
std::vector< wxString > | pColNames |
std::vector< bool > | pColToUseForRowCaption |
uint | pSelectionCellX |
Current selection. | |
uint | pSelectionCellY |
void | grid (DatagridType *grid) |
Additional Inherited Members | |
![]() | |
static const wxChar * | CellStyleToCSSClass (CellStyle s) |
static void | CellStyleToCSSClass (CellStyle s, Yuni::String &str) |
![]() | |
Yuni::Event< void()> | onRefresh |
Event on refresh. | |
Date::Precision | dataGridPrecision |
The real precision asked by the datagrid. | |
Data::Study::Ptr | study |
Attached study (if any) | |
bool | invalidate |
True to invalidate the current data and force a refresh for the next call to DBGrid:onDraw. | |
![]() | |
virtual void | onStudyClosed () |
Event: the study has been closed. | |
virtual void | onStudyLoaded () |
Event: the study has been loaded. | |
|
virtual |
Get the alignment of a cell (-1: left, 0: center, +1: right)
Reimplemented from Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
Reimplemented from Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
Get the floating value of a Cell.
Implements Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
Reimplemented from Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
Reimplemented from Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
Try to modify a cell value.
Implements Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
Get the string representation of a Cell.
Implements Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
Get the caption of a column.
Implements Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
The effective height of the grid.
Implements Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
A scroll event has been triggered.
Reimplemented from Antares::Component::Datagrid::Renderer::IRenderer.
|
inlinevirtual |
Time Precision.
Reimplemented from Antares::Component::Datagrid::Renderer::IRenderer.
|
inlinevirtual |
|
virtual |
Get the caption of a row.
Implements Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
|
virtual |
Get the color of the vertical right border.
Reimplemented from Antares::Component::Datagrid::Renderer::IRenderer.
|
virtual |
The effective width of the grid.
Implements Antares::Component::Datagrid::Renderer::IRenderer.