]>
Commit | Line | Data |
---|---|---|
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 | 16 | class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase |
6762286d SC |
17 | { |
18 | public: | |
19 | wxMessageDialog(wxWindow *parent, | |
20 | const wxString& message, | |
21 | const wxString& caption = wxMessageBoxCaptionStr, | |
22 | long style = wxOK|wxCENTRE, | |
23 | const wxPoint& pos = wxDefaultPosition); | |
24 | ||
25 | virtual int ShowModal(); | |
ce00f59b | 26 | |
bfa92264 KO |
27 | #if wxOSX_USE_COCOA |
28 | virtual void ShowWindowModal(); | |
29 | virtual void ModalFinishedCallback(void* panel, int resultCode); | |
30 | #endif | |
6762286d SC |
31 | |
32 | protected: | |
33 | // not supported for message dialog | |
34 | virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), | |
35 | int WXUNUSED(width), int WXUNUSED(height), | |
36 | int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} | |
37 | ||
bfa92264 KO |
38 | #if wxOSX_USE_COCOA |
39 | void* ConstructNSAlert(); | |
40 | #endif | |
41 | ||
42 | int m_buttonId[3]; | |
43 | int m_buttonCount; | |
44 | ||
6762286d SC |
45 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) |
46 | }; | |
47 | ||
48 | #endif // _WX_MSGBOXDLG_H_ |