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
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// 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);
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
int m_buttonId[3];
|
|
|
|
int m_buttonCount;
|
|
|
|
|
2009-01-17 05:43:43 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSGBOXDLG_H_
|