|
sdi_toolBox
|
#include <wildcard.h>
Manages a list of file wildcard entries for use in wxWidgets file dialogs.
The Wildcard class provides a convenient way to build and format wildcard filter strings compatible with wxWidgets file dialogs (e.g., wxFileDialog).
Each entry consists of a human-readable description and a file pattern (e.g., *.txt). The formatted string follows the wxWidgets wildcard format:
Definition at line 42 of file wildcard.h.
Classes | |
| struct | WildcardEntry |
| Represents a single wildcard filter entry. More... | |
Public Member Functions | |
| Wildcard ()=default | |
| Default constructor. | |
| virtual | ~Wildcard ()=default |
| Default destructor. | |
| Wildcard (const Wildcard &other)=default | |
| Copy constructor. | |
| Wildcard (Wildcard &&other) noexcept=default | |
| Move constructor. | |
| Wildcard & | operator= (const Wildcard &other)=default |
| Copy assignment operator. | |
| Wildcard & | operator= (Wildcard &&other) noexcept=default |
| Move assignment operator. | |
| void | clear () |
| Removes all wildcard entries. | |
| void | addEntry (const wxString &description, const wxString &pattern) |
| Adds a new wildcard filter entry. | |
| wxString | getWildcards (bool addAllFiles=false) const |
| Builds and returns the formatted wildcard string for use in wxWidgets file dialogs. | |
Protected Attributes | |
| std::vector< WildcardEntry > | m_wildcards |
|
default |
Default constructor.
|
virtualdefault |
Default destructor.
Copy constructor.
| other | The Wildcard instance to copy from. |
Move constructor.
| other | The Wildcard instance to move from. |
Copy assignment operator.
| other | The Wildcard instance to copy from. |
Move assignment operator.
| other | The Wildcard instance to move from. |
|
inline |
Removes all wildcard entries.
Definition at line 116 of file wildcard.h.
|
inline |
Adds a new wildcard filter entry.
| description | Human-readable description of the file type (e.g., "Text files"). |
| pattern | File pattern used for filtering (e.g., "*.txt"). |
Definition at line 122 of file wildcard.h.
|
inline |
Builds and returns the formatted wildcard string for use in wxWidgets file dialogs.
| addAllFiles | If true, appends an "All files (*.*)|*.*" entry at the end. |
Definition at line 128 of file wildcard.h.
|
protected |
Definition at line 112 of file wildcard.h.