Audacity 3.2.0
DragCommand.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity - A Digital Audio Editor
4 Copyright 1999-2009 Audacity Team
5 License: wxwidgets
6
7 James Crook
8
9******************************************************************//*******************************************************************/
15
16#ifndef __DRAG_COMMAND__
17#define __DRAG_COMMAND__
18
19#include "Command.h"
20#include "CommandType.h"
21
23{
24public:
26
28 // ComponentInterface overrides
29 ComponentInterfaceSymbol GetSymbol() const override {return Symbol;};
30 TranslatableString GetDescription() const override {return XO("Drags mouse from one place to another.");};
31 template<bool Const> bool VisitSettings( SettingsVisitorBase<Const> &S );
32 bool VisitSettings( SettingsVisitor & S ) override;
33 bool VisitSettings( ConstSettingsVisitor & S ) override;
34 void PopulateOrExchange(ShuttleGui & S) override;
35
36 // AudacityCommand overrides
37 ManualPageID ManualPage() override {return L"Extra_Menu:_Scriptables_II#move_mouse";}
38
39 bool Apply(const CommandContext & context) override;
40
41public:
42 double mFromX;
43 double mFromY;
44 double mToX;
45 double mToY;
47 int mId;
48 wxString mWinName;
49
52 bool bHasToX;
53 bool bHasToY;
55 bool bHasId;
57
58};
59
60
61#endif /* End of include guard: __DRAG_COMMAND__ */
Contains declaration of Command base class.
Contains declarations for CommandType class.
XO("Cut/Copy/Paste")
#define S(N)
Definition: ToChars.cpp:64
Base class for command in Audacity.
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Command that sets clip information.
Definition: DragCommand.h:23
bool Apply(const CommandContext &context) override
Definition: DragCommand.cpp:99
bool bHasWinName
Definition: DragCommand.h:56
double mToY
Definition: DragCommand.h:45
double mToX
Definition: DragCommand.h:44
ComponentInterfaceSymbol GetSymbol() const override
Definition: DragCommand.h:29
ManualPageID ManualPage() override
Definition: DragCommand.h:37
static const ComponentInterfaceSymbol Symbol
Definition: DragCommand.h:25
bool bHasToX
Definition: DragCommand.h:52
wxString mWinName
Definition: DragCommand.h:48
double mFromY
Definition: DragCommand.h:43
double mFromX
Definition: DragCommand.h:42
bool bHasFromX
Definition: DragCommand.h:50
TranslatableString GetDescription() const override
Definition: DragCommand.h:30
void PopulateOrExchange(ShuttleGui &S) override
Definition: DragCommand.cpp:80
bool bHasToY
Definition: DragCommand.h:53
bool bHasFromY
Definition: DragCommand.h:51
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition: DragCommand.cpp:63
bool bHasRelativeTo
Definition: DragCommand.h:54
int mRelativeTo
Definition: DragCommand.h:46
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.
Definition: ShuttleGui.h:640
Holds a msgid for the translation catalog; may also bind format arguments.