MCPcopy Create free account
hub / github.com/audacity/audacity / SetTimes

Method SetTimes

src/toolbars/SelectionBar.cpp:558–571  ·  view source on GitHub ↗

A time has been set. Update the control values.

Source from the content-addressed store, hash-verified

556
557// A time has been set. Update the control values.
558void SelectionBar::SetTimes(double start, double end)
559{
560 if ( start != mStart || end != mEnd
561 || mLastSelectionMode != mSelectionMode
562 ) {
563 mStart = start;
564 mEnd = end;
565 mLength = end-start;
566 mCenter = (end+start)/2.0;
567 mLastSelectionMode = mSelectionMode;
568
569 ValuesToControls();
570 }
571}
572
573void SelectionBar::SetSelectionFormat(const NumericFormatID & format)
574{

Callers 8

ActivatePlayRegionFunction · 0.45
InactivatePlayRegionFunction · 0.45
CancelMethod · 0.45
DoAdjustMethod · 0.45
DoStartAdjustMethod · 0.45
HandleQPDragMethod · 0.45
SetPlayRegionMethod · 0.45
OnProjectTempoChangeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected