KICADPCB::KICADPCB() { wxFileName cfgdir( GetKicadConfigPath(), "" ); cfgdir.AppendDir( "3d" ); m_resolver.Set3DConfigDir( cfgdir.GetPath() ); m_thickness = 1.6; m_pcb = NULL; return; }
wxConfigBase* GetNewConfig( const wxString& aProgName ) { wxConfigBase* cfg = 0; wxFileName configname; configname.AssignDir( GetKicadConfigPath() ); configname.SetFullName( aProgName ); cfg = new wxFileConfig( wxT( "" ), wxT( "" ), configname.GetFullPath() ); return cfg; }
/** * Get the filename for the advanced config file * * The user must check the file exists if they care. */ static wxFileName getAdvancedCfgFilename() { const static wxString cfg_filename{ "kicad_advanced" }; return wxFileName( GetKicadConfigPath(), cfg_filename ); }