]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/treectrl/treectrl.h
added missing methods/removed duplicated base methods
[wxWidgets.git] / samples / treectrl / treectrl.h
index 6a6dc6702f4c495c8fc045f7fbee44c664e59583..3f89a7206487f84d9c1828f83eab3f9d29368ca6 100644 (file)
@@ -9,6 +9,16 @@
 // Licence:     wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
+#define USE_GENERIC_TREECTRL 0
+
+#if USE_GENERIC_TREECTRL
+#include "wx/generic/treectlg.h"
+#ifndef wxTreeCtrl
+#define wxTreeCtrl wxGenericTreeCtrl
+#define sm_classwxTreeCtrl sm_classwxGenericTreeCtrl
+#endif
+#endif
+
 // Define a new application type
 class MyApp : public wxApp
 {
@@ -60,7 +70,10 @@ public:
     void OnBeginLabelEdit(wxTreeEvent& event);
     void OnEndLabelEdit(wxTreeEvent& event);
     void OnDeleteItem(wxTreeEvent& event);
+    void OnRMouseUp(wxMouseEvent& event);
     void OnGetInfo(wxTreeEvent& event);
+    void OnTreeRMouseClick(wxTreeEvent& event);
+    void OnItemRightClick(wxTreeEvent& event);
     void OnSetInfo(wxTreeEvent& event);
     void OnItemExpanded(wxTreeEvent& event);
     void OnItemExpanding(wxTreeEvent& event);
@@ -84,6 +97,8 @@ public:
 
     void DoToggleIcon(const wxTreeItemId& item);
 
+    void ShowMenu(wxTreeItemId id, const wxPoint& pt);
+
 protected:
     virtual int OnCompareItems(const wxTreeItemId& i1, const wxTreeItemId& i2);