]> git.saurik.com Git - wxWidgets.git/commitdiff
renamed DoHitTest() to DoTreeHitTest() to avoid conflict with existing wxWindow method
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Oct 2005 19:31:40 +0000 (19:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Oct 2005 19:31:40 +0000 (19:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/treectlg.h
include/wx/msw/treectrl.h
include/wx/treectrl.h
src/generic/treectlg.cpp
src/msw/treectrl.cpp

index 833cfd1cc7396f95dbed1118885e2dc606583777..700b9a378c59eab5e9b2ffe4c70f5583cc968685 100644 (file)
@@ -304,7 +304,7 @@ protected:
                                        const wxString& text,
                                        int image = -1, int selImage = -1,
                                        wxTreeItemData *data = NULL);
-    virtual wxTreeItemId DoHitTest(const wxPoint& point, int& flags);
+    virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags);
 
     // called by wxTextTreeCtrl when it marks itself for deletion
     void ResetTextControl();
index bdb4123a74045be720c6899f3fed276a45143ce3..b19b5ba4f68ddddbed13ed43449f6e3368b66eb7 100644 (file)
@@ -271,7 +271,7 @@ private:
                                        const wxString& text,
                                        int image = -1, int selImage = -1,
                                        wxTreeItemData *data = NULL);
-    virtual wxTreeItemId DoHitTest(const wxPoint& point, int& flags);
+    virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags);
 
     int DoGetItemImageFromData(const wxTreeItemId& item,
                                wxTreeItemIcon which) const;
index 2abdade7118e80f4a31738f5d91f21e441186a70..0b4587bc7947cb275aff4abe33bbdaec82e43bc5 100644 (file)
@@ -351,9 +351,9 @@ public:
         // and, in the second variant, fill the flags parameter with a bitmask
         // of wxTREE_HITTEST_xxx constants.
     wxTreeItemId HitTest(const wxPoint& point)
-        { int dummy; return DoHitTest(point, dummy); }
+        { int dummy; return DoTreeHitTest(point, dummy); }
     wxTreeItemId HitTest(const wxPoint& point, int& flags)
-        { return DoHitTest(point, flags); }
+        { return DoTreeHitTest(point, flags); }
 
         // get the bounding rectangle of the item (or of its label only)
     virtual bool GetBoundingRect(const wxTreeItemId& item,
@@ -390,7 +390,8 @@ protected:
 
     // real HitTest() implementation: again, can't be called just HitTest()
     // because it's overloaded and so the non-virtual overload would be hidden
-    virtual wxTreeItemId DoHitTest(const wxPoint& point, int& flags) = 0;
+    // (and can't be called DoHitTest() because this is already in wxWindow)
+    virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) = 0;
 
 
     wxImageList *m_imageListNormal, // images for tree elements
index 9284957c8e4b5e39b8f891b0dda95de4297f2078..112fecc4d19cff427ae19e396e2fd0e20076878c 100644 (file)
@@ -2838,7 +2838,7 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
     }
 }
 
-wxTreeItemId wxGenericTreeCtrl::DoHitTest(const wxPoint& point, int& flags)
+wxTreeItemId wxGenericTreeCtrl::DoTreeHitTest(const wxPoint& point, int& flags)
 {
     // JACS: removed wxYieldIfNeeded() because it can cause the window
     // to be deleted from under us if a close window event is pending
index b564f3f4b5e6a2cc78274466a5b2a21ec4c42859..cd3942ed1ca019184ab97bc710eac6fa078aee41 100644 (file)
@@ -2014,7 +2014,7 @@ void wxTreeCtrl::DoEndEditLabel(bool discardChanges)
     DeleteTextCtrl();
 }
 
-wxTreeItemId wxTreeCtrl::DoHitTest(const wxPoint& point, int& flags)
+wxTreeItemId wxTreeCtrl::DoTreeHitTest(const wxPoint& point, int& flags)
 {
     TV_HITTESTINFO hitTestInfo;
     hitTestInfo.pt.x = (int)point.x;