Audacity 3.2.0
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
22{
23public:
25
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
39public:
40 double mT;
41 double mV;
43
44 bool bHasT;
45 bool bHasV;
47};
48
49
50#endif /* End of include guard: __SETTRACKINFOCOMMAND__ */
XO("Cut/Copy/Paste")
#define S(N)
Definition: ToChars.cpp:64
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 envelope information.
ManualPageID ManualPage() override
ComponentInterfaceSymbol GetSymbol() const override
bool ApplyInner(const CommandContext &context, Track &t) override
static const ComponentInterfaceSymbol Symbol
TranslatableString GetDescription() const override
void PopulateOrExchange(ShuttleGui &S) override
bool VisitSettings(SettingsVisitorBase< Const > &S)
Base class for the various track modifying command classes, that loops over selected tracks....
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:630
Abstract base class for an object holding data associated with points on a time axis.
Definition: Track.h:122
Holds a msgid for the translation catalog; may also bind format arguments.