| 196 | } |
| 197 | |
| 198 | void SessionManager::setUseTimeOffset(bool use) { |
| 199 | if (use_time_offset_ == use) { |
| 200 | return; |
| 201 | } |
| 202 | use_time_offset_ = use; |
| 203 | // Flip ONLY the global frame: displayOffset() now adds globalTimeReference() |
| 204 | // (earliest raw sample across all datasets when on, 0 when off) on top of each |
| 205 | // dataset's per-source alignment. No per-source TimeDomain offset is written, so |
| 206 | // the Source Timeline's bar positions are untouched — only the numbers reframe. |
| 207 | // No topic changed, only the display->raw mapping; tell every offset reader |
| 208 | // (curve adapters, scenes, the playback seed, the Timeline) to re-resolve. This |
| 209 | // global frame change uses the no-arg overload; the per-dataset overload is |
| 210 | // reserved for single-source Timeline edits. |
| 211 | emit displayOffsetChanged(); |
| 212 | } |
| 213 | |
| 214 | std::optional<DisplayRange> SessionManager::datasetDisplayRange(DatasetId dataset_id) const { |
| 215 | const auto bounds = datasetRawBounds(dataset_id); |
no outgoing calls