#include <AudioPasteDialog.h>
|
| AudioPasteDialog (wxWindow *parent, wxULongLong nCopiedBytes, int winid=wxID_ANY) |
|
| wxDialogWrapper () |
|
| wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
|
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
|
void | SetTitle (const TranslatableString &title) |
|
void | SetLabel (const TranslatableString &title) |
|
void | SetName (const TranslatableString &title) |
|
void | SetName () |
|
| wxTabTraversalWrapper (Args &&... args) |
|
| wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete |
|
| wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete |
|
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
|
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
|
Definition at line 18 of file AudioPasteDialog.h.
◆ DialogResult
◆ AudioPasteDialog()
AudioPasteDialog::AudioPasteDialog |
( |
wxWindow * |
parent, |
|
|
wxULongLong |
nCopiedBytes, |
|
|
int |
winid = wxID_ANY |
|
) |
| |
Definition at line 50 of file AudioPasteDialog.cpp.
52{
55
56 SetInitialSize({520, -1});
57
58 Layout();
59 Fit();
60 Center();
61}
wxULongLong mCopiedBytesNum
void PopulateOrExchange(ShuttleGui &S)
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
References eIsCreatingFromPrefs, PopulateOrExchange(), and S.
◆ OnCancel()
void AudioPasteDialog::OnCancel |
( |
wxCommandEvent & |
| ) |
|
|
private |
◆ OnContinue()
void AudioPasteDialog::OnContinue |
( |
wxCommandEvent & |
| ) |
|
|
private |
Definition at line 131 of file AudioPasteDialog.cpp.
132{
135
139
141
143}
audacity::BasicSettings * gPrefs
ChoiceSetting TracksBehaviorsAudioTrackPastePolicy
wxCheckBox * mDontShowAgain
bool Write(const wxString &value)
virtual bool Flush() noexcept=0
ChoiceSetting AudioPasteDialogDefaultModeSetting
References anonymous_namespace{AudioPasteDialog.cpp}::AudioPasteDialogDefaultModeSetting, DISCARD, eIsSavingToPrefs, audacity::BasicSettings::Flush(), gPrefs, KEEP, mDontShowAgain, PopulateOrExchange(), ChoiceSetting::Read(), S, TracksBehaviorsAudioTrackPastePolicy, ChoiceSetting::Write(), and wxT().
◆ PopulateOrExchange()
void AudioPasteDialog::PopulateOrExchange |
( |
ShuttleGui & |
S | ) |
|
|
private |
Definition at line 63 of file AudioPasteDialog.cpp.
64{
66 S.AddFixedText(
XO(
"How would you like to paste your audio?"));
69 {
71 i < count;
72 ++i)
73 {
74 S.StartHorizontalLay(wxALIGN_LEFT);
75 {
78 wxRadioButton* radioButton{};
79 S.StartVerticalLay(0);
80 {
81 radioButton =
84 }
86
88 wxEVT_LEFT_UP, [=](auto)
89 {
90 radioButton->SetValue(true);
91 });
92 #if wxUSE_ACCESSIBILITY
94 #endif
96 }
98 if(i != count - 1)
100 }
101 }
102 S.EndRadioButtonGroup();
103
106
107 XO(
"The full smart clip is %s. Larger sizes will take longer to paste.")
109 );
110
111
113 S.StartHorizontalLay(wxEXPAND);
114 {
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);
125 }
126 S.EndHorizontalLay();
127
129}
XXO("&Cut/Copy/Paste Toolbar")
const EnumValueSymbols & GetSymbols() const
An alternative to using wxWindowAccessible, which in wxWidgets 3.1.1 contained GetParent() which was ...
const TranslatableString audioPasteModeText[]
References anonymous_namespace{AudioPasteDialog.cpp}::AudioPasteDialogDefaultModeSetting, anonymous_namespace{AudioPasteDialog.cpp}::audioPasteModeText, ChoiceSetting::GetSymbols(), mCopiedBytesNum, mDontShowAgain, S, safenew, XO(), and XXO().
Referenced by AudioPasteDialog(), and OnContinue().
◆ mCopiedBytesNum
wxULongLong AudioPasteDialog::mCopiedBytesNum {} |
|
private |
◆ mDontShowAgain
wxCheckBox* AudioPasteDialog::mDontShowAgain { nullptr } |
|
private |
The documentation for this class was generated from the following files: