WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
-class WXDLLEXPORT wxWindowDisabler;
+class WXDLLEXPORT wxDialogModalData;
// Dialog boxes
class WXDLLEXPORT wxDialog : public wxDialogBase
void Init();
private:
- wxWindow *m_oldFocus;
+ wxWindow* m_oldFocus;
+ bool m_endModalCalled; // allow for closing within InitDialog
+
+ // this pointer is non-NULL only while the modal event loop is running
+ wxDialogModalData *m_modalData;
- // while we are showing a modal dialog we disable the other windows using
- // this object
- wxWindowDisabler *m_windowDisabler;
DECLARE_DYNAMIC_CLASS(wxDialog)
DECLARE_EVENT_TABLE()