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
{
public:
wxDirItemData(const wxString& path, const wxString& name, bool isDir);
- ~wxDirItemData(){}
+ virtual ~wxDirItemData(){}
void SetNewDirName(const wxString& path);
bool HasSubDirs() const;
// 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
// 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.
void Init();
- ~wxDirFilterListCtrl() {}
+ virtual ~wxDirFilterListCtrl() {}
//// Operations
void FillFilterList(const wxString& filter, int defaultFilter);