KiCad PCB EDA Suite
|
Base class for the actual viewer panel. More...
#include <footprint_preview_widget.h>
Public Member Functions | |
virtual | ~FOOTPRINT_PREVIEW_PANEL_BASE () |
virtual void | SetUserUnits (EDA_UNITS aUnits)=0 |
virtual bool | DisplayFootprint (LIB_ID const &aFPID)=0 |
Set the currently displayed footprint. More... | |
virtual wxWindow * | GetWindow ()=0 |
Get the underlying wxWindow. More... | |
virtual const KIGFX::COLOR4D & | GetBackgroundColor () const =0 |
Get the colors to use in a preview widget to match the preview panel. More... | |
virtual const KIGFX::COLOR4D & | GetForegroundColor () const =0 |
Static Public Member Functions | |
static FOOTPRINT_PREVIEW_PANEL_BASE * | Create (wxWindow *aParent, KIWAY &aKiway) |
Return a footprint preview panel instance via Kiface. More... | |
Base class for the actual viewer panel.
The implementation is in pcbnew/footprint_preview_panel.cpp, accessed via kiface.
Definition at line 92 of file footprint_preview_widget.h.
|
inlinevirtual |
Definition at line 95 of file footprint_preview_widget.h.
|
static |
Return a footprint preview panel instance via Kiface.
May return null if Kiway is not available or there is any error on load.
Definition at line 115 of file footprint_preview_widget.cpp.
References KIWAY::FACE_PCB, FRAME_FOOTPRINT_PREVIEW, kiface, and KIWAY::KiFACE().
Referenced by FOOTPRINT_PREVIEW_WIDGET::FOOTPRINT_PREVIEW_WIDGET().
|
pure virtual |
Set the currently displayed footprint.
Any footprint passed in here must have been passed to CacheFootprint before.
Implemented in FOOTPRINT_PREVIEW_PANEL.
Referenced by FOOTPRINT_PREVIEW_WIDGET::DisplayFootprint().
|
pure virtual |
Get the colors to use in a preview widget to match the preview panel.
Implemented in FOOTPRINT_PREVIEW_PANEL.
Referenced by FOOTPRINT_PREVIEW_WIDGET::FOOTPRINT_PREVIEW_WIDGET().
|
pure virtual |
Implemented in FOOTPRINT_PREVIEW_PANEL.
Referenced by FOOTPRINT_PREVIEW_WIDGET::FOOTPRINT_PREVIEW_WIDGET().
|
pure virtual |
Get the underlying wxWindow.
Implemented in FOOTPRINT_PREVIEW_PANEL.
Referenced by FOOTPRINT_PREVIEW_WIDGET::ClearStatus(), FOOTPRINT_PREVIEW_WIDGET::FOOTPRINT_PREVIEW_WIDGET(), and FOOTPRINT_PREVIEW_WIDGET::SetStatusText().
|
pure virtual |
Implemented in FOOTPRINT_PREVIEW_PANEL.
Referenced by FOOTPRINT_PREVIEW_WIDGET::SetUserUnits().