|
KiCad PCB EDA Suite
|
A better wxCollapsiblePane that. More...
#include <wx_collapsible_pane.h>
Public Member Functions | |
| WX_COLLAPSIBLE_PANE (wxWindow *aParent, wxWindowID aId, const wxString &aLabel) | |
| ~WX_COLLAPSIBLE_PANE () | |
| bool | Create (wxWindow *aParent, wxWindowID aId, const wxString &aLabel) |
| void | Collapse (bool aCollapse=true) |
| void | Expand () |
| bool | IsCollapsed () const |
| bool | IsExpanded () const |
| wxWindow * | GetPane () |
| int | GetMargin () const |
| 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 |
| bool | Layout () override |
Protected Member Functions | |
| wxSize | DoGetBestClientSize () const override |
Private Member Functions | |
| void | init () |
| 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 89 of file wx_collapsible_pane.h.
|
inline |
Definition at line 92 of file wx_collapsible_pane.h.
| WX_COLLAPSIBLE_PANE::~WX_COLLAPSIBLE_PANE | ( | ) |
Definition at line 78 of file wx_collapsible_pane.cpp.
References m_sizer.
| void WX_COLLAPSIBLE_PANE::Collapse | ( | bool | aCollapse = true | ) |
Definition at line 88 of file wx_collapsible_pane.cpp.
References IsCollapsed(), m_header, and m_pane.
Referenced by ERROR_CARD::ERROR_CARD(), Expand(), and onHeaderClicked().
| bool WX_COLLAPSIBLE_PANE::Create | ( | wxWindow * | aParent, |
| wxWindowID | aId, | ||
| const wxString & | aLabel ) |
Definition at line 44 of file wx_collapsible_pane.cpp.
References m_header, m_pane, m_sizer, onHeaderClicked(), onSize(), and WX_COLLAPSIBLE_PANE_HEADER_CHANGED.
Referenced by WX_COLLAPSIBLE_PANE().
|
overrideprotected |
Definition at line 140 of file wx_collapsible_pane.cpp.
References GetMargin(), IsExpanded(), m_pane, and m_sizer.
|
inline |
Definition at line 104 of file wx_collapsible_pane.h.
References Collapse().
|
inlineoverride |
Definition at line 117 of file wx_collapsible_pane.h.
References m_header.
| int WX_COLLAPSIBLE_PANE::GetMargin | ( | ) | const |
Definition at line 177 of file wx_collapsible_pane.cpp.
References m_header.
Referenced by DoGetBestClientSize(), and Layout().
|
inline |
Definition at line 113 of file wx_collapsible_pane.h.
References m_pane.
Referenced by ERROR_CARD::ERROR_CARD(), and InformFirstDirection().
|
override |
Definition at line 124 of file wx_collapsible_pane.cpp.
References GetPane().
|
private |
Definition at line 70 of file wx_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 102 of file wx_collapsible_pane.cpp.
References m_pane.
Referenced by Collapse(), IsExpanded(), and onHeaderClicked().
|
inline |
Definition at line 111 of file wx_collapsible_pane.h.
References IsCollapsed().
Referenced by DoGetBestClientSize(), and Layout().
|
override |
Definition at line 156 of file wx_collapsible_pane.cpp.
References GetMargin(), IsExpanded(), m_header, m_pane, and m_sizer.
Referenced by onSize(), and SetLabel().
|
private |
Definition at line 195 of file wx_collapsible_pane.cpp.
References Collapse(), IsCollapsed(), m_header, and WX_COLLAPSIBLE_PANE_CHANGED.
Referenced by Create().
|
private |
Definition at line 188 of file wx_collapsible_pane.cpp.
References Layout().
Referenced by Create().
|
override |
Definition at line 117 of file wx_collapsible_pane.cpp.
References m_header.
Referenced by ERROR_CARD::ERROR_CARD().
|
override |
Definition at line 108 of file wx_collapsible_pane.cpp.
|
private |
Definition at line 143 of file wx_collapsible_pane.h.
Referenced by Collapse(), Create(), GetLabel(), GetMargin(), init(), Layout(), onHeaderClicked(), SetBackgroundColour(), and SetLabel().
|
private |
Definition at line 141 of file wx_collapsible_pane.h.
Referenced by Collapse(), Create(), DoGetBestClientSize(), GetPane(), init(), IsCollapsed(), and Layout().
|
private |
Definition at line 142 of file wx_collapsible_pane.h.
Referenced by Create(), DoGetBestClientSize(), init(), Layout(), and ~WX_COLLAPSIBLE_PANE().