本文整理汇总了C++中PCB_SCREEN::Next方法的典型用法代码示例。如果您正苦于以下问题:C++ PCB_SCREEN::Next方法的具体用法?C++ PCB_SCREEN::Next怎么用?C++ PCB_SCREEN::Next使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PCB_SCREEN
的用法示例。
在下文中一共展示了PCB_SCREEN::Next方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnCloseWindow
void WinEDA_GerberFrame::OnCloseWindow(wxCloseEvent & Event)
/***********************************************************/
{
PCB_SCREEN * screen;
screen = ScreenPcb ;
while( screen )
{
if(screen->IsModify()) break;
screen = screen->Next();
}
if ( screen )
{
if( ! IsOK(this, _("Layer modified, Continue ?")) )
{
Event.Veto();
return;
}
}
while( screen ) // suppression flag modify pour eviter d'autres message
{
screen->ClrModify();
screen = screen->Next();
}
/* Reselection de l'ecran de base,
pour les evenements de refresh générés par wxWindows */
m_CurrentScreen = ActiveScreen = ScreenPcb;
SaveSettings();
Destroy();
}
示例2: OnCloseWindow
void WinEDA_PcbFrame::OnCloseWindow(wxCloseEvent & Event)
/********************************************************/
{
PCB_SCREEN * screen;
DrawPanel->m_AbortRequest = TRUE;
screen = ScreenPcb ;
while( screen )
{
if(screen->IsModify()) break;
screen = screen->Next();
}
if ( screen )
{
unsigned ii;
wxMessageDialog dialog(this, _("Board modified, Save before exit ?"),
_("Confirmation"), wxYES_NO | wxCANCEL | wxICON_EXCLAMATION | wxYES_DEFAULT);
ii = dialog.ShowModal();
switch ( ii )
{
case wxID_CANCEL:
Event.Veto();
return;
case wxID_NO:
break;
case wxID_OK:
case wxID_YES:
SavePcbFile(GetScreen()->m_FileName);
break;
}
}
while( screen ) // suppression flag modify pour eviter d'autres message
{
screen->ClrModify();
screen = screen->Next();
}
/* Reselection de l'ecran de base,
pour les evenements de refresh générés par wxWindows */
m_CurrentScreen = ActiveScreen = ScreenPcb;
SaveSettings();
Destroy();
}
示例3: RedrawActiveWindow
void WinEDA_PcbFrame::RedrawActiveWindow(wxDC * DC, bool EraseBg)
/****************************************************************/
/* Trace le PCB, et les elements complementaires ( axes, grille .. )
pour l'ecran actif et ses sous ecran
*/
{
PCB_SCREEN * Screen = GetScreen();
if ( ! m_Pcb || ! Screen ) return;
ActiveScreen = GetScreen();
GRSetDrawMode(DC, GR_COPY);
if ( EraseBg ) DrawPanel->EraseScreen(DC);
DrawPanel->DrawBackGround(DC);
Trace_Pcb(DC, GR_OR);
TraceWorkSheet(DC, GetScreen());
Affiche_Status_Box();
/* Reaffichage des curseurs */
for( Screen = GetScreen(); Screen != NULL; Screen = Screen->Next() )
{
if( m_CurrentScreen->ManageCurseur )
m_CurrentScreen->ManageCurseur(DrawPanel, DC, FALSE);
Screen->Trace_Curseur(DrawPanel, DC);
}
}