24#include "../ProjectWindows.h"
25#include "../WaveTrack.h"
26#include "../Shuttle.h"
27#include "../ShuttleGui.h"
53 { wxT(
"App"),
XO(
"Application") },
54 { wxT(
"Track0"),
XO(
"Track 0") },
55 { wxT(
"Track1"),
XO(
"Track 1") },
61 S.OptionalN(
bHasId ).Define(
mId, wxT(
"Id"), 11000, -100000, 1000000);
63 S.OptionalY(
bHasFromX ).Define(
mFromX, wxT(
"FromX"), 200.0, 0.0, 1000000.0);
64 S.OptionalY(
bHasFromY ).Define(
mFromY, wxT(
"FromY"), 10.0, 0.0, 1000000.0);
65 S.OptionalN(
bHasToX ).Define(
mToX, wxT(
"ToX"), 400.0, 0.0, 1000000.0);
66 S.OptionalN(
bHasToY ).Define(
mToY, wxT(
"ToY"), 10.0, 0.0, 1000000.0);
72 {
return VisitSettings<false>(
S); }
75 {
return VisitSettings<true>(
S); }
81 S.StartMultiColumn(3, wxALIGN_CENTER);
109 wxWindow * pWin1 =
nullptr;
110 wxMouseEvent Evt( wxEVT_MOTION );
114 pWin1 = pWin->FindWindowById(
mId );
116 pWin1 = pWin->FindWindowByName(
mWinName );
122 pWin->GetEventHandler()->ProcessEvent( Evt );
123 pWin->GetEventHandler()->ProcessEvent( Evt );
125 wxMouseEvent Evt2( wxEVT_LEFT_DOWN );
126 Evt2.m_leftDown =
true;
129 Evt2.m_aux2Down =
true;
130 pWin->GetEventHandler()->ProcessEvent( Evt2 );
131 wxMouseEvent Evt3( wxEVT_MOTION );
132 Evt3.m_leftDown =
true;
133 Evt2.m_aux2Down =
true;
137 pWin->GetEventHandler()->ProcessEvent( Evt3 );
138 pWin->GetEventHandler()->ProcessEvent( Evt3 );
139 wxMouseEvent Evt4( wxEVT_LEFT_UP );
140 Evt2.m_aux2Down =
true;
143 pWin->GetEventHandler()->ProcessEvent( Evt4 );
static const EnumValueSymbol kCoordTypeStrings[nCoordTypes]
Declarations of DragCommand and DragCommandType classes.
AUDACITY_DLL_API wxFrame & GetProjectFrame(AudacityProject &project)
Get the top-level window associated with the project (as a wxFrame only, when you do not need to use ...
TranslatableStrings Msgids(const EnumValueSymbol strings[], size_t nStrings)
Convenience function often useful when adding choice controls.
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
AudacityProject & project
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
bool Apply(const CommandContext &context) override
static const ComponentInterfaceSymbol Symbol
void PopulateOrExchange(ShuttleGui &S) override
bool VisitSettings(SettingsVisitorBase< Const > &S)
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
BuiltinCommandsModule::Registration< DragCommand > reg