本文整理汇总了C++中BOARD_ITEM::GetMsgPanelInfo方法的典型用法代码示例。如果您正苦于以下问题:C++ BOARD_ITEM::GetMsgPanelInfo方法的具体用法?C++ BOARD_ITEM::GetMsgPanelInfo怎么用?C++ BOARD_ITEM::GetMsgPanelInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BOARD_ITEM
的用法示例。
在下文中一共展示了BOARD_ITEM::GetMsgPanelInfo方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateMsgPanel
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();
}
示例2: UpdateMsgPanel
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 );
}
示例3: UpdateMsgPanel
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();
}