KiCad PCB EDA Suite
Loading...
Searching...
No Matches
DATABASE_FIELD_MAPPING Struct Reference

#include <database_lib_settings.h>

Public Member Functions

 DATABASE_FIELD_MAPPING (std::string aColumn, std::string aName, bool aVisibleOnAdd, bool aVisibleInChooser, bool aShowName, bool aInheritProperties)
 

Public Attributes

std::string column
 Database column name.
 
std::string name
 KiCad field name.
 
wxString name_wx
 KiCad field name (converted)
 
bool visible_on_add
 Whether to show the field when placing the symbol.
 
bool visible_in_chooser
 Whether the column is shown by default in the chooser.
 
bool show_name
 Whether or not to show the field name as well as its value.
 
bool inherit_properties
 Whether or not to inherit properties from symbol field.
 

Detailed Description

Definition at line 46 of file database_lib_settings.h.

Constructor & Destructor Documentation

◆ DATABASE_FIELD_MAPPING()

DATABASE_FIELD_MAPPING::DATABASE_FIELD_MAPPING ( std::string  aColumn,
std::string  aName,
bool  aVisibleOnAdd,
bool  aVisibleInChooser,
bool  aShowName,
bool  aInheritProperties 
)
explicit

Definition at line 35 of file database_lib_settings.cpp.

Member Data Documentation

◆ column

std::string DATABASE_FIELD_MAPPING::column

Database column name.

Definition at line 48 of file database_lib_settings.h.

Referenced by SCH_IO_DATABASE::connect(), and SCH_IO_DATABASE::loadSymbolFromRow().

◆ inherit_properties

bool DATABASE_FIELD_MAPPING::inherit_properties

Whether or not to inherit properties from symbol field.

Definition at line 54 of file database_lib_settings.h.

Referenced by SCH_IO_DATABASE::loadSymbolFromRow().

◆ name

std::string DATABASE_FIELD_MAPPING::name

KiCad field name.

Definition at line 49 of file database_lib_settings.h.

◆ name_wx

wxString DATABASE_FIELD_MAPPING::name_wx

KiCad field name (converted)

Definition at line 50 of file database_lib_settings.h.

Referenced by SCH_IO_DATABASE::loadSymbolFromRow().

◆ show_name

bool DATABASE_FIELD_MAPPING::show_name

Whether or not to show the field name as well as its value.

Definition at line 53 of file database_lib_settings.h.

Referenced by SCH_IO_DATABASE::loadSymbolFromRow().

◆ visible_in_chooser

bool DATABASE_FIELD_MAPPING::visible_in_chooser

Whether the column is shown by default in the chooser.

Definition at line 52 of file database_lib_settings.h.

Referenced by SCH_IO_DATABASE::loadSymbolFromRow().

◆ visible_on_add

bool DATABASE_FIELD_MAPPING::visible_on_add

Whether to show the field when placing the symbol.

Definition at line 51 of file database_lib_settings.h.

Referenced by SCH_IO_DATABASE::loadSymbolFromRow().


The documentation for this struct was generated from the following files: