KiCad PCB EDA Suite
|
Go to the source code of this file.
Functions | |
static bool | normalizeAbsolutePaths (const wxFileName &aPathA, const wxFileName &aPathB, wxString *aResultPath) |
wxString | NormalizePath (const wxFileName &aFilePath, const ENV_VAR_MAP *aEnvVars, const wxString &aProjectPath) |
Normalize a file path to an environmental variable, if possible. | |
wxString | NormalizePath (const wxFileName &aFilePath, const ENV_VAR_MAP *aEnvVars, const PROJECT *aProject) |
Normalize a file path to an environmental variable, if possible. | |
static wxString | createFilePath (const wxString &aPath, const wxString &aFileName) |
wxString | ResolveFile (const wxString &aFileName, const ENV_VAR_MAP *aEnvVars, const PROJECT *aProject) |
Search the default paths trying to find one with the requested file. | |
bool | PathIsInsideProject (const wxString &aFileName, const PROJECT *aProject, wxFileName *aSubPath) |
|
static |
|
static |
Definition at line 27 of file env_paths.cpp.
Referenced by NormalizePath().
wxString NormalizePath | ( | const wxFileName & | aFilePath, |
const ENV_VAR_MAP * | aEnvVars, | ||
const PROJECT * | aProject | ||
) |
Normalize a file path to an environmental variable, if possible.
aFilePath | is the full file path (path and file name) to be normalized. |
aEnvVars | is an optional map of environmental variables to try substitution with. |
aProject | is an optional project, to normalize the file path to the project path. |
Definition at line 140 of file env_paths.cpp.
References PROJECT::GetProjectPath(), and NormalizePath().
wxString NormalizePath | ( | const wxFileName & | aFilePath, |
const ENV_VAR_MAP * | aEnvVars, | ||
const wxString & | aProjectPath | ||
) |
Normalize a file path to an environmental variable, if possible.
aFilePath | is the full file path (path and file name) to be normalized. |
aEnvVars | is an optional map of environmental variables to try substitution with. |
aProjectPath | is an optional string to normalize the file path to the project path. |
Definition at line 71 of file env_paths.cpp.
References normalizeAbsolutePaths(), and PROJECT_VAR_NAME.
Referenced by SCH_EDIT_FRAME::AddDesignBlockLibrary(), SYMBOL_LIBRARY_MANAGER::addLibrary(), PCB_BASE_EDIT_FRAME::AddLibrary(), SYMBOL_EDIT_FRAME::addLibTableEntry(), PANEL_DESIGN_BLOCK_LIB_TABLE::browseLibrariesHandler(), PANEL_FP_LIB_TABLE::browseLibrariesHandler(), PANEL_SYM_LIB_TABLE::browseLibrariesHandler(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), NormalizePath(), TEXT_BUTTON_FILE_BROWSER::OnButtonClick(), PANEL_SYM_LIB_TABLE::onConvertLegacyLibraries(), PANEL_DESIGN_BLOCK_LIB_TABLE::onMigrateLibraries(), PANEL_FP_LIB_TABLE::onMigrateLibraries(), DIALOG_PAGES_SETTINGS::OnWksFileSelection(), and SYMBOL_EDIT_FRAME::replaceLibTableEntry().
bool PathIsInsideProject | ( | const wxString & | aFileName, |
const PROJECT * | aProject, | ||
wxFileName * | aSubPath | ||
) |
Definition at line 195 of file env_paths.cpp.
References PROJECT::GetProjectPath().
wxString ResolveFile | ( | const wxString & | aFileName, |
const ENV_VAR_MAP * | aEnvVars, | ||
const PROJECT * | aProject | ||
) |
Search the default paths trying to find one with the requested file.
aFileName | is the name of the searched file. It might be a relative path. |
aEnvVars | is an optional map of environmental variables that can contain paths. |
aProject | is an optional project, to check the project path. |
Definition at line 164 of file env_paths.cpp.
References createFilePath(), and PROJECT::GetProjectPath().
Referenced by NETLIST_EXPORTER_SPICE::writeInclude().