]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/controls.i
Changed all symbols with the name "id" to "winid" to allow Objective-C++
[wxWidgets.git] / wxPython / src / controls.i
index 461262b48eaad8eb8942280d59872125c061fa51..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;
 };
 
 //----------------------------------------------------------------------
@@ -557,6 +575,7 @@ public:
     int GetRange();
     int GetShadowWidth();
     int GetValue();
+    bool IsVertical() const;
     void SetBezelFace(int width);
     void SetRange(int range);
     void SetShadowWidth(int width);
@@ -881,6 +900,9 @@ public:
     bool LoadFile(const wxString& file);
     bool SaveFile(const wxString& file = wxPyEmptyString);
 
+    // sets the dirty flag
+    virtual void MarkDirty() = 0;
+
     // clears the dirty flag
     void DiscardEdits();