Audacity  2.2.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EffectRepeat Class Referencefinal

An Effect that repeats audio several times over. More...

#include <Repeat.h>

Inheritance diagram for EffectRepeat:
Effect EffectClientInterface EffectUIClientInterface EffectHostInterface EffectDefinitionInterface ConfigClientInterface IdentInterface ParamsInterface

Public Member Functions

 EffectRepeat ()
 
virtual ~EffectRepeat ()
 
IdentInterfaceSymbol GetSymbol () override
 
wxString GetDescription () override
 
wxString ManualPage () override
 
EffectType GetType () override
 
bool DefineParams (ShuttleParams &S) override
 
bool GetAutomationParameters (CommandParameters &parms) override
 
bool SetAutomationParameters (CommandParameters &parms) override
 
bool Process () override
 
void PopulateOrExchange (ShuttleGui &S) override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
- Public Member Functions inherited from Effect
 Effect ()
 
virtual ~Effect ()
 
wxString GetPath () override
 
IdentInterfaceSymbol GetVendor () override
 
wxString GetVersion () override
 
IdentInterfaceSymbol GetFamilyId () override
 
bool IsInteractive () override
 
bool IsDefault () override
 
bool IsLegacy () override
 
bool SupportsRealtime () override
 
bool SupportsAutomation () override
 
bool SetHost (EffectHostInterface *host) override
 
unsigned GetAudioInCount () override
 
unsigned GetAudioOutCount () override
 
int GetMidiInCount () override
 
int GetMidiOutCount () override
 
sampleCount GetLatency () override
 
size_t GetTailSize () override
 
void SetSampleRate (double rate) override
 
size_t SetBlockSize (size_t maxBlockSize) override
 
bool IsReady () override
 
bool ProcessInitialize (sampleCount totalLen, ChannelNames chanMap=NULL) override
 
bool ProcessFinalize () override
 
size_t ProcessBlock (float **inBlock, float **outBlock, size_t blockLen) override
 
bool RealtimeInitialize () override
 
bool RealtimeAddProcessor (unsigned numChannels, float sampleRate) override
 
bool RealtimeFinalize () override
 
bool RealtimeSuspend () override
 
bool RealtimeResume () override
 
bool RealtimeProcessStart () override
 
size_t RealtimeProcess (int group, float **inbuf, float **outbuf, size_t numSamples) override
 
bool RealtimeProcessEnd () override
 
bool ShowInterface (wxWindow *parent, bool forceModal=false) override
 
bool LoadUserPreset (const wxString &name) override
 
bool SaveUserPreset (const wxString &name) override
 
wxArrayString GetFactoryPresets () override
 
bool LoadFactoryPreset (int id) override
 
bool LoadFactoryDefaults () override
 
void SetHostUI (EffectUIHostInterface *host) override
 
bool PopulateUI (wxWindow *parent) override
 
bool IsGraphicalUI () override
 
bool ValidateUI () override
 
bool HideUI () override
 
bool CloseUI () override
 
bool CanExportPresets () override
 
void ExportPresets () override
 
void ImportPresets () override
 
bool HasOptions () override
 
void ShowOptions () override
 
double GetDefaultDuration () override
 
double GetDuration () override
 
NumericFormatId GetDurationFormat () override
 
virtual NumericFormatId GetSelectionFormat ()
 
void SetDuration (double duration) override
 
bool Apply () override
 
void Preview () override
 
wxDialog * CreateUI (wxWindow *parent, EffectUIClientInterface *client) override
 
wxString GetUserPresetsGroup (const wxString &name) override
 
wxString GetCurrentSettingsGroup () override
 
wxString GetFactoryDefaultsGroup () override
 
virtual wxString GetSavedStateGroup ()
 
bool HasSharedConfigGroup (const wxString &group) override
 
bool GetSharedConfigSubgroups (const wxString &group, wxArrayString &subgroups) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, wxString &value, const wxString &defval=wxEmptyString) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, int &value, int defval=0) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, bool &value, bool defval=false) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, float &value, float defval=0.0) override
 
