X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/13de0c8c9b6b3d2e8ce5a21388f5f104b2f68338..2a32f1733dd39882d58627d5cb22dbdeb54eb693:/include/wx/generic/dirctrlg.h diff --git a/include/wx/generic/dirctrlg.h b/include/wx/generic/dirctrlg.h index d9680ecaea..e554f38182 100644 --- a/include/wx/generic/dirctrlg.h +++ b/include/wx/generic/dirctrlg.h @@ -64,7 +64,7 @@ class WXDLLEXPORT wxDirItemData : public wxTreeItemData { public: wxDirItemData(const wxString& path, const wxString& name, bool isDir); - ~wxDirItemData(); + ~wxDirItemData(){} void SetNewDirName(const wxString& path); bool HasSubDirs() const; @@ -168,7 +168,11 @@ public: // Collapse & expand the tree, thus re-creating it from scratch: virtual void ReCreateTree(); + // Collapse the entire tree + virtual void CollapseTree(); + protected: + virtual void ExpandRoot(); virtual void ExpandDir(wxTreeItemId parentId); virtual void CollapseDir(wxTreeItemId parentId); virtual const wxTreeItemId AddSection(const wxString& path, const wxString& name, int imageId = 0); @@ -177,6 +181,7 @@ protected: int image = -1, int selectedImage = -1, wxTreeItemData * data = NULL); //void FindChildFiles(wxTreeItemId id, int dirFlags, wxArrayString& filenames); + virtual wxTreeCtrl* CreateTreeCtrl(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long treeStyle); // Extract description and actual filter from overall filter string bool ExtractWildcard(const wxString& filterStr, int n, wxString& filter, wxString& description); @@ -222,7 +227,7 @@ public: void Init(); - ~wxDirFilterListCtrl() {}; + ~wxDirFilterListCtrl() {} //// Operations void FillFilterList(const wxString& filter, int defaultFilter); @@ -284,7 +289,7 @@ protected: }; // The global fileicons table -WXDLLEXPORT_DATA(extern wxFileIconsTable *) wxTheFileIconsTable; +extern WXDLLEXPORT_DATA(wxFileIconsTable *) wxTheFileIconsTable; #endif // wxUSE_DIRDLG || wxUSE_FILEDLG