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