1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-04 05:17:47 +02:00

Module manager (#549)

* Eliminate ModuleManagerInterface...

... It was there only to provide RegisterModule(), but that was not used
anywhere.  So simplify.

* Remove nested #include of ModuleInterface.h
This commit is contained in:
Paul Licameli
2020-05-29 11:48:52 -04:00
committed by GitHub
parent 5bede69d11
commit 9360359e9d
22 changed files with 35 additions and 99 deletions

View File

@@ -16,11 +16,13 @@
#include <map>
#include <vector>
#include "audacity/ModuleInterface.h"
#include "audacity/Types.h"
class wxArrayString;
class wxDynamicLibrary;
class CommandHandler;
class ComponentInterface;
class ModuleInterface;
wxWindow * MakeHijackPanel();
@@ -73,14 +75,9 @@ typedef std::map<wxString, ModuleInterfaceHandle> ModuleMap;
typedef std::map<ModuleInterface *, std::unique_ptr<wxDynamicLibrary>> LibraryMap;
using PluginIDs = wxArrayString;
class ModuleManager final : public ModuleManagerInterface
class ModuleManager final
{
public:
// -------------------------------------------------------------------------
// ModuleManagerInterface implementation
// -------------------------------------------------------------------------
void RegisterModule(ModuleInterface *module) override;
// -------------------------------------------------------------------------
// ModuleManager implementation