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