SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
cursorwindowslider.h File Reference

Issue 1 — single-thumb animation scrubber with a look-back window band. More...

#include <QWidget>
Include dependency graph for cursorwindowslider.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::CursorWindowSlider
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Issue 1 — single-thumb animation scrubber with a look-back window band.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Replaces the two-thumb RangeSliderWidget on the animation toolbar. The scrubber has ONE draggable thumb (the current time / cursor); the look-back window is a read-only span set programmatically (from the "Window:" spin box) and painted as a highlighted band ENDING at the cursor — "the range rendered around the slider". Dragging the thumb (or clicking the track) moves only the cursor and emits cursorChanged(); it never mutates the window, so there is no two-handle feedback round-trip — the source of the old lag.

Values are normalised to [0..1]; the host (the SWMMVis animation toolbar) maps the cursor to a QDateTime and the window-norm to milliseconds.

NB: the cursor accessor/mutator are named cursorNorm()/setCursorNorm() — NOT cursor()/setCursor() — to avoid hiding QWidget::setCursor(const QCursor&).