]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/treelay.h
Set/GetTitle out of wxWindowBase, forked and put to gtk/window.h and mgl/window.h...
[wxWidgets.git] / include / wx / generic / treelay.h
index 92963b63dbc7c7de0d54bcbc8412f643c9d3d1a3..9c626dcf9fe278c5b5d82939385943b84cd07158 100644 (file)
 #pragma interface "wxtree.h"
 #endif
 
+#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
 {
     DECLARE_ABSTRACT_CLASS(wxTreeLayout)
 
 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_