KiCad PCB EDA Suite
dialog_edit_component_in_schematic.cpp File Reference
#include <wx/tooltip.h>
#include <wx/hyperlink.h>
#include <wx/url.h>
#include <fctsys.h>
#include <pgm_base.h>
#include <kiway.h>
#include <gr_basic.h>
#include <class_drawpanel.h>
#include <confirm.h>
#include <class_sch_screen.h>
#include <schframe.h>
#include <base_units.h>
#include <general.h>
#include <sch_base_frame.h>
#include <class_library.h>
#include <sch_component.h>
#include <dialog_helpers.h>
#include <sch_validators.h>
#include <dialog_edit_component_in_schematic_fbp.h>
#include "common.h"
#include <kicad_device_context.h>

Go to the source code of this file.

Classes

class  DIALOG_EDIT_COMPONENT_IN_SCHEMATIC
 class DIALOG_EDIT_COMPONENT_IN_SCHEMATIC is hand coded and implements DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP which is maintained by wxFormBuilder. More...
 

Functions

static wxString resolveUriByEnvVars (const wxString &aUri)
 

Function Documentation

static wxString resolveUriByEnvVars ( const wxString &  aUri)
static

Definition at line 560 of file dialog_edit_component_in_schematic.cpp.

References ExpandEnvVarSubstitutions().

Referenced by DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::showButtonHandler().

561 {
562  // URL-like URI: return as is.
563  wxURL url( aUri );
564  if( url.GetError() == wxURL_NOERR )
565  {
566  return aUri;
567  }
568  // Otherwise, the path points to a local file. Resolve environment
569  // variables if any.
570  return ExpandEnvVarSubstitutions( aUri );
571 }
const wxString ExpandEnvVarSubstitutions(const wxString &aString)
Function ExpandEnvVarSubstitutions replaces any environment variable references with their values...
Definition: common.cpp:254