The symbol viewer handles its own message panel.
This commit is contained in:
parent
725c2fd661
commit
6fb8916798
|
@ -442,9 +442,15 @@ int EE_INSPECTION_TOOL::ShowDatasheet( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
int EE_INSPECTION_TOOL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
|
int EE_INSPECTION_TOOL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
|
SYMBOL_EDIT_FRAME* symbolEditFrame = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame );
|
||||||
|
SCH_EDIT_FRAME* schEditFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame );
|
||||||
EE_SELECTION_TOOL* selTool = m_toolMgr->GetTool<EE_SELECTION_TOOL>();
|
EE_SELECTION_TOOL* selTool = m_toolMgr->GetTool<EE_SELECTION_TOOL>();
|
||||||
EE_SELECTION& selection = selTool->GetSelection();
|
EE_SELECTION& selection = selTool->GetSelection();
|
||||||
|
|
||||||
|
// Note: the symbol viewer manages its own message panel
|
||||||
|
|
||||||
|
if( symbolEditFrame || schEditFrame )
|
||||||
|
{
|
||||||
if( selection.GetSize() == 1 )
|
if( selection.GetSize() == 1 )
|
||||||
{
|
{
|
||||||
EDA_ITEM* item = (EDA_ITEM*) selection.Front();
|
EDA_ITEM* item = (EDA_ITEM*) selection.Front();
|
||||||
|
@ -457,11 +463,12 @@ int EE_INSPECTION_TOOL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
m_frame->ClearMsgPanel();
|
m_frame->ClearMsgPanel();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( SCH_EDIT_FRAME* editFrame = dynamic_cast<SCH_EDIT_FRAME*>( m_frame ) )
|
if( schEditFrame )
|
||||||
{
|
{
|
||||||
editFrame->UpdateNetHighlightStatus();
|
schEditFrame->UpdateNetHighlightStatus();
|
||||||
editFrame->UpdateHierarchySelection();
|
schEditFrame->UpdateHierarchySelection();
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue