Audacity
3.2.0
src
commands
SetEnvelopeCommand.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity - A Digital Audio Editor
4
Copyright 1999-2018 Audacity Team
5
License: wxwidgets
6
7
James Crook
8
9
******************************************************************/
/*******************************************************************/
15
16
#ifndef __SET_ENVELOPE_COMMAND__
17
#define __SET_ENVELOPE_COMMAND__
18
19
#include "
SetTrackInfoCommand.h
"
20
21
class
SetEnvelopeCommand
:
public
SetTrackBase
22
{
23
public
:
24
static
const
ComponentInterfaceSymbol
Symbol
;
25
26
SetEnvelopeCommand
();
27
// ComponentInterface overrides
28
ComponentInterfaceSymbol
GetSymbol
()
const override
{
return
Symbol
;};
29
TranslatableString
GetDescription
()
const override
{
return
XO
(
"Sets an envelope point position."
);};
30
template
<
bool
Const>
bool
VisitSettings
(
SettingsVisitorBase<Const>
&
S
);
31
bool
VisitSettings
(
SettingsVisitor
&
S
)
override
;
32
bool
VisitSettings
(
ConstSettingsVisitor
&
S
)
override
;
33
void
PopulateOrExchange
(
ShuttleGui
&
S
)
override
;
34
35
// AudacityCommand overrides
36
ManualPageID
ManualPage
()
override
{
return
L
"Extra_Menu:_Scriptables_I#set_envelope"
;}
37
bool
ApplyInner
(
const
CommandContext
& context,
Track
&t)
override
;
38
39
public
:
40
double
mT
;
41
double
mV
;
42
bool
mbDelete
;
43
44
bool
bHasT
;
45
bool
bHasV
;
46
bool
bHasDelete
;
47
};
48
49
50
#endif
/* End of include guard: __SETTRACKINFOCOMMAND__ */
XO
XO("Cut/Copy/Paste")
SetTrackInfoCommand.h
S
#define S(N)
Definition:
ToChars.cpp:64
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
SetEnvelopeCommand
Command that sets envelope information.
Definition:
SetEnvelopeCommand.h:22
SetEnvelopeCommand::ManualPage
ManualPageID ManualPage() override
Definition:
SetEnvelopeCommand.h:36
SetEnvelopeCommand::mbDelete
bool mbDelete
Definition:
SetEnvelopeCommand.h:42
SetEnvelopeCommand::SetEnvelopeCommand
SetEnvelopeCommand()
Definition:
SetEnvelopeCommand.cpp:41
SetEnvelopeCommand::bHasDelete
bool bHasDelete
Definition:
SetEnvelopeCommand.h:46
SetEnvelopeCommand::mT
double mT
Definition:
SetEnvelopeCommand.h:40
SetEnvelopeCommand::bHasV
bool bHasV
Definition:
SetEnvelopeCommand.h:45
SetEnvelopeCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() const override
Definition:
SetEnvelopeCommand.h:28
SetEnvelopeCommand::mV
double mV
Definition:
SetEnvelopeCommand.h:41
SetEnvelopeCommand::ApplyInner
bool ApplyInner(const CommandContext &context, Track &t) override
Definition:
SetEnvelopeCommand.cpp:72
SetEnvelopeCommand::bHasT
bool bHasT
Definition:
SetEnvelopeCommand.h:44
SetEnvelopeCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition:
SetEnvelopeCommand.h:24
SetEnvelopeCommand::GetDescription
TranslatableString GetDescription() const override
Definition:
SetEnvelopeCommand.h:29
SetEnvelopeCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition:
SetEnvelopeCommand.cpp:59
SetEnvelopeCommand::VisitSettings
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition:
SetEnvelopeCommand.cpp:46
SetTrackBase
Base class for the various track modifying command classes, that loops over selected tracks....
Definition:
SetTrackInfoCommand.h:26
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 >
Track
Abstract base class for an object holding data associated with points on a time axis.
Definition:
Track.h:110
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition:
TranslatableString.h:32
Generated by
1.9.3