X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd775aae7b8eace70d8fc41a23623505ad568355..58071ea0089e929db5899d27072b10d79ed57f10:/include/wx/generic/dirctrlg.h?ds=sidebyside diff --git a/include/wx/generic/dirctrlg.h b/include/wx/generic/dirctrlg.h index 0689956072..f0456997a9 100644 --- a/include/wx/generic/dirctrlg.h +++ b/include/wx/generic/dirctrlg.h @@ -15,7 +15,7 @@ #ifndef _WX_DIRCTRL_H_ #define _WX_DIRCTRL_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "dirctrlg.h" #endif @@ -47,7 +47,7 @@ enum // Use 3D borders on internal controls wxDIRCTRL_3D_INTERNAL = 0x0080, // Editable labels - wxDIRCTRL_EDITABLE = 0x0100 + wxDIRCTRL_EDIT_LABELS = 0x0100 }; //----------------------------------------------------------------------------- @@ -157,8 +157,12 @@ public: // Resize the components of the control void DoResize(); + // Collapse & expand the tree, thus re-creating it from scratch: + void ReCreateTree(); + protected: void ExpandDir(wxTreeItemId parentId); + void CollapseDir(wxTreeItemId parentId); void AddSection(const wxString& path, const wxString& name, int imageId = 0); //void FindChildFiles(wxTreeItemId id, int dirFlags, wxArrayString& filenames);