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 extern WXDLLIMPEXP_DATA_CORE(const wxChar
) wxCollapsiblePaneNameStr
[];
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxCollapsiblePane
: public wxGenericCollapsiblePane
26 wxCollapsiblePane() { Init(); }
28 wxCollapsiblePane(wxWindow
*parent
,
30 const wxString
& label
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
,
34 const wxValidator
& val
= wxDefaultValidator
,
35 const wxString
& name
= wxCollapsiblePaneNameStr
)
39 Create(parent
, winid
, label
, pos
, size
, style
, val
, name
);
44 m_bIgnoreNextChange
= false;
47 bool Create(wxWindow
*parent
,
49 const wxString
& label
,
50 const wxPoint
& pos
= wxDefaultPosition
,
51 const wxSize
& size
= wxDefaultSize
,
52 long style
= wxTAB_TRAVERSAL
| wxNO_BORDER
,
53 const wxValidator
& val
= wxDefaultValidator
,
54 const wxString
& name
= wxCollapsiblePaneNameStr
);
58 wxSize
DoGetBestSize() const;
59 void Collapse(bool collapse
= true);
60 bool IsCollapsed() const;
61 void SetLabel(const wxString
&str
);
63 void OnSize(wxSizeEvent
&);
65 public: // used by GTK callbacks
67 bool m_bIgnoreNextChange
;
71 DECLARE_DYNAMIC_CLASS(wxCollapsiblePane
)
77 // _WX_COLLAPSABLE_PANEL_H_GTK_