KiCad PCB EDA Suite
eeschema_config.cpp File Reference

Go to the source code of this file.

Functions

int GetDefaultBusThickness ()
 Default line thickness used to draw/plot busses. More...
 
void SetDefaultBusThickness (int aThickness)
 
int GetDefaultWireThickness ()
 Default line thickness used to draw/plot wires. More...
 
void SetDefaultWireThickness (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_defaultWireThickness = DEFAULTDRAWLINETHICKNESS
 
static int s_defaultTextSize = DEFAULT_SIZE_TEXT
 
static int s_drawDefaultLineThickness = -1
 
const wxChar RescueNeverShowEntry [] = wxT( "RescueNeverShow" )
 
const wxChar AutoplaceFieldsEntry [] = wxT( "AutoplaceFields" )
 
const wxChar AutoplaceJustifyEntry [] = wxT( "AutoplaceJustify" )
 
const wxChar AutoplaceAlignEntry [] = wxT( "AutoplaceAlign" )
 
static const wxChar DragActionIsMoveEntry [] = wxT( "DragActionIsMove" )
 
static const wxChar FootprintPreviewEntry [] = wxT( "FootprintPreview" )
 
static const wxChar DefaultBusWidthEntry [] = wxT( "DefaultBusWidth" )
 
static const wxChar DefaultWireWidthEntry [] = wxT( "DefaultWireWidth" )
 
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 FieldNamesEntry [] = wxT( "FieldNames" )
 
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 wxString ShowIllegalSymboLibDialog = "ShowIllegalSymbolLibDialog"
 
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" )
 

Function Documentation

◆ GetDefaultBusThickness()

int GetDefaultBusThickness ( )

Default line thickness used to draw/plot busses.

Definition at line 56 of file eeschema_config.cpp.

57 {
58  return s_defaultBusThickness;
59 }
static int s_defaultBusThickness

References s_defaultBusThickness.

Referenced by SCH_LINE::GetDefaultWidth(), 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 92 of file eeschema_config.cpp.

93 {
95 }
static int s_drawDefaultLineThickness

References s_drawDefaultLineThickness.

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

◆ GetDefaultTextSize()

◆ GetDefaultWireThickness()

int GetDefaultWireThickness ( )

Default line thickness used to draw/plot wires.

Definition at line 68 of file eeschema_config.cpp.

69 {
71 }
static int s_defaultWireThickness

References s_defaultWireThickness.

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

◆ GetInvisibleItemColor()

COLOR4D GetInvisibleItemColor ( )

Definition at line 112 of file eeschema_config.cpp.

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

References DARKGRAY.

Referenced by LIB_FIELD::print(), LIB_PIN::PrintPinElectricalTypeName(), LIB_PIN::PrintPinSymbol(), and LIB_PIN::PrintPinTexts().

◆ GetItemSelectedColor()

COLOR4D GetItemSelectedColor ( )

Definition at line 105 of file eeschema_config.cpp.

106 {
107  return COLOR4D( BROWN );
108 }
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39
Definition: colors.h:62

References BROWN.

◆ SetDefaultBusThickness()

void SetDefaultBusThickness ( int  aThickness)

Definition at line 62 of file eeschema_config.cpp.

63 {
64  s_defaultBusThickness = std::max( 1, aThickness );
65 }
static int s_defaultBusThickness
#define max(a, b)
Definition: auxiliary.h:86

References max, and 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 86 of file eeschema_config.cpp.

87 {
88  s_defaultTextSize = aTextSize;
89 }
static int s_defaultTextSize

References s_defaultTextSize.

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

◆ SetDefaultWireThickness()

void SetDefaultWireThickness ( int  aThickness)

Definition at line 74 of file eeschema_config.cpp.

75 {
76  s_defaultWireThickness = std::max( 1, aThickness );
77 }
static int s_defaultWireThickness
#define max(a, b)
Definition: auxiliary.h:86

References max, and s_defaultWireThickness.

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

Variable Documentation

◆ s_defaultBusThickness

int s_defaultBusThickness = DEFAULTBUSTHICKNESS
static

Definition at line 50 of file eeschema_config.cpp.

Referenced by GetDefaultBusThickness(), and SetDefaultBusThickness().

◆ s_defaultTextSize

int s_defaultTextSize = DEFAULT_SIZE_TEXT
static

◆ s_defaultWireThickness

int s_defaultWireThickness = DEFAULTDRAWLINETHICKNESS
static

Definition at line 51 of file eeschema_config.cpp.

Referenced by GetDefaultWireThickness(), and SetDefaultWireThickness().

◆ s_drawDefaultLineThickness

int s_drawDefaultLineThickness = -1
static

Definition at line 53 of file eeschema_config.cpp.

Referenced by GetDefaultLineThickness(), and SetDefaultLineThickness().