Reconcile 2.8/trunk wxMessageDialog differences.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-11-09 18:48:59 +00:00
parent a2fa59b890
commit 0cfe8dc0fa
2 changed files with 9 additions and 4 deletions

View File

@@ -24,10 +24,11 @@ DECLARE_WXCOCOA_OBJC_CLASS(NSAlert);
#endif #endif
#endif #endif
#if defined(__WX_COMPILING_COCOA_MSGDLG_MM__) || wxUSE_COCOA_NATIVE_MSGDLG #include "wx/generic/msgdlgg.h"
#if wxUSE_COCOA_NATIVE_MSGDLG
#define wxMessageDialog wxCocoaMessageDialog #define wxMessageDialog wxCocoaMessageDialog
#else #else
#include "wx/generic/msgdlgg.h"
#define wxMessageDialog wxGenericMessageDialog #define wxMessageDialog wxGenericMessageDialog
#endif #endif
@@ -37,7 +38,7 @@ DECLARE_WXCOCOA_OBJC_CLASS(NSAlert);
class WXDLLEXPORT wxCocoaMessageDialog: public wxMessageDialogBase class WXDLLEXPORT wxCocoaMessageDialog: public wxDialog, public wxMessageDialogBase
{ {
DECLARE_DYNAMIC_CLASS(wxCocoaMessageDialog) DECLARE_DYNAMIC_CLASS(wxCocoaMessageDialog)
DECLARE_NO_COPY_CLASS(wxCocoaMessageDialog) DECLARE_NO_COPY_CLASS(wxCocoaMessageDialog)
@@ -66,6 +67,10 @@ protected:
int WXUNUSED(width), int WXUNUSED(height), int WXUNUSED(width), int WXUNUSED(height),
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
// 2.8: These are in the base class in trunk:
wxString m_message,
m_extendedMessage,
m_caption;
private: private:
wxString m_yes, wxString m_yes,
m_no, m_no,

View File

@@ -46,7 +46,7 @@ wxCocoaMessageDialog::wxCocoaMessageDialog(wxWindow *parent,
const wxString& message, const wxString& message,
const wxString& caption, const wxString& caption,
long style, long style,
const wxPoint& pos) : wxMessageDialogBase(parent,message,caption,style) const wxPoint& pos) : wxDialog(parent,message,caption,style)
{ {
//m_caption = caption; //m_caption = caption;