lttng / lttng-scope

A trace viewer and analyzer for LTTng kernel and user space traces
https://lttng.org/beta/#lttng-scope
Eclipse Public License 1.0
28 stars 6 forks source link

timegraph: Preserve state selection upon repaint #15

Closed ghost closed 7 years ago

ghost commented 7 years ago

Re-apply the state selection when a repaint is done. Currently, the equivalent rectangle from the old scene graph remains the "selected" one, so actions acting on it (like navigation, info) will happen to work, but the new state rectangle should be visibly selected in the view.

ghost commented 7 years ago

Idea storm: the notion of "selected interval" could refer to the model interval (TimeGraphStateInterval), and not a UI interval. Then, upon creating any UI interval from the selected model interval, that UI interval could be marked as selected right away.