X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c06dde42fe5dc8c97d0a6dbf1d6e590b198e8fbb..1e6b2edfc836c8867cb868e73d35f36a6e68f943:/include/wx/generic/dirctrlg.h?ds=inline diff --git a/include/wx/generic/dirctrlg.h b/include/wx/generic/dirctrlg.h index e554f38182..29bff51af6 100644 --- a/include/wx/generic/dirctrlg.h +++ b/include/wx/generic/dirctrlg.h @@ -15,10 +15,6 @@ #ifndef _WX_DIRCTRL_H_ #define _WX_DIRCTRL_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "dirctrlg.h" -#endif - #if wxUSE_DIRDLG || wxUSE_FILEDLG #include "wx/imaglist.h" #endif @@ -34,9 +30,9 @@ // classes //----------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxTextCtrl; -class WXDLLIMPEXP_CORE wxImageList; -class WXDLLIMPEXP_BASE wxHashTable; +class WXDLLIMPEXP_FWD_CORE wxTextCtrl; +class WXDLLIMPEXP_FWD_CORE wxImageList; +class WXDLLIMPEXP_FWD_BASE wxHashTable; //----------------------------------------------------------------------------- // Extra styles for wxGenericDirCtrl @@ -48,8 +44,10 @@ enum wxDIRCTRL_DIR_ONLY = 0x0010, // When setting the default path, select the first file in the directory wxDIRCTRL_SELECT_FIRST = 0x0020, - // Show the filter list +#if WXWIN_COMPATIBILITY_2_8 + // Unused, for compatibility only wxDIRCTRL_SHOW_FILTERS = 0x0040, +#endif // WXWIN_COMPATIBILITY_2_8 // Use 3D borders on internal controls wxDIRCTRL_3D_INTERNAL = 0x0080, // Editable labels @@ -64,7 +62,7 @@ class WXDLLEXPORT wxDirItemData : public wxTreeItemData { public: wxDirItemData(const wxString& path, const wxString& name, bool isDir); - ~wxDirItemData(){} + virtual ~wxDirItemData(){} void SetNewDirName(const wxString& path); bool HasSubDirs() const; @@ -80,7 +78,7 @@ public: // wxDirCtrl //----------------------------------------------------------------------------- -class WXDLLEXPORT wxDirFilterListCtrl; +class WXDLLIMPEXP_FWD_CORE wxDirFilterListCtrl; class WXDLLEXPORT wxGenericDirCtrl: public wxControl { @@ -120,6 +118,8 @@ public: // Try to expand as much of the given path as possible. virtual bool ExpandPath(const wxString& path); + // collapse the path + virtual bool CollapsePath(const wxString& path); // Accessors @@ -151,11 +151,6 @@ public: // Helper virtual void SetupSections(); -#if WXWIN_COMPATIBILITY_2_4 - // Parse the filter into an array of filters and an array of descriptions - virtual int ParseFilter(const wxString& filterStr, wxArrayString& filters, wxArrayString& descriptions); -#endif // WXWIN_COMPATIBILITY_2_4 - // Find the child that matches the first part of 'path'. // E.g. if a child path is "/usr" and 'path' is "/usr/include" // then the child for /usr is returned. @@ -227,7 +222,7 @@ public: void Init(); - ~wxDirFilterListCtrl() {} + virtual ~wxDirFilterListCtrl() {} //// Operations void FillFilterList(const wxString& filter, int defaultFilter);