61 else if( !activated[layerid] )
62 layerstatus = wxT(
" " ) +
_(
"(not activated)" );
66 wxBitmap bmp( size, size );
69 wxString layername =
getLayerName( layerid ) + layerstatus;
79 Append( layername, bmp, (
void*)(intptr_t) layerid );
93 SetMinSize( wxSize( -1, -1 ) );
94 wxSize bestSize = GetBestSize();
96 bestSize.x = GetBestSize().x + size + 10;
97 SetMinSize( bestSize );
99 SetSelection( wxNOT_FOUND );
118 return footprintEditorLayers;
wxString m_ColorTheme
Active color theme name.
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
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
double GetContentScaleFactor() const override
Get the content scale factor, which may be different from the scale factor on some platforms.
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
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)
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.