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

#include <symbol_diff_widget.h>

Inheritance diagram for SYMBOL_DIFF_WIDGET:
SYMBOL_PREVIEW_WIDGET

Public Member Functions

 SYMBOL_DIFF_WIDGET (wxWindow *aParent, EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType)
 Construct a symbol diff widget, consisting on a canvas for displaying a schematic and a library symbol, and a slider for fading between the two.
 
 ~SYMBOL_DIFF_WIDGET () override
 
void DisplayDiff (LIB_SYMBOL *aSchSymbol, LIB_SYMBOL *aLibSymbol, int aUnit, int aConvert)
 Set the currently displayed symbol.
 
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.
 

Private Member Functions

void onSlider (wxScrollEvent &aEvent)
 

Private Attributes

LIB_SYMBOLm_libraryItem
 
wxSlider * m_slider
 

Detailed Description

Definition at line 30 of file symbol_diff_widget.h.

Constructor & Destructor Documentation

◆ SYMBOL_DIFF_WIDGET()

SYMBOL_DIFF_WIDGET::SYMBOL_DIFF_WIDGET ( wxWindow *  aParent,
EDA_DRAW_PANEL_GAL::GAL_TYPE  aCanvasType 
)

Construct a symbol diff widget, consisting on a canvas for displaying a schematic and a library symbol, and a slider for fading between the two.

Parameters
aParent- parent window
aCanvasType= the type of canvas (GAL_TYPE_OPENGL or GAL_TYPE_CAIRO only)

Definition at line 30 of file symbol_diff_widget.cpp.

References _, SYMBOL_PREVIEW_WIDGET::m_outerSizer, m_slider, and onSlider().

◆ ~SYMBOL_DIFF_WIDGET()

SYMBOL_DIFF_WIDGET::~SYMBOL_DIFF_WIDGET ( )
override

Definition at line 62 of file symbol_diff_widget.cpp.

References m_libraryItem.

Member Function Documentation

◆ DisplayDiff()

◆ DisplayPart()

◆ DisplaySymbol()

◆ fitOnDrawArea()

◆ onSize()

void SYMBOL_PREVIEW_WIDGET::onSize ( wxSizeEvent &  aEvent)
protectedinherited

◆ onSlider()

◆ SetStatusText()

void SYMBOL_PREVIEW_WIDGET::SetStatusText ( const wxString &  aText)
inherited

Set the contents of the status label and display it.

Definition at line 141 of file symbol_preview_widget.cpp.

References SYMBOL_PREVIEW_WIDGET::m_preview, SYMBOL_PREVIEW_WIDGET::m_status, and SYMBOL_PREVIEW_WIDGET::m_statusPanel.

Referenced by PANEL_SYMBOL_CHOOSER::onSymbolSelected().

Member Data Documentation

◆ m_galDisplayOptions

GAL_DISPLAY_OPTIONS_IMPL SYMBOL_PREVIEW_WIDGET::m_galDisplayOptions
protectedinherited

◆ m_itemBBox

BOX2I SYMBOL_PREVIEW_WIDGET::m_itemBBox
protectedinherited

◆ m_kiway

KIWAY* SYMBOL_PREVIEW_WIDGET::m_kiway
protectedinherited

Definition at line 68 of file symbol_preview_widget.h.

Referenced by SYMBOL_PREVIEW_WIDGET::DisplaySymbol().

◆ m_libraryItem

LIB_SYMBOL* SYMBOL_DIFF_WIDGET::m_libraryItem
private

Definition at line 53 of file symbol_diff_widget.h.

Referenced by DisplayDiff(), onSlider(), and ~SYMBOL_DIFF_WIDGET().

◆ m_outerSizer

wxSizer* SYMBOL_PREVIEW_WIDGET::m_outerSizer
protectedinherited

◆ m_preview

◆ m_previewItem

◆ m_slider

wxSlider* SYMBOL_DIFF_WIDGET::m_slider
private

Definition at line 54 of file symbol_diff_widget.h.

Referenced by onSlider(), and SYMBOL_DIFF_WIDGET().

◆ m_status

wxStaticText* SYMBOL_PREVIEW_WIDGET::m_status
protectedinherited

◆ m_statusPanel

wxPanel* SYMBOL_PREVIEW_WIDGET::m_statusPanel
protectedinherited

◆ m_statusSizer

wxSizer* SYMBOL_PREVIEW_WIDGET::m_statusSizer
protectedinherited

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