]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/richmsgdlgg.h
Add wxActivateEvent::GetActivationReason().
[wxWidgets.git] / include / wx / generic / richmsgdlgg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/richmsgdlgg.h
3 // Purpose: wxGenericRichMessageDialog
4 // Author: Rickard Westerlund
5 // Created: 2010-07-04
6 // Copyright: (c) 2010 wxWidgets team
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GENERIC_RICHMSGDLGG_H_
11 #define _WX_GENERIC_RICHMSGDLGG_H_
12
13 class WXDLLIMPEXP_FWD_CORE wxCheckBox;
14 class WXDLLIMPEXP_FWD_CORE wxCollapsiblePane;
15 class WXDLLIMPEXP_FWD_CORE wxCollapsiblePaneEvent;
16
17 class WXDLLIMPEXP_CORE wxGenericRichMessageDialog
18 : public wxRichMessageDialogBase
19 {
20 public:
21 wxGenericRichMessageDialog(wxWindow *parent,
22 const wxString& message,
23 const wxString& caption,
24 long style)
25 : wxRichMessageDialogBase( parent, message, caption, style ),
26 m_checkBox(NULL),
27 m_detailsPane(NULL)
28 { }
29
30 virtual bool IsCheckBoxChecked() const;
31
32 protected:
33 wxCheckBox *m_checkBox;
34 wxCollapsiblePane *m_detailsPane;
35
36 // overrides methods in the base class
37 virtual void AddMessageDialogCheckBox(wxSizer *sizer);
38 virtual void AddMessageDialogDetails(wxSizer *sizer);
39
40 private:
41 void OnPaneChanged(wxCollapsiblePaneEvent& event);
42
43 DECLARE_EVENT_TABLE()
44
45 wxDECLARE_NO_COPY_CLASS(wxGenericRichMessageDialog);
46 };
47
48 #endif // _WX_GENERIC_RICHMSGDLGG_H_