a better compilation fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-10-30 22:23:22 +00:00
parent 14f4cead9d
commit d34ad9ea89
3 changed files with 12 additions and 9 deletions

View File

@ -95,11 +95,10 @@ typedef void (wxEvtHandler::*wxCollapsiblePaneEventFunction)(wxCollapsiblePaneEv
#else
#include "wx/generic/collpaneg.h"
// use a typedef and not a #define to avoid problems with XRC forward declarations
typedef wxGenericCollapsiblePane wxCollapsiblePane;
// use #define and not a typedef to allow forward declaring the class
#define wxCollapsiblePane wxGenericCollapsiblePane
#endif
#endif // wxUSE_COLLPANE
#endif // wxUSE_COLLPANE
#endif
// _WX_COLLAPSABLE_PANE_H_BASE_
#endif // _WX_COLLAPSABLE_PANE_H_BASE_

View File

@ -15,12 +15,10 @@
#if wxUSE_XRC && wxUSE_COLLPANE
#include "wx/collpane.h"
class WXDLLIMPEXP_ADV wxCollapsiblePane;
class WXDLLIMPEXP_XRC wxCollapsiblePaneXmlHandler : public wxXmlResourceHandler
{
DECLARE_DYNAMIC_CLASS(wxCollapsiblePaneXmlHandler)
public:
wxCollapsiblePaneXmlHandler();
virtual wxObject *DoCreateResource();
@ -29,6 +27,8 @@ public:
private:
bool m_isInside;
wxCollapsiblePane *m_collpane;
DECLARE_DYNAMIC_CLASS(wxCollapsiblePaneXmlHandler)
};
#endif // wxUSE_XRC && wxUSE_COLLPANE

View File

@ -17,8 +17,12 @@
#if wxUSE_XRC && wxUSE_COLLPANE
#ifndef WX_PRECOMP
#include "wx/log.h"
#endif
#include "wx/collpane.h"
#include "wx/xrc/xh_collpane.h"
#include "wx/log.h"
IMPLEMENT_DYNAMIC_CLASS(wxCollapsiblePaneXmlHandler, wxXmlResourceHandler)