31#include <wx/wupdlock.h>
35 const wxPoint& pos,
const wxSize& size,
int n,
36 const wxString choices[],
int style ) :
55 wxWindowUpdateLocker updateLock(
this );
69 else if( !activated[layerid] )
70 layerstatus = wxT(
" " ) +
_(
"(not activated)" );
74 wxVector<wxBitmap> bitmaps;
82 bmp.SetScaleFactor(
scale );
83 bitmaps.push_back( bmp );
96 Append( layername, wxBitmapBundle::FromBitmaps( bitmaps ), (
void*) (intptr_t) layerid );
110 SetMinSize( wxSize( -1, -1 ) );
111 wxSize bestSize = GetBestSize();
113 bestSize.x = GetBestSize().x + size + 10;
114 SetMinSize( bestSize );
116 SetSelection( wxNOT_FOUND );
135 return footprintEditorLayers;
LAYER_BOX_SELECTOR(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr)
LSET is a set of PCB_LAYER_IDs.
static const LSET & AllCuMask()
return AllCuMask( MAX_CU_LAYERS );
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 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: