KiCad PCB EDA Suite
Loading...
Searching...
No Matches
advanced_config.cpp File Reference
#include <advanced_config.h>
#include <trace_helpers.h>
#include <config_params.h>
#include <paths.h>
#include <wx/app.h>
#include <wx/config.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/tokenzr.h>

Go to the source code of this file.

Namespaces

namespace  AC_STACK
 Limits and default settings for the coroutine stack size allowed.
 
namespace  AC_KEYS
 List of known keys for advanced configuration options.
 
namespace  AC_GROUPS
 List of known groups for advanced configuration options.
 

Functions

wxString dumpParamCfg (const PARAM_CFG &aParam)
 
static void dumpCfg (const std::vector< PARAM_CFG * > &aArray)
 Dump the configs in the given array to trace.
 
static wxFileName getAdvancedCfgFilename ()
 Get the filename for the advanced config file.
 

Variables

static const wxChar AdvancedConfigMask [] = wxT( "KICAD_ADVANCED_CONFIG" )
 
static constexpr int AC_STACK::min_stack = 32 * 4096
 
static constexpr int AC_STACK::default_stack = 256 * 4096
 
static constexpr int AC_STACK::max_stack = 4096 * 4096
 
static const wxChar AC_KEYS::IncrementalConnectivity [] = wxT( "IncrementalConnectivity" )
 
static const wxChar AC_KEYS::Use3DConnexionDriver [] = wxT( "3DConnexionDriver" )
 
static const wxChar AC_KEYS::ExtraFillMargin [] = wxT( "ExtraFillMargin" )
 
static const wxChar AC_KEYS::DRCEpsilon [] = wxT( "DRCEpsilon" )
 
static const wxChar AC_KEYS::DRCSliverWidthTolerance [] = wxT( "DRCSliverWidthTolerance" )
 
static const wxChar AC_KEYS::DRCSliverMinimumLength [] = wxT( "DRCSliverMinimumLength" )
 
static const wxChar AC_KEYS::DRCSliverAngleTolerance [] = wxT( "DRCSliverAngleTolerance" )
 
static const wxChar AC_KEYS::HoleWallThickness [] = wxT( "HoleWallPlatingThickness" )
 
static const wxChar AC_KEYS::CoroutineStackSize [] = wxT( "CoroutineStackSize" )
 
static const wxChar AC_KEYS::ShowRouterDebugGraphics [] = wxT( "ShowRouterDebugGraphics" )
 
static const wxChar AC_KEYS::EnableRouterDump [] = wxT( "EnableRouterDump" )
 
static const wxChar AC_KEYS::HyperZoom [] = wxT( "HyperZoom" )
 
static const wxChar AC_KEYS::CompactFileSave [] = wxT( "CompactSave" )
 
static const wxChar AC_KEYS::DrawArcAccuracy [] = wxT( "DrawArcAccuracy" )
 
static const wxChar AC_KEYS::DrawArcCenterStartEndMaxAngle [] = wxT( "DrawArcCenterStartEndMaxAngle" )
 
static const wxChar AC_KEYS::MaxTangentTrackAngleDeviation [] = wxT( "MaxTangentTrackAngleDeviation" )
 
static const wxChar AC_KEYS::MaxTrackLengthToKeep [] = wxT( "MaxTrackLengthToKeep" )
 
static const wxChar AC_KEYS::StrokeTriangulation [] = wxT( "StrokeTriangulation" )
 
static const wxChar AC_KEYS::ExtraZoneDisplayModes [] = wxT( "ExtraZoneDisplayModes" )
 
static const wxChar AC_KEYS::MinPlotPenWidth [] = wxT( "MinPlotPenWidth" )
 
static const wxChar AC_KEYS::DebugZoneFiller [] = wxT( "DebugZoneFiller" )
 
static const wxChar AC_KEYS::DebugPDFWriter [] = wxT( "DebugPDFWriter" )
 
static const wxChar AC_KEYS::SmallDrillMarkSize [] = wxT( "SmallDrillMarkSize" )
 
static const wxChar AC_KEYS::HotkeysDumper [] = wxT( "HotkeysDumper" )
 
