X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c69a2ec864e94f58243500ca6d41c980b0fa4fe..c533405853e8144ce8c0450f920207d0bd7160a4:/wxPython/src/grid.i?ds=sidebyside diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index 2574e9edb4..c9491150ef 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -455,6 +455,20 @@ class wxGridCellAttr; #define wxGRID_VALUE_DATETIME "datetime" +// magic constant which tells (to some functions) to automatically calculate +// the appropriate size +enum { wxGRID_AUTOSIZE }; + + +// many wxGrid methods work either with columns or rows, this enum is used for +// the parameter indicating which one should it be +enum wxGridDirection +{ + wxGRID_COLUMN, + wxGRID_ROW +}; + + %immutable; const wxGridCellCoords wxGridNoCellCoords; const wxRect wxGridNoCellRect; @@ -2143,6 +2157,23 @@ public: }; +// ---------------------------------------------------------------------------- +// wxGridUpdateLocker prevents updates to a grid during its lifetime +// ---------------------------------------------------------------------------- + +class wxGridUpdateLocker +{ +public: + // if the pointer is NULL, Create() can be called later + wxGridUpdateLocker(wxGrid *grid = NULL); + ~wxGridUpdateLocker(); + + // can be called if ctor was used with a NULL pointer, must not be called + // more than once + void Create(wxGrid *grid); + +}; + //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // Grid events and stuff