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

#include <design_block_preview_widget.h>

Inheritance diagram for DESIGN_BLOCK_PREVIEW_WIDGET:
PCB_DESIGN_BLOCK_PREVIEW_WIDGET SCH_DESIGN_BLOCK_PREVIEW_WIDGET

Public Member Functions

 DESIGN_BLOCK_PREVIEW_WIDGET (wxWindow *aParent)
 Construct a design block preview widget.
 
 ~DESIGN_BLOCK_PREVIEW_WIDGET ()=default
 
virtual void SetStatusText (const wxString &aText)=0
 Set the contents of the status label and display it.
 
virtual void DisplayDesignBlock (DESIGN_BLOCK *aDesignBlock)=0
 Set the currently displayed design block.
 

Protected Member Functions

void onSize (wxSizeEvent &aEvent)
 
void fitOnDrawArea ()
 

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 ( wxWindow *  aParent)
inline

Construct a design block preview widget.

Parameters
aParent- parent window

Definition at line 45 of file design_block_preview_widget.h.

◆ ~DESIGN_BLOCK_PREVIEW_WIDGET()

DESIGN_BLOCK_PREVIEW_WIDGET::~DESIGN_BLOCK_PREVIEW_WIDGET ( )
default

Member Function Documentation

◆ DisplayDesignBlock()

virtual void DESIGN_BLOCK_PREVIEW_WIDGET::DisplayDesignBlock ( DESIGN_BLOCK aDesignBlock)
pure virtual

Set the currently displayed design block.

Implemented in SCH_DESIGN_BLOCK_PREVIEW_WIDGET, and PCB_DESIGN_BLOCK_PREVIEW_WIDGET.

Referenced by PANEL_DESIGN_BLOCK_CHOOSER::onDesignBlockSelected().

◆ fitOnDrawArea()

void DESIGN_BLOCK_PREVIEW_WIDGET::fitOnDrawArea ( )
protected

◆ onSize()

void DESIGN_BLOCK_PREVIEW_WIDGET::onSize ( wxSizeEvent &  aEvent)
protected

◆ SetStatusText()

virtual void DESIGN_BLOCK_PREVIEW_WIDGET::SetStatusText ( const wxString &  aText)
pure virtual

Set the contents of the status label and display it.

Implemented in SCH_DESIGN_BLOCK_PREVIEW_WIDGET, and PCB_DESIGN_BLOCK_PREVIEW_WIDGET.


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