#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;
};
// ----------------------------------------------------------------------------
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() {}