Audacity  3.0.3
Repeat.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Repeat.h
6 
7  Dominic Mazzoni
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_EFFECT_REPEAT__
12 #define __AUDACITY_EFFECT_REPEAT__
13 
14 #include "Effect.h"
15 
16 class wxTextCtrl;
17 class ShuttleGui;
18 
19 class wxStaticText;
20 
21 class EffectRepeat final : public Effect
22 {
23 public:
25 
26  EffectRepeat();
27  virtual ~EffectRepeat();
28 
29  // ComponentInterface implementation
30 
33  ManualPageID ManualPage() override;
34 
35  // EffectDefinitionInterface implementation
36 
37  EffectType GetType() override;
38 
39  // EffectClientInterface implementation
40 
41  bool DefineParams( ShuttleParams & S ) override;
42  bool GetAutomationParameters(CommandParameters & parms) override;
43  bool SetAutomationParameters(CommandParameters & parms) override;
44 
45  // Effect implementation
46 
47  bool Process() override;
48  void PopulateOrExchange(ShuttleGui & S) override;
49  bool TransferDataToWindow() override;
50  bool TransferDataFromWindow() override;
51 
52 private:
53  // EffectRepeat implementation
54 
55  void OnRepeatTextChange(wxCommandEvent & evt);
56  void DisplayNewTime();
57 
58 private:
60 
61  wxTextCtrl *mRepeatCount;
62  wxStaticText *mCurrentTime;
63  wxStaticText *mTotalTime;
64 
65  DECLARE_EVENT_TABLE()
66 };
67 
68 #endif
69 
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
CommandParameters
CommandParameters, derived from wxFileConfig, is essentially doing the same things as the Shuttle cla...
Definition: EffectAutomationParameters.h:67
Effect.h
EffectRepeat::DisplayNewTime
void DisplayNewTime()
Definition: Repeat.cpp:224
Effect
Base class for many of the effects in Audacity.
Definition: Effect.h:72
EffectRepeat::Symbol
static const ComponentInterfaceSymbol Symbol
Definition: Repeat.h:24
ShuttleParams
Shuttle that deals with parameters. This is a base class with lots of virtual functions that do nothi...
Definition: Shuttle.h:62
EffectRepeat::Process
bool Process() override
Definition: Repeat.cpp:114
EffectRepeat::DefineParams
bool DefineParams(ShuttleParams &S) override
Definition: Repeat.cpp:91
ComponentInterfaceSymbol
ComponentInterfaceSymbol pairs a persistent string identifier used internally with an optional,...
Definition: ComponentInterfaceSymbol.h:27
EffectRepeat::SetAutomationParameters
bool SetAutomationParameters(CommandParameters &parms) override
Definition: Repeat.cpp:103
EffectRepeat::TransferDataFromWindow
bool TransferDataFromWindow() override
Definition: Repeat.cpp:208
EffectRepeat::PopulateOrExchange
void PopulateOrExchange(ShuttleGui &S) override
Definition: Repeat.cpp:178
EffectRepeat::EffectRepeat
EffectRepeat()
Definition: Repeat.cpp:55
EffectRepeat::GetAutomationParameters
bool GetAutomationParameters(CommandParameters &parms) override
Definition: Repeat.cpp:96
EffectRepeat::GetDescription
TranslatableString GetDescription() override
Definition: Repeat.cpp:73
EffectRepeat::mRepeatCount
wxTextCtrl * mRepeatCount
Definition: Repeat.h:61
EffectRepeat::mCurrentTime
wxStaticText * mCurrentTime
Definition: Repeat.h:62
TaggedIdentifier< ManualPageIDTag >
EffectRepeat::~EffectRepeat
virtual ~EffectRepeat()
Definition: Repeat.cpp:62
EffectRepeat::OnRepeatTextChange
void OnRepeatTextChange(wxCommandEvent &evt)
Definition: Repeat.cpp:255
EffectRepeat::mTotalTime
wxStaticText * mTotalTime
Definition: Repeat.h:63
EffectRepeat::TransferDataToWindow
bool TransferDataToWindow() override
Definition: Repeat.cpp:199
EffectRepeat::repeatCount
int repeatCount
Definition: Repeat.h:59
EffectRepeat::ManualPage
ManualPageID ManualPage() override
Definition: Repeat.cpp:78
EffectRepeat
An Effect that repeats audio several times over.
Definition: Repeat.h:22
EffectType
EffectType
Definition: EffectInterface.h:55
ShuttleGui
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:631
EffectRepeat::GetType
EffectType GetType() override
Definition: Repeat.cpp:85
EffectRepeat::GetSymbol
ComponentInterfaceSymbol GetSymbol() override
Definition: Repeat.cpp:68