| 234 | |
| 235 | |
| 236 | bool EffectPhaser::Editor::ValidateUI() |
| 237 | { |
| 238 | // This bit was copied from the original override of TransferDataFromWindow |
| 239 | if (!mUIParent->Validate() || !mUIParent->TransferDataFromWindow()) |
| 240 | { |
| 241 | return false; |
| 242 | } |
| 243 | |
| 244 | auto& ms = mSettings; |
| 245 | |
| 246 | if (ms.mStages & 1) // must be even |
| 247 | { |
| 248 | ms.mStages &= ~1; |
| 249 | mStagesT->GetValidator()->TransferToWindow(); |
| 250 | } |
| 251 | |
| 252 | mAccess.ModifySettings |
| 253 | ( |
| 254 | [this](EffectSettings& settings) |
| 255 | { |
| 256 | // pass back the modified settings to the MessageBuffer |
| 257 | |
| 258 | GetSettings(settings) = mSettings; |
| 259 | return nullptr; |
| 260 | } |
| 261 | ); |
| 262 | |
| 263 | return true; |
| 264 | } |
| 265 | |
| 266 | void EffectPhaser::Editor::OnStagesSlider(wxCommandEvent & evt) |
| 267 | { |
nothing calls this directly
no test coverage detected