]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/grid.i
GetData can only be called within the DnD operation, so don't make it
[wxWidgets.git] / wxPython / src / grid.i
index 69b0c9b4a65e3bcd3fa1ba6fe68163c2f2a8e1a2..9b01265c220605a2e9cc71753ebb84f9e153f456 100644 (file)
@@ -939,11 +939,22 @@ public:
 };
 
 
+MAKE_CONST_WXSTRING2(OneString, _T("1"));
 class wxGridCellBoolEditor : public wxGridCellEditor
 {
 public:
     %pythonAppend wxGridCellBoolEditor  "self._setOORInfo(self)"
     wxGridCellBoolEditor();
+
+    // set the string values returned by GetValue() for the true and false
+    // states, respectively
+    static void UseStringValues(const wxString& valueTrue = wxPyOneString,
+                                const wxString& valueFalse = wxPyEmptyString);
+
+    // return true if the given string is equal to the string representation of
+    // true value which we currently use
+    static bool IsTrueValue(const wxString& value);
+
 };
 
 class wxGridCellChoiceEditor : public wxGridCellEditor