1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 22:21:15 +01:00

PrefsPanel classes registered; PrefsDialog.cpp independent of headers

This commit is contained in:
Paul Licameli
2020-01-19 20:53:03 -05:00
parent 1555fd84a4
commit e110f66ff8
41 changed files with 198 additions and 212 deletions

View File

@@ -18,6 +18,8 @@ with names like mnod-script-pipe that add NEW features.
#include "../Audacity.h"
#include "ModulePrefs.h"
#include "Experimental.h"
#include <wx/defs.h>
#include <wx/filename.h>
@@ -187,9 +189,14 @@ void ModulePrefs::SetModuleStatus(const FilePath &fname, int iStatus){
gPrefs->Flush();
}
PrefsPanel::Factory
ModulePrefsFactory = [](wxWindow *parent, wxWindowID winid, AudacityProject *)
{
wxASSERT(parent); // to justify safenew
return safenew ModulePrefs(parent, winid);
#ifdef EXPERIMENTAL_MODULE_PREFS
namespace{
PrefsPanel::Registration sAttachment{ 220,
[](wxWindow *parent, wxWindowID winid, AudacityProject *)
{
wxASSERT(parent); // to justify safenew
return safenew ModulePrefs(parent, winid);
}
};
}
#endif