simplifying modal event loop handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2010-04-02 14:52:08 +00:00
parent 175e9d71cd
commit 62068535c5
4 changed files with 19 additions and 113 deletions

View File

@@ -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
@@ -71,19 +72,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();