]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/msgdlgg.h
Applied rowspan patch #15276 (dghart)
[wxWidgets.git] / include / wx / generic / msgdlgg.h
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
e5b50758 2// Name: wx/generic/msgdlgg.h
c801d85f
KB
3// Purpose: Generic wxMessageDialog
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
e5b50758 8// Copyright: (c) Julian Smart
ca65c044 9// Licence: wxWindows licence
c801d85f
KB
10/////////////////////////////////////////////////////////////////////////////
11
2afb9e16
VZ
12#ifndef _WX_GENERIC_MSGDLGG_H_
13#define _WX_GENERIC_MSGDLGG_H_
c801d85f 14
d20ba5f8
VZ
15class WXDLLIMPEXP_FWD_CORE wxSizer;
16
53a2db12 17class WXDLLIMPEXP_CORE wxGenericMessageDialog : public wxMessageDialogBase
c801d85f 18{
c801d85f 19public:
2afb9e16
VZ
20 wxGenericMessageDialog(wxWindow *parent,
21 const wxString& message,
22 const wxString& caption = wxMessageBoxCaptionStr,
23 long style = wxOK|wxCENTRE,
24 const wxPoint& pos = wxDefaultPosition);
c801d85f 25
2afb9e16
VZ
26 virtual int ShowModal();
27
28protected:
ede7b017
VZ
29 // Creates a message dialog taking any options that have been set after
30 // object creation into account such as custom labels.
31 void DoCreateMsgdialog();
32
c801d85f
KB
33 void OnYes(wxCommandEvent& event);
34 void OnNo(wxCommandEvent& event);
7112cdd1 35 void OnHelp(wxCommandEvent& event);
c801d85f 36 void OnCancel(wxCommandEvent& event);
2179d579 37
ede7b017
VZ
38 // can be overridden to provide more contents to the dialog
39 virtual void AddMessageDialogCheckBox(wxSizer *WXUNUSED(sizer)) { }
40 virtual void AddMessageDialogDetails(wxSizer *WXUNUSED(sizer)) { }
2afb9e16 41
ede7b017 42private:
d20ba5f8
VZ
43 // Creates and returns a standard button sizer using the style of this
44 // dialog and the custom labels, if any.
45 //
46 // May return NULL on smart phone platforms not using buttons at all.
47 wxSizer *CreateMsgDlgButtonSizer();
48
2afb9e16
VZ
49 wxPoint m_pos;
50 bool m_created;
51
479cd5de 52 DECLARE_EVENT_TABLE()
2afb9e16 53 DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog)
c801d85f
KB
54};
55
2afb9e16 56#endif // _WX_GENERIC_MSGDLGG_H_