| 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 | // 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 | |
| 16 | class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase |
| 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 | #if wxOSX_USE_COCOA |
| 26 | ~wxMessageDialog(); |
| 27 | #endif |
| 28 | |
| 29 | virtual int ShowModal(); |
| 30 | |
| 31 | #if wxOSX_USE_COCOA |
| 32 | virtual void ShowWindowModal(); |
| 33 | virtual void ModalFinishedCallback(void* panel, int resultCode); |
| 34 | #endif |
| 35 | |
| 36 | protected: |
| 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 | |
| 42 | #if wxOSX_USE_COCOA |
| 43 | void* ConstructNSAlert(); |
| 44 | #endif |
| 45 | |
| 46 | int m_buttonId[3]; |
| 47 | int m_buttonCount; |
| 48 | |
| 49 | #if wxOSX_USE_COCOA |
| 50 | WX_NSObject m_sheetDelegate; |
| 51 | #endif |
| 52 | DECLARE_DYNAMIC_CLASS(wxMessageDialog) |
| 53 | }; |
| 54 | |
| 55 | #endif // _WX_MSGBOXDLG_H_ |