Definition at line 41 of file DirectoriesPrefs.cpp.
◆ FilesystemValidator()
◆ Clone()
virtual wxObject * FilesystemValidator::Clone |
( |
| ) |
const |
|
inlinevirtual |
◆ OnChar()
void FilesystemValidator::OnChar |
( |
wxKeyEvent & |
evt | ) |
|
|
inline |
Definition at line 79 of file DirectoriesPrefs.cpp.
80 {
81 evt.Skip();
82
83 wxTextCtrl* tc = wxDynamicCast(GetWindow(), wxTextCtrl);
84 if (!tc) {
85 return;
86 }
87
88 auto keycode = evt.GetUnicodeKey();
89 if (keycode < WXK_SPACE || keycode == WXK_DELETE) {
90 return;
91 }
92
93 wxString path = tc->GetValue();
94 path.insert(tc->GetInsertionPoint(), keycode);
95
97 evt.Skip(false);
98 return;
99 }
100 }
FILES_API bool FATFilesystemDenied(const FilePath &path, const TranslatableString &msg, const BasicUI::WindowPlacement &placement={})
References TempDirectory::FATFilesystemDenied(), and mMessage.
◆ TransferFromWindow()
virtual bool FilesystemValidator::TransferFromWindow |
( |
| ) |
|
|
inlinevirtual |
◆ TransferToWindow()
virtual bool FilesystemValidator::TransferToWindow |
( |
| ) |
|
|
inlinevirtual |
◆ Validate()
virtual bool FilesystemValidator::Validate |
( |
wxWindow * |
WXUNUSEDparent | ) |
|
|
inlinevirtual |
◆ wxDECLARE_EVENT_TABLE()
FilesystemValidator::wxDECLARE_EVENT_TABLE |
( |
| ) |
|
◆ mMessage
The documentation for this class was generated from the following file: