git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19428
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxApp::SendIdleEvents()
{
bool needMore = FALSE;
bool wxApp::SendIdleEvents()
{
bool needMore = FALSE;
- wxNode* node = wxTopLevelWindows.First();
+ wxWindowListNode* node = wxTopLevelWindows.GetFirst();
- wxWindow* win = (wxWindow*) node->Data();
+ wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
if (SendIdleEvents(win))
needMore = TRUE;
+ node = node->GetNext();
if (event.MoreRequested())
needMore = TRUE;
if (event.MoreRequested())
needMore = TRUE;
- wxNode* node = win->GetChildren().First();
+ wxWindowListNode* node = win->GetChildren().GetFirst();
- wxWindow* win = (wxWindow*) node->Data();
+ wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
if (SendIdleEvents(win))
needMore = TRUE;
+ node = node->GetNext();
}
return needMore ;
}
void wxApp::DeletePendingObjects()
{
}
return needMore ;
}
void wxApp::DeletePendingObjects()
{
- wxNode *node = wxPendingDelete.First();
+ wxNode *node = wxPendingDelete.GetFirst();
- wxObject *obj = (wxObject *)node->Data();
+ wxObject *obj = (wxObject *)node->GetData();
// Deleting one object may have deleted other pending
// objects, so start from beginning of list again.
// Deleting one object may have deleted other pending
// objects, so start from beginning of list again.
- node = wxPendingDelete.First();
+ node = wxPendingDelete.GetFirst();
#if !TARGET_CARBON
// we have to deactive the top level windows manually
#if !TARGET_CARBON
// we have to deactive the top level windows manually
- wxNode* node = wxTopLevelWindows.First();
+ wxWindowListNode* node = wxTopLevelWindows.GetFirst();
while (node)
{
wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
win->MacActivate( ((EventRecord*) MacGetCurrentEvent())->when , false ) ;
while (node)
{
wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
win->MacActivate( ((EventRecord*) MacGetCurrentEvent())->when , false ) ;
+ node = node->GetNext();
}
::HideFloatingWindows() ;
}
::HideFloatingWindows() ;
::ShowFloatingWindows() ;
// raise modal dialogs in case a non modal window was selected to activate the app
::ShowFloatingWindows() ;
// raise modal dialogs in case a non modal window was selected to activate the app
- wxNode* node = wxModalDialogs.First();
+ wxNode* node = wxModalDialogs.GetFirst();
- wxDialog* dialog = (wxDialog *) node->Data();
+ wxDialog* dialog = (wxDialog *) node->GetData();
+ node = node->GetNext();
-#endif
\ No newline at end of file
bool wxApp::SendIdleEvents()
{
bool needMore = FALSE;
bool wxApp::SendIdleEvents()
{
bool needMore = FALSE;
- wxNode* node = wxTopLevelWindows.First();
+ wxWindowListNode* node = wxTopLevelWindows.GetFirst();
- wxWindow* win = (wxWindow*) node->Data();
+ wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
if (SendIdleEvents(win))
needMore = TRUE;
+ node = node->GetNext();
if (event.MoreRequested())
needMore = TRUE;
if (event.MoreRequested())
needMore = TRUE;
- wxNode* node = win->GetChildren().First();
+ wxWindowListNode* node = win->GetChildren().GetFirst();
- wxWindow* win = (wxWindow*) node->Data();
+ wxWindow* win = node->GetData();
if (SendIdleEvents(win))
needMore = TRUE;
if (SendIdleEvents(win))
needMore = TRUE;
+ node = node->GetNext();
}
return needMore ;
}
void wxApp::DeletePendingObjects()
{
}
return needMore ;
}
void wxApp::DeletePendingObjects()
{
- wxNode *node = wxPendingDelete.First();
+ wxNode *node = wxPendingDelete.GetFirst();
- wxObject *obj = (wxObject *)node->Data();
+ wxObject *obj = (wxObject *)node->GetData();
// Deleting one object may have deleted other pending
// objects, so start from beginning of list again.
// Deleting one object may have deleted other pending
// objects, so start from beginning of list again.
- node = wxPendingDelete.First();
+ node = wxPendingDelete.GetFirst();
#if !TARGET_CARBON
// we have to deactive the top level windows manually
#if !TARGET_CARBON
// we have to deactive the top level windows manually
- wxNode* node = wxTopLevelWindows.First();
+ wxWindowListNode* node = wxTopLevelWindows.GetFirst();
while (node)
{
wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
win->MacActivate( ((EventRecord*) MacGetCurrentEvent())->when , false ) ;
while (node)
{
wxTopLevelWindow* win = (wxTopLevelWindow*) node->Data();
win->MacActivate( ((EventRecord*) MacGetCurrentEvent())->when , false ) ;
+ node = node->GetNext();
}
::HideFloatingWindows() ;
}
::HideFloatingWindows() ;
::ShowFloatingWindows() ;
// raise modal dialogs in case a non modal window was selected to activate the app
::ShowFloatingWindows() ;
// raise modal dialogs in case a non modal window was selected to activate the app
- wxNode* node = wxModalDialogs.First();
+ wxNode* node = wxModalDialogs.GetFirst();
- wxDialog* dialog = (wxDialog *) node->Data();
+ wxDialog* dialog = (wxDialog *) node->GetData();
+ node = node->GetNext();
-#endif
\ No newline at end of file