]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/msgdlg.h
fix gcc warning about possibly uninitialized variables
[wxWidgets.git] / include / wx / mac / carbon / msgdlg.h
CommitLineData
8cf73271 1/////////////////////////////////////////////////////////////////////////////
e5b50758 2// Name: wx/mac/carbon/msgdlg.h
8cf73271
SC
3// Purpose: wxMessageDialog class. Use generic version if no
4// platform-specific implementation.
5// Author: Stefan Csomor
6// Modified by:
7// Created: 1998-01-01
8// RCS-ID: $Id$
9// Copyright: (c) Stefan Csomor
65571936 10// Licence: wxWindows licence
8cf73271
SC
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_MSGBOXDLG_H_
14#define _WX_MSGBOXDLG_H_
15
2afb9e16 16class WXDLLEXPORT wxMessageDialog : public wxMessageDialogBase
8cf73271 17{
8cf73271
SC
18public:
19 wxMessageDialog(wxWindow *parent,
20 const wxString& message,
21 const wxString& caption = wxMessageBoxCaptionStr,
22 long style = wxOK|wxCENTRE,
23 const wxPoint& pos = wxDefaultPosition);
24
2afb9e16
VZ
25 virtual int ShowModal();
26
27 // customization of the message box
28 virtual bool SetYesNoLabels(const wxString& yes,const wxString& no);
29 virtual bool SetYesNoCancelLabels(const wxString& yes, const wxString& no, const wxString& cancel);
30 virtual bool SetOKLabel(const wxString& ok);
31 virtual bool SetOKCancelLabels(const wxString& ok, const wxString& cancel);
e5b50758 32
6f02a879 33protected:
2afb9e16 34 // not supported for message dialog
8cf73271
SC
35 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
36 int WXUNUSED(width), int WXUNUSED(height),
37 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
38
2afb9e16
VZ
39 // labels for the buttons
40 wxString m_yes,
41 m_no,
42 m_ok,
43 m_cancel;
44
45 DECLARE_DYNAMIC_CLASS(wxMessageDialog)
8cf73271
SC
46};
47
2afb9e16 48#endif // _WX_MSGBOXDLG_H_