X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c1f8cb1f5cbef0f7699110fd28027948e644c6f..6df6e35a3eae74404f15f8f7c09ce19c29f47b4a:/include/wx/collpane.h diff --git a/include/wx/collpane.h b/include/wx/collpane.h index 002e5a3e21..97caa431fe 100644 --- a/include/wx/collpane.h +++ b/include/wx/collpane.h @@ -21,20 +21,21 @@ #define wxCP_DEFAULT_STYLE (0) -class WXDLLEXPORT wxCollapsiblePaneBase : public wxControl +class WXDLLIMPEXP_ADV wxCollapsiblePaneBase : public wxControl { public: wxCollapsiblePaneBase() {} - virtual void Expand() - { Collapse(false); } - virtual void Collapse(bool collapse = true) = 0; + void Expand() { Collapse(false); } + virtual bool IsCollapsed() const = 0; + bool IsExpanded() const { return !IsCollapsed(); } + virtual wxWindow *GetPane() const = 0; virtual wxString GetLabel() const = 0; - virtual void SetLabel(const wxString &label) = 0; + virtual void SetLabel(const wxString& label) = 0; }; @@ -43,10 +44,10 @@ public: // ---------------------------------------------------------------------------- BEGIN_DECLARE_EVENT_TYPES() - DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_CORE, wxEVT_COMMAND_COLLPANE_CHANGED, 1102) + DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_ADV, wxEVT_COMMAND_COLLPANE_CHANGED, 1102) END_DECLARE_EVENT_TYPES() -class WXDLLIMPEXP_CORE wxCollapsiblePaneEvent : public wxCommandEvent +class WXDLLIMPEXP_ADV wxCollapsiblePaneEvent : public wxCommandEvent { public: wxCollapsiblePaneEvent() {}