Audacity
3.2.0
src
commands
Demo.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
Demo.h
6
7
James Crook
8
9
**********************************************************************/
10
11
#ifndef __AUDACITY_DEMO_COMMAND__
12
#define __AUDACITY_DEMO_COMMAND__
13
14
#include "
AudacityCommand.h
"
15
#include "
SampleFormat.h
"
16
17
class
ShuttleGui
;
18
19
class
DemoCommand
final :
public
AudacityCommand
20
{
21
public
:
22
static
const
ComponentInterfaceSymbol
Symbol
;
23
24
// ComponentInterface overrides
25
ComponentInterfaceSymbol
GetSymbol
()
const override
{
return
Symbol
;};
26
TranslatableString
GetDescription
()
const override
{
return
XO
(
"Does the demo action."
);};
27
template
<
bool
Const>
bool
VisitSettings
(
SettingsVisitorBase<Const>
&
S
);
28
bool
VisitSettings
(
SettingsVisitor
&
S
)
override
;
29
bool
VisitSettings
(
ConstSettingsVisitor
&
S
)
override
;
30
void
PopulateOrExchange
(
ShuttleGui
&
S
)
override
;
31
bool
Apply
(
const
CommandContext
& context)
override
;
32
33
// AudacityCommand overrides
34
ManualPageID
ManualPage
()
override
{
return
L
"Extra_Menu:_Scriptables_I"
;}
35
36
private
:
37
double
delay
;
38
double
decay
;
39
};
40
41
#endif
// __AUDACITY_DEMO_COMMAND__
AudacityCommand.h
XO
XO("Cut/Copy/Paste")
SampleFormat.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
DemoCommand
An AudacityCommand that does nothing but provide parameters. It is for development purposes.
Definition:
Demo.h:20
DemoCommand::Apply
bool Apply(const CommandContext &context) override
Definition:
Demo.cpp:53
DemoCommand::GetSymbol
ComponentInterfaceSymbol GetSymbol() const override
Definition:
Demo.h:25
DemoCommand::delay
double delay
Definition:
Demo.h:37
DemoCommand::ManualPage
ManualPageID ManualPage() override
Definition:
Demo.h:34
DemoCommand::decay
double decay
Definition:
Demo.h:38
DemoCommand::GetDescription
TranslatableString GetDescription() const override
Definition:
Demo.h:26
DemoCommand::Symbol
static const ComponentInterfaceSymbol Symbol
Definition:
Demo.h:22
DemoCommand::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition:
Demo.cpp:58
DemoCommand::VisitSettings
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition:
Demo.cpp:41
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