msgdlg.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #ifndef _WX_MSGBOXDLG_H_
  12. #define _WX_MSGBOXDLG_H_
  13. class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
  14. {
  15. public:
  16. wxMessageDialog(wxWindow *parent,
  17. const wxString& message,
  18. const wxString& caption = wxMessageBoxCaptionStr,
  19. long style = wxOK|wxCENTRE,
  20. const wxPoint& pos = wxDefaultPosition);
  21. #if wxOSX_USE_COCOA
  22. ~wxMessageDialog();
  23. #endif
  24. virtual int ShowModal();
  25. #if wxOSX_USE_COCOA
  26. virtual void ShowWindowModal();
  27. virtual void ModalFinishedCallback(void* panel, int resultCode);
  28. #endif
  29. protected:
  30. // not supported for message dialog
  31. virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
  32. int WXUNUSED(width), int WXUNUSED(height),
  33. int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
  34. #if wxOSX_USE_COCOA
  35. void* ConstructNSAlert();
  36. #endif
  37. int m_buttonId[4];
  38. int m_buttonCount;
  39. #if wxOSX_USE_COCOA
  40. WX_NSObject m_sheetDelegate;
  41. #endif
  42. DECLARE_DYNAMIC_CLASS(wxMessageDialog)
  43. };
  44. #endif // _WX_MSGBOXDLG_H_