]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/gridsel.h
expanding builds
[wxWidgets.git] / include / wx / generic / gridsel.h
index 5fc30ab2597c249e8fa851564230508496e02f1a..ab83260f917b9bbfcacae1f4162d1b1468ccf0bb 100644 (file)
 class WXDLLIMPEXP_ADV wxGridSelection
 {
 public:
 class WXDLLIMPEXP_ADV wxGridSelection
 {
 public:
-    wxGridSelection( wxGrid * grid, wxGrid::wxGridSelectionModes sel =
-                     wxGrid::wxGridSelectCells );
+    wxGridSelection(wxGrid *grid,
+                    wxGrid::wxGridSelectionModes sel = wxGrid::wxGridSelectCells);
+
     bool IsSelection();
     bool IsSelection();
-    bool IsInSelection ( int row, int col );
+    bool IsInSelection(int row, int col);
+    bool IsInSelection(const wxGridCellCoords& coords)
+    {
+        return IsInSelection(coords.GetRow(), coords.GetCol());
+    }
+
     void SetSelectionMode(wxGrid::wxGridSelectionModes selmode);
     wxGrid::wxGridSelectionModes GetSelectionMode() { return m_selectionMode; }
     void SelectRow( int row,
     void SetSelectionMode(wxGrid::wxGridSelectionModes selmode);
     wxGrid::wxGridSelectionModes GetSelectionMode() { return m_selectionMode; }
     void SelectRow( int row,
@@ -46,6 +52,15 @@ public:
                               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 ToggleCellSelection( const wxGridCellCoords& coords,
+                              bool ControlDown = false,
+                              bool ShiftDown = false,
+                              bool AltDown = false, bool MetaDown = false )
+    {
+        ToggleCellSelection(coords.GetRow(), coords.GetCol(),
+                            ControlDown, ShiftDown, AltDown, MetaDown);
+    }
+
     void ClearSelection();
 
     void UpdateRows( size_t pos, int numRows );
     void ClearSelection();
 
     void UpdateRows( size_t pos, int numRows );
@@ -79,7 +94,7 @@ private:
     wxGrid                              *m_grid;
     wxGrid::wxGridSelectionModes        m_selectionMode;
 
     wxGrid                              *m_grid;
     wxGrid::wxGridSelectionModes        m_selectionMode;
 
-    friend class WXDLLIMPEXP_ADV wxGrid;
+    friend class WXDLLIMPEXP_FWD_ADV wxGrid;
 
     DECLARE_NO_COPY_CLASS(wxGridSelection)
 };
 
     DECLARE_NO_COPY_CLASS(wxGridSelection)
 };