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:
Vadim Zeitlin
2010-08-19 00:06:12 +00:00
parent 84bf3902cf
commit d482d5e468
2 changed files with 9 additions and 6 deletions

View File

@@ -28,12 +28,7 @@ public:
m_detailsPane(NULL)
{ }
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();
}
virtual bool IsCheckBoxChecked() const;
protected:
wxCheckBox *m_checkBox;

View File

@@ -18,6 +18,7 @@
#if wxUSE_RICHMSGDLG
#ifndef WX_PRECOMP
#include "wx/checkbox.h"
#include "wx/stattext.h"
#include "wx/sizer.h"
#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