35#include <wx/wupdlock.h>
39 const wxPoint& pos,
const wxSize& size,
int n,
40 const wxString choices[],
int style ) :
42 m_boardFrame( nullptr ),
43 m_showNotEnabledBrdlayers( false ),
59 wxWindowUpdateLocker updateLock(
this );
73 else if( !activated[layerid] )
74 layerstatus = wxT(
" " ) +
_(
"(not activated)" );
78 wxVector<wxBitmap> bitmaps;
86 bmp.SetScaleFactor(
scale );
87 bitmaps.push_back( bmp );
100 Append( layername, wxBitmapBundle::FromBitmaps( bitmaps ), (
void*) (intptr_t) layerid );
114 SetMinSize( wxSize( -1, -1 ) );
115 wxSize bestSize = GetBestSize();
117 bestSize.x = GetBestSize().x + size + 10;
118 SetMinSize( bestSize );
120 SetSelection( wxNOT_FOUND );
139 return footprintEditorLayers;
const LSET & GetEnabledLayers() const
A proxy function that calls the corresponding function in m_BoardSettings.
Display a layer list in a wxBitmapComboBox.
LSET is a set of PCB_LAYER_IDs.
LSEQ UIOrder() const
Return the copper, technical and user layers in the order shown in layer widget.
static LSET AllNonCuMask()
Return a mask holding all layer minus CU layers.
static const LSET & AllLayersMask()
static LSET AllCuMask()
return AllCuMask( MAX_CU_LAYERS );
static TOOL_ACTION * LayerIDToAction(PCB_LAYER_ID aLayerID)
Translate a layer ID into the action that switches to that layer.
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
bool m_showNotEnabledBrdlayers
void SetBoardFrame(PCB_BASE_FRAME *aFrame)
wxString m_undefinedLayerName
PCB_BASE_FRAME * m_boardFrame
bool isLayerEnabled(int aLayer) const override
Return true if the layer id is enabled (i.e. is it should be displayed).
LSET getEnabledLayers() const
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)
std::unique_ptr< PCB_LAYER_PRESENTATION > m_layerPresentation
Class that manages the presentation of PCB layers in a PCB frame.
wxString AddHotkeyName(const wxString &aText, int aHotKey, HOTKEY_ACTION_TYPE aStyle)
PCB_LAYER_ID
A quick note on layer IDs: