1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/dirdlg.h
3 // Purpose: wxMessageDialog class
4 // Author: Gareth Simpson
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_COCOA_MSGDLG_H_
10 #define _WX_COCOA_MSGDLG_H_
12 #include "wx/msgdlg.h"
14 DECLARE_WXCOCOA_OBJC_CLASS(NSAlert
);
18 #define wxMessageDialog wxCocoaMessageDialog
19 //-------------------------------------------------------------------------
21 //-------------------------------------------------------------------------
25 class WXDLLEXPORT wxMessageDialog
: public wxMessageDialogBase
27 DECLARE_DYNAMIC_CLASS(wxMessageDialog
)
28 DECLARE_NO_COPY_CLASS(wxMessageDialog
)
32 wxMessageDialog(wxWindow
*parent
,
33 const wxString
& message
,
34 const wxString
& caption
= wxMessageBoxCaptionStr
,
35 long style
= wxOK
|wxCENTRE
,
36 const wxPoint
& pos
= wxDefaultPosition
);
38 virtual ~wxCocoaMessageDialog();
40 virtual int ShowModal();
42 // customization of the message box
43 virtual bool SetYesNoLabels(const wxString
& yes
,const wxString
& no
);
44 virtual bool SetYesNoCancelLabels(const wxString
& yes
, const wxString
& no
, const wxString
& cancel
);
45 virtual bool SetOKLabel(const wxString
& ok
);
46 virtual bool SetOKCancelLabels(const wxString
& ok
, const wxString
& cancel
);
49 // not supported for message dialog
50 virtual void DoSetSize(int WXUNUSED(x
), int WXUNUSED(y
),
51 int WXUNUSED(width
), int WXUNUSED(height
),
52 int WXUNUSED(sizeFlags
) = wxSIZE_AUTO
) {}
62 #endif // _WX_MSGDLG_H_