![]() |
KiCad PCB EDA Suite
|
A better wxCollapsiblePane that. More...
#include <collapsible_pane.h>
Public Member Functions | |
WX_COLLAPSIBLE_PANE () | |
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")) | |
~WX_COLLAPSIBLE_PANE () | |
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")) |
void | Collapse (bool aCollapse=true) |
void | Expand () |
bool | IsCollapsed () const |
bool | IsExpanded () const |
wxWindow * | GetPane () |
wxString | GetLabel () const override |
void | SetLabel (const wxString &aLabel) override |
bool | SetBackgroundColour (const wxColour &aColor) override |
bool | InformFirstDirection (int aDirection, int aSize, int aAvailableOtherDir) override |
wxSize | DoGetBestClientSize () const override |
bool | Layout () override |
Private Member Functions | |
void | init () |
int | getBorder () const |
void | onSize (wxSizeEvent &aEvent) |
void | onHeaderClicked (wxCommandEvent &aEvent) |
Private Attributes | |
wxWindow * | m_pane |
wxSizer * | m_sizer |
WX_COLLAPSIBLE_PANE_HEADER * | m_header |
A better wxCollapsiblePane that.
Definition at line 101 of file collapsible_pane.h.
|
inline |
Definition at line 104 of file collapsible_pane.h.
References init().
|
inline |
Definition at line 109 of file collapsible_pane.h.
WX_COLLAPSIBLE_PANE::~WX_COLLAPSIBLE_PANE | ( | ) |
void WX_COLLAPSIBLE_PANE::Collapse | ( | bool | aCollapse = true | ) |
Definition at line 77 of file collapsible_pane.cpp.
References IsCollapsed(), m_header, m_pane, and WX_COLLAPSIBLE_PANE_HEADER::SetCollapsed().
Referenced by APPEARANCE_CONTROLS::createControls(), Expand(), and onHeaderClicked().
bool WX_COLLAPSIBLE_PANE::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" ) |
||
) |
Definition at line 33 of file collapsible_pane.cpp.
References getBorder(), m_header, m_pane, m_sizer, onHeaderClicked(), and onSize().
Referenced by WX_COLLAPSIBLE_PANE().
|
override |
Definition at line 129 of file collapsible_pane.cpp.
References getBorder(), IsExpanded(), m_pane, and m_sizer.
|
inline |
|
private |
Definition at line 166 of file collapsible_pane.cpp.
References m_header.
Referenced by Create(), DoGetBestClientSize(), and Layout().
|
inlineoverride |
Definition at line 144 of file collapsible_pane.h.
References m_header.
|
inline |
Definition at line 139 of file collapsible_pane.h.
References m_pane.
Referenced by APPEARANCE_CONTROLS::createControls(), and InformFirstDirection().
|
override |
|
private |
Definition at line 59 of file collapsible_pane.cpp.
References m_header, m_pane, and m_sizer.
Referenced by WX_COLLAPSIBLE_PANE().
bool WX_COLLAPSIBLE_PANE::IsCollapsed | ( | ) | const |
Definition at line 91 of file collapsible_pane.cpp.
References m_pane.
Referenced by Collapse(), IsExpanded(), and onHeaderClicked().
|
inline |
Definition at line 137 of file collapsible_pane.h.
References IsCollapsed().
Referenced by DoGetBestClientSize(), and Layout().
|
override |
Definition at line 145 of file collapsible_pane.cpp.
References getBorder(), IsExpanded(), m_header, m_pane, and m_sizer.
Referenced by onSize(), and SetLabel().
|
private |
Definition at line 184 of file collapsible_pane.cpp.
References Collapse(), IsCollapsed(), and m_header.
Referenced by Create().
|
private |
|
override |
Definition at line 106 of file collapsible_pane.cpp.
References m_header.
Referenced by APPEARANCE_CONTROLS::createControls().
|
override |
Definition at line 97 of file collapsible_pane.cpp.
|
private |
Definition at line 162 of file collapsible_pane.h.
Referenced by Collapse(), Create(), getBorder(), GetLabel(), init(), Layout(), onHeaderClicked(), SetBackgroundColour(), and SetLabel().
|
private |
Definition at line 160 of file collapsible_pane.h.
Referenced by Collapse(), Create(), DoGetBestClientSize(), GetPane(), init(), IsCollapsed(), and Layout().
|
private |
Definition at line 161 of file collapsible_pane.h.
Referenced by Create(), DoGetBestClientSize(), init(), Layout(), and ~WX_COLLAPSIBLE_PANE().