KiCad PCB EDA Suite
Loading...
Searching...
No Matches
advanced_config.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#include <advanced_config.h>
25#include <trace_helpers.h>
26#include <config_params.h>
27#include <paths.h>
28
29#include <wx/app.h>
30#include <wx/config.h>
31#include <wx/filename.h>
32#include <wx/log.h>
33#include <wx/tokenzr.h>
34
35/*
36 * Flag to enable advanced config debugging
37 *
38 * Use "KICAD_ADVANCED_CONFIG" to enable.
39 *
40 * @ingroup trace_env_vars
41 */
42static const wxChar AdvancedConfigMask[] = wxT( "KICAD_ADVANCED_CONFIG" );
43
49namespace AC_STACK
50{
51 static constexpr int min_stack = 32 * 4096;
52 static constexpr int default_stack = 256 * 4096;
53 static constexpr int max_stack = 4096 * 4096;
54}
55
61namespace AC_KEYS
62{
63
64static const wxChar IncrementalConnectivity[] = wxT( "IncrementalConnectivity" );
65static const wxChar Use3DConnexionDriver[] = wxT( "3DConnexionDriver" );
66static const wxChar ExtraFillMargin[] = wxT( "ExtraFillMargin" );
67static const wxChar EnableCreepageSlot[] = wxT( "EnableCreepageSlot" );
68static const wxChar DRCEpsilon[] = wxT( "DRCEpsilon" );
69static const wxChar DRCSliverWidthTolerance[] = wxT( "DRCSliverWidthTolerance" );
70static const wxChar DRCSliverMinimumLength[] = wxT( "DRCSliverMinimumLength" );
71static const wxChar DRCSliverAngleTolerance[] = wxT( "DRCSliverAngleTolerance" );
72static const wxChar HoleWallThickness[] = wxT( "HoleWallPlatingThickness" );
73static const wxChar CoroutineStackSize[] = wxT( "CoroutineStackSize" );
74static const wxChar ShowRouterDebugGraphics[] = wxT( "ShowRouterDebugGraphics" );
75static const wxChar EnableRouterDump[] = wxT( "EnableRouterDump" );
76static const wxChar HyperZoom[] = wxT( "HyperZoom" );
77static const wxChar CompactFileSave[] = wxT( "CompactSave" );
78static const wxChar DrawArcAccuracy[] = wxT( "DrawArcAccuracy" );
79static const wxChar DrawArcCenterStartEndMaxAngle[] = wxT( "DrawArcCenterStartEndMaxAngle" );
80static const wxChar MaxTangentTrackAngleDeviation[] = wxT( "MaxTangentTrackAngleDeviation" );
81static const wxChar MaxTrackLengthToKeep[] = wxT( "MaxTrackLengthToKeep" );
82static const wxChar StrokeTriangulation[] = wxT( "StrokeTriangulation" );
83static const wxChar ExtraZoneDisplayModes[] = wxT( "ExtraZoneDisplayModes" );
84static const wxChar MinPlotPenWidth[] = wxT( "MinPlotPenWidth" );
85static const wxChar DebugZoneFiller[] = wxT( "DebugZoneFiller" );
86static const wxChar DebugPDFWriter[] = wxT( "DebugPDFWriter" );
87static const wxChar SmallDrillMarkSize[] = wxT( "SmallDrillMarkSize" );
88static const wxChar HotkeysDumper[] = wxT( "HotkeysDumper" );
89static const wxChar DrawBoundingBoxes[] = wxT( "DrawBoundingBoxes" );
90static const wxChar ShowPcbnewExportNetlist[] = wxT( "ShowPcbnewExportNetlist" );
91static const wxChar Skip3DModelFileCache[] = wxT( "Skip3DModelFileCache" );
92static const wxChar Skip3DModelMemoryCache[] = wxT( "Skip3DModelMemoryCache" );
93static const wxChar HideVersionFromTitle[] = wxT( "HideVersionFromTitle" );
94static const wxChar TraceMasks[] = wxT( "TraceMasks" );
95static const wxChar ShowRepairSchematic[] = wxT( "ShowRepairSchematic" );
96static const wxChar ShowEventCounters[] = wxT( "ShowEventCounters" );
97static const wxChar AllowManualCanvasScale[] = wxT( "AllowManualCanvasScale" );
98static const wxChar UpdateUIEventInterval[] = wxT( "UpdateUIEventInterval" );
99static const wxChar V3DRT_BevelHeight_um[] = wxT( "V3DRT_BevelHeight_um" );
100static const wxChar V3DRT_BevelExtentFactor[] = wxT( "V3DRT_BevelExtentFactor" );
101static const wxChar EnableDesignBlocks[] = wxT( "EnableDesignBlocks" );
102static const wxChar EnableGenerators[] = wxT( "EnableGenerators" );
103static const wxChar EnableGit[] = wxT( "EnableGit" );
104static const wxChar EnableLibWithText[] = wxT( "EnableLibWithText" );
105static const wxChar EnableLibDir[] = wxT( "EnableLibDir" );
106static const wxChar EnableEeschemaPrintCairo[] = wxT( "EnableEeschemaPrintCairo" );
107static const wxChar EnableEeschemaExportClipboardCairo[] = wxT( "EnableEeschemaExportClipboardCairo" );
108static const wxChar DisambiguationTime[] = wxT( "DisambiguationTime" );
109static const wxChar PcbSelectionVisibilityRatio[] = wxT( "PcbSelectionVisibilityRatio" );
110static const wxChar FontErrorSize[] = wxT( "FontErrorSize" );
111static const wxChar OcePluginLinearDeflection[] = wxT( "OcePluginLinearDeflection" );
112static const wxChar OcePluginAngularDeflection[] = wxT( "OcePluginAngularDeflection" );
113static const wxChar TriangulateSimplificationLevel[] = wxT( "TriangulateSimplificationLevel" );
114static const wxChar TriangulateMinimumArea[] = wxT( "TriangulateMinimumArea" );
115static const wxChar EnableCacheFriendlyFracture[] = wxT( "EnableCacheFriendlyFracture" );
116static const wxChar EnableAPILogging[] = wxT( "EnableAPILogging" );
117static const wxChar MaxFileSystemWatchers[] = wxT( "MaxFileSystemWatchers" );
118static const wxChar MinorSchematicGraphSize[] = wxT( "MinorSchematicGraphSize" );
119static const wxChar ResolveTextRecursionDepth[] = wxT( "ResolveTextRecursionDepth" );
120static const wxChar EnableExtensionSnaps[] = wxT( "EnableExtensionSnaps" );
121static const wxChar ExtensionSnapTimeoutMs[] = wxT( "ExtensionSnapTimeoutMs" );
122static const wxChar ExtensionSnapActivateOnHover[] = wxT( "ExtensionSnapActivateOnHover" );
123static const wxChar EnableSnapAnchorsDebug[] = wxT( "EnableSnapAnchorsDebug" );
124static const wxChar MinParallelAngle[] = wxT( "MinParallelAngle" );
125static const wxChar HoleWallPaintingMultiplier[] = wxT( "HoleWallPaintingMultiplier" );
126static const wxChar MsgPanelShowUuids[] = wxT( "MsgPanelShowUuids" );
127static const wxChar MaximumThreads[] = wxT( "MaximumThreads" );
128
129} // namespace KEYS
130
131
136namespace AC_GROUPS
137{
138static const wxChar V3D_RayTracing[] = wxT( "G_3DV_RayTracing" );
139}
140
141/*
142 * Get a simple string for common parameters.
143 *
144 * This isn't exhaustive, but it covers most common types that might be
145 * used in the advance config
146 */
147wxString dumpParamCfg( const PARAM_CFG& aParam )
148{
149 wxString s = aParam.m_Ident + wxS( ": " );
150
151 /*
152 * This implementation is rather simplistic, but it is
153 * effective enough for simple uses. A better implementation would be
154 * some kind of visitor, but that's somewhat more work.
155 */
156 switch( aParam.m_Type )
157 {
160 s << *static_cast<const PARAM_CFG_INT&>( aParam ).m_Pt_param;
161 break;
163 s << *static_cast<const PARAM_CFG_DOUBLE&>( aParam ).m_Pt_param;
164 break;
166 s << *static_cast<const PARAM_CFG_WXSTRING&>( aParam ).m_Pt_param;
167 break;
169 s << *static_cast<const PARAM_CFG_FILENAME&>( aParam ).m_Pt_param;
170 break;
172 s << ( *static_cast<const PARAM_CFG_BOOL&>( aParam ).m_Pt_param ? wxS( "true" )
173 : wxS( "false" ) );
174 break;
175 default: s << wxS( "Unsupported PARAM_CFG variant: " ) << aParam.m_Type;
176 }
177
178 return s;
179}
180
181
185static void dumpCfg( const std::vector<PARAM_CFG*>& aArray )
186{
187 // only dump if we need to
188 if( !wxLog::IsAllowedTraceMask( AdvancedConfigMask ) )
189 return;
190
191 for( const PARAM_CFG* param : aArray )
192 {
193 wxLogTrace( AdvancedConfigMask, dumpParamCfg( *param ) );
194 }
195}
196
197
203static wxFileName getAdvancedCfgFilename()
204{
205 const static wxString cfg_filename{ wxS( "kicad_advanced" ) };
206 return wxFileName( PATHS::GetUserSettingsPath(), cfg_filename );
207}
208
209
211{
212 wxLogTrace( AdvancedConfigMask, wxS( "Init advanced config" ) );
213
214 // Init defaults - this is done in case the config doesn't exist,
215 // then the values will remain as set here.
218 m_EnableRouterDump = false;
219 m_HyperZoom = false;
220 m_DrawArcAccuracy = 10.0;
223 m_MaxTrackLengthToKeep = 0.0005;
226
227 m_ExtraClearance = 0.0005;
228 m_EnableCreepageSlot = false;
229 m_DRCEpsilon = 0.0005; // 0.5um is small enough not to materially violate
230 // any constraints.
232 m_SliverMinimumLength = 0.0008;
234
235 m_HoleWallThickness = 0.020; // IPC-6012 says 15-18um; Cadence says at least
236 // 0.020 for a Class 2 board and at least 0.025
237 // for Class 3.
238
239 m_MinPlotPenWidth = 0.0212; // 1 pixel at 1200dpi.
240
241 m_DebugZoneFiller = false;
242 m_DebugPDFWriter = false;
244 m_HotkeysDumper = false;
245 m_DrawBoundingBoxes = false;
251 m_ShowEventCounters = false;
253 m_CompactSave = false;
255 m_ShowRepairSchematic = false;
257 m_EnableGenerators = false;
258 m_EnableGit = false;
259 m_EnableLibWithText = false;
260 m_EnableLibDir = false;
261
264
266 m_3DRT_BevelExtentFactor = 1.0 / 16.0;
267
268 m_EnableAPILogging = false;
269
271
273
275
277
278 m_FontErrorSize = 2;
279
282
285
287
289
291
293
298
299 m_MinParallelAngle = 0.001;
301
303
305
307}
308
309
311{
312 static ADVANCED_CFG instance;
313 return instance;
314}
315
316
318{
319 const wxFileName k_advanced = getAdvancedCfgFilename();
320
321 // If we are running headless, use the class defaults because we cannot instantiate wxConfig
322 if( !wxTheApp )
323 return;
324
325 if( !k_advanced.FileExists() )
326 {
327 wxLogTrace( AdvancedConfigMask, wxS( "File does not exist %s" ), k_advanced.GetFullPath() );
328
329 // load the defaults
330 wxConfig emptyConfig;
331 loadSettings( emptyConfig );
332
333 return;
334 }
335
336 wxLogTrace( AdvancedConfigMask, wxS( "Loading advanced config from: %s" ),
337 k_advanced.GetFullPath() );
338
339 wxFileConfig file_cfg( wxS( "" ), wxS( "" ), k_advanced.GetFullPath() );
340 loadSettings( file_cfg );
341}
342
343
344void ADVANCED_CFG::loadSettings( wxConfigBase& aCfg )
345{
346 std::vector<PARAM_CFG*> configParams;
347
348 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::ExtraFillMargin,
350 m_ExtraClearance, 0.0, 1.0 ) );
351
352 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableCreepageSlot,
354
355
356 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::DRCEpsilon,
357 &m_DRCEpsilon, m_DRCEpsilon, 0.0, 1.0 ) );
358
359 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::DRCSliverWidthTolerance,
361 0.01, 0.25 ) );
362
363 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::DRCSliverMinimumLength,
365 1e-9, 10 ) );
366
367 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::DRCSliverAngleTolerance,
369 1.0, 90.0 ) );
370
371 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::HoleWallThickness,
373 0.0, 1.0 ) );
374
375 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::CoroutineStackSize,
378
379 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::UpdateUIEventInterval,
381 -1, 100000 ) );
382
383 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::ShowRouterDebugGraphics,
386
387 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableRouterDump,
389
390 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::HyperZoom,
392
393 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::CompactFileSave,
395
396 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::DrawArcAccuracy,
398 0.0, 100000.0 ) );
399
400 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::DrawArcCenterStartEndMaxAngle,
402 m_DrawArcCenterMaxAngle, 0.0, 100000.0 ) );
403
404 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::MaxTangentTrackAngleDeviation,
406 m_MaxTangentAngleDeviation, 0.0, 90.0 ) );
407
408 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::MaxTrackLengthToKeep,
410 0.0, 1.0 ) );
411
412 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::ExtraZoneDisplayModes,
415
416 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::StrokeTriangulation,
419
420 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::MinPlotPenWidth,
422 0.0, 1.0 ) );
423
424 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::DebugZoneFiller,
426
427 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::DebugPDFWriter,
429
430 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::SmallDrillMarkSize,
432 0.0, 3.0 ) );
433
434 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::HotkeysDumper,
436
437 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::DrawBoundingBoxes,
439
440 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::ShowPcbnewExportNetlist,
443
444 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::Skip3DModelFileCache,
446
447 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::Skip3DModelMemoryCache,
450
451 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::HideVersionFromTitle,
453
454 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::ShowRepairSchematic,
456
457 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::ShowEventCounters,
459
460 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::AllowManualCanvasScale,
463
464 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::V3DRT_BevelHeight_um,
466 0, std::numeric_limits<int>::max(),
468
469 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::V3DRT_BevelExtentFactor,
471 m_3DRT_BevelExtentFactor, 0.0, 100.0,
473
474 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::Use3DConnexionDriver,
476
477 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::IncrementalConnectivity,
480
481 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::DisambiguationTime,
484 50, 10000 ) );
485
486 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableDesignBlocks,
488
489 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableGenerators,
491
492 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableAPILogging,
494
495 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableGit,
497
498 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableLibWithText,
500
501 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableLibDir,
503
504 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableEeschemaPrintCairo,
507
508 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableEeschemaExportClipboardCairo,
511
512 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::PcbSelectionVisibilityRatio,
514 m_PcbSelectionVisibilityRatio, 0.0, 1.0 ) );
515
516 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::FontErrorSize,
518 m_FontErrorSize, 0.01, 100 ) );
519
520 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::OcePluginLinearDeflection,
522 m_OcePluginLinearDeflection, 0.01, 1.0 ) );
523
524 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::OcePluginAngularDeflection,
526 m_OcePluginAngularDeflection, 0.01, 360.0 ) );
527
528 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::TriangulateSimplificationLevel,
531
532 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::TriangulateMinimumArea,
534 m_TriangulateMinimumArea, 0, 100000 ) );
535
536 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableCacheFriendlyFracture,
539
540 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::MaxFileSystemWatchers,
542 0, 2147483647 ) );
543
544 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::MinorSchematicGraphSize,
547 0, 2147483647 ) );
548
549 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::ResolveTextRecursionDepth,
552
553 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableExtensionSnaps,
556
557 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::ExtensionSnapTimeoutMs,
560
561 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::ExtensionSnapActivateOnHover,
564
565 configParams.push_back( new PARAM_CFG_BOOL( true, AC_KEYS::EnableSnapAnchorsDebug,
568
569 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::MinParallelAngle,
571 0.0, 45.0 ) );
572
573 configParams.push_back( new PARAM_CFG_DOUBLE( true, AC_KEYS::HoleWallPaintingMultiplier,
576 0.1, 100.0 ) );
577
578 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::MsgPanelShowUuids,
581
582 configParams.push_back( new PARAM_CFG_INT( true, AC_KEYS::MaximumThreads,
584 0, 500 ) );
585
586 // Special case for trace mask setting...we just grab them and set them immediately
587 // Because we even use wxLogTrace inside of advanced config
588 wxString traceMasks;
589 configParams.push_back( new PARAM_CFG_WXSTRING( true, AC_KEYS::TraceMasks, &traceMasks,
590 wxS( "" ) ) );
591
592 // Load the config from file
593 wxConfigLoadSetups( &aCfg, configParams );
594
595 // Now actually set the trace masks
596 wxStringTokenizer traceMaskTokenizer( traceMasks, wxS( "," ) );
597
598 while( traceMaskTokenizer.HasMoreTokens() )
599 {
600 wxString mask = traceMaskTokenizer.GetNextToken();
601 wxLog::AddTraceMask( mask );
602 }
603
604 dumpCfg( configParams );
605
606 for( PARAM_CFG* param : configParams )
607 delete param;
608
609 wxLogTrace( kicadTraceCoroutineStack, wxT( "Using coroutine stack size %d" ),
611}
612
613
static void dumpCfg(const std::vector< PARAM_CFG * > &aArray)
Dump the configs in the given array to trace.
wxString dumpParamCfg(const PARAM_CFG &aParam)
static const wxChar AdvancedConfigMask[]
static wxFileName getAdvancedCfgFilename()
Get the filename for the advanced config file.
void loadFromConfigFile()
Load the config from the normal configuration file.
void loadSettings(wxConfigBase &aCfg)
Load config from the given configuration base.
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
Configuration object for booleans.
Configuration object for double precision floating point numbers.
Configuration object for integers.
Configuration object for wxString objects.
A base class which establishes the interface functions ReadParam and SaveParam, which are implemented...
Definition: config_params.h:80
paramcfg_id m_Type
Type of parameter.
wxString m_Ident
Keyword in config data.
static wxString GetUserSettingsPath()
Return the user configuration path used to store KiCad's configuration files.
Definition: paths.cpp:582
void wxConfigLoadSetups(wxConfigBase *aCfg, const std::vector< PARAM_CFG * > &aList)
Use aList of PARAM_CFG object to load configuration values from aCfg.
@ PARAM_WXSTRING
Definition: config_params.h:58
@ PARAM_INT_WITH_SCALE
Definition: config_params.h:54
@ PARAM_INT
Definition: config_params.h:53
@ PARAM_FILENAME
Definition: config_params.h:60
@ PARAM_DOUBLE
Definition: config_params.h:55
@ PARAM_BOOL
Definition: config_params.h:56
bool m_Skip3DModelFileCache
Skip reading/writing 3D model file caches.
bool m_ShowRepairSchematic
Enable showing schematic repair output.
double m_DrawArcCenterMaxAngle
When drawing an arc, the angle ( center - start ) - ( start - end ) can be limited to avoid extremely...
int m_DisambiguationMenuDelay
The number of milliseconds to wait in a click before showing a disambiguation menu.
bool m_EnableLibDir
Enable option to open lib file directory.
double m_MaxTangentAngleDeviation
Maximum angle between the tangent line of an arc track and a connected straight track in order to com...
bool m_Use3DConnexionDriver
Use the 3DConnexion Driver.
int m_TriangulateSimplificationLevel
The number of internal units that will be allowed to deflect from the base segment when creating a ne...
bool m_EnableCacheFriendlyFracture
Enable the use of a cache-friendlier and therefore faster version of the polygon fracture algorithm.
bool m_ShowRouterDebugGraphics
Show PNS router debug graphics while routing.
bool m_Skip3DModelMemoryCache
Skip reading/writing 3D model memory caches.
double m_HoleWallPaintingMultiplier
What factor to use when painting via and PTH pad hole walls, so that the painted hole wall can be ove...
bool m_EnableLibWithText
Enable option to load lib files with text editor.
int m_MaximumThreads
Default value for the maximum number of threads to use for parallel processing.
double m_HoleWallThickness
Dimension used to calculate the actual hole size from the finish hole size.
int m_CoroutineStackSize
Configure the coroutine stack size in bytes.
bool m_EnableDesignBlocks
Enable the new Design Blocks feature.
double m_SmallDrillMarkSize
The diameter of the drill marks on print and plot outputs (in mm) when the "Drill marks" option is se...
bool m_EnableGenerators
Enable support for generators.
bool m_EnableEeschemaExportClipboardCairo
Enable Eeschema Export to clipboard using Cairo.
bool m_IncrementalConnectivity
Use the new incremental netlister for realtime jobs.
double m_ExtraClearance
When filling zones, we add an extra amount of clearance to each zone to ensure that rounding errors d...
int m_TriangulateMinimumArea
The minimum area of a polygon that can be left over after triangulation and still consider the triang...
bool m_DrawBoundingBoxes
Draw GAL bounding boxes in painters.
bool m_EnableRouterDump
Enable PNS router to dump state information for debug purpose (press 0 while routing)
double m_DRCEpsilon
Epsilon for DRC tests.
double m_SliverAngleTolerance
Sliver angle to tolerance for DRC.
bool m_AllowManualCanvasScale
Allow manual scaling of canvas.
double m_SliverWidthTolerance
Sliver width tolerance for DRC.
double m_OcePluginLinearDeflection
OCE (STEP/IGES) 3D Plugin Tesselation Linear Deflection.
bool m_EnableGit
Enable git integration.
double m_MinParallelAngle
Minimum overlapping angle for which an arc is considered to be parallel to its paired arc.
int m_MinorSchematicGraphSize
Set the number of items in a schematic graph for it to be considered "minor".
bool m_ExtraZoneDisplayModes
When true, adds zone-display-modes for stroking the zone fracture boundaries and the zone triangulati...
double m_MinPlotPenWidth
Absolute minimum pen width for plotting.
double m_SliverMinimumLength
Sliver length tolerance for DRC.
double m_MaxTrackLengthToKeep
Maximum track length to keep after doing an arc track resizing operation.
double m_DrawArcAccuracy
Distance from an arc end point and the estimated end point, when rotating from the start point to the...
bool m_HotkeysDumper
Enable the hotkeys dumper feature for generating documentation.
double m_FontErrorSize
Deviation between font's bezier curve ideal and the poligonized curve.
int m_UpdateUIEventInterval
The update interval the wxWidgets sends wxUpdateUIEvents to windows.
double m_3DRT_BevelExtentFactor
3D-Viewer raytracing factor applied to Extent.z of the item layer.
double m_OcePluginAngularDeflection
OCE (STEP/IGES) 3D Plugin Tesselation Angular Deflection.
bool m_EnableSnapAnchorsDebug
Enable snap anchors debug visualization.
bool m_ShowPcbnewExportNetlist
Enable exporting board editor netlist to a file for troubleshooting purposes.
int m_ResolveTextRecursionDepth
The number of recursions to resolve text variables.
int m_MaxFilesystemWatchers
Maximum number of filesystem watchers to use.
bool m_DebugPDFWriter
A mode that writes PDFs without compression.
int m_MsgPanelShowUuids
Show UUIDs of items in the message panel.
bool m_EnableCreepageSlot
Enable the minimum slot width check for creepage.
bool m_EnableAPILogging
Log IPC API requests and responses.
bool m_ShowEventCounters
Shows debugging event counters in various places.
bool m_HyperZoom
Slide the zoom steps over for debugging things "up close".
bool m_DrawTriangulationOutlines
Enable drawing the triangulation outlines with a visible color.
bool m_ExtensionSnapActivateOnHover
If extension snaps are enabled, 'activate' items on hover, even if not near a snap point.
double m_MinimumMarkerSeparationDistance
When finding overlapped marker a minium distance (in mm) between two DRC markers required to mark it ...
double m_PcbSelectionVisibilityRatio
Board object selection visibility limit.
int m_3DRT_BevelHeight_um
Set the bevel height of layer items in 3D viewer when ray tracing.
bool m_EnableExtensionSnaps
Enable snap anchors based on item line extensions.
bool m_CompactSave
Save files in compact display mode.
bool m_HideVersionFromTitle
Hide the build version from the KiCad manager frame title.
int m_ExtensionSnapTimeoutMs
If extension snaps are enabled, this is the timeout in milliseconds before a hovered item gets extens...
bool m_EnableEeschemaPrintCairo
Enable Eeschema printing using Cairo.
bool m_DebugZoneFiller
A mode that dumps the various stages of a F_Cu fill into In1_Cu through In9_Cu.
const wxChar *const kicadTraceCoroutineStack
Flag to enable tracing of the coroutine call stack.
List of known groups for advanced configuration options.
static const wxChar V3D_RayTracing[]
List of known keys for advanced configuration options.
static const wxChar DebugPDFWriter[]
static const wxChar HotkeysDumper[]
static const wxChar EnableAPILogging[]
static const wxChar ExtensionSnapActivateOnHover[]
static const wxChar ShowRepairSchematic[]
static const wxChar HideVersionFromTitle[]
static const wxChar AllowManualCanvasScale[]
static const wxChar MaxTangentTrackAngleDeviation[]
static const wxChar MaxTrackLengthToKeep[]
static const wxChar EnableLibDir[]
static const wxChar ShowPcbnewExportNetlist[]
static const wxChar EnableGit[]
static const wxChar EnableLibWithText[]
static const wxChar DrawBoundingBoxes[]
static const wxChar EnableGenerators[]
static const wxChar MinPlotPenWidth[]
static const wxChar CoroutineStackSize[]
static const wxChar HoleWallThickness[]
static const wxChar DRCSliverWidthTolerance[]
static const wxChar DisambiguationTime[]
static const wxChar HyperZoom[]
static const wxChar IncrementalConnectivity[]
static const wxChar MinParallelAngle[]
static const wxChar DebugZoneFiller[]
static const wxChar OcePluginLinearDeflection[]
static const wxChar StrokeTriangulation[]
static const wxChar CompactFileSave[]
static const wxChar EnableExtensionSnaps[]
static const wxChar DRCSliverAngleTolerance[]
static const wxChar UpdateUIEventInterval[]
static const wxChar V3DRT_BevelHeight_um[]
static const wxChar MinorSchematicGraphSize[]
static const wxChar ShowRouterDebugGraphics[]
static const wxChar FontErrorSize[]
static const wxChar DRCEpsilon[]
static const wxChar EnableEeschemaExportClipboardCairo[]
static const wxChar EnableEeschemaPrintCairo[]
static const wxChar EnableSnapAnchorsDebug[]
static const wxChar V3DRT_BevelExtentFactor[]
static const wxChar EnableRouterDump[]
static const wxChar DrawArcAccuracy[]
static const wxChar Skip3DModelMemoryCache[]
static const wxChar TriangulateSimplificationLevel[]
static const wxChar ExtraZoneDisplayModes[]
static const wxChar MaxFileSystemWatchers[]
static const wxChar Skip3DModelFileCache[]
static const wxChar EnableCacheFriendlyFracture[]
static const wxChar HoleWallPaintingMultiplier[]
static const wxChar ResolveTextRecursionDepth[]
static const wxChar SmallDrillMarkSize[]
static const wxChar EnableCreepageSlot[]
static const wxChar DrawArcCenterStartEndMaxAngle[]
static const wxChar ExtraFillMargin[]
static const wxChar PcbSelectionVisibilityRatio[]
static const wxChar TriangulateMinimumArea[]
static const wxChar OcePluginAngularDeflection[]
static const wxChar ExtensionSnapTimeoutMs[]
static const wxChar DRCSliverMinimumLength[]
static const wxChar ShowEventCounters[]
static const wxChar MaximumThreads[]
static const wxChar EnableDesignBlocks[]
static const wxChar TraceMasks[]
static const wxChar Use3DConnexionDriver[]
static const wxChar MsgPanelShowUuids[]
Limits and default settings for the coroutine stack size allowed.
static constexpr int min_stack
static constexpr int max_stack
static constexpr int default_stack
wxLogTrace helper definitions.