27#ifndef __AUDACITY_PREFS_PANEL__
28#define __AUDACITY_PREFS_PANEL__
36#define PREFS_FONT_SIZE 8
38#define BUILTIN_PREFS_PANEL_PREFIX wxT("Built-in PrefsPanel: ")
42#define RADIO_BUTTON_BORDER 5
43#define TOP_LEVEL_BORDER 5
44#define GENERIC_CONTROL_BORDER 5
61 size_t nChildren{ 0 };
62 bool expanded{
false };
63 mutable bool enabled{
true };
66 unsigned nChildren_ = 0,
67 bool expanded_ =
true)
68 :
factory(factory_), nChildren(nChildren_), expanded(expanded_)
72 using Factories = std::vector<PrefsPanel::PrefsNode>;
119 virtual bool ShowsPreviewButton();
135 bool expanded{
false };
wxString PluginPath
type alias for identifying a Plugin supplied by a module, each module defining its own interpretation...
@ Cancel
Open was cancelled by the extension.
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterface provides name / vendor / version functions to identify plugins....
virtual wxString GetVersion() const =0
virtual PluginPath GetPath() const =0
virtual VendorSymbol GetVendor() const =0
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
PrefsPanel(wxWindow *parent, wxWindowID winid, const TranslatableString &title)
std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > Factory
virtual void PopulateOrExchange(ShuttleGui &WXUNUSED(S))
std::vector< PrefsPanel::PrefsNode > Factories
Generates classes whose instances register items at construction.
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Holds a msgid for the translation catalog; may also bind format arguments.
void SetLabel(const TranslatableString &label)
PrefsPanel::Factory factory
PrefsNode(const Factory &factory_, unsigned nChildren_=0, bool expanded_=true)
std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > Factory
Has variadic and range constructors that check types.
Primary template for a list of arbitrary types.