Audacity 3.2.0
SetClipCommand.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_CLIP_COMMAND__
17#define __SET_CLIP_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 various values for a clip.");};
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_clip";}
37 bool Apply( const CommandContext & context ) override;
38
39public:
42 double mT0;
43 wxString mName;
44
45// For tracking optional parameters.
48 bool bHasT0;
50};
51
52
53#endif /* End of include guard: __SETTRACKINFOCOMMAND__ */
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.
void PopulateOrExchange(ShuttleGui &S) override
bool VisitSettings(SettingsVisitorBase< Const > &S)
bool Apply(const CommandContext &context) override
TranslatableString GetDescription() const override
ComponentInterfaceSymbol GetSymbol() const override
static const ComponentInterfaceSymbol Symbol
ManualPageID ManualPage() override
double mContainsTime
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.