diff --git a/eeschema/dialogs/dialog_lib_new_symbol.cpp b/eeschema/dialogs/dialog_lib_new_symbol.cpp index eb9a77b965..5ec71ceb29 100644 --- a/eeschema/dialogs/dialog_lib_new_symbol.cpp +++ b/eeschema/dialogs/dialog_lib_new_symbol.cpp @@ -71,7 +71,7 @@ void DIALOG_LIB_NEW_SYMBOL::syncControls( bool aIsDerivedPart ) m_textReference->Enable( !aIsDerivedPart ); m_staticTextUnits->Enable( !aIsDerivedPart ); m_spinPartCount->Enable( !aIsDerivedPart ); - m_checkLockItems->Enable( !aIsDerivedPart ); + m_checkUnitsInterchangeable->Enable( !aIsDerivedPart ); m_checkHasConversion->Enable( !aIsDerivedPart ); m_checkIsPowerSymbol->Enable( !aIsDerivedPart ); m_excludeFromBomCheckBox->Enable( !aIsDerivedPart ); diff --git a/eeschema/dialogs/dialog_lib_new_symbol.h b/eeschema/dialogs/dialog_lib_new_symbol.h index 89be991f7c..e9bb71d743 100644 --- a/eeschema/dialogs/dialog_lib_new_symbol.h +++ b/eeschema/dialogs/dialog_lib_new_symbol.h @@ -65,8 +65,8 @@ public: void SetPowerSymbol( bool enable ) { m_checkIsPowerSymbol->SetValue( enable ); } bool GetPowerSymbol( void ) { return m_checkIsPowerSymbol->GetValue(); } - void SetLockItems( bool enable ) { m_checkLockItems->SetValue( enable ); } - bool GetLockItems( void ) { return m_checkLockItems->GetValue(); } + void SetUnitsInterchangeable( bool enable ) { m_checkUnitsInterchangeable->SetValue( enable ); } + bool GetUnitsInterchangeable( void ) { return m_checkUnitsInterchangeable->GetValue(); } void SetIncludeInBom( bool aInclude ) { m_excludeFromBomCheckBox->SetValue( !aInclude ); } bool GetIncludeInBom() const { return !m_excludeFromBomCheckBox->GetValue(); } diff --git a/eeschema/dialogs/dialog_lib_new_symbol_base.cpp b/eeschema/dialogs/dialog_lib_new_symbol_base.cpp index 7e9101e747..5ab39bec69 100644 --- a/eeschema/dialogs/dialog_lib_new_symbol_base.cpp +++ b/eeschema/dialogs/dialog_lib_new_symbol_base.cpp @@ -68,10 +68,10 @@ DIALOG_LIB_NEW_SYMBOL_BASE::DIALOG_LIB_NEW_SYMBOL_BASE( wxWindow* parent, wxWind wxBoxSizer* bSizer17; bSizer17 = new wxBoxSizer( wxVERTICAL ); - m_checkLockItems = new wxCheckBox( this, wxID_ANY, _("Units are not interchangeable"), wxDefaultPosition, wxDefaultSize, 0 ); - m_checkLockItems->SetToolTip( _("Check this option to allow symbols with multiple units to have different\nelements. Uncheck this option when all symbol units are identical except\nfor pin numbers.") ); + m_checkUnitsInterchangeable = new wxCheckBox( this, wxID_ANY, _("All units are interchangeable"), wxDefaultPosition, wxDefaultSize, 0 ); + m_checkUnitsInterchangeable->SetToolTip( _("Check this option to allow symbols with multiple units to have different\nelements. Uncheck this option when all symbol units are identical except\nfor pin numbers.") ); - bSizer17->Add( m_checkLockItems, 0, wxRIGHT|wxLEFT, 5 ); + bSizer17->Add( m_checkUnitsInterchangeable, 0, wxRIGHT|wxLEFT, 5 ); m_checkHasConversion = new wxCheckBox( this, wxID_ANY, _("Create symbol with alternate body style (De Morgan)"), wxDefaultPosition, wxDefaultSize, 0 ); bSizer17->Add( m_checkHasConversion, 0, wxTOP|wxRIGHT|wxLEFT, 5 ); diff --git a/eeschema/dialogs/dialog_lib_new_symbol_base.fbp b/eeschema/dialogs/dialog_lib_new_symbol_base.fbp index e3122420c4..a77075ecb4 100644 --- a/eeschema/dialogs/dialog_lib_new_symbol_base.fbp +++ b/eeschema/dialogs/dialog_lib_new_symbol_base.fbp @@ -627,7 +627,7 @@ 0 0 wxID_ANY - Units are not interchangeable + All units are interchangeable 0 @@ -635,7 +635,7 @@ 0 1 - m_checkLockItems + m_checkUnitsInterchangeable 1 diff --git a/eeschema/dialogs/dialog_lib_new_symbol_base.h b/eeschema/dialogs/dialog_lib_new_symbol_base.h index 6bb1e1600a..375cdf3833 100644 --- a/eeschema/dialogs/dialog_lib_new_symbol_base.h +++ b/eeschema/dialogs/dialog_lib_new_symbol_base.h @@ -49,7 +49,7 @@ class DIALOG_LIB_NEW_SYMBOL_BASE : public DIALOG_SHIM wxTextCtrl* m_textReference; wxStaticText* m_staticTextUnits; wxSpinCtrl* m_spinPartCount; - wxCheckBox* m_checkLockItems; + wxCheckBox* m_checkUnitsInterchangeable; wxCheckBox* m_checkHasConversion; wxCheckBox* m_checkIsPowerSymbol; wxCheckBox* m_excludeFromBomCheckBox; diff --git a/eeschema/symbol_editor/symbol_editor.cpp b/eeschema/symbol_editor/symbol_editor.cpp index 1b1c9eb655..6f374d8905 100644 --- a/eeschema/symbol_editor/symbol_editor.cpp +++ b/eeschema/symbol_editor/symbol_editor.cpp @@ -481,7 +481,7 @@ void SYMBOL_EDIT_FRAME::CreateNewSymbol() ( dlg.GetPowerSymbol() ) ? new_symbol.SetPower() : new_symbol.SetNormal(); new_symbol.SetShowPinNumbers( dlg.GetShowPinNumber() ); new_symbol.SetShowPinNames( dlg.GetShowPinName() ); - new_symbol.LockUnits( dlg.GetLockItems() ); + new_symbol.LockUnits( !dlg.GetUnitsInterchangeable() ); new_symbol.SetIncludeInBom( dlg.GetIncludeInBom() ); new_symbol.SetIncludeOnBoard( dlg.GetIncludeOnBoard() );