KiCad PCB EDA Suite
pcb_layer_box_selector.cpp File Reference

Go to the source code of this file.

Functions

static TOOL_ACTIONlayer2action (PCB_LAYER_ID aLayer)
 

Function Documentation

◆ layer2action()

static TOOL_ACTION * layer2action ( PCB_LAYER_ID  aLayer)
static

Definition at line 38 of file pcb_layer_box_selector.cpp.

39{
40 switch( aLayer )
41 {
42 case F_Cu: return &PCB_ACTIONS::layerTop;
43 case In1_Cu: return &PCB_ACTIONS::layerInner1;
44 case In2_Cu: return &PCB_ACTIONS::layerInner2;
45 case In3_Cu: return &PCB_ACTIONS::layerInner3;
46 case In4_Cu: return &PCB_ACTIONS::layerInner4;
47 case In5_Cu: return &PCB_ACTIONS::layerInner5;
48 case In6_Cu: return &PCB_ACTIONS::layerInner6;
49 case In7_Cu: return &PCB_ACTIONS::layerInner7;
50 case In8_Cu: return &PCB_ACTIONS::layerInner8;
51 case In9_Cu: return &PCB_ACTIONS::layerInner9;
73 case B_Cu: return &PCB_ACTIONS::layerBottom;
74 default: return nullptr;
75 }
76}
static TOOL_ACTION layerInner12
Definition: pcb_actions.h:298
static TOOL_ACTION layerInner8
Definition: pcb_actions.h:294
static TOOL_ACTION layerInner3
Definition: pcb_actions.h:289
static TOOL_ACTION layerInner2
Definition: pcb_actions.h:288
static TOOL_ACTION layerInner25
Definition: pcb_actions.h:311
static TOOL_ACTION layerInner24
Definition: pcb_actions.h:310
static TOOL_ACTION layerInner29
Definition: pcb_actions.h:315
static TOOL_ACTION layerInner11
Definition: pcb_actions.h:297
static TOOL_ACTION layerInner16
Definition: pcb_actions.h:302
static TOOL_ACTION layerInner26
Definition: pcb_actions.h:312
static TOOL_ACTION layerInner18
Definition: pcb_actions.h:304
static TOOL_ACTION layerInner14
Definition: pcb_actions.h:300
static TOOL_ACTION layerInner6
Definition: pcb_actions.h:292
static TOOL_ACTION layerInner22
Definition: pcb_actions.h:308
static TOOL_ACTION layerInner5
Definition: pcb_actions.h:291
static TOOL_ACTION layerInner20
Definition: pcb_actions.h:306
static TOOL_ACTION layerInner7
Definition: pcb_actions.h:293
static TOOL_ACTION layerInner27
Definition: pcb_actions.h:313
static TOOL_ACTION layerInner1
Definition: pcb_actions.h:287
static TOOL_ACTION layerInner10
Definition: pcb_actions.h:296
static TOOL_ACTION layerInner15
Definition: pcb_actions.h:301
static TOOL_ACTION layerInner17
Definition: pcb_actions.h:303
static TOOL_ACTION layerBottom
Definition: pcb_actions.h:317
static TOOL_ACTION layerInner19
Definition: pcb_actions.h:305
static TOOL_ACTION layerInner9
Definition: pcb_actions.h:295
static TOOL_ACTION layerInner30
Definition: pcb_actions.h:316
static TOOL_ACTION layerTop
Definition: pcb_actions.h:286
static TOOL_ACTION layerInner4
Definition: pcb_actions.h:290
static TOOL_ACTION layerInner13
Definition: pcb_actions.h:299
static TOOL_ACTION layerInner21
Definition: pcb_actions.h:307
static TOOL_ACTION layerInner23
Definition: pcb_actions.h:309
static TOOL_ACTION layerInner28
Definition: pcb_actions.h:314
@ In22_Cu
Definition: layer_ids.h:86
@ In11_Cu
Definition: layer_ids.h:75
@ In29_Cu
Definition: layer_ids.h:93
@ In30_Cu
Definition: layer_ids.h:94
@ In17_Cu
Definition: layer_ids.h:81
@ In9_Cu
Definition: layer_ids.h:73
@ In19_Cu
Definition: layer_ids.h:83
@ In7_Cu
Definition: layer_ids.h:71
@ In28_Cu
Definition: layer_ids.h:92
@ In26_Cu
Definition: layer_ids.h:90
@ B_Cu
Definition: layer_ids.h:95
@ In21_Cu
Definition: layer_ids.h:85
@ In23_Cu
Definition: layer_ids.h:87
@ In15_Cu
Definition: layer_ids.h:79
@ In2_Cu
Definition: layer_ids.h:66
@ In10_Cu
Definition: layer_ids.h:74
@ In4_Cu
Definition: layer_ids.h:68
@ In16_Cu
Definition: layer_ids.h:80
@ In24_Cu
Definition: layer_ids.h:88
@ In1_Cu
Definition: layer_ids.h:65
@ In13_Cu
Definition: layer_ids.h:77
@ In8_Cu
Definition: layer_ids.h:72
@ In14_Cu
Definition: layer_ids.h:78
@ In12_Cu
Definition: layer_ids.h:76
@ In27_Cu
Definition: layer_ids.h:91
@ In6_Cu
Definition: layer_ids.h:70
@ In5_Cu
Definition: layer_ids.h:69
@ In3_Cu
Definition: layer_ids.h:67
@ In20_Cu
Definition: layer_ids.h:84
@ F_Cu
Definition: layer_ids.h:64
@ In18_Cu
Definition: layer_ids.h:82
@ In25_Cu
Definition: layer_ids.h:89

References B_Cu, F_Cu, 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, PCB_ACTIONS::layerBottom, PCB_ACTIONS::layerInner1, PCB_ACTIONS::layerInner10, PCB_ACTIONS::layerInner11, PCB_ACTIONS::layerInner12, PCB_ACTIONS::layerInner13, PCB_ACTIONS::layerInner14, PCB_ACTIONS::layerInner15, PCB_ACTIONS::layerInner16, PCB_ACTIONS::layerInner17, PCB_ACTIONS::layerInner18, PCB_ACTIONS::layerInner19, PCB_ACTIONS::layerInner2, PCB_ACTIONS::layerInner20, PCB_ACTIONS::layerInner21, PCB_ACTIONS::layerInner22, PCB_ACTIONS::layerInner23, PCB_ACTIONS::layerInner24, PCB_ACTIONS::layerInner25, PCB_ACTIONS::layerInner26, PCB_ACTIONS::layerInner27, PCB_ACTIONS::layerInner28, PCB_ACTIONS::layerInner29, PCB_ACTIONS::layerInner3, PCB_ACTIONS::layerInner30, PCB_ACTIONS::layerInner4, PCB_ACTIONS::layerInner5, PCB_ACTIONS::layerInner6, PCB_ACTIONS::layerInner7, PCB_ACTIONS::layerInner8, PCB_ACTIONS::layerInner9, and PCB_ACTIONS::layerTop.

Referenced by PCB_LAYER_BOX_SELECTOR::Resync().