]>
Commit | Line | Data |
---|---|---|
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 | |
e5b50758 | 7 | // Copyright: (c) Julian Smart |
ca65c044 | 8 | // Licence: wxWindows licence |
c801d85f KB |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
2afb9e16 VZ |
11 | #ifndef _WX_GENERIC_MSGDLGG_H_ |
12 | #define _WX_GENERIC_MSGDLGG_H_ | |
c801d85f | 13 | |
d20ba5f8 VZ |
14 | class WXDLLIMPEXP_FWD_CORE wxSizer; |
15 | ||
53a2db12 | 16 | class WXDLLIMPEXP_CORE wxGenericMessageDialog : public wxMessageDialogBase |
c801d85f | 17 | { |
c801d85f | 18 | public: |
2afb9e16 VZ |
19 | wxGenericMessageDialog(wxWindow *parent, |
20 | const wxString& message, | |
21 | const wxString& caption = wxMessageBoxCaptionStr, | |
22 | long style = wxOK|wxCENTRE, | |
23 | const wxPoint& pos = wxDefaultPosition); | |
c801d85f | 24 | |
2afb9e16 VZ |
25 | virtual int ShowModal(); |
26 | ||
27 | protected: | |
ede7b017 VZ |
28 | // Creates a message dialog taking any options that have been set after |
29 | // object creation into account such as custom labels. | |
30 | void DoCreateMsgdialog(); | |
31 | ||
c801d85f KB |
32 | void OnYes(wxCommandEvent& event); |
33 | void OnNo(wxCommandEvent& event); | |
7112cdd1 | 34 | void OnHelp(wxCommandEvent& event); |
c801d85f | 35 | void OnCancel(wxCommandEvent& event); |
2179d579 | 36 | |
ede7b017 VZ |
37 | // can be overridden to provide more contents to the dialog |
38 | virtual void AddMessageDialogCheckBox(wxSizer *WXUNUSED(sizer)) { } | |
39 | virtual void AddMessageDialogDetails(wxSizer *WXUNUSED(sizer)) { } | |
2afb9e16 | 40 | |
ede7b017 | 41 | private: |
d20ba5f8 VZ |
42 | // Creates and returns a standard button sizer using the style of this |
43 | // dialog and the custom labels, if any. | |
44 | // | |
45 | // May return NULL on smart phone platforms not using buttons at all. | |
46 | wxSizer *CreateMsgDlgButtonSizer(); | |
47 | ||
2afb9e16 VZ |
48 | wxPoint m_pos; |
49 | bool m_created; | |
50 | ||
479cd5de | 51 | DECLARE_EVENT_TABLE() |
2afb9e16 | 52 | DECLARE_DYNAMIC_CLASS(wxGenericMessageDialog) |
c801d85f KB |
53 | }; |
54 | ||
2afb9e16 | 55 | #endif // _WX_GENERIC_MSGDLGG_H_ |