21#ifndef __ANTARES_WINDOWS_OUTPUT_PANEL_AREA_LINK_RENDERER_H__
22#define __ANTARES_WINDOWS_OUTPUT_PANEL_AREA_LINK_RENDERER_H__
24#include "../../../toolbox/components/datagrid/renderer.h"
25#include <yuni/core/string.h>
26#include <antares/array/matrix.h>
33namespace OutputViewerData
45 using CellType = Yuni::CString<64, false>;
59 virtual int width()
const;
61 virtual int height()
const;
65 virtual wxString
rowCaption(
int rowIndx)
const;
67 virtual wxString
cellValue(
int,
int)
const;
71 virtual bool cellValue(
int x,
int y,
const Yuni::String& value);
73 virtual void resetColors(
int,
int, wxColour&, wxColour&)
const
82 virtual IRenderer::CellStyle cellStyle(
int,
int)
const;
83 virtual wxColour cellBackgroundColor(
int,
int)
const;
84 virtual wxColour cellTextColor(
int,
int)
const;
88 virtual bool valid()
const;
91 virtual void onSelectCell(
unsigned x,
unsigned y);
92 virtual void onExternalSelectCell(
unsigned x,
unsigned y);
117 std::vector<wxString> pColNames;
118 std::vector<bool> pColToUseForRowCaption;
122 uint pSelectionCellY;
A datagrid with virtual values.
Definition component.h:84
Data provider for Datagrids.
Definition renderer.h:53
A n-by-n matrix.
Definition jit.h:30
Definition area-link-renderer.h:36
virtual wxString rowCaption(int rowIndx) const
Get the caption of a row.
Definition area-link-renderer.cpp:187
virtual wxString columnCaption(int colIndx) const
Get the caption of a column.
Definition area-link-renderer.cpp:180
virtual double cellNumericValue(int, int) const
Get the floating value of a Cell.
Definition area-link-renderer.cpp:283
AreaLinkRenderer(OutputViewerComponent *component, const Antares::Matrix< CellType > *matrix)
Constructor.
Definition area-link-renderer.cpp:36
OutputViewerComponent * pComponent
Reference to the parent control.
Definition area-link-renderer.h:104
uint pSelectionCellX
Current selection.
Definition area-link-renderer.h:121
const MatrixType * pMatrix
The matrix.
Definition area-link-renderer.h:111
virtual ~AreaLinkRenderer()
Destructor.
Definition area-link-renderer.cpp:159
virtual wxColour verticalBorderColor(int x, int y) const
Get the color of the vertical right border.
Definition area-link-renderer.cpp:254
virtual int cellAlignment(int, int) const
Get the alignment of a cell (-1: left, 0: center, +1: right)
Definition area-link-renderer.cpp:278
uint pWidth
The pseudo Width.
Definition area-link-renderer.h:113
virtual void onScroll()
A scroll event has been triggered.
Definition area-link-renderer.cpp:308
virtual wxString cellValue(int, int) const
Get the string representation of a Cell.
Definition area-link-renderer.cpp:261
Antares::Component::Datagrid::Component DatagridType
Grid.
Definition area-link-renderer.h:43
virtual Date::Precision precision()
Time Precision.
Definition area-link-renderer.h:77
virtual bool cellValue(int x, int y, const Yuni::String &value)
Try to modify a cell value.
virtual int width() const
The effective width of the grid.
Definition area-link-renderer.cpp:165
uint pHeight
The pseudo height.
Definition area-link-renderer.h:115
virtual int height() const
The effective height of the grid.
Definition area-link-renderer.cpp:170
Component: Viewer for simulation results.
Definition output.h:49