KiCad PCB EDA Suite
|
A wxPanel derived class that hold an infobar and another control. More...
#include <wx_infobar.h>
Public Member Functions | |
EDA_INFOBAR_PANEL (wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString) | |
void | AddInfoBar (WX_INFOBAR *aInfoBar) |
Add the given infobar object to the panel. | |
void | AddOtherItem (wxWindow *aOtherItem) |
Add the other item to the panel. | |
Protected Attributes | |
wxFlexGridSizer * | m_mainSizer |
A wxPanel derived class that hold an infobar and another control.
The infobar is located at the top of the panel, and the other control is located below it.
This allows the infobar to be controlled nicely by an AUI manager, since adding the infobar on its own to the AUI manager produces artifacts when showing/hiding it due to the AUI pane layout.
Note that this implementation currently has issues on Windows with event processing inside the GAL canvas, see: https://gitlab.com/kicad/code/kicad/-/issues/4501
Definition at line 279 of file wx_infobar.h.
EDA_INFOBAR_PANEL::EDA_INFOBAR_PANEL | ( | wxWindow * | aParent, |
wxWindowID | aId = wxID_ANY , |
||
const wxPoint & | aPos = wxDefaultPosition , |
||
const wxSize & | aSize = wxSize( -1,-1 ) , |
||
long | aStyle = wxTAB_TRAVERSAL , |
||
const wxString & | aName = wxEmptyString |
||
) |
Definition at line 374 of file wx_infobar.cpp.
References m_mainSizer.
void EDA_INFOBAR_PANEL::AddInfoBar | ( | WX_INFOBAR * | aInfoBar | ) |
Add the given infobar object to the panel.
aInfoBar | is the infobar to add |
Definition at line 387 of file wx_infobar.cpp.
References m_mainSizer.
void EDA_INFOBAR_PANEL::AddOtherItem | ( | wxWindow * | aOtherItem | ) |
Add the other item to the panel.
This item will expand to fill up the vertical space left.
aOtherItem | is the item to add |
Definition at line 397 of file wx_infobar.cpp.
References m_mainSizer.
|
protected |
Definition at line 305 of file wx_infobar.h.
Referenced by AddInfoBar(), AddOtherItem(), and EDA_INFOBAR_PANEL().