bool GetSharedConfig (const wxString &group, const wxString &key, double &value, double defval=0.0) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const wxString &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const int &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const bool &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const float &value) override
 
bool SetSharedConfig (const wxString &group, const wxString &key, const double &value) override
 
bool RemoveSharedConfigSubgroup (const wxString &group) override
 
bool RemoveSharedConfig (const wxString &group, const wxString &key) override
 
bool HasPrivateConfigGroup (const wxString &group) override
 
bool GetPrivateConfigSubgroups (const wxString &group, wxArrayString &subgroups) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, wxString &value, const wxString &defval=wxEmptyString) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, int &value, int defval=0) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, bool &value, bool defval=false) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, float &value, float defval=0.0) override
 
bool GetPrivateConfig (const wxString &group, const wxString &key, double &value, double defval=0.0) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const wxString &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const int &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const bool &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const float &value) override
 
bool SetPrivateConfig (const wxString &group, const wxString &key, const double &value) override
 
bool RemovePrivateConfigSubgroup (const wxString &group) override
 
bool RemovePrivateConfig (const wxString &group, const wxString &key) override
 
virtual PluginID GetID ()
 
virtual bool Startup (EffectClientInterface *client)
 
virtual bool Startup ()
 
virtual bool GetAutomationParameters (wxString &parms)
 
virtual bool SetAutomationParameters (const wxString &parms)
 
virtual wxArrayString GetUserPresets ()
 
virtual bool HasCurrentSettings ()
 
virtual bool HasFactoryDefaults ()
 
virtual wxString GetPreset (wxWindow *parent, const wxString &parms)
 
virtual wxString HelpPage ()
 
virtual bool IsBatchProcessing ()
 
virtual void SetBatchProcessing (bool start)
 
void SetPresetParameters (const wxArrayString *Names, const wxArrayString *Values)
 
bool DoEffect (wxWindow *parent, double projectRate, TrackList *list, TrackFactory *factory, SelectedRegion *selectedRegion, bool shouldPrompt=true)
 
bool Delegate (Effect &delegate, wxWindow *parent, bool shouldPrompt)
 
bool RealtimeAddProcessor (int group, unsigned chans, float rate)
 
size_t RealtimeProcess (int group, unsigned chans, float **inbuf, float **outbuf, size_t numSamples)
 
bool IsRealtimeActive ()
 
virtual bool IsHidden ()
 
int MessageBox (const wxString &message, long style=DefaultMessageBoxStyle, const wxString &titleStr=wxString{})
 
- Public Member Functions inherited from EffectClientInterface
virtual ~EffectClientInterface ()
 
- Public Member Functions inherited from EffectDefinitionInterface
virtual ~EffectDefinitionInterface ()
 
- Public Member Functions inherited from IdentInterface
virtual ~IdentInterface ()
 
const wxString & GetTranslatedName ()
 
- Public Member Functions inherited from ParamsInterface
virtual ~ParamsInterface ()
 
virtual bool DefineParams (ShuttleParams &WXUNUSED(S))
 
- Public Member Functions inherited from EffectUIClientInterface
virtual ~EffectUIClientInterface ()
 
- Public Member Functions inherited from EffectHostInterface
virtual ~EffectHostInterface ()
 
- Public Member Functions inherited from ConfigClientInterface
virtual ~ConfigClientInterface ()
 

Private Member Functions

void OnRepeatTextChange (wxCommandEvent &evt)
 
void DisplayNewTime ()
 

Private Attributes

int repeatCount
 
wxTextCtrl * mRepeatCount
 
wxStaticText * mCurrentTime
 
wxStaticText * mTotalTime
 

Additional Inherited Members

- Public Types inherited from Effect
enum  : long { DefaultMessageBoxStyle = wxOK | wxCENTRE }
 
- Protected Member Functions inherited from Effect
virtual bool Init ()
 
