]> git.saurik.com Git - wxWidgets.git/commitdiff
wxGridCellBoolEditor::UseStringValues
authorRobin Dunn <robin@alldunn.com>
Sun, 29 Oct 2006 02:53:05 +0000 (02:53 +0000)
committerRobin Dunn <robin@alldunn.com>
Sun, 29 Oct 2006 02:53:05 +0000 (02:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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