wxParseWildcard added instead of methods hidden under wxUSE_FILEDLG and wxUSE_DIRDLG.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,6 +78,7 @@ public:
|
||||
|
||||
// Utility functions
|
||||
|
||||
#if WXWIN_COMPATIBILITY_2_4
|
||||
// Parses the wildCard, returning the number of filters.
|
||||
// Returns 0 if none or if there's a problem,
|
||||
// The arrays will contain an equal number of items found before the error.
|
||||
@@ -86,6 +87,7 @@ public:
|
||||
static int ParseWildcard(const wxString& wildCard,
|
||||
wxArrayString& descriptions,
|
||||
wxArrayString& filters);
|
||||
#endif // WXWIN_COMPATIBILITY_2_4
|
||||
|
||||
// Append first extension to filePath from a ';' separated extensionList
|
||||
// if filePath = "path/foo.bar" just return it as is
|
||||
|
@@ -353,6 +353,13 @@ WXDLLIMPEXP_BASE wxString wxGetOSDirectory();
|
||||
// Get file modification time
|
||||
WXDLLIMPEXP_BASE time_t wxFileModificationTime(const wxString& filename);
|
||||
|
||||
// Parses the wildCard, returning the number of filters.
|
||||
// Returns 0 if none or if there's a problem,
|
||||
// The arrays will contain an equal number of items found before the error.
|
||||
// wildCard is in the form:
|
||||
// "All files (*)|*|Image Files (*.jpeg *.png)|*.jpg;*.png"
|
||||
WXDLLIMPEXP_BASE int wxParseWildcard(const wxString& wildCard, wxArrayString& descriptions, wxArrayString& filters);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// classes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -147,8 +147,10 @@ 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"
|
||||
|
Reference in New Issue
Block a user