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();
|
ReCreateOptToolbar();
|
||||||
|
|
||||||
updateTitle();
|
updateTitle();
|
||||||
DisplaySymbolDatasheet();
|
UpdateSymbolMsgPanelInfo();
|
||||||
RebuildSymbolUnitsList();
|
RebuildSymbolUnitsList();
|
||||||
|
|
||||||
m_auimgr.SetManagedWindow( this );
|
m_auimgr.SetManagedWindow( this );
|
||||||
|
@ -629,6 +629,7 @@ void SYMBOL_EDIT_FRAME::OnSelectUnit( wxCommandEvent& event )
|
||||||
|
|
||||||
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
|
m_toolManager->ResetTools( TOOL_BASE::MODEL_RELOAD );
|
||||||
RebuildView();
|
RebuildView();
|
||||||
|
UpdateSymbolMsgPanelInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1330,7 +1331,7 @@ void SYMBOL_EDIT_FRAME::LoadSymbolFromSchematic( SCH_SYMBOL* aSymbol )
|
||||||
updateTitle();
|
updateTitle();
|
||||||
RebuildSymbolUnitsList();
|
RebuildSymbolUnitsList();
|
||||||
SetShowDeMorgan( GetCurSymbol()->HasConversion() );
|
SetShowDeMorgan( GetCurSymbol()->HasConversion() );
|
||||||
DisplaySymbolDatasheet();
|
UpdateSymbolMsgPanelInfo();
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -229,7 +229,7 @@ public:
|
||||||
|
|
||||||
void ClearMsgPanel() override
|
void ClearMsgPanel() override
|
||||||
{
|
{
|
||||||
DisplaySymbolDatasheet();
|
UpdateSymbolMsgPanelInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsSymbolFromSchematic() const { return m_isSymbolFromSchematic; }
|
bool IsSymbolFromSchematic() const { return m_isSymbolFromSchematic; }
|
||||||
|
@ -239,7 +239,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Display the documentation of the selected symbol.
|
* Display the documentation of the selected symbol.
|
||||||
*/
|
*/
|
||||||
void DisplaySymbolDatasheet();
|
void UpdateSymbolMsgPanelInfo();
|
||||||
|
|
||||||
// General editing
|
// 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
|
// Display the document information based on the entry selected just in
|
||||||
// case the entry is an alias.
|
// case the entry is an alias.
|
||||||
DisplaySymbolDatasheet();
|
UpdateMsgPanel();
|
||||||
Refresh();
|
Refresh();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -727,7 +727,7 @@ void SYMBOL_EDIT_FRAME::UpdateAfterSymbolProperties( wxString* aOldName )
|
||||||
RebuildSymbolUnitsList();
|
RebuildSymbolUnitsList();
|
||||||
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
|
SetShowDeMorgan( GetCurSymbol()->Flatten()->HasConversion() );
|
||||||
updateTitle();
|
updateTitle();
|
||||||
DisplaySymbolDatasheet();
|
UpdateMsgPanel();
|
||||||
|
|
||||||
RebuildView();
|
RebuildView();
|
||||||
OnModify();
|
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();
|
EDA_DRAW_FRAME::ClearMsgPanel();
|
||||||
|
|
||||||
|
|
|
@ -549,7 +549,7 @@ void SYMBOL_EDITOR_EDIT_TOOL::editFieldProperties( LIB_FIELD* aField )
|
||||||
updateItem( aField, true );
|
updateItem( aField, true );
|
||||||
m_frame->GetCanvas()->Refresh();
|
m_frame->GetCanvas()->Refresh();
|
||||||
m_frame->OnModify();
|
m_frame->OnModify();
|
||||||
m_frame->DisplaySymbolDatasheet();
|
m_frame->UpdateSymbolMsgPanelInfo();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue