1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-04 10:43:08 +01:00

Included missing changes to move from TimeTextCtrl to NumericTextCtrl in r13557.

This commit is contained in:
james.k.crook@gmail.com
2014-11-08 16:48:36 +00:00
parent 8a9987a0d9
commit 88ed83d967
2 changed files with 4 additions and 4 deletions

View File

@@ -1287,7 +1287,7 @@ LadspaEffectDialog::LadspaEffectDialog(LadspaEffect *eff,
if (mEffect->GetType() == EffectTypeGenerate) {
item = new wxStaticText(w, 0, _("Length (seconds):"));
gridSizer->Add(item, 0, wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxALL, 5);
mSeconds = new TimeTextCtrl(w,
mSeconds = new NumericTextCtrl(NumericConverter::TIME, w,
wxID_ANY,
_("hh:mm:ss + milliseconds"),
length,
@@ -1565,7 +1565,7 @@ void LadspaEffectDialog::ControlSetFocus(wxFocusEvent & evt)
double LadspaEffectDialog::GetLength()
{
if (mEffect->GetType() == EffectTypeGenerate) {
return mSeconds->GetTimeValue();
return mSeconds->GetValue();
}
return 0;

View File

@@ -19,7 +19,7 @@ class wxCheckBox;
#include "audacity/ModuleInterface.h"
#include "audacity/PluginInterface.h"
#include "../../widgets/TimeTextCtrl.h"
#include "../../widgets/NumericTextCtrl.h"
#include "ladspa.h"
@@ -224,5 +224,5 @@ private:
unsigned long mNumParams;
float *mInputControls;
LadspaEffect *mEffect;
TimeTextCtrl *mSeconds;
NumericTextCtrl *mSeconds;
};