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 (const 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 )

Member Function Documentation

◆ getEnabledLayers()

LSET PCB_LAYER_BOX_SELECTOR::getEnabledLayers ( ) const
private

Definition at line 132 of file pcb_layer_box_selector.cpp.

References LSET::AllLayersMask(), and m_boardFrame.

Referenced by isLayerEnabled(), and Resync().

◆ GetLayerSelection()

int LAYER_BOX_SELECTOR::GetLayerSelection ( ) const
inherited

Definition at line 71 of file layer_box_selector.cpp.

References UNDEFINED_LAYER.

Referenced by GRID_CELL_LAYER_SELECTOR::EndEdit().

◆ 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()

void PCB_LAYER_BOX_SELECTOR::SetBoardFrame ( PCB_BASE_FRAME * aFrame)

Definition at line 49 of file pcb_layer_box_selector.cpp.

References m_boardFrame, and m_layerPresentation.

Referenced by GRID_CELL_LAYER_SELECTOR::Create().

◆ SetLayerSelection()

int LAYER_BOX_SELECTOR::SetLayerSelection ( int layer)
inherited

◆ SetLayersHotkeys()

bool LAYER_SELECTOR::SetLayersHotkeys ( bool value)
inherited

Definition at line 43 of file layer_box_selector.cpp.

References m_layerhotkeys.

Referenced by GRID_CELL_LAYER_SELECTOR::Create().

◆ SetNotAllowedLayerSet()

void PCB_LAYER_BOX_SELECTOR::SetNotAllowedLayerSet ( const LSET & aMask)
inline

◆ SetUndefinedLayerName()

void PCB_LAYER_BOX_SELECTOR::SetUndefinedLayerName ( const wxString & aName)
inline

Definition at line 61 of file pcb_layer_box_selector.h.

References m_undefinedLayerName.

◆ ShowNonActivatedLayers()

void PCB_LAYER_BOX_SELECTOR::ShowNonActivatedLayers ( bool aShow)
inline

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 78 of file pcb_layer_box_selector.h.

Referenced by Resync(), and 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 PCB_LAYER_BOX_SELECTOR(), 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 PCB_LAYER_BOX_SELECTOR(), 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: