Grid table classes.
Derived from
Data structures
Members
wxGridTableBase::wxGridTableBase
wxGridTableBase::~wxGridTableBase
wxGridTableBase::GetNumberRows
wxGridTableBase::GetNumberCols
wxGridTableBase::IsEmptyCell
wxGridTableBase::GetValue
wxGridTableBase::SetValue
wxGridTableBase::GetTypeName
wxGridTableBase::CanGetValueAs
wxGridTableBase::CanSetValueAs
wxGridTableBase::GetValueAsLong
wxGridTableBase::GetValueAsDouble
wxGridTableBase::GetValueAsBool
wxGridTableBase::SetValueAsLong
wxGridTableBase::SetValueAsDouble
wxGridTableBase::SetValueAsBool
wxGridTableBase::GetValueAsCustom
wxGridTableBase::SetValueAsCustom
wxGridTableBase::SetView
wxGridTableBase::GetView
wxGridTableBase::Clear
wxGridTableBase::InsertRows
wxGridTableBase::AppendRows
wxGridTableBase::DeleteRows
wxGridTableBase::InsertCols
wxGridTableBase::AppendCols
wxGridTableBase::DeleteCols
wxGridTableBase::GetRowLabelValue
wxGridTableBase::GetColLabelValue
wxGridTableBase::SetRowLabelValue
wxGridTableBase::SetColLabelValue
wxGridTableBase::SetAttrProvider
wxGridTableBase::GetAttrProvider
wxGridTableBase::CanHaveAttributes
wxGridTableBase::UpdateAttrRows
wxGridTableBase::UpdateAttrCols
wxGridTableBase::GetAttr
wxGridTableBase::SetAttr
wxGridTableBase::SetRowAttr
wxGridTableBase::SetColAttr
wxGridTableBase()
~wxGridTableBase()
int GetNumberRows()
You must override these functions in a derived table class.
int GetNumberCols()
bool IsEmptyCell(int row, int col)
wxString GetValue(int row, int col)
void SetValue(int row, int col, const wxString& value)
wxString GetTypeName(int row, int col)
Data type determination and value access.
bool CanGetValueAs(int row, int col, const wxString& typeName)
bool CanSetValueAs(int row, int col, const wxString& typeName)
long GetValueAsLong(int row, int col)
double GetValueAsDouble(int row, int col)
bool GetValueAsBool(int row, int col)
void SetValueAsLong(int row, int col, long value)
void SetValueAsDouble(int row, int col, double value)
void SetValueAsBool(int row, int col, bool value)
void* GetValueAsCustom(int row, int col, const wxString& typeName)
For user defined types
void SetValueAsCustom(int row, int col, const wxString& typeName, void* value)
void SetView(wxGrid* grid)
Overriding these is optional
wxGrid * GetView() const
void Clear()
bool InsertRows(size_t pos = 0, size_t numRows = 1)
bool AppendRows(size_t numRows = 1)
bool DeleteRows(size_t pos = 0, size_t numRows = 1)
bool InsertCols(size_t pos = 0, size_t numCols = 1)
bool AppendCols(size_t numCols = 1)
bool DeleteCols(size_t pos = 0, size_t numCols = 1)
wxString GetRowLabelValue(int row)
wxString GetColLabelValue(int col)
void SetRowLabelValue(int WXUNUSED(row), const wxString&)
void SetColLabelValue(int WXUNUSED(col), const wxString&)
void SetAttrProvider(wxGridCellAttrProvider* attrProvider)
Attribute handling give us the attr provider to use - we take ownership of the pointer
wxGridCellAttrProvider* GetAttrProvider() const
get the currently used attr provider (may be NULL)
bool CanHaveAttributes()
Does this table allow attributes? Default implementation creates a wxGridCellAttrProvider if necessary.
void UpdateAttrRows(size_t pos, int numRows)
change row/col number in attribute if needed
void UpdateAttrCols(size_t pos, int numCols)
wxGridCellAttr* GetAttr(int row, int col)
by default forwarded to wxGridCellAttrProvider if any. May be overridden to handle attributes directly in the table.
void SetAttr(wxGridCellAttr* attr, int row, int col)
these functions take ownership of the pointer
void SetRowAttr(wxGridCellAttr* attr, int row)
void SetColAttr(wxGridCellAttr* attr, int col)