From 642446e3bfa9364d8d2971f2f53a2d5588608c19 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 10 Oct 2005 20:36:20 +0000 Subject: [PATCH] Windows compilation fixes after wxTreeCtrl refactoring git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 2 +- src/msw/treectrl.cpp | 20 ++------------------ 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 7f91f9298c..87df794ad0 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2962,7 +2962,7 @@ void wxGenericTreeCtrl::OnRenameCancelled(wxGenericTreeItem *item) void wxGenericTreeCtrl::OnRenameTimer() { - Edit( m_current ); + EditLabel( m_current ); } void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event ) diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index ffa8a9a15a..05f3ed977d 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -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") );