virtual bool PromptUser (wxWindow *parent)
 
virtual bool CheckWhetherSkipEffect ()
 
virtual bool ProcessPass ()
 
virtual bool InitPass1 ()
 
virtual bool InitPass2 ()
 
virtual int GetPass ()
 
virtual void End ()
 
virtual double CalcPreviewInputLength (double previewLength)
 
virtual void Preview (bool dryOnly)
 
virtual bool EnableApply (bool enable=true)
 
virtual bool EnablePreview (bool enable=true)
 
virtual void EnableDebug (bool enable=true)
 
bool TotalProgress (double frac)
 
bool TrackProgress (int whichTrack, double frac, const wxString &=wxEmptyString)
 
bool TrackGroupProgress (int whichGroup, double frac, const wxString &=wxEmptyString)
 
int GetNumWaveTracks ()
 
int GetNumWaveGroups ()
 
void GetSamples (const WaveTrack *track, sampleCount *start, sampleCount *len)
 
void SetLinearEffectFlag (bool linearEffectFlag)
 
void SetPreviewFullSelectionFlag (bool previewDurationFlag)
 
bool IsPreviewing ()
 
void IncludeNotSelectedPreviewTracks (bool includeNotSelected)
 
void CopyInputTracks ()
 
void CopyInputTracks (int trackType)
 
std::shared_ptr
< AddedAnalysisTrack
AddAnalysisTrack (const wxString &name=wxString())
 
ModifiedAnalysisTrack ModifyAnalysisTrack (const LabelTrack *pOrigTrack, const wxString &name=wxString())
 
void ReplaceProcessedTracks (const bool bGoodResult)
 
TrackAddToOutputTracks (std::unique_ptr< Track > &&t)
 
TrackListinputTracks () const
 
- Protected Attributes inherited from Effect
ProgressDialogmProgress
 
double mProjectRate
 
double mSampleRate
 
SelectedRegionmpSelectedRegion {}
 
TrackFactorymFactory
 
std::shared_ptr< TrackListmOutputTracks
 
double mT0
 
double mT1
 
double mF0
 
double mF1
 
wxArrayString mPresetNames
 
wxArrayString mPresetValues
 
int mPass
 
wxDialog * mUIDialog
 
wxWindow * mUIParent
 
int mUIResultID
 
sampleCount mSampleCnt
 
int mOutputTracksType
 

Detailed Description

An Effect that repeats audio several times over.

Definition at line 25 of file Repeat.h.

Constructor & Destructor Documentation

EffectRepeat::EffectRepeat ( )

Definition at line 47 of file Repeat.cpp.

48 {
49  repeatCount = DEF_Count;
50 
51  SetLinearEffectFlag(true);
52 }
void SetLinearEffectFlag(bool linearEffectFlag)
Definition: Effect.cpp:1961
int repeatCount
Definition: Repeat.h:61
EffectRepeat::~EffectRepeat ( )
virtual

Definition at line 54 of file Repeat.cpp.

55 {
56 }

Member Function Documentation

bool EffectRepeat::DefineParams ( ShuttleParams S)
override

Definition at line 83 of file Repeat.cpp.

References repeatCount.

83  {
84  S.SHUTTLE_PARAM( repeatCount, Count );
85  return true;
86 }
int repeatCount
Definition: Repeat.h:61
void EffectRepeat::DisplayNewTime ( )
private

Definition at line 223 of file Repeat.cpp.

References _(), Effect::EnableApply(), Effect::GetSelectionFormat(), NumericConverter::GetString(), mCurrentTime, Effect::mProjectRate, mRepeatCount, Effect::mT0, Effect::mT1, mTotalTime, repeatCount, NumericConverter::SetValue(), and NumericConverter::TIME.

Referenced by OnRepeatTextChange(), and TransferDataToWindow().

