Renamed existing wxGrid::SelectBlock to HighlightBlock.
Added new wxGrid::SelectBlock that does what the name suggests (consistent with the other SelectXXX functions). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1300,12 +1300,15 @@ public:
|
||||
void SelectRow( int row, bool addToSelected = FALSE );
|
||||
void SelectCol( int col, bool addToSelected = FALSE );
|
||||
|
||||
void SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol );
|
||||
void SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol,
|
||||
bool addToSelected = FALSE );
|
||||
|
||||
void SelectBlock( const wxGridCellCoords& topLeft,
|
||||
const wxGridCellCoords& bottomRight )
|
||||
const wxGridCellCoords& bottomRight,
|
||||
bool addToSelected = FALSE )
|
||||
{ SelectBlock( topLeft.GetRow(), topLeft.GetCol(),
|
||||
bottomRight.GetRow(), bottomRight.GetCol() ); }
|
||||
bottomRight.GetRow(), bottomRight.GetCol(),
|
||||
addToSelected ); }
|
||||
|
||||
void SelectAll();
|
||||
|
||||
@@ -1734,6 +1737,12 @@ protected:
|
||||
void SetCurrentCell( int row, int col )
|
||||
{ SetCurrentCell( wxGridCellCoords(row, col) ); }
|
||||
|
||||
void HighlightBlock( int topRow, int leftCol, int bottomRow, int rightCol );
|
||||
|
||||
void HighlightBlock( const wxGridCellCoords& topLeft,
|
||||
const wxGridCellCoords& bottomRight )
|
||||
{ HighlightBlock( topLeft.GetRow(), topLeft.GetCol(),
|
||||
bottomRight.GetRow(), bottomRight.GetCol() ); }
|
||||
|
||||
// ------ functions to get/send data (see also public functions)
|
||||
//
|
||||
|
Reference in New Issue
Block a user