KiCad PCB EDA Suite
Loading...
Searching...
No Matches
color_settings.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2020 Jon Evans <[email protected]>
5 * Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#include <layer_ids.h>
24#include <settings/parameters.h>
26#include <wx/log.h>
27#include <wx/translation.h>
28
30
31
33const int colorsSchemaVersion = 5;
34const wxString COLOR_SETTINGS::COLOR_BUILTIN_DEFAULT = "_builtin_default";
35const wxString COLOR_SETTINGS::COLOR_BUILTIN_CLASSIC = "_builtin_classic";
36
37
38COLOR_SETTINGS::COLOR_SETTINGS( const wxString& aFilename, bool aAbsolutePath ) :
40 m_overrideSchItemColors( false ),
41 m_useBoardStackupColors( true )
42{
43 if( aAbsolutePath )
44 SetLocation( SETTINGS_LOC::NONE );
45
46 m_params.emplace_back( new PARAM<wxString>( "meta.name", &m_displayName, wxS( "KiCad Default" ) ) );
47
48 m_params.emplace_back( new PARAM<bool>( "schematic.override_item_colors",
49 &m_overrideSchItemColors, false ) );
50
51 m_params.emplace_back( new PARAM<bool>( "3d_viewer.use_board_stackup_colors",
52 &m_useBoardStackupColors, true ) );
53
54#define CLR( x, y ) \
55 wxASSERT( s_defaultTheme.count( y ) ); \
56 m_params.emplace_back( new COLOR_MAP_PARAM( x, y, s_defaultTheme.at( y ), &m_colors ) );
57
58 CLR( "schematic.anchor", LAYER_SCHEMATIC_ANCHOR );
59 CLR( "schematic.aux_items", LAYER_SCHEMATIC_AUX_ITEMS );
60 CLR( "schematic.background", LAYER_SCHEMATIC_BACKGROUND );
61 CLR( "schematic.hovered", LAYER_HOVERED );
62 CLR( "schematic.brightened", LAYER_BRIGHTENED );
63 CLR( "schematic.bus", LAYER_BUS );
64 CLR( "schematic.bus_junction", LAYER_BUS_JUNCTION );
65 CLR( "schematic.component_body", LAYER_DEVICE_BACKGROUND );
66 CLR( "schematic.component_outline", LAYER_DEVICE );
67 CLR( "schematic.cursor", LAYER_SCHEMATIC_CURSOR );
68 CLR( "schematic.dnp_marker", LAYER_DNP_MARKER );
69 CLR( "schematic.erc_error", LAYER_ERC_ERR );
70 CLR( "schematic.erc_warning", LAYER_ERC_WARN );
71 CLR( "schematic.erc_exclusion", LAYER_ERC_EXCLUSION );
72 CLR( "schematic.fields", LAYER_FIELDS );
73 CLR( "schematic.grid", LAYER_SCHEMATIC_GRID );
74 CLR( "schematic.grid_axes", LAYER_SCHEMATIC_GRID_AXES );
75 CLR( "schematic.hidden", LAYER_HIDDEN );
76 CLR( "schematic.junction", LAYER_JUNCTION );
77 CLR( "schematic.label_global", LAYER_GLOBLABEL );
78 CLR( "schematic.label_hier", LAYER_HIERLABEL );
79 CLR( "schematic.label_local", LAYER_LOCLABEL );
80 CLR( "schematic.netclass_flag", LAYER_NETCLASS_REFS );
81 CLR( "schematic.no_connect", LAYER_NOCONNECT );
82 CLR( "schematic.note", LAYER_NOTES );
83 CLR( "schematic.private_note", LAYER_PRIVATE_NOTES );
84 CLR( "schematic.note_background", LAYER_NOTES_BACKGROUND );
85 CLR( "schematic.pin", LAYER_PIN );
86 CLR( "schematic.pin_name", LAYER_PINNAM );
87 CLR( "schematic.pin_number", LAYER_PINNUM );
88 CLR( "schematic.reference", LAYER_REFERENCEPART );
89 CLR( "schematic.shadow", LAYER_SELECTION_SHADOWS );
90 CLR( "schematic.sheet", LAYER_SHEET );
91 CLR( "schematic.sheet_background", LAYER_SHEET_BACKGROUND );
92 CLR( "schematic.sheet_filename", LAYER_SHEETFILENAME );
93 CLR( "schematic.sheet_fields", LAYER_SHEETFIELDS );
94 CLR( "schematic.sheet_label", LAYER_SHEETLABEL );
95 CLR( "schematic.sheet_name", LAYER_SHEETNAME );
96 CLR( "schematic.value", LAYER_VALUEPART );
97 CLR( "schematic.wire", LAYER_WIRE );
98 CLR( "schematic.worksheet", LAYER_SCHEMATIC_DRAWINGSHEET );
99 CLR( "schematic.page_limits", LAYER_SCHEMATIC_PAGE_LIMITS );
100 CLR( "schematic.op_voltages", LAYER_OP_VOLTAGES );
101 CLR( "schematic.op_currents", LAYER_OP_CURRENTS );
102
103 CLR( "gerbview.axes", LAYER_GERBVIEW_AXES );
104 CLR( "gerbview.background", LAYER_GERBVIEW_BACKGROUND );
105 CLR( "gerbview.dcodes", LAYER_DCODES );
106 CLR( "gerbview.grid", LAYER_GERBVIEW_GRID );
107 CLR( "gerbview.negative_objects", LAYER_NEGATIVE_OBJECTS );
108 CLR( "gerbview.worksheet", LAYER_GERBVIEW_DRAWINGSHEET );
109 CLR( "gerbview.page_limits", LAYER_GERBVIEW_PAGE_LIMITS );
110
111 for( int i = 0, id = GERBVIEW_LAYER_ID_START;
113 {
114 m_params.emplace_back( new COLOR_MAP_PARAM( "gerbview.layers." + std::to_string( i ), id,
115 s_defaultTheme.at( id ), &m_colors ) );
116 }
117
118 CLR( "board.anchor", LAYER_ANCHOR );
119 CLR( "board.locked_shadow", LAYER_LOCKED_ITEM_SHADOW );
120 CLR( "board.conflicts_shadow", LAYER_CONFLICTS_SHADOW );
121 CLR( "board.aux_items", LAYER_AUX_ITEMS );
122 CLR( "board.background", LAYER_PCB_BACKGROUND );
123 CLR( "board.cursor", LAYER_CURSOR );
124 CLR( "board.drc_error", LAYER_DRC_ERROR );
125 CLR( "board.drc_warning", LAYER_DRC_WARNING );
126 CLR( "board.drc_exclusion", LAYER_DRC_EXCLUSION );
127 CLR( "board.footprint_text_invisible", LAYER_HIDDEN_TEXT );
128 CLR( "board.grid", LAYER_GRID );
129 CLR( "board.grid_axes", LAYER_GRID_AXES );
130 CLR( "board.pad_plated_hole", LAYER_PAD_PLATEDHOLES );
131 CLR( "board.pad_through_hole", LAYER_PADS_TH );
132 CLR( "board.plated_hole", LAYER_NON_PLATEDHOLES );
133 CLR( "board.ratsnest", LAYER_RATSNEST );
134 CLR( "board.via_blind_buried", LAYER_VIA_BBLIND );
135 CLR( "board.via_hole", LAYER_VIA_HOLES );
136 CLR( "board.via_micro", LAYER_VIA_MICROVIA );
137 CLR( "board.via_through", LAYER_VIA_THROUGH );
138 CLR( "board.worksheet", LAYER_DRAWINGSHEET );
139 CLR( "board.page_limits", LAYER_PAGE_LIMITS );
140
141 CLR( "board.copper.f", F_Cu );
142 CLR( "board.copper.in1", In1_Cu );
143 CLR( "board.copper.in2", In2_Cu );
144 CLR( "board.copper.in3", In3_Cu );
145 CLR( "board.copper.in4", In4_Cu );
146 CLR( "board.copper.in5", In5_Cu );
147 CLR( "board.copper.in6", In6_Cu );
148 CLR( "board.copper.in7", In7_Cu );
149 CLR( "board.copper.in8", In8_Cu );
150 CLR( "board.copper.in9", In9_Cu );
151 CLR( "board.copper.in10", In10_Cu );
152 CLR( "board.copper.in11", In11_Cu );
153 CLR( "board.copper.in12", In12_Cu );
154 CLR( "board.copper.in13", In13_Cu );
155 CLR( "board.copper.in14", In14_Cu );
156 CLR( "board.copper.in15", In15_Cu );
157 CLR( "board.copper.in16", In16_Cu );
158 CLR( "board.copper.in17", In17_Cu );
159 CLR( "board.copper.in18", In18_Cu );
160 CLR( "board.copper.in19", In19_Cu );
161 CLR( "board.copper.in20", In20_Cu );
162 CLR( "board.copper.in21", In21_Cu );
163 CLR( "board.copper.in22", In22_Cu );
164 CLR( "board.copper.in23", In23_Cu );
165 CLR( "board.copper.in24", In24_Cu );
166 CLR( "board.copper.in25", In25_Cu );
167 CLR( "board.copper.in26", In26_Cu );
168 CLR( "board.copper.in27", In27_Cu );
169 CLR( "board.copper.in28", In28_Cu );
170 CLR( "board.copper.in29", In29_Cu );
171 CLR( "board.copper.in30", In30_Cu );
172 CLR( "board.copper.b", B_Cu );
173
174 CLR( "board.b_adhes", B_Adhes );
175 CLR( "board.f_adhes", F_Adhes );
176 CLR( "board.b_paste", B_Paste );
177 CLR( "board.f_paste", F_Paste );
178 CLR( "board.b_silks", B_SilkS );
179 CLR( "board.f_silks", F_SilkS );
180 CLR( "board.b_mask", B_Mask );
181 CLR( "board.f_mask", F_Mask );
182 CLR( "board.dwgs_user", Dwgs_User );
183 CLR( "board.cmts_user", Cmts_User );
184 CLR( "board.eco1_user", Eco1_User );
185 CLR( "board.eco2_user", Eco2_User );
186 CLR( "board.edge_cuts", Edge_Cuts );
187 CLR( "board.margin", Margin );
188 CLR( "board.b_crtyd", B_CrtYd );
189 CLR( "board.f_crtyd", F_CrtYd );
190 CLR( "board.b_fab", B_Fab );
191 CLR( "board.f_fab", F_Fab );
192 CLR( "board.user_1", User_1 );
193 CLR( "board.user_2", User_2 );
194 CLR( "board.user_3", User_3 );
195 CLR( "board.user_4", User_4 );
196 CLR( "board.user_5", User_5 );
197 CLR( "board.user_6", User_6 );
198 CLR( "board.user_7", User_7 );
199 CLR( "board.user_8", User_8 );
200 CLR( "board.user_9", User_9 );
201
202 // Colors for 3D viewer, which are used as defaults unless overridden by the board
203 CLR( "3d_viewer.background_bottom", LAYER_3D_BACKGROUND_BOTTOM );
204 CLR( "3d_viewer.background_top", LAYER_3D_BACKGROUND_TOP );
205 CLR( "3d_viewer.board", LAYER_3D_BOARD );
206 CLR( "3d_viewer.copper", LAYER_3D_COPPER_TOP );
207 CLR( "3d_viewer.silkscreen_bottom", LAYER_3D_SILKSCREEN_BOTTOM );
208 CLR( "3d_viewer.silkscreen_top", LAYER_3D_SILKSCREEN_TOP );
209 CLR( "3d_viewer.soldermask_bottom", LAYER_3D_SOLDERMASK_BOTTOM );
210 CLR( "3d_viewer.soldermask_top", LAYER_3D_SOLDERMASK_TOP );
211 CLR( "3d_viewer.solderpaste", LAYER_3D_SOLDERPASTE );
212
213 registerMigration( 0, 1, std::bind( &COLOR_SETTINGS::migrateSchema0to1, this ) );
214
215 registerMigration( 1, 2,
216 [&]()
217 {
218 // Fix LAYER_VIA_HOLES color - before version 2, this setting had no effect
219 nlohmann::json::json_pointer ptr( "/board/via_hole" );
220
221 ( *m_internals )[ptr] = COLOR4D( 0.5, 0.4, 0, 0.8 ).ToCSSString();
222
223 return true;
224 } );
225
226 registerMigration( 2, 3,
227 [&]()
228 {
229 // We don't support opacity in some 3D colors but some versions of 5.99 let
230 // you set it.
231
232 for( std::string path : { "3d_viewer.background_top",
233 "3d_viewer.background_bottom",
234 "3d_viewer.copper",
235 "3d_viewer.silkscreen_top",
236 "3d_viewer.silkscreen_bottom",
237 "3d_viewer.solderpaste" } )
238 {
239 if( std::optional<COLOR4D> optval = Get<COLOR4D>( path ) )
240 Set( path, optval->WithAlpha( 1.0 ) );
241 }
242
243 return true;
244 } );
245
246 registerMigration( 3, 4,
247 [&]()
248 {
249 if( std::optional<COLOR4D> optval = Get<COLOR4D>( "board.grid" ) )
250 Set( "board.page_limits", *optval );
251
252 if( std::optional<COLOR4D> optval = Get<COLOR4D>( "schematic.grid" ) )
253 Set( "schematic.page_limits", *optval );
254
255 return true;
256 } );
257}
258
259
262{
263 initFromOther( aOther );
264}
265
266
268{
269 m_filename = aOther.m_filename;
270
271 initFromOther( aOther );
272
273 return *this;
274}
275
276
278{
282 m_colors = aOther.m_colors;
284 m_writeFile = aOther.m_writeFile;
285
286 // Ensure default colors are present
287 for( PARAM_BASE* param : aOther.m_params )
288 {
289 if( COLOR_MAP_PARAM* cmp = dynamic_cast<COLOR_MAP_PARAM*>( param ) )
290 m_defaultColors[cmp->GetKey()] = cmp->GetDefault();
291 }
292}
293
294
295bool COLOR_SETTINGS::MigrateFromLegacy( wxConfigBase* aCfg )
296{
297 return false;
298}
299
300
302{
310 if( !m_manager )
311 {
312 wxLogTrace( traceSettings, wxT( "Error: COLOR_SETTINGS migration cannot run unmanaged!" ) );
313 return false;
314 }
315
316 if( !Contains( "fpedit" ) )
317 {
318 wxLogTrace( traceSettings, wxT( "migrateSchema0to1: %s doesn't have fpedit settings; skipping." ),
319 m_filename );
320 return true;
321 }
322
323 wxString filename = m_filename + wxT( "_footprints" );
324
325 COLOR_SETTINGS* fpsettings = m_manager->AddNewColorSettings( filename );
326
327 // Start out with a clone
328 fpsettings->m_internals->CloneFrom( *m_internals );
329
330 // Footprint editor now just looks at the "board" namespace
331 fpsettings->Set( "board", fpsettings->At( "fpedit" ) );
332
333 fpsettings->Internals()->erase( "fpedit" );
334 fpsettings->Load();
335 fpsettings->SetName( fpsettings->GetName() + wxS( " " ) + _( "(Footprints)" ) );
336 m_manager->Save( fpsettings );
337
338 // Now we can get rid of our own copy
339 m_internals->erase( "fpedit" );
340
341 return true;
342}
343
344
346{
347 if( m_colors.count( aLayer ) )
348 return m_colors.at( aLayer );
349
350 return COLOR4D::UNSPECIFIED;
351}
352
353
355{
356 if( !m_defaultColors.count( aLayer ) )
357 {
358 COLOR_MAP_PARAM* p = nullptr;
359
360 for( PARAM_BASE* param : m_params )
361 {
362 COLOR_MAP_PARAM* cmp = dynamic_cast<COLOR_MAP_PARAM*>( param );
363
364 if( cmp && cmp->GetKey() == aLayer )
365 p = cmp;
366 }
367
368 if( p )
369 m_defaultColors[aLayer] = p->GetDefault();
370 else
371 m_defaultColors[aLayer] = COLOR4D::UNSPECIFIED;
372 }
373
374 return m_defaultColors.at( aLayer );
375}
376
377
378void COLOR_SETTINGS::SetColor( int aLayer, const COLOR4D& aColor )
379{
380 m_colors[ aLayer ] = aColor;
381}
382
383
384std::vector<COLOR_SETTINGS*> COLOR_SETTINGS::CreateBuiltinColorSettings()
385{
387 defaultTheme->SetName( _( "KiCad Default" ) );
388 defaultTheme->m_writeFile = false;
389 defaultTheme->Load(); // We can just get the colors out of the param defaults for this one
390
392 classicTheme->SetName( _( "KiCad Classic" ) );
393 classicTheme->m_writeFile = false;
394
395 for( PARAM_BASE* param : classicTheme->m_params )
396 delete param;
397
398 classicTheme->m_params.clear(); // Disable load/store
399
400 for( const std::pair<int, COLOR4D> entry : s_classicTheme )
401 classicTheme->m_colors[entry.first] = entry.second;
402
403 std::vector<COLOR_SETTINGS*> ret;
404
405 ret.push_back( defaultTheme );
406 ret.push_back( classicTheme );
407
408 return ret;
409}
static const std::map< int, COLOR4D > s_defaultTheme
static const std::map< int, COLOR4D > s_classicTheme
COLOR4D GetDefault() const
int GetKey() const
Color settings are a bit different than most of the settings objects in that there can be more than o...
void SetName(const wxString &aName)
std::unordered_map< int, COLOR4D > m_defaultColors
void initFromOther(const COLOR_SETTINGS &aOther)
void SetColor(int aLayer, const COLOR4D &aColor)
static std::vector< COLOR_SETTINGS * > CreateBuiltinColorSettings()
Constructs and returns a list of color settings objects based on the built-in color themes.
bool MigrateFromLegacy(wxConfigBase *aCfg) override
Migrates from wxConfig to JSON-based configuration.
static const wxString COLOR_BUILTIN_CLASSIC
static const wxString COLOR_BUILTIN_DEFAULT
bool m_useBoardStackupColors
COLOR4D GetColor(int aLayer) const
COLOR4D GetDefaultColor(int aLayer)
wxString m_displayName
COLOR_SETTINGS & operator=(const COLOR_SETTINGS &aOther)
std::unordered_map< int, COLOR4D > m_colors
Map of all layer colors.
bool m_overrideSchItemColors
COLOR_SETTINGS(const wxString &aFilename=wxT("user"), bool aAbsolutePath=false)
const wxString & GetName() const
wxString m_filename
The filename (not including path) of this settings file (inicode)
SETTINGS_MANAGER * m_manager
A pointer to the settings manager managing this file (may be null)
bool Contains(const std::string &aPath) const
void SetLocation(SETTINGS_LOC aLocation)
Definition: json_settings.h:79
bool m_writeFile
Whether or not the backing store file should be written.
virtual void Load()
Updates the parameters of this object based on the current JSON document contents.
std::vector< PARAM_BASE * > m_params
The list of parameters (owned by this object)
void registerMigration(int aOldSchemaVersion, int aNewSchemaVersion, std::function< bool(void)> aMigrator)
Registers a migration from one schema version to another.
nlohmann::json & At(const std::string &aPath)
Wrappers for the underlying JSON API so that most consumers don't need json.hpp All of these function...
JSON_SETTINGS_INTERNALS * Internals()
void Set(const std::string &aPath, ValueType aVal)
Stores a value into the JSON document Will throw an exception if ValueType isn't something that the l...
std::unique_ptr< JSON_SETTINGS_INTERNALS > m_internals
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:104
wxString ToCSSString() const
Definition: color4d.cpp:147
COLOR_SETTINGS * AddNewColorSettings(const wxString &aFilename)
Registers a new color settings object with the given filename.
#define CLR(x, y)
const int colorsSchemaVersion
! Update the schema version whenever a migration is required
#define _(s)
const wxChar *const traceSettings
Flag to enable debug output of settings operations and management.
SETTINGS_LOC
Definition: json_settings.h:47
@ COLORS
The color scheme directory (e.g. ~/.config/kicad/colors/)
@ LAYER_GERBVIEW_DRAWINGSHEET
Definition: layer_ids.h:425
@ GERBVIEW_LAYER_ID_START
Definition: layer_ids.h:415
@ LAYER_GERBVIEW_BACKGROUND
Definition: layer_ids.h:424
@ LAYER_DCODES
Definition: layer_ids.h:420
@ LAYER_NEGATIVE_OBJECTS
Definition: layer_ids.h:421
@ LAYER_GERBVIEW_PAGE_LIMITS
Definition: layer_ids.h:426
@ LAYER_GERBVIEW_AXES
Definition: layer_ids.h:423
@ LAYER_GERBVIEW_GRID
Definition: layer_ids.h:422
@ LAYER_3D_SOLDERMASK_TOP
Definition: layer_ids.h:451
@ LAYER_3D_BACKGROUND_TOP
Definition: layer_ids.h:444
@ LAYER_3D_SOLDERMASK_BOTTOM
Definition: layer_ids.h:450
@ LAYER_3D_BOARD
Definition: layer_ids.h:445
@ LAYER_3D_SILKSCREEN_TOP
Definition: layer_ids.h:449
@ LAYER_3D_COPPER_TOP
Definition: layer_ids.h:446
@ LAYER_3D_SOLDERPASTE
Definition: layer_ids.h:452
@ LAYER_3D_BACKGROUND_BOTTOM
Definition: layer_ids.h:443
@ LAYER_3D_SILKSCREEN_BOTTOM
Definition: layer_ids.h:448
@ LAYER_GRID
Definition: layer_ids.h:206
@ LAYER_PAGE_LIMITS
color for drawing the page extents (visibility stored in PCBNEW_SETTINGS::m_ShowPageLimits)
Definition: layer_ids.h:250
@ LAYER_LOCKED_ITEM_SHADOW
shadow layer for locked items
Definition: layer_ids.h:240
@ LAYER_GRID_AXES
Definition: layer_ids.h:207
@ LAYER_CONFLICTS_SHADOW
shadow layer for items flagged conficting
Definition: layer_ids.h:242
@ LAYER_NON_PLATEDHOLES
handle color for not plated holes (holes, not pads)
Definition: layer_ids.h:198
@ LAYER_DRAWINGSHEET
drawingsheet frame and titleblock
Definition: layer_ids.h:218
@ LAYER_DRC_EXCLUSION
layer for drc markers which have been individually excluded
Definition: layer_ids.h:237
@ LAYER_PCB_BACKGROUND
PCB background color.
Definition: layer_ids.h:221
@ LAYER_DRC_WARNING
layer for drc markers with SEVERITY_WARNING
Definition: layer_ids.h:236
@ LAYER_PAD_PLATEDHOLES
to draw pad holes (plated)
Definition: layer_ids.h:215
@ LAYER_HIDDEN_TEXT
text marked as invisible
Definition: layer_ids.h:201
@ LAYER_CURSOR
PCB cursor.
Definition: layer_ids.h:222
@ LAYER_AUX_ITEMS
Auxiliary items (guides, rule, etc)
Definition: layer_ids.h:223
@ LAYER_RATSNEST
Definition: layer_ids.h:205
@ LAYER_ANCHOR
anchor of items having an anchor point (texts, footprints)
Definition: layer_ids.h:202
@ LAYER_PADS_TH
multilayer pads, usually with holes
Definition: layer_ids.h:214
@ LAYER_VIA_HOLES
to draw via holes (pad holes do not use this layer)
Definition: layer_ids.h:216
@ LAYER_VIA_MICROVIA
to draw micro vias
Definition: layer_ids.h:195
@ LAYER_VIA_THROUGH
to draw usual through hole vias
Definition: layer_ids.h:197
@ LAYER_DRC_ERROR
layer for drc markers with SEVERITY_ERROR
Definition: layer_ids.h:217
@ LAYER_VIA_BBLIND
to draw blind/buried vias
Definition: layer_ids.h:196
@ LAYER_SHEETNAME
Definition: layer_ids.h:368
@ LAYER_ERC_WARN
Definition: layer_ids.h:375
@ LAYER_SCHEMATIC_ANCHOR
Definition: layer_ids.h:392
@ LAYER_SHEETLABEL
Definition: layer_ids.h:371
@ LAYER_PINNUM
Definition: layer_ids.h:355
@ LAYER_DEVICE
Definition: layer_ids.h:362
@ LAYER_SHEET_BACKGROUND
Definition: layer_ids.h:379
@ LAYER_BRIGHTENED
Definition: layer_ids.h:385
@ LAYER_ERC_EXCLUSION
Definition: layer_ids.h:377
@ LAYER_HIDDEN
Definition: layer_ids.h:386
@ LAYER_HIERLABEL
Definition: layer_ids.h:354
@ LAYER_PINNAM
Definition: layer_ids.h:356
@ LAYER_PRIVATE_NOTES
Definition: layer_ids.h:364
@ LAYER_HOVERED
Definition: layer_ids.h:384
@ LAYER_GLOBLABEL
Definition: layer_ids.h:353
@ LAYER_WIRE
Definition: layer_ids.h:349
@ LAYER_NOTES
Definition: layer_ids.h:363
@ LAYER_ERC_ERR
Definition: layer_ids.h:376
@ LAYER_PIN
Definition: layer_ids.h:366
@ LAYER_VALUEPART
Definition: layer_ids.h:358
@ LAYER_BUS
Definition: layer_ids.h:350
@ LAYER_SCHEMATIC_CURSOR
Definition: layer_ids.h:383
@ LAYER_FIELDS
Definition: layer_ids.h:359
@ LAYER_DEVICE_BACKGROUND
Definition: layer_ids.h:378
@ LAYER_SCHEMATIC_DRAWINGSHEET
Definition: layer_ids.h:388
@ LAYER_LOCLABEL
Definition: layer_ids.h:352
@ LAYER_JUNCTION
Definition: layer_ids.h:351
@ LAYER_SHEETFIELDS
Definition: layer_ids.h:370
@ LAYER_SCHEMATIC_GRID_AXES
Definition: layer_ids.h:381
@ LAYER_REFERENCEPART
Definition: layer_ids.h:357
@ LAYER_NETCLASS_REFS
Definition: layer_ids.h:361
@ LAYER_NOTES_BACKGROUND
Definition: layer_ids.h:365
@ LAYER_OP_CURRENTS
Definition: layer_ids.h:394
@ LAYER_SCHEMATIC_PAGE_LIMITS
Definition: layer_ids.h:389
@ LAYER_SHEET
Definition: layer_ids.h:367
@ LAYER_SELECTION_SHADOWS
Definition: layer_ids.h:387
@ LAYER_SCHEMATIC_BACKGROUND
Definition: layer_ids.h:382
@ LAYER_SCHEMATIC_AUX_ITEMS
Definition: layer_ids.h:391
@ LAYER_OP_VOLTAGES
Definition: layer_ids.h:393
@ LAYER_SHEETFILENAME
Definition: layer_ids.h:369
@ LAYER_BUS_JUNCTION
Definition: layer_ids.h:390
@ LAYER_DNP_MARKER
Definition: layer_ids.h:374
@ LAYER_NOCONNECT
Definition: layer_ids.h:372
@ LAYER_SCHEMATIC_GRID
Definition: layer_ids.h:380
@ In22_Cu
Definition: layer_ids.h:87
@ In11_Cu
Definition: layer_ids.h:76
@ In29_Cu
Definition: layer_ids.h:94
@ In30_Cu
Definition: layer_ids.h:95
@ User_8
Definition: layer_ids.h:131
@ F_CrtYd
Definition: layer_ids.h:118
@ In17_Cu
Definition: layer_ids.h:82
@ B_Adhes
Definition: layer_ids.h:98
@ Edge_Cuts
Definition: layer_ids.h:114
@ Dwgs_User
Definition: layer_ids.h:110
@ F_Paste
Definition: layer_ids.h:102
@ In9_Cu
Definition: layer_ids.h:74
@ Cmts_User
Definition: layer_ids.h:111
@ User_6
Definition: layer_ids.h:129
@ User_7
Definition: layer_ids.h:130
@ In19_Cu
Definition: layer_ids.h:84
@ In7_Cu
Definition: layer_ids.h:72
@ In28_Cu
Definition: layer_ids.h:93
@ In26_Cu
Definition: layer_ids.h:91
@ F_Adhes
Definition: layer_ids.h:99
@ B_Mask
Definition: layer_ids.h:107
@ B_Cu
Definition: layer_ids.h:96
@ User_5
Definition: layer_ids.h:128
@ Eco1_User
Definition: layer_ids.h:112
@ F_Mask
Definition: layer_ids.h:108
@ In21_Cu
Definition: layer_ids.h:86
@ In23_Cu
Definition: layer_ids.h:88
@ B_Paste
Definition: layer_ids.h:101
@ In15_Cu
Definition: layer_ids.h:80
@ In2_Cu
Definition: layer_ids.h:67
@ User_9
Definition: layer_ids.h:132
@ F_Fab
Definition: layer_ids.h:121
@ In10_Cu
Definition: layer_ids.h:75
@ Margin
Definition: layer_ids.h:115
@ F_SilkS
Definition: layer_ids.h:105
@ In4_Cu
Definition: layer_ids.h:69
@ B_CrtYd
Definition: layer_ids.h:117
@ Eco2_User
Definition: layer_ids.h:113
@ In16_Cu
Definition: layer_ids.h:81
@ In24_Cu
Definition: layer_ids.h:89
@ In1_Cu
Definition: layer_ids.h:66
@ User_3
Definition: layer_ids.h:126
@ User_1
Definition: layer_ids.h:124
@ B_SilkS
Definition: layer_ids.h:104
@ In13_Cu
Definition: layer_ids.h:78
@ User_4
Definition: layer_ids.h:127
@ In8_Cu
Definition: layer_ids.h:73
@ In14_Cu
Definition: layer_ids.h:79
@ User_2
Definition: layer_ids.h:125
@ In12_Cu
Definition: layer_ids.h:77
@ In27_Cu
Definition: layer_ids.h:92
@ In6_Cu
Definition: layer_ids.h:71
@ In5_Cu
Definition: layer_ids.h:70
@ In3_Cu
Definition: layer_ids.h:68
@ In20_Cu
Definition: layer_ids.h:85
@ F_Cu
Definition: layer_ids.h:65
@ In18_Cu
Definition: layer_ids.h:83
@ In25_Cu
Definition: layer_ids.h:90
@ B_Fab
Definition: layer_ids.h:120
#define GERBER_DRAWLAYERS_COUNT
Definition: layer_ids.h:410
STL namespace.