224 {
225  long l;
226  wxString str;
227  mRepeatCount->GetValue().ToLong(&l);
228 
231  mT1 - mT0,
232  mProjectRate);
233 
234  str = wxString::Format( _("Current selection length: %s"), nc.GetString() );
235 
236  mCurrentTime->SetLabel(str);
237  mCurrentTime->SetName(str); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
238 
239  if (l > 0) {
240  EnableApply(true);
241  repeatCount = l;
242 
243  nc.SetValue((mT1 - mT0) * (repeatCount + 1));
244  str = wxString::Format( _("New selection length: %s"), nc.GetString() );
245  }
246  else {
247  str = _("Warning: No repeats.");
248  EnableApply(false);
249  }
250  mTotalTime->SetLabel(str);
251  mTotalTime->SetName(str); // fix for bug 577 (NVDA/Narrator screen readers do not read static text in dialogs)
252 }
double mT1
Definition: Effect.h:461
wxTextCtrl * mRepeatCount
Definition: Repeat.h:63
NumericConverter provides the advanced formatting control used in the selection bar of Audacity...
wxStaticText * mCurrentTime
Definition: Repeat.h:64
double mProjectRate
Definition: Effect.h:453
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
virtual NumericFormatId GetSelectionFormat()
Definition: Effect.cpp:737
wxStaticText * mTotalTime
Definition: Repeat.h:65
virtual bool EnableApply(bool enable=true)
Definition: Effect.cpp:1886
double mT0
Definition: Effect.h:460
int repeatCount
Definition: Repeat.h:61
bool EffectRepeat::GetAutomationParameters ( CommandParameters parms)
overridevirtual

Reimplemented from Effect.

Definition at line 88 of file Repeat.cpp.

References repeatCount.

89 {
90  parms.Write(KEY_Count, repeatCount);
91 
92  return true;
93 }
int repeatCount
Definition: Repeat.h:61
wxString EffectRepeat::GetDescription ( )
overridevirtual

Reimplemented from Effect.

Definition at line 65 of file Repeat.cpp.

References _().

66 {
67  return _("Repeats the selection the specified number of times");
68 }
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
IdentInterfaceSymbol EffectRepeat::GetSymbol ( )
overridevirtual

Reimplemented from Effect.

Definition at line 60 of file Repeat.cpp.

References REPEAT_PLUGIN_SYMBOL.

61 {
62  return REPEAT_PLUGIN_SYMBOL;
63 }
#define REPEAT_PLUGIN_SYMBOL
Definition: Repeat.h:23
EffectType EffectRepeat::GetType ( )
overridevirtual

Reimplemented from Effect.

Definition at line 77 of file Repeat.cpp.

References EffectTypeProcess.

78 {
79  return EffectTypeProcess;
80 }
wxString EffectRepeat::ManualPage ( )
overridevirtual

Reimplemented from Effect.

Definition at line 70 of file Repeat.cpp.

71 {
72  return wxT("Repeat");
73 }
void EffectRepeat::OnRepeatTextChange ( wxCommandEvent &  evt)
private

Definition at line 254 of file Repeat.cpp.

References DisplayNewTime().

255 {
256  DisplayNewTime();
257 }
void DisplayNewTime()
Definition: Repeat.cpp:223
void EffectRepeat::PopulateOrExchange ( ShuttleGui S)
overridevirtual

Reimplemented from Effect.

Definition at line 179 of file Repeat.cpp.

References _(), ShuttleGuiBase::AddTextBox(), ShuttleGuiBase::AddVariableText(), ShuttleGuiBase::EndHorizontalLay(), ShuttleGuiBase::EndMultiColumn(), mCurrentTime, Effect::mProjectRate, mRepeatCount, mTotalTime, repeatCount, ShuttleGuiBase::StartHorizontalLay(), and ShuttleGuiBase::StartMultiColumn().

