Audacity
3.2.0
src
commands
GetTrackInfoCommand.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
Dan Horgan
8
Marty Goddard
9
******************************************************************/
/*******************************************************************/
15
16
#ifndef __GETTRACKINFOCOMMAND__
17
#define __GETTRACKINFOCOMMAND__
18
19
#include "
Command.h
"
20
#include "
CommandType.h
"
21
22
class
GetTrackInfoCommand
final :
public
AudacityCommand
23
{
24
public
:
25
static
const
ComponentInterfaceSymbol
Symbol
;
26
27
GetTrackInfoCommand
();
28
// ComponentInterface overrides
29
ComponentInterfaceSymbol
GetSymbol
()
const override
{
return
Symbol
;};
30
TranslatableString
GetDescription
()
const override
{
return
XO
(
"Gets track values as JSON."
);};
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:_Tools#get_track_info"
;}
38
39
bool
Apply
(
const
CommandContext
&context )
override
;
40
public
:
41
int
mInfoType
;
42
};
43
44
#endif
/* End of include guard: __GETTRACKINFOCOMMAND__ */
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
GetTrackInfoCommand
Obsolete. GetInfo now does it.
Definition:
GetTrackInfoCommand.h:23
GetTrackInfoCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition:
GetTrackInfoCommand.h:25
GetTrackInfoCommand::Apply
bool Apply(const CommandContext &context) override
Definition:
GetTrackInfoCommand.cpp:73
GetTrackInfoCommand::GetTrackInfoCommand
GetTrackInfoCommand()
Definition:
GetTrackInfoCommand.cpp:42
GetTrackInfoCommand::mInfoType
int mInfoType
Definition:
GetTrackInfoCommand.h:41
GetTrackInfoCommand::VisitSettings
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition:
GetTrackInfoCommand.cpp:48
GetTrackInfoCommand::GetDescription
TranslatableString GetDescription() const override
Definition:
GetTrackInfoCommand.h:30
GetTrackInfoCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() const override
Definition:
GetTrackInfoCommand.h:29
GetTrackInfoCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition:
GetTrackInfoCommand.cpp:60
GetTrackInfoCommand::ManualPage
ManualPageID ManualPage() override
Definition:
GetTrackInfoCommand.h:37
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