22#include <wx/statbox.h>
23#include <wx/stattext.h>
42 , mPopulator{ move(populator) }
76 return XO(
"Preferences for ImportExport");
81 return "Import_-_Export_Preferences";
97 wxT(
"/FileFormats/MusicFileImportSettingChoice"),
103 "S&witch view to Beats and Measures and align with musical grid") },
108 {
false,
true,
false },
109 wxT(
"/FileFormats/MusicFileImportSetting"),
121 { {
wxT(
""),
wxT(
"LabelStyle,AllegroTimeOption") } },
132 auto musicImportsBox =
S.StartStatic(
XO(
"Music Imports"));
134 const auto header =
S.AddVariableText(
135 XO(
"When Audacity detects music in file imported on empty project"));
136#if wxUSE_ACCESSIBILITY
137 if (musicImportsBox !=
nullptr)
139 musicImportsBox->SetName(header->GetLabel());
143#if defined(__WXMAC__)
154 S.EndRadioButtonGroup();
156#if defined(__WXMAC__)
XXO("&Cut/Copy/Paste Toolbar")
static const auto PathStart
#define IMPORT_EXPORT_PREFS_PLUGIN_SYMBOL
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
An explicitly nonlocalized string, not meant for the user to see.
A PrefsPanel used to select import and export options.
void Populate()
Creates the dialog and its contents.
ImportExportPrefs(wxWindow *parent, wxWindowID winid)
void PopulateOrExchange(ShuttleGui &S) override
static EnumSetting< bool > MusicFileImportSetting
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
std::function< void(ShuttleGui &)> Populator
Type of function that adds to the Import/Export preference page.
TranslatableString GetDescription() const override
ComponentInterfaceSymbol GetSymbol() const override
Base class for a panel in the PrefsDialog. Classes derived from this class include BatchPrefs,...
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.
An alternative to using wxWindowAccessible, which in wxWidgets 3.1.1 contained GetParent() which was ...
void Visit(const Visitors &visitors, const GroupItem< RegistryTraits > *pTopItem, const GroupItem< RegistryTraits > *pRegistry={}, typename RegistryTraits::ComputedItemContextType &computedItemContext=RegistryTraits::ComputedItemContextType::Instance)
PrefsPanel::Registration sAttachment
static Registry::GroupItem< Traits > & Registry()
PopulatorItem(const Identifier &id, Populator populator)
RegisteredControls(const Identifier &id, Populator populator, const Registry::Placement &placement={ wxEmptyString, {} })