Change Speed - Make 3 member variables private and re-disable FromTime menu.

This commit is contained in:
stevethefiddle@gmail.com 2014-11-25 03:09:54 +00:00
parent 7c3f355c7a
commit e159414c9d
2 changed files with 6 additions and 3 deletions

View File

@ -432,6 +432,7 @@ void ChangeSpeedDialog::PopulateOrExchange(ShuttleGui & S)
mpFromLengthCtrl->SetToolTip(tip); mpFromLengthCtrl->SetToolTip(tip);
#endif #endif
mpFromLengthCtrl->SetReadOnly(true); mpFromLengthCtrl->SetReadOnly(true);
mpFromLengthCtrl->EnableMenu(false);
S.AddPrompt(_("New Length") + wxString(wxT(":"))); S.AddPrompt(_("New Length") + wxString(wxT(":")));

View File

@ -126,16 +126,18 @@ class ChangeSpeedDialog : public EffectDialog
NumericTextCtrl * mpToLengthCtrl; NumericTextCtrl * mpToLengthCtrl;
double mRate; double mRate;
// private effect parameters
int mToVinyl; // to standard vinyl speed (rpm)
double mToLength; // target length of selection
wxString mFormat; // time control format
public: public:
// effect parameters // effect parameters
double m_PercentChange; // percent change to apply to tempo double m_PercentChange; // percent change to apply to tempo
// -100% is meaningless, but sky's the upper limit. // -100% is meaningless, but sky's the upper limit.
// Slider is (-100, 200], but textCtrls can set higher. // Slider is (-100, 200], but textCtrls can set higher.
int mFromVinyl; // from standard vinyl speed (rpm) int mFromVinyl; // from standard vinyl speed (rpm)
int mToVinyl; // to standard vinyl speed (rpm)
double mFromLength; // current selection length double mFromLength; // current selection length
double mToLength; // target length of selection
wxString mFormat; // time control format
int mTimeCtrlFormat; // time control format index int mTimeCtrlFormat; // time control format index
private: private: