]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/msgdlg.h
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / osx / msgdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/msgdlg.h
3 // Purpose: wxMessageDialog class. Use generic version if no
4 // platform-specific implementation.
5 // Author: Stefan Csomor
6 // Modified by:
7 // Created: 1998-01-01
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MSGBOXDLG_H_
13 #define _WX_MSGBOXDLG_H_
14
15 class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
16 {
17 public:
18 wxMessageDialog(wxWindow *parent,
19 const wxString& message,
20 const wxString& caption = wxMessageBoxCaptionStr,
21 long style = wxOK|wxCENTRE,
22 const wxPoint& pos = wxDefaultPosition);
23
24 #if wxOSX_USE_COCOA
25 ~wxMessageDialog();
26 #endif
27
28 virtual int ShowModal();
29
30 #if wxOSX_USE_COCOA
31 virtual void ShowWindowModal();
32 virtual void ModalFinishedCallback(void* panel, int resultCode);
33 #endif
34
35 protected:
36 // not supported for message dialog
37 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
38 int WXUNUSED(width), int WXUNUSED(height),
39 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
40
41 #if wxOSX_USE_COCOA
42 void* ConstructNSAlert();
43 #endif
44
45 int m_buttonId[4];
46 int m_buttonCount;
47
48 #if wxOSX_USE_COCOA
49 WX_NSObject m_sheetDelegate;
50 #endif
51 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
52 };
53
54 #endif // _WX_MSGBOXDLG_H_