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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user