1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/collpane.h
3 // Purpose: wxCollapsiblePane
4 // Author: Francesco Montorsi
8 // Copyright: (c) Francesco Montorsi
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COLLAPSABLE_PANEL_H_GTK_
13 #define _WX_COLLAPSABLE_PANEL_H_GTK_
15 #include "wx/generic/collpaneg.h"
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxCollapsiblePane
: public wxGenericCollapsiblePane
24 wxCollapsiblePane() { Init(); }
26 wxCollapsiblePane(wxWindow
*parent
,
28 const wxString
& label
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
31 long style
= wxCP_DEFAULT_STYLE
,
32 const wxValidator
& val
= wxDefaultValidator
,
33 const wxString
& name
= wxCollapsiblePaneNameStr
)
37 Create(parent
, winid
, label
, pos
, size
, style
, val
, name
);
42 m_bIgnoreNextChange
= false;
45 bool Create(wxWindow
*parent
,
47 const wxString
& label
,
48 const wxPoint
& pos
= wxDefaultPosition
,
49 const wxSize
& size
= wxDefaultSize
,
50 long style
= wxCP_DEFAULT_STYLE
,
51 const wxValidator
& val
= wxDefaultValidator
,
52 const wxString
& name
= wxCollapsiblePaneNameStr
);
54 void Collapse(bool collapse
= true);
55 bool IsCollapsed() const;
56 void SetLabel(const wxString
&str
);
59 virtual wxSize
DoGetBestSize() const;
61 public: // used by GTK callbacks
62 bool m_bIgnoreNextChange
;
66 void OnSize(wxSizeEvent
&);
68 DECLARE_DYNAMIC_CLASS(wxCollapsiblePane
)
72 #endif // _WX_COLLAPSABLE_PANEL_H_GTK_