X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d90072c22f3f7aff3991ef3187c67b2cdc5ea70..396197cb567090122f9f2e640d2910c2491a7c47:/include/wx/mac/carbon/evtloop.h diff --git a/include/wx/mac/carbon/evtloop.h b/include/wx/mac/carbon/evtloop.h index 6d43f1c45b..c13a51836c 100644 --- a/include/wx/mac/carbon/evtloop.h +++ b/include/wx/mac/carbon/evtloop.h @@ -27,10 +27,12 @@ // wxEventLoop // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxEventLoop : public wxEventLoopBase +#if wxMAC_USE_RUN_APP_EVENT_LOOP + +class WXDLLEXPORT wxGUIEventLoop : public wxEventLoopBase { public: - wxEventLoop(); + wxGUIEventLoop() { m_exitcode = 0; } // implement base class pure virtuals virtual int Run(); @@ -39,14 +41,24 @@ public: virtual bool Dispatch(); private: - // the loop exit code int m_exitcode; +}; + +#else // manual event loop + +class WXDLLEXPORT wxGUIEventLoop : public wxEventLoopManual +{ +public: + wxGUIEventLoop() { } -#if !wxMAC_USE_RUN_APP_EVENT_LOOP - // should we exit the loop? - bool m_shouldExit; -#endif // !wxMAC_USE_RUN_APP_EVENT_LOOP + virtual bool Pending() const; + virtual bool Dispatch(); + + // implement base class pure virtual + virtual void WakeUp(); }; +#endif // auto/manual event loop + #endif // _WX_MAC_CARBON_EVTLOOP_H_