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)
 
bool GetSelectionTextAsBox ()
 Draw selected text items as box. More...
 
void SetSelectionTextAsBox (bool aBool)
 
bool GetSelectionDrawChildItems ()
 Draw selected child items or not. More...
 
void SetSelectionDrawChildItems (bool aBool)
 
bool GetSelectionFillShapes ()
 Draw selected shapes as filled or not. More...
 
void SetSelectionFillShapes (bool aBool)
 
int GetSelectionThickness ()
 Selection highlight thickness. More...
 
void SetSelectionThickness (int aThickness)
 
COLOR4D GetItemSelectedColor ()
 
COLOR4D GetInvisibleItemColor ()
 

Variables

static int s_defaultBusThickness = Mils2iu( DEFAULTBUSTHICKNESS )
 
static int s_defaultWireThickness = Mils2iu( DEFAULTDRAWLINETHICKNESS )
 
static int s_defaultTextSize = Mils2iu( DEFAULT_SIZE_TEXT )
 
static int s_drawDefaultLineThickness = -1
 
static bool s_selectTextAsBox = false
 
static bool s_selectDrawChildren = true
 
static bool s_selectFillShapes = false
 
static int s_selectThickness = Mils2iu( DEFAULTSELECTIONTHICKNESS )
 
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 NavigatorStaysOpenEntry [] = wxT( "NavigatorStaysOpen" )
 
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 TextMarkupFlagsEntry = "TextMarkupFlags"
 
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 wxString showSheetFileNameCaseSensitivityDlg = "ShowSheetFileNameCaseSensitivityDlg"
 
static const wxString SelectPinSelectSymbolEntry = "SelectPinSelectSymbolOpt"
 
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" )
 
static const wxChar boxedSelectedText [] = wxT( "SelectionTextAsBox" )
 
static const wxChar drawSelectedChildren [] = wxT( "SelectionDrawChildItems" )
 
static const wxChar selectionFillShapes [] = wxT( "SelectionFillShapes" )
 
static const wxChar selectionThickness [] = wxT( "SelectionThickness" )
 

Function Documentation

◆ GetDefaultBusThickness()

int GetDefaultBusThickness ( )

Default line thickness used to draw/plot busses.

Definition at line 59 of file eeschema_config.cpp.

60 {
61  return s_defaultBusThickness;
62 }
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 95 of file eeschema_config.cpp.

96 {
98 }
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(), 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_FIELD::Print(), SCH_TEXT::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 71 of file eeschema_config.cpp.

72 {
74 }
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 162 of file eeschema_config.cpp.

163 {
164  return COLOR4D( DARKGRAY );
165 }
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 155 of file eeschema_config.cpp.

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

References BROWN.

◆ GetSelectionDrawChildItems()

bool GetSelectionDrawChildItems ( )

Draw selected child items or not.

Definition at line 119 of file eeschema_config.cpp.

120 {
121  return s_selectDrawChildren;
122 }
static bool s_selectDrawChildren

References s_selectDrawChildren.

Referenced by KIGFX::SCH_PAINTER::draw(), SCH_EDIT_FRAME::SaveSettings(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow().

◆ GetSelectionFillShapes()

bool GetSelectionFillShapes ( )

Draw selected shapes as filled or not.

Definition at line 131 of file eeschema_config.cpp.

132 {
133  return s_selectFillShapes;
134 }
static bool s_selectFillShapes

References s_selectFillShapes.

Referenced by KIGFX::SCH_PAINTER::draw(), KIGFX::SCH_PAINTER::fillIfSelection(), SCH_EDIT_FRAME::SaveSettings(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow().

◆ GetSelectionTextAsBox()

bool GetSelectionTextAsBox ( )

Draw selected text items as box.

Definition at line 107 of file eeschema_config.cpp.

108 {
109  return s_selectTextAsBox;
110 }
static bool s_selectTextAsBox

References s_selectTextAsBox.

Referenced by KIGFX::SCH_PAINTER::draw(), SCH_EDIT_FRAME::SaveSettings(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow().

◆ GetSelectionThickness()

int GetSelectionThickness ( )

Selection highlight thickness.

Definition at line 143 of file eeschema_config.cpp.

144 {
145  return s_selectThickness;
146 }
static int s_selectThickness

References s_selectThickness.

Referenced by KIGFX::SCH_PAINTER::getShadowWidth(), SCH_EDIT_FRAME::SaveSettings(), and PANEL_EESCHEMA_DISPLAY_OPTIONS::TransferDataToWindow().

◆ SetDefaultBusThickness()

void SetDefaultBusThickness ( int  aThickness)

Definition at line 65 of file eeschema_config.cpp.

66 {
67  s_defaultBusThickness = std::max( 1, aThickness );
68 }
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)

◆ SetDefaultWireThickness()

void SetDefaultWireThickness ( int  aThickness)

Definition at line 77 of file eeschema_config.cpp.

78 {
79  s_defaultWireThickness = std::max( 1, aThickness );
80 }
static int s_defaultWireThickness

References s_defaultWireThickness.

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

◆ SetSelectionDrawChildItems()

void SetSelectionDrawChildItems ( bool  aBool)

Definition at line 125 of file eeschema_config.cpp.

126 {
127  s_selectDrawChildren = aBool;
128 }
static bool s_selectDrawChildren

References s_selectDrawChildren.

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

◆ SetSelectionFillShapes()

void SetSelectionFillShapes ( bool  aBool)

Definition at line 137 of file eeschema_config.cpp.

138 {
139  s_selectFillShapes = aBool;
140 }
static bool s_selectFillShapes

References s_selectFillShapes.

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

◆ SetSelectionTextAsBox()

void SetSelectionTextAsBox ( bool  aBool)

Definition at line 113 of file eeschema_config.cpp.

114 {
115  s_selectTextAsBox = aBool;
116 }
static bool s_selectTextAsBox

References s_selectTextAsBox.

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

◆ SetSelectionThickness()

void SetSelectionThickness ( int  aThickness)

Definition at line 149 of file eeschema_config.cpp.

150 {
151  s_selectThickness = aThickness;
152 }
static int s_selectThickness

References s_selectThickness.

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

Variable Documentation

◆ s_defaultBusThickness

int s_defaultBusThickness = Mils2iu( DEFAULTBUSTHICKNESS )
static

Definition at line 50 of file eeschema_config.cpp.

Referenced by GetDefaultBusThickness(), and SetDefaultBusThickness().

◆ s_defaultTextSize

int s_defaultTextSize = Mils2iu( DEFAULT_SIZE_TEXT )
static

◆ s_defaultWireThickness

int s_defaultWireThickness = Mils2iu( 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().

◆ s_selectDrawChildren

bool s_selectDrawChildren = true
static

Definition at line 55 of file eeschema_config.cpp.

Referenced by GetSelectionDrawChildItems(), and SetSelectionDrawChildItems().

◆ s_selectFillShapes

bool s_selectFillShapes = false
static

Definition at line 56 of file eeschema_config.cpp.

Referenced by GetSelectionFillShapes(), and SetSelectionFillShapes().

◆ s_selectTextAsBox

bool s_selectTextAsBox = false
static

Definition at line 54 of file eeschema_config.cpp.

Referenced by GetSelectionTextAsBox(), and SetSelectionTextAsBox().

◆ s_selectThickness

int s_selectThickness = Mils2iu( DEFAULTSELECTIONTHICKNESS )
static

Definition at line 57 of file eeschema_config.cpp.

Referenced by GetSelectionThickness(), and SetSelectionThickness().