/********************************************************************** Audacity: A Digital Audio Editor Repeat.h Dominic Mazzoni **********************************************************************/ #ifndef __AUDACITY_EFFECT_REPEAT__ #define __AUDACITY_EFFECT_REPEAT__ #include #include #include #include #include "../ShuttleGui.h" #include "Effect.h" #define REPEAT_PLUGIN_SYMBOL XO("Repeat") class EffectRepeat : public Effect { public: EffectRepeat(); virtual ~EffectRepeat(); // IdentInterface implementation virtual wxString GetSymbol(); virtual wxString GetDescription(); // EffectIdentInterface implementation virtual EffectType GetType(); // EffectClientInterface implementation virtual bool GetAutomationParameters(EffectAutomationParameters & parms); virtual bool SetAutomationParameters(EffectAutomationParameters & parms); // Effect implementation virtual bool Process(); virtual void PopulateOrExchange(ShuttleGui & S); virtual bool TransferDataToWindow(); virtual bool TransferDataFromWindow(); private: // EffectRepeat implementation void OnRepeatTextChange(wxCommandEvent & evt); void DisplayNewTime(); private: int repeatCount; wxTextCtrl *mRepeatCount; wxStaticText *mTotalTime; DECLARE_EVENT_TABLE(); }; #endif