KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
PCB_DESIGN_BLOCK_PREVIEW_WIDGET Class Reference

#include <pcb_design_block_preview_widget.h>

Inheritance diagram for PCB_DESIGN_BLOCK_PREVIEW_WIDGET:
DESIGN_BLOCK_PREVIEW_WIDGET

Public Member Functions

 PCB_DESIGN_BLOCK_PREVIEW_WIDGET (wxWindow *aParent, PCB_EDIT_FRAME *aFrame)
 Construct a schematic design block preview widget.
 
 ~PCB_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_GALm_preview
 
wxStaticText * m_status
 
wxPanel * m_statusPanel
 
wxSizer * m_statusSizer
 
wxSizer * m_outerSizer
 
BOARDm_previewItem
 
BOX2I m_itemBBox
 The bounding box of the current item.
 

Detailed Description

Definition at line 38 of file pcb_design_block_preview_widget.h.

Constructor & Destructor Documentation

◆ PCB_DESIGN_BLOCK_PREVIEW_WIDGET()

◆ ~PCB_DESIGN_BLOCK_PREVIEW_WIDGET()

PCB_DESIGN_BLOCK_PREVIEW_WIDGET::~PCB_DESIGN_BLOCK_PREVIEW_WIDGET ( )
override

Member Function Documentation

◆ DisplayDesignBlock()

◆ fitOnDrawArea()

◆ onSize()

void PCB_DESIGN_BLOCK_PREVIEW_WIDGET::onSize ( wxSizeEvent &  aEvent)
protected

◆ SetStatusText()

void PCB_DESIGN_BLOCK_PREVIEW_WIDGET::SetStatusText ( const wxString &  aText)
overridevirtual

Set the contents of the status label and display it.

Implements DESIGN_BLOCK_PREVIEW_WIDGET.

Definition at line 124 of file pcb_design_block_preview_widget.cpp.

References m_preview, m_status, and m_statusPanel.

Member Data Documentation

◆ m_galDisplayOptions

GAL_DISPLAY_OPTIONS_IMPL PCB_DESIGN_BLOCK_PREVIEW_WIDGET::m_galDisplayOptions
protected

Definition at line 65 of file pcb_design_block_preview_widget.h.

Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET().

◆ m_itemBBox

BOX2I PCB_DESIGN_BLOCK_PREVIEW_WIDGET::m_itemBBox
protected

The bounding box of the current item.

Definition at line 76 of file pcb_design_block_preview_widget.h.

Referenced by DisplayDesignBlock(), and fitOnDrawArea().

◆ m_outerSizer

wxSizer* PCB_DESIGN_BLOCK_PREVIEW_WIDGET::m_outerSizer
protected

Definition at line 71 of file pcb_design_block_preview_widget.h.

Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET().

◆ m_preview

◆ m_previewItem

BOARD* PCB_DESIGN_BLOCK_PREVIEW_WIDGET::m_previewItem
protected

◆ m_status

wxStaticText* PCB_DESIGN_BLOCK_PREVIEW_WIDGET::m_status
protected

◆ m_statusPanel

wxPanel* PCB_DESIGN_BLOCK_PREVIEW_WIDGET::m_statusPanel
protected

◆ m_statusSizer

wxSizer* PCB_DESIGN_BLOCK_PREVIEW_WIDGET::m_statusSizer
protected

Definition at line 70 of file pcb_design_block_preview_widget.h.

Referenced by PCB_DESIGN_BLOCK_PREVIEW_WIDGET().


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