Audacity
3.2.0
src
commands
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
21
class
SetClipCommand
:
public
AudacityCommand
22
{
23
public
:
24
static
const
ComponentInterfaceSymbol
Symbol
;
25
26
SetClipCommand
();
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
39
public
:
40
double
mContainsTime
;
41
int
mColour
;
42
double
mT0
;
43
wxString
mName
;
44
45
// For tracking optional parameters.
46
bool
bHasContainsTime
;
47
bool
bHasColour
;
48
bool
bHasT0
;
49
bool
bHasName
;
50
};
51
52
53
#endif
/* End of include guard: __SETTRACKINFOCOMMAND__ */
XO
XO("Cut/Copy/Paste")
SetTrackInfoCommand.h
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
SetClipCommand
Command that sets clip information.
Definition:
SetClipCommand.h:22
SetClipCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition:
SetClipCommand.cpp:74
SetClipCommand::bHasColour
bool bHasColour
Definition:
SetClipCommand.h:47
SetClipCommand::bHasT0
bool bHasT0
Definition:
SetClipCommand.h:48
SetClipCommand::bHasName
bool bHasName
Definition:
SetClipCommand.h:49
SetClipCommand::VisitSettings
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition:
SetClipCommand.cpp:60
SetClipCommand::mName
wxString mName
Definition:
SetClipCommand.h:43
SetClipCommand::bHasContainsTime
bool bHasContainsTime
Definition:
SetClipCommand.h:46
SetClipCommand::mColour
int mColour
Definition:
SetClipCommand.h:41
SetClipCommand::Apply
bool Apply(const CommandContext &context) override
Definition:
SetClipCommand.cpp:89
SetClipCommand::GetDescription
TranslatableString GetDescription() const override
Definition:
SetClipCommand.h:29
SetClipCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() const override
Definition:
SetClipCommand.h:28
SetClipCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition:
SetClipCommand.h:24
SetClipCommand::ManualPage
ManualPageID ManualPage() override
Definition:
SetClipCommand.h:36
SetClipCommand::SetClipCommand
SetClipCommand()
Definition:
SetClipCommand.cpp:37
SetClipCommand::mContainsTime
double mContainsTime
Definition:
SetClipCommand.h:40
SetClipCommand::mT0
double mT0
Definition:
SetClipCommand.h:42
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