56 else if( !activated[layerid] )
57 layerstatus = wxT(
" " ) +
_(
"(not activated)" );
61 wxVector<wxBitmap> bitmaps;
69 bmp.SetScaleFactor(
scale );
70 bitmaps.push_back( bmp );
73 wxString layername =
getLayerName( layerid ) + layerstatus;
83 Append( layername, wxBitmapBundle::FromBitmaps( bitmaps ), (
void*) (intptr_t) layerid );
97 SetMinSize( wxSize( -1, -1 ) );
98 wxSize bestSize = GetBestSize();
100 bestSize.x = GetBestSize().x + size + 10;
101 SetMinSize( bestSize );
103 SetSelection( wxNOT_FOUND );
123 return footprintEditorLayers;
wxString m_ColorTheme
Active color theme name.
bool test(size_t pos) const
LSET GetEnabledLayers() const
A proxy function that calls the corresponding function in m_BoardSettings.
static wxString GetStandardLayerName(PCB_LAYER_ID aLayerId)
Return an "English Standard" name of a PCB layer when given aLayerNumber.
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
Color settings are a bit different than most of the settings objects in that there can be more than o...
COLOR4D GetColor(int aLayer) const
A color representation with 4 components: red, green, blue, alpha.
static void DrawColorSwatch(wxBitmap &aLayerbmp, const COLOR4D &aBackground, const COLOR4D &aColor)
LSET is a set of PCB_LAYER_IDs.
static LSET AllLayersMask()
static TOOL_ACTION * LayerIDToAction(PCB_LAYER_ID aLayerID)
Translate a layer ID into the action that switches to that layer.
virtual COLOR_SETTINGS * GetColorSettings(bool aForceRefresh=false) const override
Helper to retrieve the current color settings.
bool m_showNotEnabledBrdlayers
wxString m_undefinedLayerName
PCB_BASE_FRAME * m_boardFrame
COLOR4D getLayerColor(int aLayer) const override
bool isLayerEnabled(int aLayer) const override
LSET getEnabledLayers() const
wxString getLayerName(int aLayer) const override
virtual SETTINGS_MANAGER & GetSettingsManager() const
T * GetAppSettings()
Returns a handle to the a given settings by type If the settings have already been loaded,...
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
wxString AddHotkeyName(const wxString &aText, int aHotKey, HOTKEY_ACTION_TYPE aStyle)
@ LAYER_PCB_BACKGROUND
PCB background color.
PCB_LAYER_ID
A quick note on layer IDs:
PCB_LAYER_ID ToLAYER_ID(int aLayer)
PGM_BASE & Pgm()
The global Program "get" accessor.