Symbol editor: fix message panel units when selecting from combo box.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8991
This commit is contained in:
parent
eefac5cc59
commit
1d8fd22cd8
|
@ -158,7 +158,7 @@ SYMBOL_EDIT_FRAME::SYMBOL_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
|||
ReCreateOptToolbar();
|
||||
|
||||
updateTitle();
|
||||
DisplaySymbolDatasheet();
|
||||
UpdateSymbolMsgPanelInfo();
|
||||
RebuildSymbolUnitsList();
|
||||
|
||||
m_auimgr.SetManagedWindow( this );
|
||||
|
@ -629,6 +629,7 @@ void SYMBOL_EDIT_FRAME::OnSelectUnit( wxCommandEvent& event )
|
|||
|
||||
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
|
||||
RebuildView();
|
||||
UpdateSymbolMsgPanelInfo();
|
||||
}
|
||||
|
||||
|
||||
|
@ -1330,7 +1331,7 @@ void SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic( SCH_SYMBOL* aSymbol )
|
|||
updateTitle();
|
||||
RebuildSymbolUnitsList();
|
||||
SetShowDeMorgan( GetCurSymbol()->HasConversion() );
|
||||
DisplaySymbolDatasheet();
|
||||
UpdateSymbolMsgPanelInfo();
|
||||
Refresh();
|
||||
}
|
||||
|
||||
|
|
|
@ -229,7 +229,7 @@ public:
|
|||
|
||||
void ClearMsgPanel() override
|
||||
{
|
||||
DisplaySymbolDatasheet();
|
||||
UpdateSymbolMsgPanelInfo();
|
||||
}
|
||||
|
||||
bool IsSymbolFromSchematic() const { return m_isSymbolFromSchematic; }
|
||||
|
@ -239,7 +239,7 @@ public:
|
|||
/**
|
||||
* Display the documentation of the selected symbol.
|
||||
*/
|
||||
void DisplaySymbolDatasheet();
|
||||
void UpdateSymbolMsgPanelInfo();
|
||||
|
||||
// General editing
|
||||
/**
|
||||
|
|
|
@ -365,7 +365,7 @@ bool SYMBOL_EDIT_FRAME::LoadOneLibrarySymbolAux( LIB_SYMBOL* aEntry, const wxStr
|
|||
|
||||
// Display the document information based on the entry selected just in
|
||||
// case the entry is an alias.
|
||||
DisplaySymbolDatasheet();
|
||||
UpdateMsgPanel();
|
||||
Refresh();
|
||||
|
||||
return true;
|
||||
|
@ -727,7 +727,7 @@ void SYMBOL_EDIT_FRAME::UpdateAfterSymbolProperties( wxString* aOldName )
|
|||
RebuildSymbolUnitsList();
|
||||
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
|
||||
updateTitle();
|
||||
DisplaySymbolDatasheet();
|
||||
UpdateMsgPanel();
|
||||
|
||||
RebuildView();
|
||||
OnModify();
|
||||
|
@ -1184,7 +1184,7 @@ bool SYMBOL_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
|
|||
}
|
||||
|
||||
|
||||
void SYMBOL_EDIT_FRAME::DisplaySymbolDatasheet()
|
||||
void SYMBOL_EDIT_FRAME::UpdateSymbolMsgPanelInfo()
|
||||
{
|
||||
EDA_DRAW_FRAME::ClearMsgPanel();
|
||||
|
||||
|
|
|
@ -549,7 +549,7 @@ void SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties( LIB_FIELD* aField )
|
|||
updateItem( aField, true );
|
||||
m_frame->GetCanvas()->Refresh();
|
||||
m_frame->OnModify();
|
||||
m_frame->DisplaySymbolDatasheet();
|
||||
m_frame->UpdateSymbolMsgPanelInfo();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue