| 
    KiCad PCB EDA Suite
    
   | 
 
Functions | |
| KICOMMON_API bool | IsEnvVarImmutable (const wxString &aEnvVar) | 
| Determine if an environment variable is "predefined", i.e.   | |
| KICOMMON_API const std::vector< wxString > & | GetPredefinedEnvVars () | 
| Get the list of pre-defined environment variables.   | |
| KICOMMON_API void | GetEnvVarAutocompleteTokens (wxArrayString *aVars) | 
| Return autocomplete tokens for environment variables for Scintilla.   | |
| KICOMMON_API wxString | GetVersionedEnvVarName (const wxString &aBaseName) | 
| Construct a versioned environment variable based on this KiCad major version.   | |
| KICOMMON_API std::optional< wxString > | GetVersionedEnvVarValue (const std::map< wxString, ENV_VAR_ITEM > &aMap, const wxString &aBaseName) | 
| Attempt to retrieve the value of a versioned environment variable, such as KICAD8_TEMPLATE_DIR.   | |
| KICOMMON_API wxString | LookUpEnvVarHelp (const wxString &aEnvVar) | 
| Look up long-form help text for a given environment variable.   | |
| template<typename VAL_TYPE> | |
| KICOMMON_API std::optional< VAL_TYPE > | GetEnvVar (const wxString &aEnvVarName) | 
| Get an environment variable as a specific type, if set correctly.   | |
| template<> | |
| KICOMMON_API std::optional< wxString > | GetEnvVar (const wxString &aEnvVarName) | 
| Get a string environment variable, if it is set.   | |
| template<> | |
| KICOMMON_API std::optional< double > | GetEnvVar (const wxString &aEnvVarName) | 
| Get a double from an environment variable, if set.   | |
| KICOMMON_API std::optional< VAL_TYPE > ENV_VAR::GetEnvVar | ( | const wxString & | aEnvVarName | ) | 
Get an environment variable as a specific type, if set correctly.
| aEnvVarName | the name of the environment variable. | 
References KICOMMON_API.
Referenced by getEnvironmentScale(), and KIwxExpandEnvVars().
| std::optional< wxString > ENV_VAR::GetEnvVar | ( | const wxString & | aEnvVarName | ) | 
Get a string environment variable, if it is set.
| aEnvVarName | the name of the environment variable | 
Definition at line 164 of file env_vars.cpp.
| KICOMMON_API std::optional< double > ENV_VAR::GetEnvVar | ( | const wxString & | aEnvVarName | ) | 
Get a double from an environment variable, if set.
| aEnvVarName | the name of the environment variable | 
References KICOMMON_API.
| void ENV_VAR::GetEnvVarAutocompleteTokens | ( | wxArrayString * | aVars | ) | 
Return autocomplete tokens for environment variables for Scintilla.
Definition at line 67 of file env_vars.cpp.
References alg::contains(), and GetPredefinedEnvVars().
Referenced by DIALOG_EXECUTECOMMAND_JOB_SETTINGS::DIALOG_EXECUTECOMMAND_JOB_SETTINGS().
| const std::vector< wxString > & ENV_VAR::GetPredefinedEnvVars | ( | ) | 
Get the list of pre-defined environment variables.
Definition at line 61 of file env_vars.cpp.
References predefinedEnvVars.
Referenced by GetEnvVarAutocompleteTokens(), KIwxExpandEnvVars(), and DIALOG_CONFIGURE_PATHS::OnHelp().
| wxString ENV_VAR::GetVersionedEnvVarName | ( | const wxString & | aBaseName | ) | 
Construct a versioned environment variable based on this KiCad major version.
| aBaseName | is the suffix, like TEMPLATE_DIR. | 
Definition at line 77 of file env_vars.cpp.
References GetMajorMinorPatchTuple().
Referenced by FILENAME_RESOLVER::addPath(), PCM_LIB_TRAVERSER::addRowIfNecessary(), FILENAME_RESOLVER::GetKicadPaths(), GetVersionedEnvVarValue(), DESIGN_BLOCK_LIBRARY_ADAPTER::GlobalPathEnvVariableName(), FP_LIB_TABLE::GlobalPathEnvVariableName(), SYMBOL_LIBRARY_ADAPTER::GlobalPathEnvVariableName(), initialiseEnvVarHelp(), COMMON_SETTINGS::InitializeEnvironment(), SETTINGS_MANAGER::loadAllColorSettings(), PANEL_FP_PROPERTIES_3D_MODEL::OnAdd3DModel(), PCM_FP_LIB_TRAVERSER::OnDir(), PANEL_FP_PROPERTIES_3D_MODEL::PANEL_FP_PROPERTIES_3D_MODEL(), PANEL_DESIGN_BLOCK_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_FP_LIB_TABLE::populateEnvironReadOnlyTable(), PANEL_SYM_LIB_TABLE::populateEnvironReadOnlyTable(), COMMON_SETTINGS::readLegacy3DResolverCfg(), PANEL_FP_PROPERTIES_3D_MODEL::ReloadModelsFromFootprint(), and FILENAME_RESOLVER::ResolvePath().
| std::optional< wxString > ENV_VAR::GetVersionedEnvVarValue | ( | const std::map< wxString, ENV_VAR_ITEM > & | aMap, | 
| const wxString & | aBaseName ) | 
Attempt to retrieve the value of a versioned environment variable, such as KICAD8_TEMPLATE_DIR.
If this value exists in the map, it will be returned. If not, the map will be searched for keys matching KICAD*_<aBaseName>, and the first match's value will be returned. If there are no matches, std::nullopt will be returned.
| aMap | is an ENV_VAR_MAP ( | 
| aBaseName | is the suffix for the environment variable ( | 
Definition at line 86 of file env_vars.cpp.
References GetVersionedEnvVarName().
Referenced by FP_LIB_TABLE::LoadGlobalTable(), LIBRARY_MANAGER::LoadGlobalTables(), KICAD_MANAGER_CONTROL::NewProject(), PGM_KICAD::OnPgmInit(), PLUGIN_CONTENT_MANAGER::ReadEnvVar(), and API_PLUGIN_MANAGER::ReloadPlugins().
| bool ENV_VAR::IsEnvVarImmutable | ( | const wxString & | aEnvVar | ) | 
Determine if an environment variable is "predefined", i.e.
if the name of the variable is special to KiCad, and isn't just a user-specified substitution name.
| aEnvVar | the variable to check. | 
Definition at line 49 of file env_vars.cpp.
References predefinedEnvVars.
Referenced by DIALOG_CONFIGURE_PATHS::AppendEnvVar(), and DIALOG_CONFIGURE_PATHS::OnRemoveEnvVar().
| wxString ENV_VAR::LookUpEnvVarHelp | ( | const wxString & | aEnvVar | ) | 
Look up long-form help text for a given environment variable.
This is intended for use in more verbose help resources (as opposed to tooltip text).
| aEnvVar | The variable to look up. | 
Definition at line 152 of file env_vars.cpp.
References initialiseEnvVarHelp().
Referenced by DIALOG_CONFIGURE_PATHS::OnHelp().