KiCad PCB EDA Suite
template_fieldnames.h File Reference
#include <richio.h>
#include <wxstruct.h>
#include <macros.h>
#include <template_fieldnames_lexer.h>

Go to the source code of this file.

Classes

struct  TEMPLATE_FIELDNAME
 Struct TEMPLATE_FIELDNAME holds a name of a component's field, field value, and default visibility. More...
 
class  TEMPLATES
 

Typedefs

typedef std::vector< TEMPLATE_FIELDNAMETEMPLATE_FIELDNAMES
 

Enumerations

enum  NumFieldType {
  REFERENCE = 0, VALUE, FOOTPRINT, DATASHEET,
  MANDATORY_FIELDS, FIELD1 = MANDATORY_FIELDS, FIELD2, FIELD3,
  FIELD4, FIELD5, FIELD6, FIELD7,
  FIELD8
}
 Enum NumFieldType is the set of all field indices assuming an array like sequence that a SCH_COMPONENT or LIB_PART can hold. More...
 

Typedef Documentation

typedef std::vector< TEMPLATE_FIELDNAME > TEMPLATE_FIELDNAMES

Definition at line 126 of file template_fieldnames.h.

Enumeration Type Documentation

Enum NumFieldType is the set of all field indices assuming an array like sequence that a SCH_COMPONENT or LIB_PART can hold.

The first fields are called fixed fields and the quantity of them is given by MANDATORY_FIELDS. After that come an unlimited number of user defined fields, only some of which have indices defined here.

Enumerator
REFERENCE 

Field Reference of part, i.e. "IC21".

VALUE 

Field Value of part, i.e. "3.3K".

FOOTPRINT 

Field Name Module PCB, i.e. "16DIP300".

DATASHEET 

name of datasheet

MANDATORY_FIELDS 

The first 4 are mandatory, and must be instantiated in SCH_COMPONENT and LIB_PART constructors.

FIELD1 
FIELD2 
FIELD3 
FIELD4 
FIELD5 
FIELD6 
FIELD7 
FIELD8 

Definition at line 45 of file template_fieldnames.h.

45  {
46  REFERENCE = 0,
47  VALUE,
48  FOOTPRINT,
49  DATASHEET,
50 
54 
56  FIELD2,
57  FIELD3,
58  FIELD4,
59  FIELD5,
60  FIELD6,
61  FIELD7,
62  FIELD8
63 };
name of datasheet
The first 4 are mandatory, and must be instantiated in SCH_COMPONENT and LIB_PART constructors...
Field Name Module PCB, i.e. "16DIP300".
Field Reference of part, i.e. "IC21".
Field Value of part, i.e. "3.3K".