X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a78955e377453e2b8dacdbea05c3f5a8769d5e58..456fd7b661b2aa150443fe47a8c9c728c0509f73:/include/wx/generic/treectlg.h diff --git a/include/wx/generic/treectlg.h b/include/wx/generic/treectlg.h index e0534af854..82dcaa849d 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 @@ -207,10 +210,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 @@ -447,6 +449,8 @@ protected: // incremental search data wxString m_findPrefix; wxTimer *m_findTimer; + + bool m_dropEffectAboveItem; // the common part of all ctors void Init(); @@ -503,6 +507,7 @@ protected: bool TagAllChildrenUntilLast(wxGenericTreeItem *crt_item, wxGenericTreeItem *last_item, bool select); bool TagNextChildren(wxGenericTreeItem *crt_item, wxGenericTreeItem *last_item, bool select); void UnselectAllChildren( wxGenericTreeItem *item ); + void ChildrenClosing(wxGenericTreeItem* item); private: DECLARE_EVENT_TABLE()