]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/msgdlg.h
aa03ad79931b4c3d0a3e2e1c54b7bc45941584d6
[wxWidgets.git] / include / wx / cocoa / msgdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/dirdlg.h
3 // Purpose: wxMessageDialog class
4 // Author: Gareth Simpson
5 // Created: 2007-10-29
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _WX_COCOA_MSGDLG_H_
10 #define _WX_COCOA_MSGDLG_H_
11
12 #include "wx/msgdlg.h"
13
14 DECLARE_WXCOCOA_OBJC_CLASS(NSAlert);
15
16
17
18 #define wxMessageDialog wxCocoaMessageDialog
19 //-------------------------------------------------------------------------
20 // wxMsgDialog
21 //-------------------------------------------------------------------------
22
23
24
25 class WXDLLEXPORT wxMessageDialog: public wxMessageDialogBase
26 {
27 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
28 DECLARE_NO_COPY_CLASS(wxMessageDialog)
29
30
31 public:
32 wxMessageDialog(wxWindow *parent,
33 const wxString& message,
34 const wxString& caption = wxMessageBoxCaptionStr,
35 long style = wxOK|wxCENTRE,
36 const wxPoint& pos = wxDefaultPosition);
37
38 virtual ~wxCocoaMessageDialog();
39
40 virtual int ShowModal();
41
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);
47
48 protected:
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) {}
53
54 private:
55 wxString m_yes,
56 m_no,
57 m_ok,
58 m_cancel;
59
60 };
61
62 #endif // _WX_MSGDLG_H_
63