DIALOG_SPICE_MODEL: expand env var to open lib file selection dialog in the previous selected lib
This commit is contained in:
parent
aefa969931
commit
4df3ba6a56
|
@ -839,7 +839,7 @@ void DIALOG_SPICE_MODEL::loadLibrary( const wxString& aFilePath )
|
|||
{
|
||||
//First, expand env vars, if any
|
||||
wxString libname = ExpandEnvVarSubstitutions( aFilePath, &Prj() );
|
||||
// Add make path absolute, especially if relative to the project path
|
||||
// Make path absolute, especially if it is relative to the project path
|
||||
libname = Prj().AbsolutePath( libname );
|
||||
|
||||
wxString curModel = m_modelName->GetValue();
|
||||
|
@ -1012,7 +1012,12 @@ bool DIALOG_SPICE_MODEL::addPwlValue( const wxString& aTime, const wxString& aVa
|
|||
|
||||
void DIALOG_SPICE_MODEL::onSelectLibrary( wxCommandEvent& event )
|
||||
{
|
||||
wxString searchPath = wxFileName( m_modelLibrary->GetValue() ).GetPath();
|
||||
//First, expand env vars, if any, in lib path
|
||||
wxString libname = ExpandEnvVarSubstitutions( m_modelLibrary->GetValue(), &Prj() );
|
||||
// Make path absolute, especially if it is relative to the project path
|
||||
libname = Prj().AbsolutePath( libname );
|
||||
|
||||
wxString searchPath = wxFileName( libname ).GetPath();
|
||||
|
||||
if( searchPath.IsEmpty() )
|
||||
searchPath = Prj().GetProjectPath();
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
<property name="file">dialog_spice_model_base</property>
|
||||
<property name="first_id">1000</property>
|
||||
<property name="help_provider">none</property>
|
||||
<property name="image_path_wrapper_function_name"></property>
|
||||
<property name="indent_with_spaces"></property>
|
||||
<property name="internationalize">1</property>
|
||||
<property name="name">DIALOG_SPICE_MODEL_BASE</property>
|
||||
|
@ -26,7 +25,6 @@
|
|||
<property name="skip_php_events">1</property>
|
||||
<property name="skip_python_events">1</property>
|
||||
<property name="ui_table">UI</property>
|
||||
<property name="use_array_enum">0</property>
|
||||
<property name="use_enum">0</property>
|
||||
<property name="use_microsoft_bom">0</property>
|
||||
<object class="Dialog" expanded="1">
|
||||
|
@ -2651,7 +2649,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
@ -7939,7 +7936,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
@ -8075,7 +8071,6 @@
|
|||
<property name="aui_name"></property>
|
||||
<property name="aui_position"></property>
|
||||
<property name="aui_row"></property>
|
||||
<property name="auth_needed">0</property>
|
||||
<property name="best_size"></property>
|
||||
<property name="bg"></property>
|
||||
<property name="bitmap"></property>
|
||||
|
|
Loading…
Reference in New Issue