From: Stefan Neis Date: Fri, 10 Mar 2000 13:57:58 +0000 (+0000) Subject: Removed unused parameter addToSelected. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/723d1b1da1d9bc3b1a15a66a2c5ab6337bfcbf7f Removed unused parameter addToSelected. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/gridsel.h b/include/wx/generic/gridsel.h index dc74d9395e..b521834cc7 100644 --- a/include/wx/generic/gridsel.h +++ b/include/wx/generic/gridsel.h @@ -29,10 +29,10 @@ public: bool IsSelection(); bool IsInSelection ( int row, int col ); void SetSelectionMode(wxGrid::wxGridSelectionModes selmode); - void SelectRow( int row, bool addToSelected = FALSE, + void SelectRow( int row, bool ControlDown = FALSE, bool ShiftDown = FALSE, bool AltDown = FALSE, bool MetaDown = FALSE ); - void SelectCol( int col, bool addToSelected = FALSE, + void SelectCol( int col, bool ControlDown = FALSE, bool ShiftDown = FALSE, bool AltDown = FALSE, bool MetaDown = FALSE ); void SelectBlock( int topRow, int leftCol, diff --git a/src/generic/gridsel.cpp b/src/generic/gridsel.cpp index 4cb1c27629..d3d2222a0d 100644 --- a/src/generic/gridsel.cpp +++ b/src/generic/gridsel.cpp @@ -184,7 +184,7 @@ void wxGridSelection::SetSelectionMode(wxGrid::wxGridSelectionModes selmode) } } -void wxGridSelection::SelectRow( int row, bool addToSelected, +void wxGridSelection::SelectRow( int row, bool ControlDown, bool ShiftDown, bool AltDown, bool MetaDown ) { @@ -277,7 +277,7 @@ void wxGridSelection::SelectRow( int row, bool addToSelected, m_grid->GetEventHandler()->ProcessEvent(gridEvt); } -void wxGridSelection::SelectCol( int col, bool addToSelected, +void wxGridSelection::SelectCol( int col, bool ControlDown, bool ShiftDown, bool AltDown, bool MetaDown ) { @@ -586,7 +586,6 @@ void wxGridSelection::ToggleCellSelection( int row, int col, n--; count--; if ( !m_grid->GetBatchCount() ) ((wxWindow *)m_grid->m_gridWin)->Refresh( FALSE, &r ); - return; // Send event wxGridEvent gridEvt( m_grid->GetId(), @@ -596,6 +595,7 @@ void wxGridSelection::ToggleCellSelection( int row, int col, ControlDown, ShiftDown, AltDown, MetaDown ); m_grid->GetEventHandler()->ProcessEvent(gridEvt); + return; } } }