]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/evtloop.h
Add more checks for Intel compiler.
[wxWidgets.git] / include / wx / osx / evtloop.h
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
5 // headers
6 // Author: Vadim Zeitlin
7 // Modified by:
8 // Created: 2006-01-12
9 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_OSX_EVTLOOP_H_
14 #define _WX_OSX_EVTLOOP_H_
15
16 #ifdef __WXOSX_COCOA__
17 #include "wx/osx/cocoa/evtloop.h"
18 #else
19 #include "wx/osx/carbon/evtloop.h"
20 #endif
21
22 class WXDLLIMPEXP_FWD_CORE wxWindow;
23 class WXDLLIMPEXP_FWD_CORE wxNonOwnedWindow;
24
25 class WXDLLIMPEXP_CORE wxModalEventLoop : public wxGUIEventLoop
26 {
27 public:
28 wxModalEventLoop(wxWindow *modalWindow);
29 wxModalEventLoop(WXWindow modalNativeWindow);
30
31 #ifdef __WXOSX_COCOA__
32 // skip wxGUIEventLoop to avoid missing Enter/Exit notifications
33 int Run() { return wxCFEventLoop::Run(); }
34 #endif
35 protected:
36 virtual void OSXDoRun();
37 virtual void OSXDoStop();
38
39 // (in case) the modal window for this event loop
40 wxNonOwnedWindow* m_modalWindow;
41 WXWindow m_modalNativeWindow;
42 };
43
44 #endif // _WX_OSX_EVTLOOP_H_