mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-21 06:40:08 +02:00
XO() can be used anywhere a string must be extracted for translation but not automatically translated at runtime.
69 lines
1.4 KiB
C++
69 lines
1.4 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
Repeat.h
|
|
|
|
Dominic Mazzoni
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_EFFECT_REPEAT__
|
|
#define __AUDACITY_EFFECT_REPEAT__
|
|
|
|
#include <wx/event.h>
|
|
#include <wx/string.h>
|
|
#include <wx/stattext.h>
|
|
#include <wx/textctrl.h>
|
|
|
|
#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
|
|
|