X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..86ac84b8ce086e6bbda58f422d41f84268606e35:/include/wx/generic/dirctrlg.h diff --git a/include/wx/generic/dirctrlg.h b/include/wx/generic/dirctrlg.h index 7c0640be7d..b2ff47f63c 100644 --- a/include/wx/generic/dirctrlg.h +++ b/include/wx/generic/dirctrlg.h @@ -51,7 +51,9 @@ enum // Use 3D borders on internal controls wxDIRCTRL_3D_INTERNAL = 0x0080, // Editable labels - wxDIRCTRL_EDIT_LABELS = 0x0100 + wxDIRCTRL_EDIT_LABELS = 0x0100, + // Allow multiple selection + wxDIRCTRL_MULTIPLE = 0x0200 }; //----------------------------------------------------------------------------- @@ -128,12 +130,17 @@ public: // Get dir or filename virtual wxString GetPath() const; + virtual void GetPaths(wxArrayString& paths) const; // Get selected filename path only (else empty string). // I.e. don't count a directory as a selection virtual wxString GetFilePath() const; + virtual void GetFilePaths(wxArrayString& paths) const; virtual void SetPath(const wxString& path); + virtual void SelectPath(const wxString& path, bool select = true); + virtual void SelectPaths(const wxArrayString& paths); + virtual void ShowHidden( bool show ); virtual bool GetShowHidden() { return m_showHidden; } @@ -148,6 +155,8 @@ public: virtual wxTreeCtrl* GetTreeCtrl() const { return m_treeCtrl; } virtual wxDirFilterListCtrl* GetFilterListCtrl() const { return m_filterListCtrl; } + virtual void UnselectAll(); + // Helper virtual void SetupSections(); @@ -166,7 +175,6 @@ public: // Collapse the entire tree virtual void CollapseTree(); - // overridden base class methods virtual void SetFocus();