X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cf3b5429a5729a8ed1da31ea2c133861090018a..60acae65faac4b98254c76437d4bb9ac55f5d759:/include/wx/generic/treectlg.h diff --git a/include/wx/generic/treectlg.h b/include/wx/generic/treectlg.h index 10132ad0e8..b1046c7c01 100644 --- a/include/wx/generic/treectlg.h +++ b/include/wx/generic/treectlg.h @@ -105,6 +105,9 @@ public: virtual void AssignStateImageList(wxImageList *imageList); virtual void AssignButtonsImageList(wxImageList *imageList); + virtual void SetDropEffectAboveItem( bool above = false ) { m_dropEffectAboveItem = above; } + virtual bool GetDropEffectAboveItem() const { return m_dropEffectAboveItem; } + // Functions to work with tree ctrl items. // accessors @@ -147,6 +150,9 @@ public: // the item will be shown in bold void SetItemBold(const wxTreeItemId& item, bool bold = true); + // the item will be shown with a drop highlight + void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true); + // set the item's text colour void SetItemTextColour(const wxTreeItemId& item, const wxColour& col); @@ -207,10 +213,9 @@ public: #if WXWIN_COMPATIBILITY_2_2 // deprecated: Use GetItemParent instead. - wxTreeItemId GetParent(const wxTreeItemId& item) const - { return GetItemParent( item ); } + wxDEPRECATED( wxTreeItemId GetParent(const wxTreeItemId& item) const); - // Expose the base class method hidden by the one above. + // Expose the base class method hidden by the one above. Not deprecatable. wxWindow *GetParent() const { return wxScrolledWindow::GetParent(); } #endif // WXWIN_COMPATIBILITY_2_2 @@ -356,10 +361,8 @@ public: #if WXWIN_COMPATIBILITY_2_4 // deprecated functions: use Set/GetItemImage directly - int GetItemSelectedImage(const wxTreeItemId& item) const - { return GetItemImage(item, wxTreeItemIcon_Selected); } - void SetItemSelectedImage(const wxTreeItemId& item, int image) - { SetItemImage(item, image, wxTreeItemIcon_Selected); } + wxDEPRECATED( int GetItemSelectedImage(const wxTreeItemId& item) const ); + wxDEPRECATED( void SetItemSelectedImage(const wxTreeItemId& item, int image) ); // use the versions taking wxTreeItemIdValue cookies (note that // GetNextChild() is not inside wxDEPRECATED on purpose, as otherwise we @@ -448,6 +451,8 @@ protected: wxString m_findPrefix; wxTimer *m_findTimer; + bool m_dropEffectAboveItem; + // the common part of all ctors void Init();