14#include <wx/checkbox.h>
15#include <wx/stattext.h>
16#include <wx/radiobut.h>
31 "The entire source clip will be pasted into your project, allowing you to access\ntrimmed audio data anytime."),
32 XO(
"Selected audio only.\n"
33 "Only the selected portion of the source clip will be pasted.")
39 wxT(
"/GUI/AudioPasteDialogDefaultMode"),
43 {
wxT(
"Keep"),
wxT(
"Discard") }
51 :
wxDialogWrapper(parent, winid,
XO(
"Paste audio")), mCopiedBytesNum(nCopiedBytes)
56 SetInitialSize({520, -1});
66 S.AddFixedText(
XO(
"How would you like to paste your audio?"));
74 S.StartHorizontalLay(wxALIGN_LEFT);
78 wxRadioButton* radioButton{};
79 S.StartVerticalLay(0);
88 wxEVT_LEFT_UP, [=](
auto)
90 radioButton->SetValue(
true);
92 #if wxUSE_ACCESSIBILITY
102 S.EndRadioButtonGroup();
107 XO(
"The full smart clip is %s. Larger sizes will take longer to paste.")
113 S.StartHorizontalLay(wxEXPAND);
117 .AddCheckBox(
XO(
"Remember my choice and don't ask again"),
false);
121 S.Id(wxID_CANCEL).AddButton(
XXO(
"Cancel"), wxALIGN_CENTER);
123 S.Id(wxID_OK).AddButton(
XXO(
"Continue"), wxALIGN_CENTER,
true);
126 S.EndHorizontalLay();
147 EndModal(wxID_CANCEL);
EVT_BUTTON(wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES
XXO("&Cut/Copy/Paste Toolbar")
audacity::BasicSettings * gPrefs
ChoiceSetting TracksBehaviorsAudioTrackPastePolicy
wxCheckBox * mDontShowAgain
wxULongLong mCopiedBytesNum
void PopulateOrExchange(ShuttleGui &S)
AudioPasteDialog(wxWindow *parent, wxULongLong nCopiedBytes, int winid=wxID_ANY)
void OnContinue(wxCommandEvent &)
void OnCancel(wxCommandEvent &)
bool Write(const wxString &value)
const EnumValueSymbols & GetSymbols() const
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 ...
virtual bool Flush() noexcept=0
ChoiceSetting AudioPasteDialogDefaultModeSetting
const TranslatableString audioPasteModeText[]