]> git.saurik.com Git - wxWidgets.git/commitdiff
Windows compilation fixes after wxTreeCtrl refactoring
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Oct 2005 20:36:20 +0000 (20:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 10 Oct 2005 20:36:20 +0000 (20:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp
src/msw/treectrl.cpp

index 7f91f9298cdd89bccade27388dcfd2866133e5d1..87df794ad039653b350c5ef7b11be0a1897702b2 100644 (file)
@@ -2962,7 +2962,7 @@ void wxGenericTreeCtrl::OnRenameCancelled(wxGenericTreeItem *item)
 
 void wxGenericTreeCtrl::OnRenameTimer()
 {
-    Edit( m_current );
+    EditLabel( m_current );
 }
 
 void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
index ffa8a9a15a808e0ece43e7adf13a137e581c560d..05f3ed977df744f9f53af1ecdea5c12e5b327fee 100644 (file)
@@ -42,7 +42,7 @@
 #include "wx/dynarray.h"
 #include "wx/imaglist.h"
 #include "wx/settings.h"
-#include "wx/msw/treectrl.h"
+#include "wx/treectrl.h"
 #include "wx/msw/dragimag.h"
 
 // macros to hide the cast ugliness
@@ -1693,7 +1693,7 @@ wxTreeItemId wxTreeCtrl::InsertItem(const wxTreeItemId& parent,
 
 wxImageList *wxTreeCtrl::GetImageList(int) const
 {
-    return GetImageList();
+    return wxTreeCtrlBase::GetImageList();
 }
 
 void wxTreeCtrl::SetImageList(wxImageList *imageList, int)
@@ -1955,16 +1955,6 @@ void wxTreeCtrl::SelectItem(const wxTreeItemId& item, bool select)
     }
 }
 
-void wxTreeCtrl::UnselectItem(const wxTreeItemId& item)
-{
-    SelectItem(item, false);
-}
-
-void wxTreeCtrl::ToggleItemSelection(const wxTreeItemId& item)
-{
-    SelectItem(item, !IsSelected(item));
-}
-
 void wxTreeCtrl::EnsureVisible(const wxTreeItemId& item)
 {
     // no error return
@@ -2131,12 +2121,6 @@ int CALLBACK wxTreeSortHelper::Compare(LPARAM pItem1,
                                 GetIdFromData(tree, pItem2));
 }
 
-int wxTreeCtrl::OnCompareItems(const wxTreeItemId& item1,
-                               const wxTreeItemId& item2)
-{
-    return wxStrcmp(GetItemText(item1), GetItemText(item2));
-}
-
 void wxTreeCtrl::SortChildren(const wxTreeItemId& item)
 {
     wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );