]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/evtloop.h
48b952e6500c6f8f5fccb0dc3cbed402e8af084b
[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 // RCS-ID: $Id$
10 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
11 // Licence: wxWindows licence
12 ///////////////////////////////////////////////////////////////////////////////
13
14 #ifndef _WX_OSX_EVTLOOP_H_
15 #define _WX_OSX_EVTLOOP_H_
16
17 #ifdef __WXOSX_COCOA__
18 #include "wx/osx/cocoa/evtloop.h"
19 #else
20 #include "wx/osx/carbon/evtloop.h"
21 #endif
22
23 class WXDLLIMPEXP_FWD_CORE wxWindow;
24 class WXDLLIMPEXP_FWD_CORE wxNonOwnedWindow;
25
26 class WXDLLIMPEXP_CORE wxModalEventLoop : public wxGUIEventLoop
27 {
28 public:
29 wxModalEventLoop(wxWindow *modalWindow);
30 wxModalEventLoop(WXWindow modalNativeWindow);
31
32 protected:
33 virtual void OSXDoRun();
34 virtual void OSXDoStop();
35
36 // (in case) the modal window for this event loop
37 wxNonOwnedWindow* m_modalWindow;
38 WXWindow m_modalNativeWindow;
39 };
40
41 #endif // _WX_OSX_EVTLOOP_H_