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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user