KiCad PCB EDA Suite
panel_setup_layers.cpp File Reference
#include <fctsys.h>
#include <macros.h>
#include <confirm.h>
#include <pcbnew.h>
#include <pcb_edit_frame.h>
#include <view/view.h>
#include <invoke_pcb_dialog.h>
#include <class_board.h>
#include <collectors.h>
#include <panel_setup_layers.h>

Go to the source code of this file.

Macros

#define HIDE_INACTIVE_LAYERS
 
#define RETURN_COPPER(x)   return PANEL_SETUP_LAYERS_CTLs( x##Name, x##CheckBox, x##Choice )
 
#define RETURN_AUX(x)   return PANEL_SETUP_LAYERS_CTLs( x##Name, x##CheckBox, x##StaticText )
 

Functions

static LSEQ dlg_layers ()
 
static bool hasOneOf (const wxString &str, const wxString &chars)
 

Variables

static const LSET presets []
 

Macro Definition Documentation

#define HIDE_INACTIVE_LAYERS

Definition at line 43 of file panel_setup_layers.cpp.

#define RETURN_AUX (   x)    return PANEL_SETUP_LAYERS_CTLs( x##Name, x##CheckBox, x##StaticText )
#define RETURN_COPPER (   x)    return PANEL_SETUP_LAYERS_CTLs( x##Name, x##CheckBox, x##Choice )

Function Documentation

static LSEQ dlg_layers ( )
static

Definition at line 46 of file panel_setup_layers.cpp.

References B_Adhes, B_CrtYd, B_Cu, B_Fab, B_Mask, B_Paste, B_SilkS, Cmts_User, DIM, Dwgs_User, Eco1_User, Eco2_User, Edge_Cuts, F_Adhes, F_CrtYd, F_Cu, F_Fab, F_Mask, F_Paste, F_SilkS, 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, and Margin.

Referenced by PANEL_SETUP_LAYERS::getUILayerMask(), PANEL_SETUP_LAYERS::showBoardLayerNames(), and PANEL_SETUP_LAYERS::showSelectedLayerCheckBoxes().

47 {
48  // layers that are put out into the dialog UI, coordinate with wxformbuilder and
49  // getCTLs( LAYER_NUM aLayerNumber )
50  static const PCB_LAYER_ID layers[] = {
51  F_CrtYd,
52  F_Fab,
53  F_Adhes,
54  F_Paste,
55  F_SilkS,
56  F_Mask,
57  F_Cu,
58 
59  In1_Cu,
60  In2_Cu,
61  In3_Cu,
62  In4_Cu,
63  In5_Cu,
64  In6_Cu,
65  In7_Cu,
66  In8_Cu,
67  In9_Cu,
68  In10_Cu,
69  In11_Cu,
70  In12_Cu,
71  In13_Cu,
72  In14_Cu,
73  In15_Cu,
74 
75  In16_Cu,
76  In17_Cu,
77  In18_Cu,
78  In19_Cu,
79  In20_Cu,
80  In21_Cu,
81  In22_Cu,
82  In23_Cu,
83  In24_Cu,
84  In25_Cu,
85  In26_Cu,
86  In27_Cu,
87  In28_Cu,
88  In29_Cu,
89  In30_Cu,
90 
91  B_Cu,
92  B_Mask,
93  B_SilkS,
94  B_Paste,
95  B_Adhes,
96  B_Fab,
97  B_CrtYd,
98 
99  Edge_Cuts,
100  Margin,
101  Eco2_User,
102  Eco1_User,
103  Cmts_User,
104  Dwgs_User,
105  };
106 
107  return LSEQ( layers, layers + DIM( layers ) );
108 }
#define DIM(x)
of elements in an array
Definition: macros.h:98
PCB_LAYER_ID
A quick note on layer IDs:
Class LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
static bool hasOneOf ( const wxString &  str,
const wxString &  chars 
)
static

Definition at line 611 of file panel_setup_layers.cpp.

References i.

Referenced by PANEL_SETUP_LAYERS::testLayerNames().

612 {
613  for( unsigned i=0; i<chars.Len(); ++i )
614  {
615  if( str.Find( chars[i] ) != wxNOT_FOUND )
616  return true;
617  }
618 
619  return false;
620 }
const string & str
Definition: json11.cpp:596
size_t i
Definition: json11.cpp:597

Variable Documentation

const LSET presets[]
static
Initial value:
=
{
LSET(),
LSET().set(),
}
static LSET BackTechMask()
Function BackTechMask returns a mask holding all technical layers (no CU layer) on back side...
Definition: lset.cpp:717
static LSET FrontTechMask()
Function FrontTechMask returns a mask holding all technical layers (no CU layer) on front side...
Definition: lset.cpp:729
Class LSET is a set of PCB_LAYER_IDs.
static LSET UserMask()
Definition: lset.cpp:757

Definition at line 112 of file panel_setup_layers.cpp.