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 SetTextMarkupFlags (int aMarkupFlags)
 
int GetTextMarkupFlags ()
 
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 = DEFAULTBUSTHICKNESS
 
static int s_defaultWireThickness = DEFAULTDRAWLINETHICKNESS
 
static int s_defaultTextSize = DEFAULT_SIZE_TEXT
 
static int s_drawDefaultLineThickness = -1
 
static int s_textMarkupFlags = 0
 
static bool s_selectTextAsBox = false
 
static bool s_selectDrawChildren = true
 
static bool s_selectFillShapes = false
 
static int s_selectThickness = 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 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 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 60 of file eeschema_config.cpp.

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

97 {
99 }
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_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 72 of file eeschema_config.cpp.

73 {
75 }
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 175 of file eeschema_config.cpp.

176 {
177  return COLOR4D( DARKGRAY );
178 }
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 168 of file eeschema_config.cpp.

169 {
170  return COLOR4D( BROWN );
171 }
Class 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 132 of file eeschema_config.cpp.

133 {
134  return s_selectDrawChildren;
135 }
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 144 of file eeschema_config.cpp.

145 {
146  return s_selectFillShapes;
147 }
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 120 of file eeschema_config.cpp.

121 {
122  return s_selectTextAsBox;
123 }
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 156 of file eeschema_config.cpp.

157 {
158  return s_selectThickness;
159 }
static int s_selectThickness

References s_selectThickness.

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

◆ GetTextMarkupFlags()

◆ SetDefaultBusThickness()

void SetDefaultBusThickness ( int  aThickness)

Definition at line 66 of file eeschema_config.cpp.

67 {
68  s_defaultBusThickness = std::max( 1, aThickness );
69 }
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 90 of file eeschema_config.cpp.

91 {
92  s_defaultTextSize = aTextSize;
93 }
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 78 of file eeschema_config.cpp.

79 {
80  s_defaultWireThickness = std::max( 1, aThickness );
81 }
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().

◆ SetSelectionDrawChildItems()

void SetSelectionDrawChildItems ( bool  aBool)

Definition at line 138 of file eeschema_config.cpp.

139 {
140  s_selectDrawChildren = aBool;
141 }
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 150 of file eeschema_config.cpp.

151 {
152  s_selectFillShapes = aBool;
153 }
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 126 of file eeschema_config.cpp.

127 {
128  s_selectTextAsBox = aBool;
129 }
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 162 of file eeschema_config.cpp.

163 {
164  s_selectThickness = aThickness;
165 }
static int s_selectThickness

References s_selectThickness.

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

◆ SetTextMarkupFlags()

void SetTextMarkupFlags ( int  aMarkupFlags)

Definition at line 102 of file eeschema_config.cpp.

103 {
104  s_textMarkupFlags = aMarkupFlags;
105 }
static int s_textMarkupFlags

References s_textMarkupFlags.

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().

◆ s_selectDrawChildren

bool s_selectDrawChildren = true
static

Definition at line 56 of file eeschema_config.cpp.

Referenced by GetSelectionDrawChildItems(), and SetSelectionDrawChildItems().

◆ s_selectFillShapes

bool s_selectFillShapes = false
static

Definition at line 57 of file eeschema_config.cpp.

Referenced by GetSelectionFillShapes(), and SetSelectionFillShapes().

◆ s_selectTextAsBox

bool s_selectTextAsBox = false
static

Definition at line 55 of file eeschema_config.cpp.

Referenced by GetSelectionTextAsBox(), and SetSelectionTextAsBox().

◆ s_selectThickness

int s_selectThickness = DEFAULTSELECTIONTHICKNESS
static

Definition at line 58 of file eeschema_config.cpp.

Referenced by GetSelectionThickness(), and SetSelectionThickness().

◆ s_textMarkupFlags

int s_textMarkupFlags = 0
static

Definition at line 54 of file eeschema_config.cpp.

Referenced by GetTextMarkupFlags(), and SetTextMarkupFlags().