1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/evtloop.h
3 // Purpose: simply forwards to wx/osx/carbon/evtloop.h or
4 // wx/osx/cocoa/evtloop.h for consistency with the other Mac
6 // Author: Vadim Zeitlin
9 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_OSX_EVTLOOP_H_
14 #define _WX_OSX_EVTLOOP_H_
16 #ifdef __WXOSX_COCOA__
17 #include "wx/osx/cocoa/evtloop.h"
19 #include "wx/osx/carbon/evtloop.h"
22 class WXDLLIMPEXP_FWD_CORE wxWindow
;
23 class WXDLLIMPEXP_FWD_CORE wxNonOwnedWindow
;
25 class WXDLLIMPEXP_CORE wxModalEventLoop
: public wxGUIEventLoop
28 wxModalEventLoop(wxWindow
*modalWindow
);
29 wxModalEventLoop(WXWindow modalNativeWindow
);
31 #ifdef __WXOSX_COCOA__
32 // skip wxGUIEventLoop to avoid missing Enter/Exit notifications
33 int Run() { return wxCFEventLoop::Run(); }
36 virtual void OSXDoRun();
37 virtual void OSXDoStop();
39 // (in case) the modal window for this event loop
40 wxNonOwnedWindow
* m_modalWindow
;
41 WXWindow m_modalNativeWindow
;
44 #endif // _WX_OSX_EVTLOOP_H_