102 void addEntry(
const wxString &description,
const wxString &pattern);
109 [[nodiscard]] wxString
getWildcards(
bool addAllFiles =
false)
const;
124 m_wildcards.push_back({ .description = description, .pattern = pattern });
130 wxString wildcardList;
135 if (!wildcardList.empty())
136 wildcardList += _T(
"|");
138 wildcardList += entry.description + _T(
" (") + entry.pattern + _T(
")|") + entry.pattern;
144 if (!wildcardList.empty())
145 wildcardList += _T(
"|");
147 wildcardList += _(
"All files") + _T(
" (") + _T(
"*.*") + _T(
")|") + _T(
"*.*");
Represents a single wildcard filter entry.
wxString pattern
File pattern used for filtering (e.g., "*.txt").
wxString description
Human-readable description of the file type (e.g., "Text files").