Audacity 3.2.0
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 "RepeatBase.h"
15#include "StatefulEffect.h"
17#include <wx/weakref.h>
18
19class wxTextCtrl;
20class ShuttleGui;
21
22class wxStaticText;
23
25{
26public:
27 std::unique_ptr<EffectEditor> PopulateOrExchange(
28 ShuttleGui & S, EffectInstance &instance,
29 EffectSettingsAccess &access, const EffectOutputs *pOutputs) override;
30 bool TransferDataToWindow(const EffectSettings &settings) override;
32
33private:
34 void OnRepeatTextChange(wxCommandEvent & evt);
35 void DisplayNewTime();
36
37 wxWeakRef<wxWindow> mUIParent{};
38
39 wxTextCtrl *mRepeatCount;
40 wxStaticText *mCurrentTime;
41 wxStaticText *mTotalTime;
42 DECLARE_EVENT_TABLE()
43};
44
45#endif
#define S(N)
Definition: ToChars.cpp:64
static Settings & settings()
Definition: TrackInfo.cpp:51
Performs effect computation.
Hold values to send to effect output meters.
An Effect that repeats audio several times over.
Definition: Repeat.h:25
wxStaticText * mTotalTime
Definition: Repeat.h:41
wxWeakRef< wxWindow > mUIParent
Definition: Repeat.h:37
wxTextCtrl * mRepeatCount
Definition: Repeat.h:39
std::unique_ptr< EffectEditor > PopulateOrExchange(ShuttleGui &S, EffectInstance &instance, EffectSettingsAccess &access, const EffectOutputs *pOutputs) override
Add controls to effect panel; always succeeds.
Definition: Repeat.cpp:41
bool TransferDataToWindow(const EffectSettings &settings) override
Definition: Repeat.cpp:65
void DisplayNewTime()
Definition: Repeat.cpp:90
void OnRepeatTextChange(wxCommandEvent &evt)
Definition: Repeat.cpp:121
bool TransferDataFromWindow(EffectSettings &settings) override
Definition: Repeat.cpp:74
wxStaticText * mCurrentTime
Definition: Repeat.h:40
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Externalized state of a plug-in.