Audacity 3.2.0
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
17class ShuttleGui;
18
19class DemoCommand final : public AudacityCommand
20{
21public:
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
36private:
37 double delay;
38 double decay;
39};
40
41#endif // __AUDACITY_DEMO_COMMAND__
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,...
An AudacityCommand that does nothing but provide parameters. It is for development purposes.
Definition: Demo.h:20
bool Apply(const CommandContext &context) override
Definition: Demo.cpp:53
ComponentInterfaceSymbol GetSymbol() const override
Definition: Demo.h:25
double delay
Definition: Demo.h:37
ManualPageID ManualPage() override
Definition: Demo.h:34
double decay
Definition: Demo.h:38
TranslatableString GetDescription() const override
Definition: Demo.h:26
static const ComponentInterfaceSymbol Symbol
Definition: Demo.h:22
void PopulateOrExchange(ShuttleGui &S) override
Definition: Demo.cpp:58
bool VisitSettings(SettingsVisitorBase< Const > &S)
Definition: Demo.cpp:41
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:625
Holds a msgid for the translation catalog; may also bind format arguments.