X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/mac/carbon/dialog.h?ds=sidebyside diff --git a/include/wx/mac/carbon/dialog.h b/include/wx/mac/carbon/dialog.h index 6b03257503..351f6b8aee 100644 --- a/include/wx/mac/carbon/dialog.h +++ b/include/wx/mac/carbon/dialog.h @@ -14,31 +14,18 @@ #include "wx/panel.h" -WXDLLEXPORT_DATA(extern const wxChar) wxDialogNameStr[]; +WXDLLIMPEXP_DATA_CORE(extern const char) wxDialogNameStr[]; class WXDLLIMPEXP_FWD_CORE wxMacToolTip ; // Dialog boxes -class WXDLLEXPORT wxDialog : public wxDialogBase +class WXDLLIMPEXP_CORE wxDialog : public wxDialogBase { DECLARE_DYNAMIC_CLASS(wxDialog) public: wxDialog() { Init(); } - // Constructor with a modal flag, but no window id - the old convention - wxDialog(wxWindow *parent, - const wxString& title, bool modal, - int x = -1, int y= -1, int width = 500, int height = 500, - long style = wxDEFAULT_DIALOG_STYLE, - const wxString& name = wxDialogNameStr) - { - Init(); - m_isModalStyle = modal; - Create(parent, -1, title, wxPoint(x, y), wxSize(width, height), - style, name); - } - // Constructor with no modal flag - the new convention. wxDialog(wxWindow *parent, wxWindowID id, const wxString& title, @@ -72,18 +59,16 @@ public: // may be called to terminate the dialog with the given return code virtual void EndModal(int retCode); - // mac also takes command-period as cancel - virtual bool IsEscapeKey(const wxKeyEvent& event); - - // returns TRUE if we're in a modal loop - bool IsModalShowing() const; - // implementation // -------------- // show modal dialog and enter modal loop void DoShowModal(); +protected: + // mac also takes command-period as cancel + virtual bool IsEscapeKey(const wxKeyEvent& event); + private: void Init();