X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/62068535c57c64732d49c7d8cf770c05903402c0..b213ba752c28216697b92d0e7580a599c5142123:/include/wx/osx/dialog.h diff --git a/include/wx/osx/dialog.h b/include/wx/osx/dialog.h index 83dd07b816..dc82d7cc6d 100644 --- a/include/wx/osx/dialog.h +++ b/include/wx/osx/dialog.h @@ -56,23 +56,27 @@ public: // show the dialog modally and return the value passed to EndModal() virtual int ShowModal(); - + virtual void ShowWindowModal(); // 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 // -------------- wxDialogModality GetModality() const; - + #if wxOSX_USE_COCOA virtual void ModalFinishedCallback(void* WXUNUSED(panel), int WXUNUSED(returnCode)) {} #endif protected: - // show window modal dialog + // show window modal dialog void DoShowWindowModal(); // end window modal dialog. @@ -83,7 +87,7 @@ protected: wxDialogModality m_modality; - + wxModalEventLoop* m_eventLoop; private: