MCPcopy Create free account
hub / github.com/IENT/YUView / selectionPropertiesChanged

Method selectionPropertiesChanged

YUViewLib/src/ui/PlaybackController.cpp:408–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

406}
407
408void PlaybackController::selectionPropertiesChanged(bool redraw)
409{
410 if (this->controlsEnabled)
411 this->updateFrameRange();
412
413 // Check if the current frame is outside of the (new) allowed range
414 bool updated = false;
415 if (this->currentFrameIdx > this->ui.frameSlider->maximum())
416 updated = this->setCurrentFrameAndUpdate(this->ui.frameSlider->maximum());
417 else if (this->currentFrameIdx < this->ui.frameSlider->minimum())
418 updated = this->setCurrentFrameAndUpdate(this->ui.frameSlider->minimum());
419
420 if (redraw && !updated)
421 {
422 this->splitViewPrimary->update(false, true);
423 this->splitViewSeparate->update(false, true);
424 }
425}
426
427void PlaybackController::updateSettings()
428{

Callers

nothing calls this directly

Calls 3

updateFrameRangeMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected