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 40 of file pcb_layer_box_selector.cpp.

41 {
42  switch( aLayer )
43  {
44  case F_Cu: return &PCB_ACTIONS::layerTop;
45  case In1_Cu: return &PCB_ACTIONS::layerInner1;
46  case In2_Cu: return &PCB_ACTIONS::layerInner2;
47  case In3_Cu: return &PCB_ACTIONS::layerInner3;
48  case In4_Cu: return &PCB_ACTIONS::layerInner4;
49  case In5_Cu: return &PCB_ACTIONS::layerInner5;
50  case In6_Cu: return &PCB_ACTIONS::layerInner6;
51  case In7_Cu: return &PCB_ACTIONS::layerInner7;
52  case In8_Cu: return &PCB_ACTIONS::layerInner8;
53  case In9_Cu: return &PCB_ACTIONS::layerInner9;
54  case In10_Cu: return &PCB_ACTIONS::layerInner10;
55  case In11_Cu: return &PCB_ACTIONS::layerInner11;
56  case In12_Cu: return &PCB_ACTIONS::layerInner12;
57  case In13_Cu: return &PCB_ACTIONS::layerInner13;
58  case In14_Cu: return &PCB_ACTIONS::layerInner14;
59  case In15_Cu: return &PCB_ACTIONS::layerInner15;
60  case In16_Cu: return &PCB_ACTIONS::layerInner16;
61  case In17_Cu: return &PCB_ACTIONS::layerInner17;
62  case In18_Cu: return &PCB_ACTIONS::layerInner18;
63  case In19_Cu: return &PCB_ACTIONS::layerInner19;
64  case In20_Cu: return &PCB_ACTIONS::layerInner20;
65  case In21_Cu: return &PCB_ACTIONS::layerInner21;
66  case In22_Cu: return &PCB_ACTIONS::layerInner22;
67  case In23_Cu: return &PCB_ACTIONS::layerInner23;
68  case In24_Cu: return &PCB_ACTIONS::layerInner24;
69  case In25_Cu: return &PCB_ACTIONS::layerInner25;
70  case In26_Cu: return &PCB_ACTIONS::layerInner26;
71  case In27_Cu: return &PCB_ACTIONS::layerInner27;
72  case In28_Cu: return &PCB_ACTIONS::layerInner28;
73  case In29_Cu: return &PCB_ACTIONS::layerInner29;
74  case In30_Cu: return &PCB_ACTIONS::layerInner30;
75  case B_Cu: return &PCB_ACTIONS::layerBottom;
76  default: return nullptr;
77  }
78 }
static TOOL_ACTION layerBottom
Definition: pcb_actions.h:265
static TOOL_ACTION layerInner26
Definition: pcb_actions.h:260
static TOOL_ACTION layerInner2
Definition: pcb_actions.h:236
static TOOL_ACTION layerInner5
Definition: pcb_actions.h:239
static TOOL_ACTION layerInner6
Definition: pcb_actions.h:240
static TOOL_ACTION layerInner7
Definition: pcb_actions.h:241
static TOOL_ACTION layerInner8
Definition: pcb_actions.h:242
static TOOL_ACTION layerInner21
Definition: pcb_actions.h:255
static TOOL_ACTION layerInner3
Definition: pcb_actions.h:237
static TOOL_ACTION layerInner24
Definition: pcb_actions.h:258
static TOOL_ACTION layerInner11
Definition: pcb_actions.h:245
static TOOL_ACTION layerTop
Definition: pcb_actions.h:234
static TOOL_ACTION layerInner23
Definition: pcb_actions.h:257
static TOOL_ACTION layerInner13
Definition: pcb_actions.h:247
static TOOL_ACTION layerInner25
Definition: pcb_actions.h:259
static TOOL_ACTION layerInner18
Definition: pcb_actions.h:252
static TOOL_ACTION layerInner30
Definition: pcb_actions.h:264
static TOOL_ACTION layerInner29
Definition: pcb_actions.h:263
static TOOL_ACTION layerInner10
Definition: pcb_actions.h:244
static TOOL_ACTION layerInner15
Definition: pcb_actions.h:249
static TOOL_ACTION layerInner28
Definition: pcb_actions.h:262
static TOOL_ACTION layerInner27
Definition: pcb_actions.h:261
static TOOL_ACTION layerInner17
Definition: pcb_actions.h:251
static TOOL_ACTION layerInner20
Definition: pcb_actions.h:254
static TOOL_ACTION layerInner22
Definition: pcb_actions.h:256
static TOOL_ACTION layerInner14
Definition: pcb_actions.h:248
static TOOL_ACTION layerInner9
Definition: pcb_actions.h:243
static TOOL_ACTION layerInner16
Definition: pcb_actions.h:250
static TOOL_ACTION layerInner4
Definition: pcb_actions.h:238
static TOOL_ACTION layerInner19
Definition: pcb_actions.h:253
static TOOL_ACTION layerInner1
Definition: pcb_actions.h:235
static TOOL_ACTION layerInner12
Definition: pcb_actions.h:246

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().