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 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_CORE wxCollapsiblePane
: public wxCollapsiblePaneBase
22 wxCollapsiblePane() { Init(); }
24 wxCollapsiblePane(wxWindow
*parent
,
26 const wxString
& label
,
27 const wxPoint
& pos
= wxDefaultPosition
,
28 const wxSize
& size
= wxDefaultSize
,
29 long style
= wxCP_DEFAULT_STYLE
,
30 const wxValidator
& val
= wxDefaultValidator
,
31 const wxString
& name
= wxCollapsiblePaneNameStr
)
35 Create(parent
, winid
, label
, pos
, size
, style
, val
, name
);
40 m_bIgnoreNextChange
= false;
43 bool Create(wxWindow
*parent
,
45 const wxString
& label
,
46 const wxPoint
& pos
= wxDefaultPosition
,
47 const wxSize
& size
= wxDefaultSize
,
48 long style
= wxCP_DEFAULT_STYLE
,
49 const wxValidator
& val
= wxDefaultValidator
,
50 const wxString
& name
= wxCollapsiblePaneNameStr
);
52 virtual void Collapse(bool collapse
= true);
53 virtual bool IsCollapsed() const;
54 virtual void SetLabel(const wxString
& str
);
56 virtual wxWindow
*GetPane() const { return m_pPane
; }
57 virtual wxString
GetLabel() const { return m_strLabel
; }
60 virtual wxSize
DoGetBestSize() const;
62 public: // used by GTK callbacks
63 bool m_bIgnoreNextChange
;
68 // the button label without ">>" or "<<"
72 void OnSize(wxSizeEvent
&);
73 virtual void AddChildGTK(wxWindowGTK
* child
);
74 GdkWindow
*GTKGetWindow(wxArrayGdkWindows
& windows
) const;
76 DECLARE_DYNAMIC_CLASS(wxCollapsiblePane
)
80 #endif // _WX_COLLAPSABLE_PANEL_H_GTK_