]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/msgdlg.h
Don't try to determine the clicked item ourselves in wxMSW wxListBox.
[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
8// RCS-ID: $Id$
9// Copyright: (c) Stefan Csomor
10// Licence: wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_MSGBOXDLG_H_
14#define _WX_MSGBOXDLG_H_
15
ede7b017 16class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
6762286d
SC
17{
18public:
19 wxMessageDialog(wxWindow *parent,
20 const wxString& message,
21 const wxString& caption = wxMessageBoxCaptionStr,
22 long style = wxOK|wxCENTRE,
23 const wxPoint& pos = wxDefaultPosition);
24
681bf55c
SC
25#if wxOSX_USE_COCOA
26 ~wxMessageDialog();
27#endif
28
6762286d 29 virtual int ShowModal();
ce00f59b 30
bfa92264
KO
31#if wxOSX_USE_COCOA
32 virtual void ShowWindowModal();
33 virtual void ModalFinishedCallback(void* panel, int resultCode);
34#endif
6762286d
SC
35
36protected:
37 // not supported for message dialog
38 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
39 int WXUNUSED(width), int WXUNUSED(height),
40 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
41
bfa92264
KO
42#if wxOSX_USE_COCOA
43 void* ConstructNSAlert();
44#endif
45
7112cdd1 46 int m_buttonId[4];
bfa92264
KO
47 int m_buttonCount;
48
681bf55c
SC
49#if wxOSX_USE_COCOA
50 WX_NSObject m_sheetDelegate;
51#endif
6762286d
SC
52 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
53};
54
55#endif // _WX_MSGBOXDLG_H_