Symbols: add ${EXCLUDE_FROM_SIM} variable to match the other attributes
This commit is contained in:
parent
df04171234
commit
8fb316f995
|
@ -1186,6 +1186,7 @@ void SCH_SYMBOL::GetContextualTextVars( wxArrayString* aVars ) const
|
|||
aVars->push_back( wxT( "SYMBOL_KEYWORDS" ) );
|
||||
aVars->push_back( wxT( "EXCLUDE_FROM_BOM" ) );
|
||||
aVars->push_back( wxT( "EXCLUDE_FROM_BOARD" ) );
|
||||
aVars->push_back( wxT( "EXCLUDE_FROM_SIM" ) );
|
||||
aVars->push_back( wxT( "DNP" ) );
|
||||
}
|
||||
|
||||
|
@ -1328,6 +1329,12 @@ bool SCH_SYMBOL::ResolveTextVar( const SCH_SHEET_PATH* aPath, wxString* token, i
|
|||
: wxString( wxT( "" ) );
|
||||
return true;
|
||||
}
|
||||
else if( token->IsSameAs( wxT( "EXCLUDE_FROM_SIM" ) ) )
|
||||
{
|
||||
*token = this->GetExcludeFromSim() ? _( "Excluded from simulation" )
|
||||
: wxString( wxT( "" ) );
|
||||
return true;
|
||||
}
|
||||
else if( token->IsSameAs( wxT( "DNP" ) ) )
|
||||
{
|
||||
*token = this->GetDNP() ? _( "DNP" ) : wxString( wxT( "" ) );
|
||||
|
|
|
@ -458,7 +458,7 @@ public:
|
|||
*
|
||||
* @param aFieldName is the name of the field to find.
|
||||
* @param aIncludeDefaultFields searches the library symbol default fields if true.
|
||||
* @param aCaseInsensitive ignore the filed name case if true.
|
||||
* @param aCaseInsensitive ignore the filed name case if true.
|
||||
*
|
||||
* @return the field if found or NULL if the field was not found.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue