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

Class to display a pcb layer list in a wxBitmapComboBox. More...

#include <pcb_layer_box_selector.h>

Inheritance diagram for PCB_LAYER_BOX_SELECTOR:
LAYER_BOX_SELECTOR LAYER_SELECTOR

Public Member Functions

 PCB_LAYER_BOX_SELECTOR (wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr, int style=0)
 
void SetBoardFrame (PCB_BASE_FRAME *aFrame)
 
void SetNotAllowedLayerSet (LSET aMask)
 
void SetUndefinedLayerName (const wxString &aName)
 
void Resync () override
 
void ShowNonActivatedLayers (bool aShow)
 
int GetLayerSelection () const
 
int SetLayerSelection (int layer)
 
bool SetLayersHotkeys (bool value)
 

Static Public Member Functions

static void DrawColorSwatch (wxBitmap &aLayerbmp, const COLOR4D &aBackground, const COLOR4D &aColor)
 

Protected Attributes

bool m_layerhotkeys
 

Private Member Functions

COLOR4D getLayerColor (int aLayer) const override
 
bool isLayerEnabled (int aLayer) const override
 
wxString getLayerName (int aLayer) const override
 
LSET getEnabledLayers () const
 

Private Attributes

PCB_BASE_FRAMEm_boardFrame
 
LSET m_layerMaskDisable
 
bool m_showNotEnabledBrdlayers
 
wxString m_undefinedLayerName
 

Detailed Description

Class to display a pcb layer list in a wxBitmapComboBox.

Definition at line 36 of file pcb_layer_box_selector.h.

Constructor & Destructor Documentation

◆ PCB_LAYER_BOX_SELECTOR()

PCB_LAYER_BOX_SELECTOR::PCB_LAYER_BOX_SELECTOR ( wxWindow *  parent,
wxWindowID  id,
const wxString &  value = wxEmptyString,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
int  n = 0,
const wxString  choices[] = nullptr,
int  style = 0 
)
inline

Definition at line 42 of file pcb_layer_box_selector.h.

References m_boardFrame, and m_showNotEnabledBrdlayers.

Member Function Documentation

◆ DrawColorSwatch()

void LAYER_SELECTOR::DrawColorSwatch ( wxBitmap &  aLayerbmp,
const COLOR4D aBackground,
const COLOR4D aColor 
)
staticinherited

◆ getEnabledLayers()

LSET PCB_LAYER_BOX_SELECTOR::getEnabledLayers ( ) const
private

◆ getLayerColor()

◆ getLayerName()

wxString PCB_LAYER_BOX_SELECTOR::getLayerName ( int  aLayer) const
overrideprivatevirtual

◆ GetLayerSelection()

◆ isLayerEnabled()

bool PCB_LAYER_BOX_SELECTOR::isLayerEnabled ( int  aLayer) const
overrideprivatevirtual

Implements LAYER_SELECTOR.

Definition at line 110 of file pcb_layer_box_selector.cpp.

References getEnabledLayers(), and BASE_SET::test().

◆ Resync()

◆ SetBoardFrame()

◆ SetLayerSelection()

◆ SetLayersHotkeys()

◆ SetNotAllowedLayerSet()

◆ SetUndefinedLayerName()

◆ ShowNonActivatedLayers()

Member Data Documentation

◆ m_boardFrame

PCB_BASE_FRAME* PCB_LAYER_BOX_SELECTOR::m_boardFrame
private

◆ m_layerhotkeys

bool LAYER_SELECTOR::m_layerhotkeys
protectedinherited

◆ m_layerMaskDisable

LSET PCB_LAYER_BOX_SELECTOR::m_layerMaskDisable
private

Definition at line 86 of file pcb_layer_box_selector.h.

Referenced by SetNotAllowedLayerSet().

◆ m_showNotEnabledBrdlayers

bool PCB_LAYER_BOX_SELECTOR::m_showNotEnabledBrdlayers
private

Definition at line 88 of file pcb_layer_box_selector.h.

Referenced by PCB_LAYER_BOX_SELECTOR(), Resync(), and ShowNonActivatedLayers().

◆ m_undefinedLayerName

wxString PCB_LAYER_BOX_SELECTOR::m_undefinedLayerName
private

Definition at line 90 of file pcb_layer_box_selector.h.

Referenced by Resync(), and SetUndefinedLayerName().


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