Audacity
3.2.0
src
commands
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
22
class
DragCommand
:
public
AudacityCommand
23
{
24
public
:
25
static
const
ComponentInterfaceSymbol
Symbol
;
26
27
DragCommand
();
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
41
public
:
42
double
mFromX
;
43
double
mFromY
;
44
double
mToX
;
45
double
mToY
;
46
int
mRelativeTo
;
47
int
mId
;
48
wxString
mWinName
;
49
50
bool
bHasFromX
;
51
bool
bHasFromY
;
52
bool
bHasToX
;
53
bool
bHasToY
;
54
bool
bHasRelativeTo
;
55
bool
bHasId
;
56
bool
bHasWinName
;
57
58
};
59
60
61
#endif
/* End of include guard: __DRAG_COMMAND__ */
Command.h
Contains declaration of Command base class.
CommandType.h
Contains declarations for CommandType class.
XO
XO("Cut/Copy/Paste")
S
#define S(N)
Definition:
ToChars.cpp:64
AudacityCommand
Base class for command in Audacity.
Definition:
AudacityCommand.h:40
CommandContext
CommandContext provides additional information to an 'Apply()' command. It provides the project,...
Definition:
CommandContext.h:37
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition:
ComponentInterfaceSymbol.h:27
DragCommand
Command that sets clip information.
Definition:
DragCommand.h:23
DragCommand::Apply
bool Apply(const CommandContext &context) override
Definition:
DragCommand.cpp:99
DragCommand::bHasWinName
bool bHasWinName
Definition:
DragCommand.h:56
DragCommand::mToY
double mToY
Definition:
DragCommand.h:45
DragCommand::mToX
double mToX
Definition:
DragCommand.h:44
DragCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() const override
Definition:
DragCommand.h:29
DragCommand::ManualPage
ManualPageID ManualPage() override
Definition:
DragCommand.h:37
DragCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition:
DragCommand.h:25
DragCommand::bHasToX
bool bHasToX
Definition:
DragCommand.h:52
DragCommand::mWinName
wxString mWinName
Definition:
DragCommand.h:48
DragCommand::mFromY
double mFromY
Definition:
DragCommand.h:43
DragCommand::mFromX
double mFromX
Definition:
DragCommand.h:42
DragCommand::bHasFromX
bool bHasFromX
Definition:
DragCommand.h:50
DragCommand::bHasId
bool bHasId
Definition:
DragCommand.h:55
DragCommand::mId
int mId
Definition:
DragCommand.h:47
DragCommand::GetDescription
TranslatableString GetDescription() const override
Definition:
DragCommand.h:30
DragCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition:
DragCommand.cpp:80
DragCommand::bHasToY
bool bHasToY
Definition:
DragCommand.h:53
DragCommand::bHasFromY
bool bHasFromY
Definition:
DragCommand.h:51
DragCommand::VisitSettings
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition:
DragCommand.cpp:63
DragCommand::bHasRelativeTo
bool bHasRelativeTo
Definition:
DragCommand.h:54
DragCommand::mRelativeTo
int mRelativeTo
Definition:
DragCommand.h:46
DragCommand::DragCommand
DragCommand()
Definition:
DragCommand.cpp:40
SettingsVisitorBase
Visitor of effect or command parameters. This is a base class with lots of virtual functions that do ...
Definition:
SettingsVisitor.h:79
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition:
ShuttleGui.h:640
TaggedIdentifier< ManualPageIDTag >
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition:
TranslatableString.h:32
Generated by
1.9.3