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

#include <design_block_preview_widget.h>

Inheritance diagram for DESIGN_BLOCK_PREVIEW_WIDGET:

Public Member Functions

 DESIGN_BLOCK_PREVIEW_WIDGET (wxWindow *aParent, bool aIncludeStatus, EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType)
 Construct a symbol preview widget.
 
 ~DESIGN_BLOCK_PREVIEW_WIDGET () override
 
void SetStatusText (const wxString &aText)
 Set the contents of the status label and display it.
 
void DisplayDesignBlock (DESIGN_BLOCK *aDesignBlock)
 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_GALm_preview
 
wxStaticText * m_status
 
wxPanel * m_statusPanel
 
wxSizer * m_statusSizer
 
wxSizer * m_outerSizer
 
SCHEMATICm_previewItem
 
BOX2I m_itemBBox
 The bounding box of the current item.
 

Detailed Description

Definition at line 37 of file design_block_preview_widget.h.

Constructor & Destructor Documentation

◆ DESIGN_BLOCK_PREVIEW_WIDGET()

◆ ~DESIGN_BLOCK_PREVIEW_WIDGET()

DESIGN_BLOCK_PREVIEW_WIDGET::~DESIGN_BLOCK_PREVIEW_WIDGET ( )
override

Definition at line 137 of file design_block_preview_widget.cpp.

References m_preview, and m_previewItem.

Member Function Documentation

◆ DisplayDesignBlock()

◆ fitOnDrawArea()

◆ onSize()

void DESIGN_BLOCK_PREVIEW_WIDGET::onSize ( wxSizeEvent &  aEvent)
protected

◆ SetStatusText()

void DESIGN_BLOCK_PREVIEW_WIDGET::SetStatusText ( const wxString &  aText)

Set the contents of the status label and display it.

Definition at line 144 of file design_block_preview_widget.cpp.

References m_preview, m_status, and m_statusPanel.

Member Data Documentation

◆ m_galDisplayOptions

GAL_DISPLAY_OPTIONS_IMPL DESIGN_BLOCK_PREVIEW_WIDGET::m_galDisplayOptions
protected

Definition at line 66 of file design_block_preview_widget.h.

Referenced by DESIGN_BLOCK_PREVIEW_WIDGET().

◆ m_itemBBox

BOX2I DESIGN_BLOCK_PREVIEW_WIDGET::m_itemBBox
protected

The bounding box of the current item.

Definition at line 77 of file design_block_preview_widget.h.

Referenced by DisplayDesignBlock(), and fitOnDrawArea().

◆ m_outerSizer

wxSizer* DESIGN_BLOCK_PREVIEW_WIDGET::m_outerSizer
protected

Definition at line 72 of file design_block_preview_widget.h.

Referenced by DESIGN_BLOCK_PREVIEW_WIDGET().

◆ m_preview

EDA_DRAW_PANEL_GAL* DESIGN_BLOCK_PREVIEW_WIDGET::m_preview
protected

◆ m_previewItem

SCHEMATIC* DESIGN_BLOCK_PREVIEW_WIDGET::m_previewItem
protected

◆ m_status

wxStaticText* DESIGN_BLOCK_PREVIEW_WIDGET::m_status
protected

Definition at line 69 of file design_block_preview_widget.h.

Referenced by DESIGN_BLOCK_PREVIEW_WIDGET(), and SetStatusText().

◆ m_statusPanel

wxPanel* DESIGN_BLOCK_PREVIEW_WIDGET::m_statusPanel
protected

◆ m_statusSizer

wxSizer* DESIGN_BLOCK_PREVIEW_WIDGET::m_statusSizer
protected

Definition at line 71 of file design_block_preview_widget.h.

Referenced by DESIGN_BLOCK_PREVIEW_WIDGET().


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