1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-07 06:55:52 +01:00

Add ComponentInterface to PrefsPanel

This is so that we can have plug-in prefs panels loaded from a dll, and introspect what we have.
This commit is contained in:
James Crook
2019-04-15 13:01:24 +01:00
parent ca0bf0c12d
commit 3b312f9d1b
46 changed files with 474 additions and 103 deletions

View File

@@ -39,6 +39,21 @@ ModulePrefs::~ModulePrefs()
{
}
ComponentInterfaceSymbol ModulePrefs::GetSymbol()
{
return MODULE_PREFS_PLUGIN_SYMBOL;
}
wxString ModulePrefs::GetDescription()
{
return _("Preferences for Module");
}
wxString ModulePrefs::HelpPageName()
{
return "Modules_Preferences";
}
void ModulePrefs::GetAllModuleStatuses(){
wxString str;
long dummy;
@@ -165,11 +180,6 @@ void ModulePrefs::SetModuleStatus(const FilePath &fname, int iStatus){
gPrefs->Flush();
}
wxString ModulePrefs::HelpPageName()
{
return "Modules_Preferences";
}
PrefsPanel *ModulePrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
{
wxASSERT(parent); // to justify safenew