X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/33ac7e6f01acbac1cff0ad400d8ea7f0bfd0a62f..8d5eff606ae62a36ea2ccecc017a810081cdc22d:/include/wx/generic/treelay.h diff --git a/include/wx/generic/treelay.h b/include/wx/generic/treelay.h index 92963b63db..9113f78f8a 100644 --- a/include/wx/generic/treelay.h +++ b/include/wx/generic/treelay.h @@ -16,7 +16,16 @@ #pragma interface "wxtree.h" #endif -#include +#ifndef WX_PRECOMP +#include "wx/object.h" +class wxList; +class wxDC; +class wxMouseEvent; +#endif + +#include "wx/string.h" + +#if wxUSE_TREELAYOUT class WXDLLEXPORT wxTreeLayout: public wxObject { @@ -24,6 +33,7 @@ class WXDLLEXPORT wxTreeLayout: public wxObject public: wxTreeLayout(); + virtual ~wxTreeLayout() { } // Redefine these virtual void GetChildren(long id, wxList& list) = 0; @@ -98,7 +108,7 @@ class WXDLLEXPORT wxTreeLayoutStored: public wxTreeLayout DECLARE_DYNAMIC_CLASS(wxTreeLayoutStored) public: wxTreeLayoutStored(int noNodes = 200); - ~wxTreeLayoutStored(void); + virtual ~wxTreeLayoutStored(void); void Initialize(int n); wxString HitTest(wxMouseEvent& event, wxDC& dc); @@ -133,6 +143,9 @@ private: // For backward compatibility #define wxStoredTree wxTreeLayoutStored +#endif + // wxUSE_TREELAYOUT + #endif // _WX_TREELAY_H_