27#ifndef __AUDACITY_PREFS_PANEL__
28#define __AUDACITY_PREFS_PANEL__
31#include "../widgets/wxPanelWrapper.h"
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
59 size_t nChildren{ 0 };
60 bool expanded{
false };
63 unsigned nChildren_ = 0,
64 bool expanded_ =
true)
65 :
factory(factory_), nChildren(nChildren_), expanded(expanded_)
69 using Factories = std::vector<PrefsPanel::PrefsNode>;
115 virtual bool ShowsPreviewButton();
122 virtual void Cancel();
const TranslatableString name
wxString PluginPath
type alias for identifying a Plugin supplied by a module, each module defining its own interpretation...
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
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)
static RegisteredToolbarFactory factory
PrefsNode(const Factory &factory_, unsigned nChildren_=0, bool expanded_=true)
std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > Factory