X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ede7b01760e920b31520b15c919445db882a8012..1f0acb435592470b421b80df854fbbb08cd2853f:/include/wx/msgdlg.h diff --git a/include/wx/msgdlg.h b/include/wx/msgdlg.h index 7e2eb5c80c..ca96fc7ff9 100644 --- a/include/wx/msgdlg.h +++ b/include/wx/msgdlg.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/msgdlgg.h +// Name: wx/msgdlg.h // Purpose: common header and base class for wxMessageDialog // Author: Julian Smart // Modified by: @@ -19,7 +19,7 @@ #include "wx/dialog.h" #include "wx/stockitem.h" -WXDLLIMPEXP_DATA_CORE(extern const char) wxMessageBoxCaptionStr[]; +extern WXDLLIMPEXP_DATA_CORE(const char) wxMessageBoxCaptionStr[]; // ---------------------------------------------------------------------------- // wxMessageDialogBase: base class defining wxMessageDialog interface @@ -242,6 +242,16 @@ protected: var = label.GetAsString(); } + // these functions return the custom label or empty string and should be + // used only in specific circumstances such as creating the buttons with + // these labels (in which case it makes sense to only use a custom label if + // it was really given and fall back on stock label otherwise), use the + // Get{Yes,No,OK,Cancel}Label() methods above otherwise + const wxString& GetCustomYesLabel() const { return m_yes; } + const wxString& GetCustomNoLabel() const { return m_no; } + const wxString& GetCustomOKLabel() const { return m_ok; } + const wxString& GetCustomCancelLabel() const { return m_cancel; } + private: // these functions may be overridden to provide different defaults for the // default button labels (this is used by wxGTK)