]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/controls.i
Save the initial tstate during initialization
[wxWidgets.git] / wxPython / src / controls.i
index e2d6e99dbe3eae5110012d40089ae2db311712a5..dfe73ed2b12c055861a7dd11fd629cb1653feb00 100644 (file)
@@ -318,6 +318,20 @@ public:
 
 //----------------------------------------------------------------------
 
+enum {
+    wxCHK_2STATE,
+    wxCHK_3STATE,
+    wxCHK_ALLOW_3RD_STATE_FOR_USER,
+};
+
+enum wxCheckBoxState
+{
+    wxCHK_UNCHECKED,
+    wxCHK_CHECKED,
+    wxCHK_UNDETERMINED /* 3-state checkbox only */
+};
+
+
 class wxCheckBox : public wxControl {
 public:
     wxCheckBox(wxWindow* parent, wxWindowID id, const wxString& label,
@@ -341,6 +355,10 @@ public:
     bool GetValue();
     bool IsChecked();
     void SetValue(const bool state);
+    wxCheckBoxState Get3StateValue() const;
+    void Set3StateValue(wxCheckBoxState state);
+    bool Is3State() const;
+    bool Is3rdStateAllowedForUser() const;
 };
 
 //----------------------------------------------------------------------