1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-20 17:41:13 +02:00

Drag-and-drop checks file extensions first for plug-in candidates...

... Avoids big delays in drag-and-drop importation caused by
765ca0c813
This commit is contained in:
Paul Licameli
2018-01-01 10:29:26 -05:00
parent 2cdf931e5a
commit 3c9cdac778
13 changed files with 63 additions and 13 deletions

View File

@@ -87,12 +87,15 @@ public:
// DiscoverPluginsAtPath() have module-specific meaning.
// They are not necessarily file system paths to existent files that
// could be placed in any folder and queried for
// plugin information. This function returns true when that is the case.
virtual bool PathsAreFiles() = 0;
// plugin information.
// This function returns nonempty only when that is the case, and lists
// the possible extensions of such files (an empty string in a nonempty
// array means any file is a candidate).
virtual wxArrayString FileExtensions() = 0;
// Returns empty, or else, where to copy a plug-in file or bundle.
// Drag-and-drop is supported only if PathsAreFiles() is true and this
// function returns nonempty.
// Drag-and-drop is supported only if FileExtensions() returns nonempty and
// this function returns nonempty.
virtual wxString InstallPath() = 0;
// Modules providing a single or static set of plugins may use