180 {
181  S.StartHorizontalLay(wxCENTER, false);
182  {
183  IntegerValidator<int> vldRepeatCount(&repeatCount);
184  vldRepeatCount.SetRange(MIN_Count, 2147483647 / mProjectRate);
185  mRepeatCount = S.AddTextBox(_("Number of repeats to add:"), wxT(""), 12);
186  mRepeatCount->SetValidator(vldRepeatCount);
187  }
188  S.EndHorizontalLay();
189 
190  S.StartMultiColumn(1, wxCENTER);
191  {
192  mCurrentTime = S.AddVariableText(_("Current selection length: dd:hh:mm:ss"));
193  mTotalTime = S.AddVariableText(_("New selection length: dd:hh:mm:ss"));
194  }
195  S.EndMultiColumn();
196 }
void EndMultiColumn()
void EndHorizontalLay()
wxTextCtrl * mRepeatCount
Definition: Repeat.h:63
wxTextCtrl * AddTextBox(const wxString &Caption, const wxString &Value, const int nChars)
Definition: ShuttleGui.cpp:540
void StartHorizontalLay(int PositionFlags=wxALIGN_CENTRE, int iProp=1)
void StartMultiColumn(int nCols, int PositionFlags=wxALIGN_LEFT)
wxStaticText * mCurrentTime
Definition: Repeat.h:64
double mProjectRate
Definition: Effect.h:453
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop")).Raw()), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom")).Raw()), OnMoveTrack)#define SET_TRACK_NAME_PLUGIN_SYMBOLclass SetTrackNameCommand:public AudacityCommand
wxStaticText * AddVariableText(const wxString &Str, bool bCenter=false, int PositionFlags=0)
Definition: ShuttleGui.cpp:414
wxStaticText * mTotalTime
Definition: Repeat.h:65
int repeatCount
Definition: Repeat.h:61
bool EffectRepeat::Process ( )
overridevirtual

Reimplemented from Effect.

Definition at line 106 of file Repeat.cpp.

References Track::All, WaveTrack::Copy(), Effect::CopyInputTracks(), Track::Label, WaveTrack::LongSamplesToTime(), Effect::mOutputTracks, Effect::mT0, Effect::mT1, WaveTrack::Paste(), LabelTrack::Repeat(), repeatCount, Effect::ReplaceProcessedTracks(), WaveTrack::TimeToLongSamples(), Effect::TrackProgress(), and Track::Wave.

