Commited John Labenski's patch giving access to the low level selection
representation (Patch 579754). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3721,6 +3721,14 @@ void wxGrid::SetSelectionMode(wxGrid::wxGridSelectionModes selmode)
|
||||
m_selection->SetSelectionMode( selmode );
|
||||
}
|
||||
|
||||
wxGrid::wxGridSelectionModes wxGrid::GetSelectionMode() const
|
||||
{
|
||||
wxCHECK_MSG( m_created, wxGrid::wxGridSelectCells,
|
||||
wxT("Called wxGrid::GetSelectionMode() before calling CreateGrid()") );
|
||||
|
||||
return m_selection->GetSelectionMode();
|
||||
}
|
||||
|
||||
bool wxGrid::SetTable( wxGridTableBase *table, bool takeOwnership,
|
||||
wxGrid::wxGridSelectionModes selmode )
|
||||
{
|
||||
@@ -9375,6 +9383,33 @@ bool wxGrid::IsInSelection( int row, int col ) const
|
||||
col <= m_selectingBottomRight.GetCol() )) );
|
||||
}
|
||||
|
||||
wxGridCellCoordsArray wxGrid::GetSelectedCells() const
|
||||
{
|
||||
if (!m_selection) { wxGridCellCoordsArray a; return a; }
|
||||
return m_selection->m_cellSelection;
|
||||
}
|
||||
wxGridCellCoordsArray wxGrid::GetSelectionBlockTopLeft() const
|
||||
{
|
||||
if (!m_selection) { wxGridCellCoordsArray a; return a; }
|
||||
return m_selection->m_blockSelectionTopLeft;
|
||||
}
|
||||
wxGridCellCoordsArray wxGrid::GetSelectionBlockBottomRight() const
|
||||
{
|
||||
if (!m_selection) { wxGridCellCoordsArray a; return a; }
|
||||
return m_selection->m_blockSelectionTopLeft;
|
||||
}
|
||||
wxArrayInt wxGrid::GetSelectedRows() const
|
||||
{
|
||||
if (!m_selection) { wxArrayInt a; return a; }
|
||||
return m_selection->m_rowSelection;
|
||||
}
|
||||
wxArrayInt wxGrid::GetSelectedCols() const
|
||||
{
|
||||
if (!m_selection) { wxArrayInt a; return a; }
|
||||
return m_selection->m_colSelection;
|
||||
}
|
||||
|
||||
|
||||
void wxGrid::ClearSelection()
|
||||
{
|
||||
m_selectingTopLeft = wxGridNoCellCoords;
|
||||
|
Reference in New Issue
Block a user