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