2010-08-18 22:48:41 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/generic/richmsgdlgg.h
|
|
|
|
// Purpose: wxGenericRichMessageDialog
|
|
|
|
// Author: Rickard Westerlund
|
|
|
|
// Created: 2010-07-04
|
|
|
|
// Copyright: (c) 2010 wxWidgets team
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_GENERIC_RICHMSGDLGG_H_
|
|
|
|
#define _WX_GENERIC_RICHMSGDLGG_H_
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxCheckBox;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxCollapsiblePane;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxCollapsiblePaneEvent;
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxGenericRichMessageDialog
|
|
|
|
: public wxRichMessageDialogBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGenericRichMessageDialog(wxWindow *parent,
|
|
|
|
const wxString& message,
|
2014-09-04 19:45:08 +00:00
|
|
|
const wxString& caption = wxMessageBoxCaptionStr,
|
|
|
|
long style = wxOK | wxCENTRE)
|
2010-08-18 22:48:41 +00:00
|
|
|
: wxRichMessageDialogBase( parent, message, caption, style ),
|
|
|
|
m_checkBox(NULL),
|
|
|
|
m_detailsPane(NULL)
|
|
|
|
{ }
|
|
|
|
|
2015-09-07 00:20:42 +00:00
|
|
|
virtual bool IsCheckBoxChecked() const wxOVERRIDE;
|
2010-08-18 22:48:41 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
wxCheckBox *m_checkBox;
|
|
|
|
wxCollapsiblePane *m_detailsPane;
|
|
|
|
|
|
|
|
// overrides methods in the base class
|
2015-09-07 00:20:42 +00:00
|
|
|
virtual void AddMessageDialogCheckBox(wxSizer *sizer) wxOVERRIDE;
|
|
|
|
virtual void AddMessageDialogDetails(wxSizer *sizer) wxOVERRIDE;
|
2010-08-18 22:48:41 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void OnPaneChanged(wxCollapsiblePaneEvent& event);
|
|
|
|
|
2015-04-23 11:49:01 +00:00
|
|
|
wxDECLARE_EVENT_TABLE();
|
2010-08-18 22:48:41 +00:00
|
|
|
|
|
|
|
wxDECLARE_NO_COPY_CLASS(wxGenericRichMessageDialog);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_GENERIC_RICHMSGDLGG_H_
|