74 default:
return nullptr;
102 else if( !activated[layerid] )
103 layerstatus = wxT(
" " ) +
_(
"(not activated)" );
107 wxBitmap bmp( size, size );
110 wxString layername =
getLayerName( layerid ) + layerstatus;
120 Append( layername, bmp, (
void*)(intptr_t) layerid );
134 SetMinSize( wxSize( -1, -1 ) );
135 wxSize bestSize = GetBestSize();
137 bestSize.x = GetBestSize().x + size + 10;
138 SetMinSize( bestSize );
140 SetSelection( wxNOT_FOUND );
159 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
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 layerInner12
static TOOL_ACTION layerInner8
static TOOL_ACTION layerInner3
static TOOL_ACTION layerInner2
static TOOL_ACTION layerInner25
static TOOL_ACTION layerInner24
static TOOL_ACTION layerInner29
static TOOL_ACTION layerInner11
static TOOL_ACTION layerInner16
static TOOL_ACTION layerInner26
static TOOL_ACTION layerInner18
static TOOL_ACTION layerInner14
static TOOL_ACTION layerInner6
static TOOL_ACTION layerInner22
static TOOL_ACTION layerInner5
static TOOL_ACTION layerInner20
static TOOL_ACTION layerInner7
static TOOL_ACTION layerInner27
static TOOL_ACTION layerInner1
static TOOL_ACTION layerInner10
static TOOL_ACTION layerInner15
static TOOL_ACTION layerInner17
static TOOL_ACTION layerBottom
static TOOL_ACTION layerInner19
static TOOL_ACTION layerInner9
static TOOL_ACTION layerInner30
static TOOL_ACTION layerTop
static TOOL_ACTION layerInner4
static TOOL_ACTION layerInner13
static TOOL_ACTION layerInner21
static TOOL_ACTION layerInner23
static TOOL_ACTION layerInner28
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)
static TOOL_ACTION * layer2action(PCB_LAYER_ID aLayer)
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.