void FOOTPRINT_VIEWER_FRAME::UpdateMsgPanel() { BOARD_ITEM* footprint = GetBoard()->m_Modules; if( footprint ) { MSG_PANEL_ITEMS items; footprint->GetMsgPanelInfo( m_UserUnits, items ); SetMsgPanel( items ); } else ClearMsgPanel(); }
void PCB_BASE_FRAME::UpdateMsgPanel() { BOARD_ITEM* item = GetScreen()->GetCurItem(); MSG_PANEL_ITEMS items; if( item ) { item->GetMsgPanelInfo( items ); } else // show general information about the board { if( IsGalCanvasActive() ) GetGalCanvas()->GetMsgPanelInfo( items ); else m_Pcb->GetMsgPanelInfo( items ); } SetMsgPanel( items ); }
void FOOTPRINT_EDIT_FRAME::UpdateMsgPanel() { // If a item is currently selected, displays the item info. // If nothing selected, display the current footprint info BOARD_ITEM* item = GetScreen()->GetCurItem(); if( !item ) item = GetBoard()->m_Modules; MSG_PANEL_ITEMS items; if( item ) { item->GetMsgPanelInfo( m_UserUnits, items ); SetMsgPanel( items ); } else ClearMsgPanel(); }