107 {
108  // Set up mOutputTracks.
109  // This effect needs Track::All for sync-lock grouping.
111 
112  int nTrack = 0;
113  bool bGoodResult = true;
114  double maxDestLen = 0.0; // used to change selection to generated bit
115 
116  TrackListIterator iter(mOutputTracks.get());
117 
118  for (Track *t = iter.First(); t && bGoodResult; t = iter.Next())
119  {
120  if (t->GetKind() == Track::Label)
121  {
122  if (t->GetSelected() || t->IsSyncLockSelected())
123  {
124  LabelTrack* track = (LabelTrack*)t;
125 
126  if (!track->Repeat(mT0, mT1, repeatCount))
127  {
128  bGoodResult = false;
129  break;
130  }
131  }
132  }
133  else if (t->GetKind() == Track::Wave && t->GetSelected())
134  {
135  WaveTrack* track = (WaveTrack*)t;
136 
137  auto start = track->TimeToLongSamples(mT0);
138  auto end = track->TimeToLongSamples(mT1);
139  auto len = end - start;
140  double tLen = track->LongSamplesToTime(len);
141  double tc = mT0 + tLen;
142 
143  if (len <= 0)
144  {
145  continue;
146  }
147 
148  auto dest = track->Copy(mT0, mT1);
149  for(int j=0; j<repeatCount; j++)
150  {
151  if (TrackProgress(nTrack, j / repeatCount)) // TrackProgress returns true on Cancel.
152  {
153  bGoodResult = false;
154  break;
155  }
156  track->Paste(tc, dest.get());
157  tc += tLen;
158  }
159  if (tc > maxDestLen)
160  maxDestLen = tc;
161  nTrack++;
162  }
163  else if (t->IsSyncLockSelected())
164  {
165  t->SyncLockAdjust(mT1, mT1 + (mT1 - mT0) * repeatCount);
166  }
167  }
168 
169  if (bGoodResult)
170  {
171  // Select the NEW bits + original bit
172  mT1 = maxDestLen;
173  }
174 
175  ReplaceProcessedTracks(bGoodResult);
176  return bGoodResult;
177 }
double mT1
Definition: Effect.h:461
bool TrackProgress(int whichTrack, double frac, const wxString &=wxEmptyString)
Definition: Effect.cpp:1985
void CopyInputTracks()
Definition: Effect.cpp:2036
bool Repeat(double t0, double t1, int n)
void ReplaceProcessedTracks(const bool bGoodResult)
Definition: Effect.cpp:2162
Track::Holder Copy(double t0, double t1, bool forClipboard=true) const override
Definition: WaveTrack.cpp:605
A LabelTrack is a Track that holds labels (LabelStruct).
Definition: LabelTrack.h:113
A Track that contains audio waveform data.
Definition: WaveTrack.h:60
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:102
void Paste(double t0, const Track *src) override
Definition: WaveTrack.cpp:1192
An iterator for a TrackList.
Definition: Track.h:402
sampleCount TimeToLongSamples(double t0) const
Convert correctly between an (absolute) time in seconds and a number of samples.
Definition: WaveTrack.cpp:1843
double LongSamplesToTime(sampleCount pos) const
Convert correctly between an number of samples and an (absolute) time in seconds. ...
Definition: WaveTrack.cpp:1848
std::shared_ptr< TrackList > mOutputTracks
Definition: Effect.h:459
double mT0
Definition: Effect.h:460
int repeatCount
Definition: Repeat.h:61
bool EffectRepeat::SetAutomationParameters ( CommandParameters parms)
overridevirtual

Reimplemented from Effect.

Definition at line 95 of file Repeat.cpp.

References ReadAndVerifyInt, and repeatCount.

96 {
97  ReadAndVerifyInt(Count);
98 
99  repeatCount = Count;
100 
101  return true;
102 }
#define ReadAndVerifyInt(name)
Definition: Effect.h:797
int repeatCount
Definition: Repeat.h:61
bool EffectRepeat::TransferDataFromWindow ( )
overridevirtual

Reimplemented from Effect.

Definition at line 207 of file Repeat.cpp.

References mRepeatCount, Effect::mUIParent, and repeatCount.

208 {
209  if (!mUIParent->Validate())
210  {
211  return false;
212  }
213 
214  long l;
215 
216  mRepeatCount->GetValue().ToLong(&l);
217 
218  repeatCount = (int) l;
219 
220  return true;
221 }
wxTextCtrl * mRepeatCount
Definition: Repeat.h:63
wxWindow * mUIParent
Definition: Effect.h:472
int repeatCount
Definition: Repeat.h:61
bool EffectRepeat::TransferDataToWindow ( )
overridevirtual

Reimplemented from Effect.

Definition at line 198 of file Repeat.cpp.

References DisplayNewTime(), mRepeatCount, and repeatCount.

199 {
200  mRepeatCount->ChangeValue(wxString::Format(wxT("%d"), repeatCount));
201 
202  DisplayNewTime();
203 
204  return true;
205 }
wxTextCtrl * mRepeatCount
Definition: Repeat.h:63
void DisplayNewTime()
Definition: Repeat.cpp:223
int repeatCount
Definition: Repeat.h:61

Member Data Documentation

wxStaticText* EffectRepeat::mCurrentTime
private

Definition at line 64 of file Repeat.h.

Referenced by DisplayNewTime(), and PopulateOrExchange().

wxTextCtrl* EffectRepeat::mRepeatCount
private
wxStaticText* EffectRepeat::mTotalTime
private

Definition at line 65 of file Repeat.h.

Referenced by DisplayNewTime(), and PopulateOrExchange().

int EffectRepeat::repeatCount
private

The documentation for this class was generated from the following files: