Just rename these methods to avoid clashes with DoRun() that will be added to
the base class soon, no real changes.
This is done in preparation for improving nested event loops support, see #10258.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74331
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
protected:
virtual int DoDispatchTimeout(unsigned long timeout);
- virtual void DoRun();
-
- virtual void DoStop();
+ virtual void OSXDoRun();
+ virtual void OSXDoStop();
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
};
protected:
virtual int DoDispatchTimeout(unsigned long timeout);
- virtual void DoRun();
-
- virtual void DoStop();
+ virtual void OSXDoRun();
+ virtual void OSXDoStop();
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
virtual int DoDispatchTimeout(unsigned long timeout);
- virtual void DoRun();
-
- virtual void DoStop();
+ virtual void OSXDoRun();
+ virtual void OSXDoStop();
// should we exit the loop?
bool m_shouldExit;
wxModalEventLoop(WXWindow modalNativeWindow);
protected:
- virtual void DoRun();
-
- virtual void DoStop();
+ virtual void OSXDoRun();
+ virtual void OSXDoStop();
// (in case) the modal window for this event loop
wxNonOwnedWindow* m_modalWindow;
kEventPriorityHigh );
}
-void wxGUIEventLoop::DoRun()
+void wxGUIEventLoop::OSXDoRun()
{
wxMacAutoreleasePool autoreleasepool;
RunApplicationEventLoop();
}
-void wxGUIEventLoop::DoStop()
+void wxGUIEventLoop::OSXDoStop()
{
QuitApplicationEventLoop();
}
// END move into a evtloop_osx.cpp
-void wxModalEventLoop::DoRun()
+void wxModalEventLoop::OSXDoRun()
{
wxWindowDisabler disabler(m_modalWindow);
wxMacAutoreleasePool autoreleasepool;
}
-void wxModalEventLoop::DoStop()
+void wxModalEventLoop::OSXDoStop()
{
wxMacAutoreleasePool autoreleasepool;
QuitAppModalLoopForWindow(m_modalNativeWindow);
}
}
-void wxGUIEventLoop::DoRun()
+void wxGUIEventLoop::OSXDoRun()
{
wxMacAutoreleasePool autoreleasepool;
[NSApp run];
}
-void wxGUIEventLoop::DoStop()
+void wxGUIEventLoop::OSXDoStop()
{
// only calling stop: is not enough when called from a runloop-observer,
// therefore add a dummy event, to make sure the runloop gets another round
// END move into a evtloop_osx.cpp
-void wxModalEventLoop::DoRun()
+void wxModalEventLoop::OSXDoRun()
{
wxMacAutoreleasePool pool;
[NSApp runModalForWindow:m_modalNativeWindow];
}
-void wxModalEventLoop::DoStop()
+void wxModalEventLoop::OSXDoStop()
{
[NSApp abortModal];
}
}
delete m_winDisabled;
-}
\ No newline at end of file
+}
return 1;
}
-void wxCFEventLoop::DoRun()
+void wxCFEventLoop::OSXDoRun()
{
for ( ;; )
{
}
}
-void wxCFEventLoop::DoStop()
+void wxCFEventLoop::OSXDoStop()
{
CFRunLoopStop(CFGetCurrentRunLoop());
}
{
#endif // wxUSE_EXCEPTIONS
- DoRun();
+ OSXDoRun();
#if wxUSE_EXCEPTIONS
// exit the outer loop as well
{
m_exitcode = rc;
m_shouldExit = true;
- DoStop();
+ OSXDoStop();
}
wxCFEventLoopPauseIdleEvents::wxCFEventLoopPauseIdleEvents()
{
}
-void wxGUIEventLoop::DoRun()
+void wxGUIEventLoop::OSXDoRun()
{
if ( IsMain() )
{
}
else
{
- wxCFEventLoop::DoRun();
+ wxCFEventLoop::OSXDoRun();
}
}
return wxCFEventLoop::DoDispatchTimeout(timeout);
}
-void wxGUIEventLoop::DoStop()
+void wxGUIEventLoop::OSXDoStop()
{
- return wxCFEventLoop::DoStop();
+ return wxCFEventLoop::OSXDoStop();
}
CFRunLoopRef wxGUIEventLoop::CFGetCurrentRunLoop() const
// END move into a evtloop_osx.cpp
-void wxModalEventLoop::DoRun()
+void wxModalEventLoop::OSXDoRun()
{
// presentModalViewController:animated:
}
-void wxModalEventLoop::DoStop()
+void wxModalEventLoop::OSXDoStop()
{
// (void)dismissModalViewControllerAnimated:(BOOL)animated
}