1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-22 22:25:47 +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

@@ -19,6 +19,8 @@ handling.
#include "../Audacity.h"
#include "ProjectsPrefs.h"
#include "../Experimental.h"
#include <wx/defs.h>
#include <wx/textctrl.h>
@@ -95,9 +97,14 @@ bool ProjectsPrefs::Commit()
return true;
}
PrefsPanel::Factory
ProjectsPrefsFactory = [](wxWindow *parent, wxWindowID winid, AudacityProject *)
{
wxASSERT(parent); // to justify safenew
return safenew ProjectsPrefs(parent, winid);
#ifdef EXPERIMENTAL_OD_DATA
namespace{
PrefsPanel::Registration sAttachment{ 130,
[](wxWindow *parent, wxWindowID winid, AudacityProject *)
{
wxASSERT(parent); // to justify safenew
return safenew ProjectsPrefs(parent, winid);
}
};
}
#endif