Formatting.

This commit is contained in:
Jeff Young 2023-04-22 21:17:52 +01:00
parent c381b6d024
commit c2cc27c25c
2 changed files with 11 additions and 11 deletions

View File

@ -483,10 +483,9 @@ void NETLIST_EXPORTER_SPICE::readModel( SCH_SHEET_PATH& aSheet, SCH_SYMBOL& aSym
if( !cacheFile.IsOpened() ) if( !cacheFile.IsOpened() )
{ {
DisplayErrorMessage( m_dialogParent, DisplayErrorMessage( m_dialogParent, wxString::Format( _( "Could not open file '%s' "
wxString::Format( _( "Could not open file '%s' to write " "to write IBIS model" ),
"IBIS model" ), cacheFn.GetFullPath() ) );
cacheFn.GetFullPath() ) );
} }
auto spiceGenerator = static_cast<const SPICE_GENERATOR_KIBIS&>( kibisModel->SpiceGenerator() ); auto spiceGenerator = static_cast<const SPICE_GENERATOR_KIBIS&>( kibisModel->SpiceGenerator() );
@ -538,9 +537,9 @@ void NETLIST_EXPORTER_SPICE::writeInclude( OUTPUTFORMATTER& aFormatter, unsigned
if( fullPath.IsEmpty() ) if( fullPath.IsEmpty() )
{ {
DisplayErrorMessage( m_dialogParent, DisplayErrorMessage( m_dialogParent, wxString::Format( _( "Could not find library file "
wxString::Format( _( "Could not find library file '%s'" ), "'%s'" ),
expandedPath ) ); expandedPath ) );
fullPath = expandedPath; fullPath = expandedPath;
} }
else if( wxFileName::GetPathSeparator() == '\\' ) else if( wxFileName::GetPathSeparator() == '\\' )

View File

@ -2,6 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2021 CERN * Copyright (C) 2021 CERN
* Copyright (C) 2021-2023 KiCad Developers, see AUTHORS.txt for contributors.
* *
* @author Wayne Stambaugh <stambaughw@gmail.com> * @author Wayne Stambaugh <stambaughw@gmail.com>
* *
@ -47,10 +48,10 @@ bool SPICE_SIMULATOR_SETTINGS::operator==( const SPICE_SIMULATOR_SETTINGS &aRhs
} }
NGSPICE_SIMULATOR_SETTINGS::NGSPICE_SIMULATOR_SETTINGS( NGSPICE_SIMULATOR_SETTINGS::NGSPICE_SIMULATOR_SETTINGS( JSON_SETTINGS* aParent,
JSON_SETTINGS* aParent, const std::string& aPath ) : const std::string& aPath ) :
SPICE_SIMULATOR_SETTINGS( aParent, aPath ), SPICE_SIMULATOR_SETTINGS( aParent, aPath ),
m_modelMode( NGSPICE_MODEL_MODE::LT_PSPICE ) m_modelMode( NGSPICE_MODEL_MODE::LT_PSPICE )
{ {
m_params.emplace_back( new PARAM_ENUM<NGSPICE_MODEL_MODE>( "model_mode", &m_modelMode, m_params.emplace_back( new PARAM_ENUM<NGSPICE_MODEL_MODE>( "model_mode", &m_modelMode,
NGSPICE_MODEL_MODE::LT_PSPICE, NGSPICE_MODEL_MODE::LT_PSPICE,