24#include "../../renderer.h"
25#include "../../../../input/area.h"
26#include "../../../../../application/study.h"
43 static bool Validate(
const T&)
51 static bool Validate(uint f)
53 return (f == 1) || (f == 24) || (f == 168);
59 static bool Validate(uint& f)
72 OnInspectorRefresh(
nullptr);
80 MarkTheStudyAsModified();
81 OnInspectorRefresh(
nullptr);
87template<
class T,
class CheckT,
class RefreshT>
88bool Update(T& value,
const String& str)
93 if (not Math::Equals<T>(value, v) and CheckT::Validate(v))
123 virtual bool cellValue(
int x,
int y,
const Yuni::String& v) = 0;
125 virtual void resetColors(
int,
int, wxColour&, wxColour&)
const
130 virtual IRenderer::CellStyle cellStyle(
int col,
int row)
const;
141 virtual bool valid()
const
143 return (pArea != NULL);
Definition common.areasummary.h:106
virtual int width() const =0
The effective width of the grid.
virtual double cellNumericValue(int x, int y) const =0
Get the floating value of a Cell.
virtual uint maxWidthResize() const
The most suitable column count.
Definition common.areasummary.h:132
virtual wxString rowCaption(int rowIndx) const =0
Get the caption of a row.
virtual wxString cellValue(int x, int y) const =0
Get the string representation of a Cell.
virtual wxString columnCaption(int colIndx) const =0
Get the caption of a column.
virtual int height() const =0
The effective height of the grid.
virtual uint maxHeightResize() const
The most suitable column count.
Definition common.areasummary.h:136
virtual bool cellValue(int x, int y, const Yuni::String &v)=0
Try to modify a cell value.
virtual void onStudyClosed() override
Event: the study has been closed.
Definition common.areasummary.cpp:69
Data provider for Datagrids.
Definition renderer.h:53
Definition for a single area.
Definition area.h:52
Definition common.areasummary.h:50
Definition common.areasummary.h:58
Definition common.areasummary.h:41
Definition common.areasummary.h:77
Definition common.areasummary.h:69