X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d572a2cace8d11a10ecea598ff342c36ec007cf..e3ab69523b78d79752943ab6d044c334045a1e57:/include/wx/osx/dialog.h diff --git a/include/wx/osx/dialog.h b/include/wx/osx/dialog.h index 17195a318a..83dd07b816 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 @@ -66,23 +67,27 @@ public: wxDialogModality GetModality() const; +#if wxOSX_USE_COCOA + virtual void ModalFinishedCallback(void* WXUNUSED(panel), int WXUNUSED(returnCode)) {} +#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(); - - wxDialogModality m_modality; }; #endif