2009-01-17 10:43:43 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2010-07-13 13:29:58 +00:00
|
|
|
// Name: wx/osx/msgdlg.h
|
2009-01-17 10:43:43 +00: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 22:48:28 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxMessageDialog : public wxMessageDialogBase
|
2009-01-17 10:43:43 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxMessageDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK|wxCENTRE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
|
|
|
|
2011-06-09 00:28:28 +00:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
~wxMessageDialog();
|
|
|
|
#endif
|
2019-01-30 16:28:08 +00:00
|
|
|
|
2019-04-05 18:08:53 +00:00
|
|
|
virtual int ShowModal() wxOVERRIDE;
|
2010-09-30 11:44:45 +00:00
|
|
|
|
2010-01-28 04:06:23 +00:00
|
|
|
#if wxOSX_USE_COCOA
|
2019-04-05 18:08:53 +00:00
|
|
|
virtual void ShowWindowModal() wxOVERRIDE;
|
|
|
|
virtual void ModalFinishedCallback(void* panel, int resultCode) wxOVERRIDE;
|
2010-01-28 04:06:23 +00:00
|
|
|
#endif
|
2009-01-17 10:43:43 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// not supported for message dialog
|
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
2019-04-17 17:05:31 +00:00
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) wxOVERRIDE {}
|
2009-01-17 10:43:43 +00:00
|
|
|
|
2010-01-28 04:06:23 +00:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
void* ConstructNSAlert();
|
|
|
|
#endif
|
|
|
|
|
2011-08-04 22:53:42 +00:00
|
|
|
int m_buttonId[4];
|
2010-01-28 04:06:23 +00:00
|
|
|
int m_buttonCount;
|
|
|
|
|
2011-06-09 00:28:28 +00:00
|
|
|
#if wxOSX_USE_COCOA
|
|
|
|
WX_NSObject m_sheetDelegate;
|
|
|
|
#endif
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxMessageDialog);
|
2009-01-17 10:43:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSGBOXDLG_H_
|