static const wxChar AC_KEYS::DrawBoundingBoxes [] = wxT( "DrawBoundingBoxes" )
 
static const wxChar AC_KEYS::ShowPcbnewExportNetlist [] = wxT( "ShowPcbnewExportNetlist" )
 
static const wxChar AC_KEYS::Skip3DModelFileCache [] = wxT( "Skip3DModelFileCache" )
 
static const wxChar AC_KEYS::Skip3DModelMemoryCache [] = wxT( "Skip3DModelMemoryCache" )
 
static const wxChar AC_KEYS::HideVersionFromTitle [] = wxT( "HideVersionFromTitle" )
 
static const wxChar AC_KEYS::TraceMasks [] = wxT( "TraceMasks" )
 
static const wxChar AC_KEYS::ShowRepairSchematic [] = wxT( "ShowRepairSchematic" )
 
static const wxChar AC_KEYS::ShowEventCounters [] = wxT( "ShowEventCounters" )
 
static const wxChar AC_KEYS::AllowManualCanvasScale [] = wxT( "AllowManualCanvasScale" )
 
static const wxChar AC_KEYS::UpdateUIEventInterval [] = wxT( "UpdateUIEventInterval" )
 
static const wxChar AC_KEYS::V3DRT_BevelHeight_um [] = wxT( "V3DRT_BevelHeight_um" )
 
static const wxChar AC_KEYS::V3DRT_BevelExtentFactor [] = wxT( "V3DRT_BevelExtentFactor" )
 
static const wxChar AC_KEYS::UseClipper2 [] = wxT( "UseClipper2" )
 
static const wxChar AC_KEYS::EnableGenerators [] = wxT( "EnableGenerators" )
 
static const wxChar AC_KEYS::EnableGit [] = wxT( "EnableGit" )
 
static const wxChar AC_KEYS::EnableLibWithText [] = wxT( "EnableLibWithText" )
 
static const wxChar AC_KEYS::EnableEeschemaPrintCairo [] = wxT( "EnableEeschemaPrintCairo" )
 
static const wxChar AC_KEYS::DisambiguationTime [] = wxT( "DisambiguationTime" )
 
static const wxChar AC_KEYS::PcbSelectionVisibilityRatio [] = wxT( "PcbSelectionVisibilityRatio" )
 
static const wxChar AC_KEYS::MinimumSegmentLength [] = wxT( "MinimumSegmentLength" )
 
static const wxChar AC_KEYS::OcePluginLinearDeflection [] = wxT( "OcePluginLinearDeflection" )
 
static const wxChar AC_KEYS::OcePluginAngularDeflection [] = wxT( "OcePluginAngularDeflection" )
 
static const wxChar AC_KEYS::TriangulateSimplificationLevel [] = wxT( "TriangulateSimplificationLevel" )
 
static const wxChar AC_KEYS::TriangulateMinimumArea [] = wxT( "TriangulateMinimumArea" )
 
static const wxChar AC_KEYS::EnableCacheFriendlyFracture [] = wxT( "EnableCacheFriendlyFracture" )
 
static const wxChar AC_KEYS::EnableAPILogging [] = wxT( "EnableAPILogging" )
 
static const wxChar AC_GROUPS::V3D_RayTracing [] = wxT( "G_3DV_RayTracing" )
 

Function Documentation

◆ dumpCfg()

static void dumpCfg ( const std::vector< PARAM_CFG * > &  aArray)
static

Dump the configs in the given array to trace.

Definition at line 169 of file advanced_config.cpp.

References AdvancedConfigMask, and dumpParamCfg().

Referenced by ADVANCED_CFG::loadSettings().

◆ dumpParamCfg()

wxString dumpParamCfg ( const PARAM_CFG aParam)

◆ getAdvancedCfgFilename()

static wxFileName getAdvancedCfgFilename ( )
static

Get the filename for the advanced config file.

The user must check the file exists if they care.

Definition at line 187 of file advanced_config.cpp.

References PATHS::GetUserSettingsPath().

Referenced by ADVANCED_CFG::loadFromConfigFile().

Variable Documentation

◆ AdvancedConfigMask

const wxChar AdvancedConfigMask[] = wxT( "KICAD_ADVANCED_CONFIG" )
static