#ifndef _GENERIC_TREECTRL_H_
#define _GENERIC_TREECTRL_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "treectlg.h"
-#endif
-
#if wxUSE_TREECTRL
#include "wx/scrolwin.h"
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
// 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);
#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
wxString m_findPrefix;
wxTimer *m_findTimer;
+ bool m_dropEffectAboveItem;
+
// the common part of all ctors
void Init();