]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/msgdlg.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / msgdlg.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
233f5738 2// Name: wx/osx/msgdlg.h
6762286d
SC
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
6762286d
SC
8// Copyright: (c) Stefan Csomor
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_MSGBOXDLG_H_
13#define _WX_MSGBOXDLG_H_
14
ede7b017 15class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
6762286d
SC
16{
17public:
18 wxMessageDialog(wxWindow *parent,
19 const wxString& message,
20 const wxString& caption = wxMessageBoxCaptionStr,
21 long style = wxOK|wxCENTRE,
22 const wxPoint& pos = wxDefaultPosition);
23
681bf55c
SC
24#if wxOSX_USE_COCOA
25 ~wxMessageDialog();
26#endif
27
6762286d 28 virtual int ShowModal();
ce00f59b 29
bfa92264
KO
30#if wxOSX_USE_COCOA
31 virtual void ShowWindowModal();
32 virtual void ModalFinishedCallback(void* panel, int resultCode);
33#endif
6762286d
SC
34
35protected:
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
bfa92264
KO
41#if wxOSX_USE_COCOA
42 void* ConstructNSAlert();
43#endif
44
7112cdd1 45 int m_buttonId[4];
bfa92264
KO
46 int m_buttonCount;
47
681bf55c
SC
48#if wxOSX_USE_COCOA
49 WX_NSObject m_sheetDelegate;
50#endif
6762286d
SC
51 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
52};
53
54#endif // _WX_MSGBOXDLG_H_