KiCad PCB EDA Suite
eeschema_config.cpp File Reference

Go to the source code of this file.

Macros

#define FR_HISTORY_LIST_CNT   10
 Maximum number of find and replace strings. More...
 

Functions

int GetDefaultBusThickness ()
 Default line thickness used to draw/plot busses. More...
 
void SetDefaultBusThickness (int aThickness)
 
int GetDefaultTextSize ()
 Default size for text in general. More...
 
void SetDefaultTextSize (int aTextSize)
 
int GetDefaultLineThickness ()
 Default line thickness used to draw/plot items having a default thickness line value (i.e. More...
 
void SetDefaultLineThickness (int aThickness)
 
COLOR4D GetItemSelectedColor ()
 
COLOR4D GetInvisibleItemColor ()
 

Variables

static int s_defaultBusThickness = DEFAULTBUSTHICKNESS
 
static int s_defaultTextSize = DEFAULT_SIZE_TEXT
 Default size for text (not only labels) More...
 
static int s_drawDefaultLineThickness = DEFAULTDRAWLINETHICKNESS
 
const wxChar RescueNeverShowEntry [] = wxT( "RescueNeverShow" )
 
const wxChar AutoplaceFieldsEntry [] = wxT( "AutoplaceFields" )
 
const wxChar AutoplaceJustifyEntry [] = wxT( "AutoplaceJustify" )
 
const wxChar AutoplaceAlignEntry [] = wxT( "AutoplaceAlign" )
 
static const wxChar FootprintPreviewEntry [] = wxT( "FootprintPreview" )
 
static const wxChar DefaultBusWidthEntry [] = wxT( "DefaultBusWidth" )
 
static const wxChar DefaultDrawLineWidthEntry [] = wxT( "DefaultDrawLineWidth" )
 
static const wxChar DefaultJctSizeEntry [] = wxT( "DefaultJunctionSize" )
 
static const wxChar ShowHiddenPinsEntry [] = wxT( "ShowHiddenPins" )
 
static const wxChar HorzVertLinesOnlyEntry [] = wxT( "HorizVertLinesOnly" )
 
static const wxChar FindReplaceFlagsEntry [] = wxT( "LastFindReplaceFlags" )
 
static const wxChar FindStringEntry [] = wxT( "LastFindString" )
 
static const wxChar ReplaceStringEntry [] = wxT( "LastReplaceString" )
 
static const wxChar FindStringHistoryEntry [] = wxT( "FindStringHistoryList%d" )
 
static const wxChar ReplaceStringHistoryEntry [] = wxT( "ReplaceStringHistoryList%d" )
 
static const wxChar FieldNamesEntry [] = wxT( "FieldNames" )
 
static const wxChar SimulatorCommandEntry [] = wxT( "SimCmdLine" )
 
static const wxString ShowPageLimitsEntry = "ShowPageLimits"
 
static const wxString UnitsEntry = "Units"
 
static const wxString PrintMonochromeEntry = "PrintMonochrome"
 
static const wxString PrintSheetRefEntry = "PrintSheetReferenceAndTitleBlock"
 
static const wxString RepeatStepXEntry = "RepeatStepX"
 
static const wxString RepeatStepYEntry = "RepeatStepY"
 
static const wxString RepeatLabelIncrementEntry = "RepeatLabelIncrement"
 
static const wxChar defaultLibWidthEntry [] = wxT( "LibeditLibWidth" )
 
static const wxChar defaultPinNumSizeEntry [] = wxT( "LibeditPinNumSize" )
 
static const wxChar defaultPinNameSizeEntry [] = wxT( "LibeditPinNameSize" )
 
static const wxChar DefaultPinLengthEntry [] = wxT( "DefaultPinLength" )
 
static const wxChar repeatLibLabelIncEntry [] = wxT( "LibeditRepeatLabelInc" )
 
static const wxChar pinRepeatStepEntry [] = wxT( "LibeditPinRepeatStep" )
 
static const wxChar repeatLibStepXEntry [] = wxT( "LibeditRepeatStepX" )
 
static const wxChar repeatLibStepYEntry [] = wxT( "LibeditRepeatStepY" )
 
static const wxChar showPinElectricalType [] = wxT( "LibeditShowPinElectricalType" )
 

Macro Definition Documentation

◆ FR_HISTORY_LIST_CNT

#define FR_HISTORY_LIST_CNT   10

Maximum number of find and replace strings.

Definition at line 56 of file eeschema_config.cpp.

Function Documentation

◆ GetDefaultBusThickness()

int GetDefaultBusThickness ( )

Default line thickness used to draw/plot busses.

Definition at line 61 of file eeschema_config.cpp.

62 {
63  return s_defaultBusThickness;
64 }
static int s_defaultBusThickness

References s_defaultBusThickness.

Referenced by SCH_LINE::GetDefaultWidth(), SCH_LINE::GetPenSize(), SCH_BUS_BUS_ENTRY::GetPenSize(), SCH_EDIT_FRAME::SaveSettings(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow().

◆ GetDefaultLineThickness()

int GetDefaultLineThickness ( )

Default line thickness used to draw/plot items having a default thickness line value (i.e.

= 0 ).

Definition at line 98 of file eeschema_config.cpp.

99 {
101 }
static int s_drawDefaultLineThickness

References s_drawDefaultLineThickness.

Referenced by SCH_GLOBALLABEL::CreateGraphicShape(), DIALOG_PLOT_SCHEMATIC::createPDFFile(), SCH_NO_CONNECT::Draw(), SCH_TEXT::Draw(), KIGFX::SCH_PAINTER::draw(), SCH_FIELD::Draw(), SCH_GLOBALLABEL::Draw(), SCH_HIERLABEL::Draw(), SCH_PRINTOUT::DrawPage(), LIB_PIN::DrawPinTexts(), SCH_FIELD::GetBoundingBox(), SCH_TEXT::GetBoundingBox(), SCH_LABEL::GetBoundingBox(), SCH_GLOBALLABEL::GetBoundingBox(), SCH_HIERLABEL::GetBoundingBox(), SCH_LINE::GetDefaultWidth(), SCH_JUNCTION::GetEffectiveSymbolSize(), SCH_NO_CONNECT::GetPenSize(), LIB_CIRCLE::GetPenSize(), LIB_RECTANGLE::GetPenSize(), LIB_POLYLINE::GetPenSize(), LIB_TEXT::GetPenSize(), LIB_ARC::GetPenSize(), LIB_BEZIER::GetPenSize(), SCH_LINE::GetPenSize(), SCH_SHEET_PIN::GetPenSize(), SCH_FIELD::GetPenSize(), LIB_FIELD::GetPenSize(), SCH_BUS_WIRE_ENTRY::GetPenSize(), SCH_TEXT::GetPenSize(), LIB_PIN::GetPenSize(), SCH_SHEET::GetPenSize(), SCH_TEXT::GetSchematicTextOffset(), SCH_GLOBALLABEL::GetSchematicTextOffset(), SCH_HIERLABEL::GetSchematicTextOffset(), SCH_NO_CONNECT::GetSize(), SCH_NO_CONNECT::HitTest(), DIALOG_PLOT_SCHEMATIC::initDlg(), SCH_SCREEN::IsTerminalPoint(), SCH_SHEET::Plot(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), LIB_PIN::PlotPinTexts(), SCH_EDIT_FRAME::PrintPage(), SCH_EDIT_FRAME::SaveSettings(), LIB_EDIT_FRAME::SVG_PlotComponent(), PANEL_LIBEDIT_SETTINGS::TransferDataToWindow(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow().

◆ GetDefaultTextSize()

int GetDefaultTextSize ( )

Default size for text in general.

Definition at line 79 of file eeschema_config.cpp.

80 {
81  return s_defaultTextSize;
82 }
static int s_defaultTextSize
Default size for text (not only labels)

References s_defaultTextSize.

Referenced by SCH_EDIT_FRAME::CreateNewText(), EVT_UPDATE_UI_RANGE(), SCH_EDIT_FRAME::GetLastSheetPinTextSize(), LIB_FIELD::Init(), SCH_SHEET::SCH_SHEET(), PANEL_EESCHEMA_SETTINGS::TransferDataFromWindow(), and PANEL_EESCHEMA_SETTINGS::TransferDataToWindow().

◆ GetInvisibleItemColor()

COLOR4D GetInvisibleItemColor ( )

Definition at line 122 of file eeschema_config.cpp.

123 {
124  return COLOR4D( DARKGRAY );
125 }
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39

References DARKGRAY.

Referenced by LIB_FIELD::drawGraphic(), LIB_PIN::drawGraphic(), and LIB_PIN::DrawPinElectricalTypeName().

◆ GetItemSelectedColor()

COLOR4D GetItemSelectedColor ( )

◆ SetDefaultBusThickness()

void SetDefaultBusThickness ( int  aThickness)

Definition at line 67 of file eeschema_config.cpp.

68 {
69  if( aThickness >= 1 )
70  s_defaultBusThickness = aThickness;
71  else
73 }
static int s_defaultBusThickness

References s_defaultBusThickness.

Referenced by SCH_EDIT_FRAME::LoadSettings(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataFromWindow().

◆ SetDefaultLineThickness()

void SetDefaultLineThickness ( int  aThickness)

◆ SetDefaultTextSize()

void SetDefaultTextSize ( int  aTextSize)

Definition at line 85 of file eeschema_config.cpp.

86 {
87  s_defaultTextSize = aTextSize;
88 }
static int s_defaultTextSize
Default size for text (not only labels)

References s_defaultTextSize.

Referenced by PANEL_EESCHEMA_SETTINGS::TransferDataFromWindow(), and DIALOG_LABEL_EDITOR::TransferDataFromWindow().

Variable Documentation

◆ s_defaultBusThickness

int s_defaultBusThickness = DEFAULTBUSTHICKNESS
static

Definition at line 59 of file eeschema_config.cpp.

Referenced by GetDefaultBusThickness(), and SetDefaultBusThickness().

◆ s_defaultTextSize

int s_defaultTextSize = DEFAULT_SIZE_TEXT
static

Default size for text (not only labels)

Definition at line 77 of file eeschema_config.cpp.

Referenced by GetDefaultTextSize(), SCH_EDIT_FRAME::GetProjectFileParametersList(), and SetDefaultTextSize().

◆ s_drawDefaultLineThickness

int s_drawDefaultLineThickness = DEFAULTDRAWLINETHICKNESS
static

Definition at line 95 of file eeschema_config.cpp.

Referenced by GetDefaultLineThickness(), and SetDefaultLineThickness().