1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02: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

@@ -239,6 +239,21 @@ TracksPrefs::~TracksPrefs()
{
}
ComponentInterfaceSymbol TracksPrefs::GetSymbol()
{
return TRACKS_PREFS_PLUGIN_SYMBOL;
}
wxString TracksPrefs::GetDescription()
{
return _("Preferences for Tracks");
}
wxString TracksPrefs::HelpPageName()
{
return "Tracks_Preferences";
}
void TracksPrefs::Populate()
{
// Keep view choices and codes in proper correspondence --
@@ -392,11 +407,6 @@ bool TracksPrefs::Commit()
return true;
}
wxString TracksPrefs::HelpPageName()
{
return "Tracks_Preferences";
}
PrefsPanel *TracksPrefsFactory::operator () (wxWindow *parent, wxWindowID winid)
{
wxASSERT(parent); // to justify safenew