KiCad PCB EDA Suite
eeschema_config.cpp File Reference
#include <fctsys.h>
#include <pgm_base.h>
#include <kiface_i.h>
#include <class_drawpanel.h>
#include <confirm.h>
#include <gestfich.h>
#include <schframe.h>
#include <invoke_sch_dialog.h>
#include <common.h>
#include <eeschema_id.h>
#include <general.h>
#include <libeditframe.h>
#include <eeschema_config.h>
#include <hotkeys.h>
#include <sch_sheet.h>
#include <class_libentry.h>
#include <worksheet_shape_builder.h>
#include <class_library.h>
#include <symbol_lib_table.h>
#include <dialog_hotkeys_editor.h>
#include <dialogs/dialog_eeschema_options.h>
#include <dialogs/dialog_libedit_options.h>
#include <dialogs/dialog_schematic_find.h>
#include <dialog_erc.h>
#include <wildcards_and_files_ext.h>

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 DefaultBusWidthEntry [] = wxT( "DefaultBusWidth" )
 
static const wxChar DefaultDrawLineWidthEntry [] = wxT( "DefaultDrawLineWidth" )
 
static const wxChar ShowHiddenPinsEntry [] = wxT( "ShowHiddenPins" )
 
static const wxChar HorzVertLinesOnlyEntry [] = wxT( "HorizVertLinesOnly" )
 
static const wxChar PreviewFramePositionXEntry [] = wxT( "PreviewFramePositionX" )
 
static const wxChar PreviewFramePositionYEntry [] = wxT( "PreviewFramePositionY" )
 
static const wxChar PreviewFrameWidthEntry [] = wxT( "PreviewFrameWidth" )
 
static const wxChar PreviewFrameHeightEntry [] = wxT( "PreviewFrameHeight" )
 
static const wxChar PrintDialogPositionXEntry [] = wxT( "PrintDialogPositionX" )
 
static const wxChar PrintDialogPositionYEntry [] = wxT( "PrintDialogPositionY" )
 
static const wxChar PrintDialogWidthEntry [] = wxT( "PrintDialogWidth" )
 
static const wxChar PrintDialogHeightEntry [] = wxT( "PrintDialogHeight" )
 
static const wxChar FindDialogPositionXEntry [] = wxT( "FindDialogPositionX" )
 
static const wxChar FindDialogPositionYEntry [] = wxT( "FindDialogPositionY" )
 
static const wxChar FindDialogWidthEntry [] = wxT( "FindDialogWidth" )
 
static const wxChar FindDialogHeightEntry [] = wxT( "FindDialogHeight" )
 
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 lastLibExportPathEntry [] = wxT( "LastLibraryExportPath" )
 
static const wxChar lastLibImportPathEntry [] = wxT( "LastLibraryImportPath" )
 
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

#define FR_HISTORY_LIST_CNT   10

Maximum number of find and replace strings.

Definition at line 58 of file eeschema_config.cpp.

Referenced by SCH_EDIT_FRAME::LoadSettings(), and SCH_EDIT_FRAME::SaveSettings().

Function Documentation

int GetDefaultBusThickness ( )

Default line thickness used to draw/plot busses.

Definition at line 63 of file eeschema_config.cpp.

References s_defaultBusThickness.

Referenced by SCH_LINE::GetPenSize(), SCH_BUS_BUS_ENTRY::GetPenSize(), SCH_EDIT_FRAME::OnPreferencesOptions(), and SCH_EDIT_FRAME::SaveSettings().

64 {
65  return s_defaultBusThickness;
66 }
static int s_defaultBusThickness
int GetDefaultLineThickness ( )

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

= 0 ).

Definition at line 100 of file eeschema_config.cpp.

References s_drawDefaultLineThickness.

Referenced by SCH_GLOBALLABEL::CreateGraphicShape(), DIALOG_PLOT_SCHEMATIC::createPDFFile(), SCH_NO_CONNECT::Draw(), SCH_TEXT::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_NO_CONNECT::GetPenSize(), LIB_CIRCLE::GetPenSize(), LIB_RECTANGLE::GetPenSize(), LIB_POLYLINE::GetPenSize(), SCH_LINE::GetPenSize(), LIB_TEXT::GetPenSize(), LIB_BEZIER::GetPenSize(), LIB_ARC::GetPenSize(), SCH_SHEET_PIN::GetPenSize(), LIB_FIELD::GetPenSize(), SCH_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::HitTest(), DIALOG_PLOT_SCHEMATIC::initDlg(), SCH_SCREEN::IsTerminalPoint(), LIB_EDIT_FRAME::OnPreferencesOptions(), SCH_EDIT_FRAME::OnPreferencesOptions(), SCH_SHEET::Plot(), DIALOG_PLOT_SCHEMATIC::plotOneSheetPS(), DIALOG_PLOT_SCHEMATIC::plotOneSheetSVG(), LIB_PIN::PlotPinTexts(), SCH_EDIT_FRAME::PrintPage(), SCH_EDIT_FRAME::RedrawActiveWindow(), SCH_EDIT_FRAME::SaveSettings(), and LIB_EDIT_FRAME::SVG_PlotComponent().

101 {
103 }
static int s_drawDefaultLineThickness
COLOR4D GetInvisibleItemColor ( )

Definition at line 124 of file eeschema_config.cpp.

References DARKGRAY.

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

125 {
126  return COLOR4D( DARKGRAY );
127 }
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:39
COLOR4D GetItemSelectedColor ( )
void SetDefaultBusThickness ( int  aThickness)

Definition at line 69 of file eeschema_config.cpp.

References s_defaultBusThickness.

Referenced by SCH_EDIT_FRAME::LoadSettings(), and SCH_EDIT_FRAME::OnPreferencesOptions().

70 {
71  if( aThickness >= 1 )
72  s_defaultBusThickness = aThickness;
73  else
75 }
static int s_defaultBusThickness
void SetDefaultLineThickness ( int  aThickness)
void SetDefaultTextSize ( int  aTextSize)

Definition at line 87 of file eeschema_config.cpp.

References s_defaultTextSize.

Referenced by SCH_EDIT_FRAME::OnPreferencesOptions(), and DIALOG_LABEL_EDITOR::TextPropertiesAccept().

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

Variable Documentation

int s_defaultBusThickness = DEFAULTBUSTHICKNESS
static

Definition at line 61 of file eeschema_config.cpp.

Referenced by GetDefaultBusThickness(), and SetDefaultBusThickness().

int s_defaultTextSize = DEFAULT_SIZE_TEXT
static

Default size for text (not only labels)

Definition at line 79 of file eeschema_config.cpp.

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

int s_drawDefaultLineThickness = DEFAULTDRAWLINETHICKNESS
static

Definition at line 97 of file eeschema_config.cpp.

Referenced by GetDefaultLineThickness(), and SetDefaultLineThickness().