Compilation fix for non-PCH build in wxGenericRichMessageDialog code.
Move IsCheckBoxChecked() to the .cpp file where wxCheckBox is fully defined and not just forward declared (at least when not using PCH). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,12 +28,7 @@ public:
|
|||||||
m_detailsPane(NULL)
|
m_detailsPane(NULL)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
virtual bool IsCheckBoxChecked() const
|
virtual bool IsCheckBoxChecked() const;
|
||||||
{
|
|
||||||
// This function can be called before the dialog is shown and hence
|
|
||||||
// before the check box is created.
|
|
||||||
return m_checkBox? m_checkBoxValue : m_checkBox->IsChecked();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxCheckBox *m_checkBox;
|
wxCheckBox *m_checkBox;
|
||||||
|
@@ -18,6 +18,7 @@
|
|||||||
#if wxUSE_RICHMSGDLG
|
#if wxUSE_RICHMSGDLG
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/checkbox.h"
|
||||||
#include "wx/stattext.h"
|
#include "wx/stattext.h"
|
||||||
#include "wx/sizer.h"
|
#include "wx/sizer.h"
|
||||||
#endif
|
#endif
|
||||||
@@ -84,4 +85,11 @@ void wxGenericRichMessageDialog::AddMessageDialogDetails(wxSizer *sizer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxGenericRichMessageDialog::IsCheckBoxChecked() const
|
||||||
|
{
|
||||||
|
// This function can be called before the dialog is shown and hence before
|
||||||
|
// the check box is created.
|
||||||
|
return m_checkBox? m_checkBoxValue : m_checkBox->IsChecked();
|
||||||
|
}
|
||||||
|
|
||||||
#endif // wxUSE_RICHMSGDLG
|
#endif // wxUSE_RICHMSGDLG
|
||||||
|
Reference in New Issue
Block a user