A time has been set. Update the control values.
| 556 | |
| 557 | // A time has been set. Update the control values. |
| 558 | void 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 | |
| 573 | void SelectionBar::SetSelectionFormat(const NumericFormatID & format) |
| 574 | { |
no outgoing calls
no test coverage detected