29 #include <wx/config.h> 30 #include <wx/filename.h> 166 wxString s = aParam.
m_Ident +
": ";
177 s << *static_cast<const PARAM_CFG_INT&>( aParam ).m_Pt_param;
180 s << *static_cast<const PARAM_CFG_DOUBLE&>( aParam ).m_Pt_param;
183 s << *static_cast<const PARAM_CFG_WXSTRING&>( aParam ).m_Pt_param;
186 s << *static_cast<const PARAM_CFG_FILENAME&>( aParam ).m_Pt_param;
189 s << ( *static_cast<const PARAM_CFG_BOOL&>( aParam ).m_Pt_param ?
"true" :
"false" );
191 default: s <<
"Unsupported PARAM_CFG variant: " << aParam.
m_Type;
201 static void dumpCfg(
const std::vector<PARAM_CFG*>& aArray )
221 const static wxString cfg_filename{
"kicad_advanced" };
271 if( !k_advanced.FileExists() )
276 wxConfig emptyConfig;
282 wxLogTrace(
AdvancedConfigMask,
"Loading advanced config from: %s", k_advanced.GetFullPath() );
284 wxFileConfig file_cfg(
"",
"", k_advanced.GetFullPath() );
291 std::vector<PARAM_CFG*> configParams;
Limits and default settings for the coroutine stack size allowed.
bool m_CompactSave
Save files in compact display mode When is is not specified, points are written one per line.
bool m_PluginAltiumSch
When true, enable Altium Schematic import (*.SchDoc) the current implementation is highly incomplete.
void wxConfigLoadSetups(wxConfigBase *aCfg, const std::vector< PARAM_CFG * > &aList)
Use aList of PARAM_CFG object to load configuration values from aCfg.
static const wxChar DrawArcAccuracy[]
For drawsegments - arcs.
wxString m_Ident
Keyword in config data.
List of known keys for advanced configuration options.
static const wxChar HoleWallThickness[]
Used to calculate the actual hole size from the finish hole size.
Configuration object for double precision floating point numbers.
bool m_DrawTriangulationOutlines
When true, strokes the triangulations with visible color.
double m_DrawArcCenterMaxAngle
When drawing an arc, the angle ( center - start ) - ( start - end ) can be limited to avoid extremely...
static const wxChar DrawArcCenterStartEndMaxAngle[]
For drawsegments - arcs.
double m_DrawArcAccuracy
Distance from an arc end point and the estimated end point, when rotating from the start point to the...
bool m_ShowRouterDebugGraphics
Show PNS router debug graphics.
double m_SmallDrillMarkSize
The diameter of the drill marks on print and plot outputs (in mm), when the "Drill marks" option is s...
static const wxChar RealtimeConnectivity[]
Testing mode for new connectivity algorithm.
static const wxChar DRCEpsilon[]
A fudge factor for DRC.
static const wxChar DebugPDFWriter[]
static void dumpCfg(const std::vector< PARAM_CFG * > &aArray)
Dump the configs in the given array to trace.
void loadSettings(wxConfigBase &aCfg)
Configuration object for integers.
void loadFromConfigFile()
Load the config from the normal config file.
wxString dumpParamCfg(const PARAM_CFG &aParam)
Configuration object for booleans.
static const wxChar SmallDrillMarkSize[]
The diameter of the drill marks on print and plot outputs (in mm), when the "Drill marks" option is s...
static const wxChar DrawBoundingBoxes[]
double m_ExtraClearance
Extra fill clearance for zone fills.
double m_DRCEpsilon
Epsilon for DRC tests.
bool m_HotkeysDumper
Enable the hotkeys dumper feature, used for generating documentation.
double m_MinPlotPenWidth
Sets an absolute minimum pen width for plotting.
static wxString GetUserSettingsPath()
Return the user configuration path used to store KiCad's configuration files.
static const wxChar MinPlotPenWidth[]
Absolute minimum pen width to send to the plotter.
static wxFileName getAdvancedCfgFilename()
Get the filename for the advanced config file.
Class containing "advanced" configuration options.
bool m_DrawBoundingBoxes
Draw GAL bounding boxes in painters.
int m_CoroutineStackSize
Set the stack size for coroutines.
bool m_DebugPDFWriter
A mode that writes PDFs without compression.
A base class which establishes the interface functions ReadParam and SaveParam, which are implemented...
static const wxChar CoroutineStackSize[]
Configure the coroutine stack size in bytes.
paramcfg_id m_Type
Type of parameter.
static const wxChar HotkeysDumper[]
static constexpr int default_stack
static const wxChar StrokeTriangulation[]
When true, GAL will stroke the triangulations (only used in OpenGL) with a visible color.
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
static const wxChar DebugZoneFiller[]
static const wxChar PluginAltiumSch[]
When true, enable Altium Schematic import (*.SchDoc)
static constexpr int max_stack
static const wxChar ShowRouterDebugGraphics[]
Show PNS router debug graphics while routing.
bool m_RealTimeConnectivity
Do real-time connectivity.
bool m_DebugZoneFiller
A mode that dumps the various stages of a F_Cu fill into In1_Cu through In9_Cu.
static const wxChar CompactFileSave[]
When set to true, this will wrap polygon point sets at 4 points per line rather than a single point p...
static constexpr int min_stack
static const wxChar ExtraFillMargin[]
When filling zones, we add an extra amount of clearance to each zone to ensure that rounding errors d...
static const wxChar AdvancedConfigMask[]
double m_HoleWallThickness
Hole wall plating thickness.