Audacity  3.0.3
Silence.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Silence.h
6 
7  Dominic Mazzoni
8 
9  An effect to add silence.
10 
11 **********************************************************************/
12 
13 #ifndef __AUDACITY_EFFECT_SILENCE__
14 #define __AUDACITY_EFFECT_SILENCE__
15 
16 #include "Generator.h"
17 
18 class NumericTextCtrl;
19 
20 class EffectSilence final : public Generator
21 {
22 public:
24 
25  EffectSilence();
26  virtual ~EffectSilence();
27 
28  // ComponentInterface implementation
29 
32  ManualPageID ManualPage() override;
33 
34  // EffectDefinitionInterface implementation
35 
36  EffectType GetType() override;
37 
38  // Effect implementation
39 
40  void PopulateOrExchange(ShuttleGui & S) override;
41  bool TransferDataToWindow() override;
42  bool TransferDataFromWindow() override;
43 
44 protected:
45  // Generator implementation
46 
47  bool GenerateTrack(WaveTrack *tmp, const WaveTrack &track, int ntrack) override;
48 
49 private:
51 };
52 
53 #endif
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
WaveTrack
A Track that contains audio waveform data.
Definition: WaveTrack.h:69
EffectSilence::EffectSilence
EffectSilence()
Definition: Silence.cpp:32
EffectSilence::mDurationT
NumericTextCtrl * mDurationT
Definition: Silence.h:50
NumericTextCtrl
Definition: NumericTextCtrl.h:172
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
EffectSilence::TransferDataToWindow
bool TransferDataToWindow() override
Definition: Silence.cpp:94
EffectSilence::ManualPage
ManualPageID ManualPage() override
Definition: Silence.cpp:53
EffectSilence::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: Silence.cpp:43
EffectSilence::~EffectSilence
virtual ~EffectSilence()
Definition: Silence.cpp:37
EffectSilence::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: Silence.h:23
EffectSilence::GetType
EffectType GetType() override
Definition: Silence.cpp:61
EffectSilence::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: Silence.cpp:68
EffectSilence
An effect to add silence.
Definition: Silence.h:21
TaggedIdentifier< ManualPageIDTag >
EffectSilence::GenerateTrack
bool GenerateTrack(WaveTrack *tmp, const WaveTrack &track, int ntrack) override
Definition: Silence.cpp:108
EffectSilence::GetDescription
TranslatableString GetDescription() override
Definition: Silence.cpp:48
EffectType
EffectType
Definition: EffectInterface.h:55
Generator.h
Generator
Definition: Generator.h:25
EffectSilence::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: Silence.cpp:101
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631