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)
 

Protected Attributes

bool m_layerhotkeys
 

Private Member Functions

bool isLayerEnabled (int aLayer) const override
 Return true if the layer id is enabled (i.e. is it should be displayed).
 
LSET getEnabledLayers () const
 

Private Attributes

PCB_BASE_FRAMEm_boardFrame
 
LSET m_layerMaskDisable
 
bool m_showNotEnabledBrdlayers
 
wxString m_undefinedLayerName
 
std::unique_ptr< PCB_LAYER_PRESENTATIONm_layerPresentation
 

Detailed Description

Class to display a pcb layer list in a wxBitmapComboBox.

Definition at line 40 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 
)

Definition at line 37 of file pcb_layer_box_selector.cpp.

Member Function Documentation

◆ getEnabledLayers()

LSET PCB_LAYER_BOX_SELECTOR::getEnabledLayers ( ) const
private

◆ GetLayerSelection()

◆ isLayerEnabled()

bool PCB_LAYER_BOX_SELECTOR::isLayerEnabled ( int  aLayer) const
overrideprivatevirtual

Return true if the layer id is enabled (i.e. is it should be displayed).

Implements LAYER_SELECTOR.

Definition at line 126 of file pcb_layer_box_selector.cpp.

References getEnabledLayers().

◆ Resync()

◆ SetBoardFrame()

◆ SetLayerSelection()

◆ SetLayersHotkeys()

◆ SetNotAllowedLayerSet()

◆ SetUndefinedLayerName()

◆ ShowNonActivatedLayers()

Member Data Documentation

◆ m_boardFrame

PCB_BASE_FRAME* PCB_LAYER_BOX_SELECTOR::m_boardFrame
private

Definition at line 76 of file pcb_layer_box_selector.h.

Referenced by getEnabledLayers(), and SetBoardFrame().

◆ m_layerhotkeys

bool LAYER_SELECTOR::m_layerhotkeys
protectedinherited

◆ m_layerMaskDisable

LSET PCB_LAYER_BOX_SELECTOR::m_layerMaskDisable
private

Definition at line 78 of file pcb_layer_box_selector.h.

Referenced by SetNotAllowedLayerSet().

◆ m_layerPresentation

std::unique_ptr<PCB_LAYER_PRESENTATION> PCB_LAYER_BOX_SELECTOR::m_layerPresentation
private

Definition at line 85 of file pcb_layer_box_selector.h.

Referenced by Resync(), and SetBoardFrame().

◆ m_showNotEnabledBrdlayers

bool PCB_LAYER_BOX_SELECTOR::m_showNotEnabledBrdlayers
private

Definition at line 80 of file pcb_layer_box_selector.h.

Referenced by Resync(), and ShowNonActivatedLayers().

◆ m_undefinedLayerName

wxString PCB_LAYER_BOX_SELECTOR::m_undefinedLayerName
private

Definition at line 82 of file pcb_layer_box_selector.h.

Referenced by Resync(), and SetUndefinedLayerName().


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