X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfa92264c07d094c05e5a07a17fd7f5bcee8e81f..4f7c00f237b6308394adb074fc94a0de8e2391d5:/include/wx/osx/dialog.h diff --git a/include/wx/osx/dialog.h b/include/wx/osx/dialog.h index 77427be8b4..9442b94373 100644 --- a/include/wx/osx/dialog.h +++ b/include/wx/osx/dialog.h @@ -17,6 +17,7 @@ WXDLLIMPEXP_DATA_CORE(extern const char) wxDialogNameStr[]; class WXDLLIMPEXP_FWD_CORE wxMacToolTip ; +class WXDLLIMPEXP_FWD_CORE wxModalEventLoop ; // Dialog boxes class WXDLLIMPEXP_CORE wxDialog : public wxDialogBase @@ -60,6 +61,10 @@ public: // may be called to terminate the dialog with the given return code virtual void EndModal(int retCode); + + static bool OSXHasModalDialogsOpen(); + static void OSXBeginModalDialog(); + static void OSXEndModalDialog(); // implementation // -------------- @@ -71,19 +76,19 @@ public: #endif protected: - // show modal dialog and enter modal loop - void DoShowModal(); - - // show modal dialog and enter modal loop + // show window modal dialog void DoShowWindowModal(); + // end window modal dialog. + void EndWindowModal(); + // mac also takes command-period as cancel virtual bool IsEscapeKey(const wxKeyEvent& event); - // needed for cleanup on the Cocoa side. - void EndWindowModal(); wxDialogModality m_modality; + + wxModalEventLoop* m_eventLoop; private: void Init();