Returns the default display name for a given layer.
Returns the string equivalent of a given layer.
These are not the same as the canonical name in LSET::Name(), which is used in board files and cannot be translated or changed. WARNING: do not translate board physical layers names (F.Cu to User.9): because canonical names are used in files (boards and fab files), using translated names in UI create mistakes for users. Board physical layers names must be seen as proper nouns.
Definition at line 30 of file layer_id.cpp.
31{
32 switch( aLayer )
33 {
34
35 case F_Cu:
return wxT(
"F.Cu" );
36 case In1_Cu:
return wxT(
"In1.Cu" );
37 case In2_Cu:
return wxT(
"In2.Cu" );
38 case In3_Cu:
return wxT(
"In3.Cu" );
39 case In4_Cu:
return wxT(
"In4.Cu" );
40 case In5_Cu:
return wxT(
"In5.Cu" );
41 case In6_Cu:
return wxT(
"In6.Cu" );
42 case In7_Cu:
return wxT(
"In7.Cu" );
43 case In8_Cu:
return wxT(
"In8.Cu" );
44 case In9_Cu:
return wxT(
"In9.Cu" );
45 case In10_Cu:
return wxT(
"In10.Cu" );
46 case In11_Cu:
return wxT(
"In11.Cu" );
47 case In12_Cu:
return wxT(
"In12.Cu" );
48 case In13_Cu:
return wxT(
"In13.Cu" );
49 case In14_Cu:
return wxT(
"In14.Cu" );
50 case In15_Cu:
return wxT(
"In15.Cu" );
51 case In16_Cu:
return wxT(
"In16.Cu" );
52 case In17_Cu:
return wxT(
"In17.Cu" );
53 case In18_Cu:
return wxT(
"In18.Cu" );
54 case In19_Cu:
return wxT(
"In19.Cu" );
55 case In20_Cu:
return wxT(
"In20.Cu" );
56 case In21_Cu:
return wxT(
"In21.Cu" );
57 case In22_Cu:
return wxT(
"In22.Cu" );
58 case In23_Cu:
return wxT(
"In23.Cu" );
59 case In24_Cu:
return wxT(
"In24.Cu" );
60 case In25_Cu:
return wxT(
"In25.Cu" );
61 case In26_Cu:
return wxT(
"In26.Cu" );
62 case In27_Cu:
return wxT(
"In27.Cu" );
63 case In28_Cu:
return wxT(
"In28.Cu" );
64 case In29_Cu:
return wxT(
"In29.Cu" );
65 case In30_Cu:
return wxT(
"In30.Cu" );
66 case B_Cu:
return wxT(
"B.Cu" );
67
68
69 case B_Adhes:
return wxT(
"B.Adhesive" );
70 case F_Adhes:
return wxT(
"F.Adhesive" );
71 case B_Paste:
return wxT(
"B.Paste" );
72 case F_Paste:
return wxT(
"F.Paste" );
73 case B_SilkS:
return wxT(
"B.Silkscreen" );
74 case F_SilkS:
return wxT(
"F.Silkscreen" );
75 case B_Mask:
return wxT(
"B.Mask" );
76 case F_Mask:
return wxT(
"F.Mask" );
77
78
79 case Dwgs_User:
return wxT(
"User.Drawings" );
80 case Cmts_User:
return wxT(
"User.Comments" );
81 case Eco1_User:
return wxT(
"User.Eco1" );
82 case Eco2_User:
return wxT(
"User.Eco2" );
83 case Edge_Cuts:
return wxT(
"Edge.Cuts" );
84 case Margin:
return wxT(
"Margin" );
85
86
87 case F_CrtYd:
return wxT(
"F.Courtyard" );
88 case B_CrtYd:
return wxT(
"B.Courtyard" );
89 case F_Fab:
return wxT(
"F.Fab" );
90 case B_Fab:
return wxT(
"B.Fab" );
91
92
93 case User_1:
return wxT(
"User.1" );
94 case User_2:
return wxT(
"User.2" );
95 case User_3:
return wxT(
"User.3" );
96 case User_4:
return wxT(
"User.4" );
97 case User_5:
return wxT(
"User.5" );
98 case User_6:
return wxT(
"User.6" );
99 case User_7:
return wxT(
"User.7" );
100 case User_8:
return wxT(
"User.8" );
101 case User_9:
return wxT(
"User.9" );
102
103
104 case Rescue:
return _(
"Rescue" );
105
106
107
124 case LAYER_NOTES:
return _(
"Schematic text && graphics" );
150
151
152
187
188 default:
189 wxCHECK_MSG(
false, wxEmptyString,
wxString::Format(
"Unknown layer ID %d", aLayer ) );
190 }
191}
@ LAYER_MOD_TEXT_INVISIBLE
text marked as invisible
@ LAYER_PAGE_LIMITS
color for drawing the page extents (visibility stored in PCBNEW_SETTINGS::m_ShowPageLimits)
@ LAYER_LOCKED_ITEM_SHADOW
shadow layer for locked items
@ LAYER_CONFLICTS_SHADOW
shadow layer for items flagged conficting
@ LAYER_NON_PLATEDHOLES
handle color for not plated holes (holes, not pads)
@ LAYER_PAD_FR
smd pads, front layer
@ LAYER_DRAWINGSHEET
drawingsheet frame and titleblock
@ LAYER_DRC_EXCLUSION
layer for drc markers which have been individually excluded
@ LAYER_PCB_BACKGROUND
PCB background color.
@ LAYER_DRC_WARNING
layer for drc markers with SEVERITY_WARNING
@ LAYER_PAD_PLATEDHOLES
to draw pad holes (plated)
@ LAYER_CURSOR
PCB cursor.
@ LAYER_AUX_ITEMS
Auxiliary items (guides, rule, etc)
@ LAYER_MOD_FR
show footprints on front
@ LAYER_ANCHOR
anchor of items having an anchor point (texts, footprints)
@ LAYER_PAD_BK
smd pads, back layer
@ LAYER_MOD_VALUES
show footprints values (when texts are visible)
@ LAYER_PADS_TH
multilayer pads, usually with holes
@ LAYER_MARKER_SHADOWS
shadows for drc markers
@ LAYER_VIA_HOLES
to draw via holes (pad holes do not use this layer)
@ LAYER_VIA_MICROVIA
to draw micro vias
@ LAYER_SELECT_OVERLAY
currently selected items overlay
@ LAYER_VIA_THROUGH
to draw usual through hole vias
@ LAYER_DRC_ERROR
layer for drc markers with SEVERITY_ERROR
@ LAYER_MOD_BK
show footprints on back
@ LAYER_MOD_REFERENCES
show footprints references (when texts are visible)
@ LAYER_VIA_BBLIND
to draw blind/buried vias
@ LAYER_DEVICE_BACKGROUND
@ LAYER_SCHEMATIC_DRAWINGSHEET
@ LAYER_SCHEMATIC_GRID_AXES
@ LAYER_SCHEMATIC_PAGE_LIMITS
@ LAYER_SELECTION_SHADOWS
@ LAYER_SCHEMATIC_BACKGROUND
@ LAYER_SCHEMATIC_AUX_ITEMS
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
References _, B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, Format(), In10_Cu, In11_Cu, In12_Cu, In13_Cu, In14_Cu, In15_Cu, In16_Cu, In17_Cu, In18_Cu, In19_Cu, In1_Cu, In20_Cu, In21_Cu, In22_Cu, In23_Cu, In24_Cu, In25_Cu, In26_Cu, In27_Cu, In28_Cu, In29_Cu, In2_Cu, In30_Cu, In3_Cu, In4_Cu, In5_Cu, In6_Cu, In7_Cu, In8_Cu, In9_Cu, LAYER_ANCHOR, LAYER_AUX_ITEMS, LAYER_BRIGHTENED, LAYER_BUS, LAYER_BUS_JUNCTION, LAYER_CONFLICTS_SHADOW, LAYER_CURSOR, LAYER_DEVICE, LAYER_DEVICE_BACKGROUND, LAYER_DRAWINGSHEET, LAYER_DRC_ERROR, LAYER_DRC_EXCLUSION, LAYER_DRC_WARNING, LAYER_ERC_ERR, LAYER_ERC_EXCLUSION, LAYER_ERC_WARN, LAYER_FIELDS, LAYER_GLOBLABEL, LAYER_GRID, LAYER_GRID_AXES, LAYER_HIDDEN, LAYER_HIERLABEL, LAYER_HOVERED, LAYER_INTERSHEET_REFS, LAYER_JUNCTION, LAYER_LOCKED_ITEM_SHADOW, LAYER_LOCLABEL, LAYER_MARKER_SHADOWS, LAYER_MOD_BK, LAYER_MOD_FR, LAYER_MOD_REFERENCES, LAYER_MOD_TEXT, LAYER_MOD_TEXT_INVISIBLE, LAYER_MOD_VALUES, LAYER_NETCLASS_REFS, LAYER_NOCONNECT, LAYER_NON_PLATEDHOLES, LAYER_NOTES, LAYER_NOTES_BACKGROUND, LAYER_PAD_BK, LAYER_PAD_FR, LAYER_PAD_HOLEWALLS, LAYER_PAD_PLATEDHOLES, LAYER_PADS_TH, LAYER_PAGE_LIMITS, LAYER_PCB_BACKGROUND, LAYER_PIN, LAYER_PINNAM, LAYER_PINNUM, LAYER_PRIVATE_NOTES, LAYER_RATSNEST, LAYER_REFERENCEPART, LAYER_SCHEMATIC_ANCHOR, LAYER_SCHEMATIC_AUX_ITEMS, LAYER_SCHEMATIC_BACKGROUND, LAYER_SCHEMATIC_CURSOR, LAYER_SCHEMATIC_DRAWINGSHEET, LAYER_SCHEMATIC_GRID, LAYER_SCHEMATIC_GRID_AXES, LAYER_SCHEMATIC_PAGE_LIMITS, LAYER_SELECT_OVERLAY, LAYER_SELECTION_SHADOWS, LAYER_SHEET, LAYER_SHEET_BACKGROUND, LAYER_SHEETFIELDS, LAYER_SHEETFILENAME, LAYER_SHEETLABEL, LAYER_SHEETNAME, LAYER_TRACKS, LAYER_VALUEPART, LAYER_VIA_BBLIND, LAYER_VIA_HOLES, LAYER_VIA_HOLEWALLS, LAYER_VIA_MICROVIA, LAYER_VIA_THROUGH, LAYER_WIRE, Margin, Rescue, User_1, User_2, User_3, User_4, User_5, User_6, User_7, User_8, and User_9.
Referenced by DIALOG_IMPORTED_LAYERS::AddMappings(), PANEL_SETUP_LAYERS::addUserDefinedLayer(), AUTOPLACE_TOOL::autoplace(), PANEL_EESCHEMA_COLOR_SETTINGS::createSwatches(), PANEL_FP_EDITOR_COLOR_SETTINGS::createSwatches(), PANEL_PCBNEW_COLOR_SETTINGS::createSwatches(), PCB_MARKER::Deserialize(), DIALOG_IMPORTED_LAYERS::DIALOG_IMPORTED_LAYERS(), PCB_BITMAP::GetMsgPanelInfo(), DIALOG_IMPORTED_LAYERS::GetSelectedLayerID(), BOARD::GetStandardLayerName(), DIALOG_IMPORTED_LAYERS::OnAutoMatchLayersClicked(), SCH_SEXPR_PLUGIN::saveLine(), PCB_MARKER::Serialize(), and DRC_TEST_PROVIDER_MISC::testDisabledLayers().