| 
    KiCad PCB EDA Suite
    
   | 
 
#include <sch_design_block_preview_widget.h>
  
Public Member Functions | |
| SCH_DESIGN_BLOCK_PREVIEW_WIDGET (wxWindow *aParent, EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType, bool aIncludeStatus) | |
| Construct a schematic design block preview widget.   | |
| ~SCH_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 | 
| SCHEMATIC * | m_previewItem | 
| BOX2I | m_itemBBox | 
| The bounding box of the current item.   | |
Definition at line 38 of file sch_design_block_preview_widget.h.
| SCH_DESIGN_BLOCK_PREVIEW_WIDGET::SCH_DESIGN_BLOCK_PREVIEW_WIDGET | ( | wxWindow * | aParent, | 
| EDA_DRAW_PANEL_GAL::GAL_TYPE | aCanvasType, | ||
| bool | aIncludeStatus ) | 
Construct a schematic design block preview widget.
| aParent | - parent window | 
Definition at line 42 of file sch_design_block_preview_widget.cpp.
References DEFAULT_THEME, DESIGN_BLOCK_PREVIEW_WIDGET::DESIGN_BLOCK_PREVIEW_WIDGET(), EDA_DRAW_PANEL_GAL::GAL_FALLBACK, EDA_DRAW_PANEL_GAL::GAL_TYPE_OPENGL, GetAppSettings(), GetColorSettings(), PGM_BASE::GetCommonSettings(), KIGFX::VIEW::GetPainter(), LAYER_REFERENCEPART, SCH_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, onSize(), Pgm(), and KIGFX::COLOR4D::ToColour().
      
  | 
  override | 
Definition at line 137 of file sch_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 193 of file sch_design_block_preview_widget.cpp.
References KIGFX::VIEW::Add(), KIGFX::VIEW::Clear(), fitOnDrawArea(), DESIGN_BLOCK::GetSchematicFile(), EESCHEMA_HELPERS::LoadSchematic(), m_itemBBox, m_preview, m_previewItem, m_statusPanel, BOX2< Vec >::Merge(), and SCH_FIELD_T.
      
  | 
  protected | 
Definition at line 169 of file sch_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 157 of file sch_design_block_preview_widget.cpp.
References fitOnDrawArea(), m_preview, and m_previewItem.
Referenced by SCH_DESIGN_BLOCK_PREVIEW_WIDGET().
      
  | 
  overridevirtual | 
Set the contents of the status label and display it.
Implements DESIGN_BLOCK_PREVIEW_WIDGET.
Definition at line 146 of file sch_design_block_preview_widget.cpp.
References m_preview, m_status, and m_statusPanel.
      
  | 
  protected | 
Definition at line 65 of file sch_design_block_preview_widget.h.
Referenced by SCH_DESIGN_BLOCK_PREVIEW_WIDGET().
      
  | 
  protected | 
The bounding box of the current item.
Definition at line 76 of file sch_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), and fitOnDrawArea().
      
  | 
  protected | 
Definition at line 71 of file sch_design_block_preview_widget.h.
Referenced by SCH_DESIGN_BLOCK_PREVIEW_WIDGET().
      
  | 
  protected | 
Definition at line 66 of file sch_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), fitOnDrawArea(), onSize(), SCH_DESIGN_BLOCK_PREVIEW_WIDGET(), SetStatusText(), and ~SCH_DESIGN_BLOCK_PREVIEW_WIDGET().
      
  | 
  protected | 
Definition at line 73 of file sch_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), fitOnDrawArea(), onSize(), SCH_DESIGN_BLOCK_PREVIEW_WIDGET(), and ~SCH_DESIGN_BLOCK_PREVIEW_WIDGET().
      
  | 
  protected | 
Definition at line 68 of file sch_design_block_preview_widget.h.
Referenced by SCH_DESIGN_BLOCK_PREVIEW_WIDGET(), and SetStatusText().
      
  | 
  protected | 
Definition at line 69 of file sch_design_block_preview_widget.h.
Referenced by DisplayDesignBlock(), SCH_DESIGN_BLOCK_PREVIEW_WIDGET(), and SetStatusText().
      
  | 
  protected | 
Definition at line 70 of file sch_design_block_preview_widget.h.
Referenced by SCH_DESIGN_BLOCK_PREVIEW_WIDGET().