2009-01-17 05:43:43 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2010-07-13 09:29:58 -04:00
|
|
|
// Name: wx/osx/msgdlg.h
|
2009-01-17 05:43:43 -05:00
|
|
|
// Purpose: wxMessageDialog class. Use generic version if no
|
|
|
|
// platform-specific implementation.
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// Copyright: (c) Stefan Csomor
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSGBOXDLG_H_
|
|
|
|
#define _WX_MSGBOXDLG_H_
|
|
|
|
|
2010-08-18 18:48:28 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
|
2009-01-17 05:43:43 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxMessageDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK|wxCENTRE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
|
|
|
|
2011-06-08 20:28:28 -04:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
~wxMessageDialog();
|
|
|
|
#endif
|
|
|
|
|
2009-01-17 05:43:43 -05:00
|
|
|
virtual int ShowModal();
|
2010-09-30 07:44:45 -04:00
|
|
|
|
2010-01-27 23:06:23 -05:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
virtual void ShowWindowModal();
|
|
|
|
virtual void ModalFinishedCallback(void* panel, int resultCode);
|
|
|
|
#endif
|
2009-01-17 05:43:43 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// not supported for message dialog
|
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
|
|
|
|
2010-01-27 23:06:23 -05:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
void* ConstructNSAlert();
|
|
|
|
#endif
|
|
|
|
|
2011-08-04 18:53:42 -04:00
|
|
|
int m_buttonId[4];
|
2010-01-27 23:06:23 -05:00
|
|
|
int m_buttonCount;
|
|
|
|
|
2011-06-08 20:28:28 -04:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
WX_NSObject m_sheetDelegate;
|
|
|
|
#endif
|
2009-01-17 05:43:43 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSGBOXDLG_H_
|