2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-03-11 10:34:42 -05:00
|
|
|
// Name: wx/mac/carbon/msgdlg.h
|
2004-03-23 12:35:05 -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
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:35:05 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSGBOXDLG_H_
|
|
|
|
#define _WX_MSGBOXDLG_H_
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
class WXDLLEXPORT wxMessageDialog : public wxMessageDialogBase
|
2004-03-23 12:35:05 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxMessageDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK|wxCENTRE,
|
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
virtual int ShowModal();
|
|
|
|
|
|
|
|
// customization of the message box
|
|
|
|
virtual bool SetYesNoLabels(const wxString& yes,const wxString& no);
|
|
|
|
virtual bool SetYesNoCancelLabels(const wxString& yes, const wxString& no, const wxString& cancel);
|
|
|
|
virtual bool SetOKLabel(const wxString& ok);
|
|
|
|
virtual bool SetOKCancelLabels(const wxString& ok, const wxString& cancel);
|
2005-03-11 10:34:42 -05:00
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
protected:
|
2007-05-24 08:50:42 -04:00
|
|
|
// not supported for message dialog
|
2004-03-23 12:35:05 -05:00
|
|
|
virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
|
|
|
|
int WXUNUSED(width), int WXUNUSED(height),
|
|
|
|
int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
// labels for the buttons
|
|
|
|
wxString m_yes,
|
|
|
|
m_no,
|
|
|
|
m_ok,
|
|
|
|
m_cancel;
|
|
|
|
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMessageDialog)
|
2004-03-23 12:35:05 -05:00
|
|
|
};
|
|
|
|
|
2007-05-24 08:50:42 -04:00
|
|
|
#endif // _WX_MSGBOXDLG_H_
|