]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/treectrl.h
fix the bug which prevented the same wxFile/DirDialog object from being used twice...
[wxWidgets.git] / include / wx / msw / treectrl.h
index 0afc4f5c5d7d5360bea9b42b3d2b5b1d1850879a..99906f62f7261cbbce8a65a3cc2eaee903f6c01b 100644 (file)
@@ -247,11 +247,6 @@ protected:
     // end edit label
     void DoEndEditLabel(bool discardChanges = false);
 
-
-    // data used only while editing the item label:
-    wxTextCtrl  *m_textCtrl;        // text control in which it is edited
-    wxTreeItemId m_idEdited;        // the item being edited
-
     virtual wxTreeItemId DoInsertItem(const wxTreeItemId& parent,
                                       size_t pos,
                                       const wxString& text,
@@ -264,6 +259,14 @@ protected:
                                        wxTreeItemData *data = NULL);
     virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags);
 
+    // obtain the user data for the lParam member of TV_ITEM
+    class wxTreeItemParam *GetItemParam(const wxTreeItemId& item) const;
+
+
+    // data used only while editing the item label:
+    wxTextCtrl  *m_textCtrl;        // text control in which it is edited
+    wxTreeItemId m_idEdited;        // the item being edited
+
 private:
     // the common part of all ctors
     void Init();
@@ -274,23 +277,8 @@ private:
 
     inline void DoExpand(const wxTreeItemId& item, int flag);
 
-    int DoGetItemImageFromData(const wxTreeItemId& item,
-                               wxTreeItemIcon which) const;
-    void DoSetItemImageFromData(const wxTreeItemId& item,
-                                int image,
-                                wxTreeItemIcon which) const;
-    void DoSetItemImages(const wxTreeItemId& item, int image, int imageSel);
-
     void DeleteTextCtrl();
 
-    // support for additional item images which we implement using
-    // wxTreeItemIndirectData technique - see the comments in msw/treectrl.cpp
-    void SetIndirectItemData(const wxTreeItemId& item,
-                             class wxTreeItemIndirectData *data);
-    bool HasIndirectData(const wxTreeItemId& item) const;
-    bool IsDataIndirect(wxTreeItemData *data) const
-        { return data && data->GetId().m_pItem == 0; }
-
     // the hash storing the items attributes (indexed by item ids)
     wxMapTreeAttr m_attrs;