38 const wxString& value,
const wxPoint& pos,
39 const wxSize& size,
int n,
const wxString choices[],
42 m_showNotEnabledBrdlayers( false ),
72 else if( !activated[layerid] )
73 layerstatus = wxT(
" " ) +
_(
"(not activated)" );
77 wxVector<wxBitmap> bitmaps;
85 bmp.SetScaleFactor(
scale );
86 bitmaps.push_back( bmp );
99 Append( layername, wxBitmapBundle::FromBitmaps( bitmaps ), (
void*) (intptr_t) layerid );
113 SetMinSize( wxSize( -1, -1 ) );
114 wxSize bestSize = GetBestSize();
116 bestSize.x = GetBestSize().x + size + 10;
117 SetMinSize( bestSize );
119 SetSelection( wxNOT_FOUND );
139 return footprintEditorLayers;
LSET GetEnabledLayers() const
A proxy function that calls the corresponding function in m_BoardSettings.
LSET is a set of PCB_LAYER_IDs.
LSEQ UIOrder() const
Returns the copper, technical and user layers in the order shown in layer widget.
static 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
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: