]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed unused parameter addToSelected.
authorStefan Neis <Stefan.Neis@t-online.de>
Fri, 10 Mar 2000 13:57:58 +0000 (13:57 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Fri, 10 Mar 2000 13:57:58 +0000 (13:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/gridsel.h
src/generic/gridsel.cpp

index dc74d9395ec01fcab646efc3c8278c024b17d039..b521834cc7310299bfb9a9409aec183f1a29471c 100644 (file)
@@ -29,10 +29,10 @@ public:
     bool IsSelection();
     bool IsInSelection ( int row, int col );
     void SetSelectionMode(wxGrid::wxGridSelectionModes selmode);
     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 );
                     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,
                     bool ControlDown = FALSE,  bool ShiftDown = FALSE,
                     bool AltDown = FALSE, bool MetaDown = FALSE );
     void SelectBlock( int topRow, int leftCol,
index 4cb1c27629cdc749e7249656f35a079fb0b254c2..d3d2222a0d62f7577b837508da31e2bbf7419614 100644 (file)
@@ -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 )
 {
                                  bool ControlDown,  bool ShiftDown,
                                  bool AltDown, bool MetaDown )
 {
@@ -277,7 +277,7 @@ void wxGridSelection::SelectRow( int row, bool addToSelected,
     m_grid->GetEventHandler()->ProcessEvent(gridEvt);
 }
 
     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 )
 {
                                  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 );
                 n--; count--;
                 if ( !m_grid->GetBatchCount() )
                     ((wxWindow *)m_grid->m_gridWin)->Refresh( FALSE, &r );
-                return;
 
                 // Send event
                 wxGridEvent gridEvt( m_grid->GetId(),
 
                 // 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);
                                      ControlDown, ShiftDown,
                                      AltDown, MetaDown );
                 m_grid->GetEventHandler()->ProcessEvent(gridEvt);
+                return;
             }
         }
     }
             }
         }
     }