20#ifndef KICAD_WX_COLLAPSIBLE_PANE_H
21#define KICAD_WX_COLLAPSIBLE_PANE_H
23#include <wx/control.h>
24#include <wx/containr.h>
25#include <wx/statbox.h>
45 const wxPoint& aPos = wxDefaultPosition,
46 const wxSize& aSize = wxDefaultSize,
long aStyle = wxBORDER_NONE,
47 const wxValidator& aValidator = wxDefaultValidator,
48 const wxString& aName = wxT(
"COLLAPSIBLE_PANE_HEADER" ) )
52 Create( aParent, aId, aLabel, aPos, aSize, aStyle, aValidator, aName );
55 bool Create( wxWindow* aParent, wxWindowID aId,
const wxString& aLabel,
56 const wxPoint& aPos = wxDefaultPosition,
57 const wxSize& aSize = wxDefaultSize,
long aStyle = wxBORDER_NONE,
58 const wxValidator& aValidator = wxDefaultValidator,
59 const wxString& aName = wxT(
"COLLAPSIBLE_PANE_HEADER" ) );
79 void onPaint( wxPaintEvent& aEvent );
81 void onFocus( wxFocusEvent& aEvent );
87 void onLeftUp( wxMouseEvent& aEvent );
89 void onChar( wxKeyEvent& aEvent );
93 void drawArrow( wxDC& aDC, wxRect aRect,
bool aIsActive );
112 const wxPoint& aPos = wxDefaultPosition,
113 const wxSize& aSize = wxDefaultSize,
long aStyle = wxBORDER_NONE,
114 const wxValidator& aValidator = wxDefaultValidator,
115 const wxString& aName = wxT(
"COLLAPSIBLE_PANE_HEADER" ) )
119 Create( aParent, aId, aLabel, aPos, aSize, aStyle, aValidator, aName );
124 bool Create( wxWindow* aParent, wxWindowID aId,
const wxString& aLabel,
125 const wxPoint& aPos = wxDefaultPosition,
126 const wxSize& aSize = wxDefaultSize,
long aStyle = wxBORDER_NONE,
127 const wxValidator& aValidator = wxDefaultValidator,
128 const wxString& aName = wxT(
"COLLAPSIBLE_PANE_HEADER" ) );
130 void Collapse(
bool aCollapse =
true );
151 void SetLabel(
const wxString& aLabel )
override;
170 void onSize( wxSizeEvent& aEvent );
A better wxCollapsiblePane that.
wxSize DoGetBestClientSize() const override
void Collapse(bool aCollapse=true)
void onSize(wxSizeEvent &aEvent)
void onHeaderClicked(wxCommandEvent &aEvent)
WX_COLLAPSIBLE_PANE_HEADER * m_header
WX_COLLAPSIBLE_PANE(wxWindow *aParent, wxWindowID aId, const wxString &aLabel, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxBORDER_NONE, const wxValidator &aValidator=wxDefaultValidator, const wxString &aName=wxT("COLLAPSIBLE_PANE_HEADER"))
void SetLabel(const wxString &aLabel) override
bool InformFirstDirection(int aDirection, int aSize, int aAvailableOtherDir) override
wxString GetLabel() const override
bool Create(wxWindow *aParent, wxWindowID aId, const wxString &aLabel, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=wxBORDER_NONE, const wxValidator &aValidator=wxDefaultValidator, const wxString &aName=wxT("COLLAPSIBLE_PANE_HEADER"))
bool SetBackgroundColour(const wxColour &aColor) override
wxDECLARE_EVENT(WX_COLLAPSIBLE_PANE_HEADER_CHANGED, wxCommandEvent)