X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cd17aeff896462de174b440edc58a3e34b69cfa9..19cf1ef3a7077dd99a90f141847b8a9b67b318c9:/src/mac/carbon/evtloop.cpp diff --git a/src/mac/carbon/evtloop.cpp b/src/mac/carbon/evtloop.cpp index d5a9804e67..681564bffa 100644 --- a/src/mac/carbon/evtloop.cpp +++ b/src/mac/carbon/evtloop.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: mac/carbon/evtloop.cpp +// Name: src/mac/carbon/evtloop.cpp // Purpose: implementation of wxEventLoop for wxMac // Author: Vadim Zeitlin // Modified by: @@ -25,7 +25,10 @@ #endif #include "wx/evtloop.h" -#include "wx/app.h" + +#ifndef WX_PRECOMP + #include "wx/app.h" +#endif // WX_PRECOMP #ifdef __DARWIN__ #include @@ -42,7 +45,7 @@ #if wxMAC_USE_RUN_APP_EVENT_LOOP -int wxEventLoop::Run() +int wxGUIEventLoop::Run() { wxEventLoopActivator activate(this); @@ -51,7 +54,7 @@ int wxEventLoop::Run() return m_exitcode; } -void wxEventLoop::Exit(int rc) +void wxGUIEventLoop::Exit(int rc) { m_exitcode = rc; @@ -66,7 +69,7 @@ void wxEventLoop::Exit(int rc) // functions only used by wxEventLoopManual-based implementation // ---------------------------------------------------------------------------- -void wxEventLoop::WakeUp() +void wxGUIEventLoop::WakeUp() { extern void wxMacWakeUp(); @@ -79,7 +82,7 @@ void wxEventLoop::WakeUp() // low level functions used in both cases // ---------------------------------------------------------------------------- -bool wxEventLoop::Pending() const +bool wxGUIEventLoop::Pending() const { EventRef theEvent; @@ -93,7 +96,7 @@ bool wxEventLoop::Pending() const ) == noErr; } -bool wxEventLoop::Dispatch() +bool wxGUIEventLoop::Dispatch() { // TODO: we probably should do the dispatching directly from here but for // now it's easier to forward to wxApp which has all the code to do @@ -104,4 +107,3 @@ bool wxEventLoop::Dispatch() wxTheApp->MacDoOneEvent(); return true; } -