Browse Source

Allow schematic symbol value and footprint fields to be instantiated.

7.0
Wayne Stambaugh 3 years ago
parent
commit
0336cff8d6
  1. 4
      eeschema/dialogs/dialog_field_properties.cpp
  2. 5
      eeschema/dialogs/dialog_symbol_properties.cpp

4
eeschema/dialogs/dialog_field_properties.cpp

@ -658,9 +658,9 @@ void DIALOG_SCH_FIELD_PROPERTIES::UpdateField( SCH_FIELD* aField, SCH_SHEET_PATH
if( fieldType == REFERENCE_FIELD )
symbol->SetRef( aSheetPath, m_text );
else if( fieldType == VALUE_FIELD )
symbol->SetValue( m_text );
symbol->SetValue( aSheetPath, m_text );
else if( fieldType == FOOTPRINT_FIELD )
symbol->SetFootprint( m_text );
symbol->SetFootprint( aSheetPath, m_text );
}
else if( parent && parent->Type() == SCH_GLOBAL_LABEL_T )
{

5
eeschema/dialogs/dialog_symbol_properties.cpp

@ -705,8 +705,9 @@ bool DIALOG_SYMBOL_PROPERTIES::TransferDataFromWindow()
// Similar for Value and Footprint, except that the GUI behaviour is that they are kept
// in sync between multiple instances.
m_symbol->SetValue( m_fields->at( VALUE_FIELD ).GetText() );
m_symbol->SetFootprint( m_fields->at( FOOTPRINT_FIELD ).GetText() );
m_symbol->SetValue( &GetParent()->GetCurrentSheet(), m_fields->at( VALUE_FIELD ).GetText() );
m_symbol->SetFootprint( &GetParent()->GetCurrentSheet(),
m_fields->at( FOOTPRINT_FIELD ).GetText() );
m_symbol->SetIncludeInBom( !m_cbExcludeFromBom->IsChecked() );
m_symbol->SetIncludeOnBoard( !m_cbExcludeFromBoard->IsChecked() );

Loading…
Cancel
Save