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 ToggleAB ()
 Toggle between full-A and full-B display.
 
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)
 
void onCharHook (wxKeyEvent &aEvent)
 

Private Attributes

LIB_SYMBOLm_libraryItem
 
wxSlider * m_slider
 
wxBitmapButton * m_toggleButton
 

Detailed Description

Definition at line 31 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 36 of file symbol_diff_widget.cpp.

References _, AddHotkeyName(), KiBitmapBundle(), SYMBOL_PREVIEW_WIDGET::m_outerSizer, m_slider, m_toggleButton, onCharHook(), onSlider(), and ToggleAB().

◆ ~SYMBOL_DIFF_WIDGET()

SYMBOL_DIFF_WIDGET::~SYMBOL_DIFF_WIDGET ( )
override

Definition at line 83 of file symbol_diff_widget.cpp.

References m_libraryItem.

Member Function Documentation

◆ DisplayDiff()

◆ DisplayPart()

◆ DisplaySymbol()

◆ fitOnDrawArea()

◆ onCharHook()

void SYMBOL_DIFF_WIDGET::onCharHook ( wxKeyEvent &  aEvent)
private

Definition at line 203 of file symbol_diff_widget.cpp.

References ToggleAB().

Referenced by SYMBOL_DIFF_WIDGET().

◆ 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 144 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().

◆ ToggleAB()

void SYMBOL_DIFF_WIDGET::ToggleAB ( )

Toggle between full-A and full-B display.

Definition at line 140 of file symbol_diff_widget.cpp.

References dummy, m_slider, and onSlider().

Referenced by onCharHook(), and SYMBOL_DIFF_WIDGET().

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 60 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 61 of file symbol_diff_widget.h.

Referenced by onSlider(), SYMBOL_DIFF_WIDGET(), and ToggleAB().

◆ 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

◆ m_toggleButton

wxBitmapButton* SYMBOL_DIFF_WIDGET::m_toggleButton
private

Definition at line 62 of file symbol_diff_widget.h.

Referenced by SYMBOL_DIFF_WIDGET().


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