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 SETTINGS_MANAGER::GetAppSettings(), SETTINGS_MANAGER::GetColorSettings(), PGM_BASE::GetCommonSettings(), EDA_DRAW_PANEL_GAL::GetGAL(), KIGFX::VIEW::GetPainter(), KIGFX::PAINTER::GetSettings(), PGM_BASE::GetSettingsManager(), EDA_DRAW_PANEL_GAL::GetView(), KIWAY_HOLDER::Kiway(), LAYER_REFERENCEPART, KIGFX::PCB_RENDER_SETTINGS::LoadColors(), APP_SETTINGS_BASE::m_ColorTheme, KIGFX::GAL_DISPLAY_OPTIONS::m_forceDisplayCursor, m_galDisplayOptions, m_outerSizer, m_preview, m_status, m_statusPanel, m_statusSizer, APP_SETTINGS_BASE::m_Window, FOOTPRINT_PREVIEW_PANEL::New(), onSize(), Pgm(), GAL_DISPLAY_OPTIONS_IMPL::ReadConfig(), KIGFX::GAL::SetAxesEnabled(), KIGFX::GAL::SetClearColor(), KIGFX::GAL::SetGridVisibility(), EDA_DRAW_PANEL_GAL::SetStealsFocus(), and KIGFX::COLOR4D::ToColour().
|
override |
Definition at line 115 of file pcb_design_block_preview_widget.cpp.
References EDA_DRAW_PANEL_GAL::GetView(), m_preview, m_previewItem, and KIGFX::VIEW::Remove().
|
overridevirtual |
Set the currently displayed symbol.
Implements DESIGN_BLOCK_PREVIEW_WIDGET.
Definition at line 171 of file pcb_design_block_preview_widget.cpp.
References _, KIGFX::VIEW::Add(), KIGFX::VIEW::Clear(), DisplayErrorMessage(), fitOnDrawArea(), EDA_DRAW_PANEL_GAL::ForceRefresh(), DESIGN_BLOCK::GetBoardFile(), BOARD::GetItemSet(), EDA_DRAW_PANEL_GAL::GetView(), PCB_IO_MGR::KICAD_SEXP, m_itemBBox, m_preview, m_previewItem, m_statusPanel, BOX2< Vec >::Merge(), PCB_FIELD_T, PCB_IO_MGR::PluginFind(), IO_ERROR::Problem(), and IO_ERROR::What().
|
protected |
Definition at line 147 of file pcb_design_block_preview_widget.cpp.
References BOX2< Vec >::Centre(), BOX2< Vec >::GetHeight(), EDA_DRAW_PANEL_GAL::GetView(), BOX2< Vec >::GetWidth(), 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 135 of file pcb_design_block_preview_widget.cpp.
References fitOnDrawArea(), EDA_DRAW_PANEL_GAL::ForceRefresh(), 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 124 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(), 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().