21#include <wx/stattext.h>
22#include <wx/radiobut.h>
23#include <wx/statbox.h>
48 return XO(
"Preferences for TracksBehaviors");
53 return "Tracks_Behaviors_Preferences";
69 "The entire source clip will be pasted into your project, allowing you to access\ntrimmed audio data anytime."),
70 XO(
"Selected audio only.\n"
71 "Only the selected portion of the source clip will be pasted."),
72 XO(
"Ask me each time.\n"
73 "Show dialog each time audio is pasted."),
78 wxT(
"/GUI/AudioTrackPastePolicy"),
82 {
wxT(
"Keep"),
wxT(
"Discard"),
wxT(
"Ask") }
92 S.StartStatic(
XO(
"Behaviors"));
94 S.TieCheckBox(
XXO(
"&Select all audio, if selection required"),
95 {
wxT(
"/GUI/SelectAllOnNone"),
98 S.TieCheckBox(
XXO(
"Enable cut &lines"),
99 {
wxT(
"/GUI/EnableCutLines"),
101 S.TieCheckBox(
XXO(
"Editing a clip can &move other clips"),
104 XXO(
"&Always paste audio as new clips"),
105 {
wxT(
"/GUI/PasteAsNewClips"),
false });
106 S.TieCheckBox(
XXO(
"\"Move track focus\" c&ycles repeatedly through tracks"),
107 {
wxT(
"/GUI/CircularTrackNavigation"),
109 S.TieCheckBox(
XXO(
"&Type to create a label"),
110 {
wxT(
"/GUI/TypeToCreateLabel"),
112 S.TieCheckBox(
XXO(
"Use dialog for the &name of a new label"),
113 {
wxT(
"/GUI/DialogForNameNewLabel"),
118 S.StartMultiColumn(2);
125 auto pastedAudioBox =
S.StartStatic(
XO(
"Pasted audio"));
127 const auto header =
S.AddVariableText(
XO(
"Paste audio from other Audacity project as"));
128#if wxUSE_ACCESSIBILITY
129 if(pastedAudioBox !=
nullptr)
131 pastedAudioBox->SetName(header->GetLabel());
140 S.StartHorizontalLay(wxALIGN_LEFT);
142 wxRadioButton* radioButton{};
143 S.StartVerticalLay(0);
153 wxEVT_LEFT_UP, [=](
auto)
155 radioButton->SetValue(
true);
158 #if wxUSE_ACCESSIBILITY
162 S.EndHorizontalLay();
164 S.EndRadioButtonGroup();
XXO("&Cut/Copy/Paste Toolbar")
EnumSetting< SoloBehavior > TracksBehaviorsSolo
ChoiceSetting TracksBehaviorsAudioTrackPastePolicy
#define TRACKS_BEHAVIORS_PREFS_PLUGIN_SYMBOL
BoolSetting EditClipsCanMove
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
const EnumValueSymbols & GetSymbols() const
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,...
void Invalidate() override
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
A PrefsPanel for Tracks Behaviors settings.
ManualPageID HelpPageName() override
If not empty string, the Help button is added below the panel.
TracksBehaviorsPrefs(wxWindow *parent, wxWindowID winid)
void PopulateOrExchange(ShuttleGui &S) override
ComponentInterfaceSymbol GetSymbol() const override
TranslatableString GetDescription() const override
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 ...
PrefsPanel::Registration sAttachment
const TranslatableString audioPasteModeText[]