git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57047
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{ return const_cast<wxGridTableBase *>(this)->GetNumberCols(); }
{ return const_cast<wxGridTableBase *>(this)->GetNumberCols(); }
- virtual bool IsEmptyCell( int row, int col ) = 0;
+ virtual bool IsEmptyCell( int row, int col )
+ {
+ return GetValue(row, col).empty();
+ }
bool IsEmpty(const wxGridCellCoords& coord)
{
bool IsEmpty(const wxGridCellCoords& coord)
{
int GetNumberCols();
wxString GetValue( int row, int col );
void SetValue( int row, int col, const wxString& s );
int GetNumberCols();
wxString GetValue( int row, int col );
void SetValue( int row, int col, const wxString& s );
- bool IsEmptyCell( int row, int col );
// overridden functions from wxGridTableBase
//
// overridden functions from wxGridTableBase
//
- Must be overridden to implement testing for empty cells.
+ May be overridden to implement testing for empty cells.
+
+ This method is used by the grid to test if the given cell is not used
+ and so whether a neighbouring cell may overflow into it. By default it
+ only returns true if the value of the given cell, as returned by
+ GetValue(), is empty.
- virtual bool IsEmptyCell(int row, int col) = 0;
+ virtual bool IsEmptyCell(int row, int col);
/**
Same as IsEmptyCell() but taking wxGridCellCoords.
/**
Same as IsEmptyCell() but taking wxGridCellCoords.