KiCad PCB EDA Suite
|
#include <pcb_design_block_preview_widget.h>
Public Member Functions | |
PCB_DESIGN_BLOCK_PREVIEW_WIDGET (wxWindow *aParent, PCB_EDIT_FRAME *aFrame) | |
Construct a schematic design block preview widget. | |
~PCB_DESIGN_BLOCK_PREVIEW_WIDGET () override | |
void | SetStatusText (const wxString &aText) override |
Set the contents of the status label and display it. | |
void | DisplayDesignBlock (DESIGN_BLOCK *aDesignBlock) override |
Set the currently displayed symbol. | |
Protected Member Functions | |
void | onSize (wxSizeEvent &aEvent) |
void | fitOnDrawArea () |
Protected Attributes | |
GAL_DISPLAY_OPTIONS_IMPL | m_galDisplayOptions |
EDA_DRAW_PANEL_GAL * | m_preview |
wxStaticText * | m_status |
wxPanel * | m_statusPanel |
wxSizer * | m_statusSizer |
wxSizer * | m_outerSizer |
BOARD * | m_previewItem |
BOX2I | m_itemBBox |
The bounding box of the current item. | |
Definition at line 38 of file pcb_design_block_preview_widget.h.
PCB_DESIGN_BLOCK_PREVIEW_WIDGET::PCB_DESIGN_BLOCK_PREVIEW_WIDGET | ( | wxWindow * | aParent, |
PCB_EDIT_FRAME * | aFrame ) |
Construct a schematic design block preview widget.
aParent | - parent window |
Definition at line 47 of file pcb_design_block_preview_widget.cpp.
References DEFAULT_THEME, DESIGN_BLOCK_PREVIEW_WIDGET::DESIGN_BLOCK_PREVIEW_WIDGET(), GetAppSettings(), GetColorSettings(), PGM_BASE::GetCommonSettings(), KIGFX::VIEW::GetPainter(), KIWAY_HOLDER::Kiway(), LAYER_REFERENCEPART, KIGFX::PCB_RENDER_SETTINGS::LoadColors(), APP_SETTINGS_BASE::m_ColorTheme, m_galDisplayOptions, m_outerSizer, m_preview, m_previewItem, m_status, m_statusPanel, m_statusSizer, APP_SETTINGS_BASE::m_Window, FOOTPRINT_PREVIEW_PANEL::New(), onSize(), Pgm(), and KIGFX::COLOR4D::ToColour().
|
override |
Definition at line 114 of file pcb_design_block_preview_widget.cpp.
References m_preview, and m_previewItem.
|
overridevirtual |
Set the currently displayed symbol.
Implements DESIGN_BLOCK_PREVIEW_WIDGET.
Definition at line 170 of file pcb_design_block_preview_widget.cpp.
References _, KIGFX::VIEW::Add(), KIGFX::VIEW::Clear(), DisplayErrorMessage(), fitOnDrawArea(), DESIGN_BLOCK::GetBoardFile(), PCB_IO_MGR::KICAD_SEXP, m_itemBBox, m_preview, m_previewItem, m_statusPanel, BOX2< Vec >::Merge(), PCB_FIELD_T, PCB_IO_MGR::PluginFind(), PR_CAN_ABORT, IO_ERROR::Problem(), and IO_ERROR::What().
|
protected |
Definition at line 146 of file pcb_design_block_preview_widget.cpp.
References m_itemBBox, m_preview, m_previewItem, scale, KIGFX::VIEW::SetCenter(), KIGFX::VIEW::SetScale(), ToVECTOR2D(), KIGFX::VIEW::ToWorld(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by DisplayDesignBlock(), and onSize().
|
protected |
Definition at line 134 of file pcb_design_block_preview_widget.cpp.
References fitOnDrawArea(), m_preview, and m_previewItem.
Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET().
|
overridevirtual |
Set the contents of the status label and display it.
Implements DESIGN_BLOCK_PREVIEW_WIDGET.
Definition at line 123 of file pcb_design_block_preview_widget.cpp.
References m_preview, m_status, and m_statusPanel.
|
protected |
Definition at line 65 of file pcb_design_block_preview_widget.h.
Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET().
|
protected |
The bounding box of the current item.
Definition at line 76 of file pcb_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), and fitOnDrawArea().
|
protected |
Definition at line 71 of file pcb_design_block_preview_widget.h.
Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET().
|
protected |
Definition at line 66 of file pcb_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), fitOnDrawArea(), onSize(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET(), SetStatusText(), and ~PCB_DESIGN_BLOCK_PREVIEW_WIDGET().
|
protected |
Definition at line 73 of file pcb_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), fitOnDrawArea(), onSize(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET(), and ~PCB_DESIGN_BLOCK_PREVIEW_WIDGET().
|
protected |
Definition at line 68 of file pcb_design_block_preview_widget.h.
Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET(), and SetStatusText().
|
protected |
Definition at line 69 of file pcb_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), PCB_DESIGN_BLOCK_PREVIEW_WIDGET(), and SetStatusText().
|
protected |
Definition at line 70 of file pcb_design_block_preview_widget.h.
Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET().