KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SYMBOL_PREVIEW_WIDGET Class Reference

#include <symbol_preview_widget.h>

Inheritance diagram for SYMBOL_PREVIEW_WIDGET:
SYMBOL_DIFF_WIDGET

Public Member Functions

 SYMBOL_PREVIEW_WIDGET (wxWindow *aParent, KIWAY *aKiway, bool aIncludeStatus, EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType)
 Construct a symbol preview widget.
 
 ~SYMBOL_PREVIEW_WIDGET () override
 
void SetStatusText (const wxString &aText)
 Set the contents of the status label and display it.
 
void DisplaySymbol (const LIB_ID &aSymbolID, int aUnit, int aBodyStyle=0)
 Set the currently displayed symbol.
 
void DisplayPart (LIB_SYMBOL *aSymbol, int aUnit, int aBodyStyle=0)
 

Protected Member Functions

void onSize (wxSizeEvent &aEvent)
 
void fitOnDrawArea ()
 

Protected Attributes

KIWAYm_kiway
 
GAL_DISPLAY_OPTIONS_IMPL m_galDisplayOptions
 
EDA_DRAW_PANEL_GALm_preview
 
wxStaticText * m_status
 
wxPanel * m_statusPanel
 
wxSizer * m_statusSizer
 
wxSizer * m_outerSizer
 
LIB_SYMBOLm_previewItem
 A local copy of the LIB_SYMBOL to display on the canvas.
 
BOX2I m_itemBBox
 The bounding box of the current item.
 

Detailed Description

Definition at line 35 of file symbol_preview_widget.h.

Constructor & Destructor Documentation

◆ SYMBOL_PREVIEW_WIDGET()

◆ ~SYMBOL_PREVIEW_WIDGET()

SYMBOL_PREVIEW_WIDGET::~SYMBOL_PREVIEW_WIDGET ( )
override

Member Function Documentation

◆ DisplayPart()

◆ DisplaySymbol()

◆ fitOnDrawArea()

◆ onSize()

void SYMBOL_PREVIEW_WIDGET::onSize ( wxSizeEvent &  aEvent)
protected

◆ SetStatusText()

void SYMBOL_PREVIEW_WIDGET::SetStatusText ( const wxString &  aText)

Set the contents of the status label and display it.

Definition at line 142 of file symbol_preview_widget.cpp.

References m_preview, m_status, and m_statusPanel.

Referenced by PANEL_SYMBOL_CHOOSER::onSymbolSelected().

Member Data Documentation

◆ m_galDisplayOptions

GAL_DISPLAY_OPTIONS_IMPL SYMBOL_PREVIEW_WIDGET::m_galDisplayOptions
protected

Definition at line 70 of file symbol_preview_widget.h.

Referenced by SYMBOL_PREVIEW_WIDGET().

◆ m_itemBBox

BOX2I SYMBOL_PREVIEW_WIDGET::m_itemBBox
protected

The bounding box of the current item.

Definition at line 84 of file symbol_preview_widget.h.

Referenced by SYMBOL_DIFF_WIDGET::DisplayDiff(), DisplayPart(), DisplaySymbol(), and fitOnDrawArea().

◆ m_kiway

KIWAY* SYMBOL_PREVIEW_WIDGET::m_kiway
protected

Definition at line 68 of file symbol_preview_widget.h.

Referenced by DisplaySymbol().

◆ m_outerSizer

wxSizer* SYMBOL_PREVIEW_WIDGET::m_outerSizer
protected

◆ m_preview

◆ m_previewItem

LIB_SYMBOL* SYMBOL_PREVIEW_WIDGET::m_previewItem
protected

◆ m_status

wxStaticText* SYMBOL_PREVIEW_WIDGET::m_status
protected

Definition at line 73 of file symbol_preview_widget.h.

Referenced by SetStatusText(), and SYMBOL_PREVIEW_WIDGET().

◆ m_statusPanel

wxPanel* SYMBOL_PREVIEW_WIDGET::m_statusPanel
protected

◆ m_statusSizer

wxSizer* SYMBOL_PREVIEW_WIDGET::m_statusSizer
protected

Definition at line 75 of file symbol_preview_widget.h.

Referenced by SYMBOL_PREVIEW_WIDGET().


The documentation for this class was generated from the following files: