| 222 | } |
| 223 | |
| 224 | bool EffectChangeSpeed::TransferDataFromWindow(EffectSettings &) |
| 225 | { |
| 226 | // mUIParent->TransferDataFromWindow() loses some precision, so save and restore it. |
| 227 | double exactPercent = m_PercentChange; |
| 228 | if (!mUIParent->Validate() || !mUIParent->TransferDataFromWindow()) |
| 229 | { |
| 230 | return false; |
| 231 | } |
| 232 | m_PercentChange = exactPercent; |
| 233 | |
| 234 | // TODO: just visit these effect settings the default way |
| 235 | SetConfig(GetDefinition(), PluginSettings::Private, |
| 236 | CurrentSettingsGroup(), wxT("TimeFormat"), mFormat.GET()); |
| 237 | SetConfig(GetDefinition(), PluginSettings::Private, |
| 238 | CurrentSettingsGroup(), wxT("VinylChoice"), mFromVinyl); |
| 239 | |
| 240 | return true; |
| 241 | } |
| 242 | |
| 243 | // handler implementations for ChangeSpeedBase |
| 244 | |