Commit Graph

10 Commits

Author SHA1 Message Date
70aeeb66bc visualizer-selection: initial visualizer selection support
This gets started on allowing the user to select a region.
Nothing is yet responding to the changes in selection, but
that can come later.

Ideally, we will truncate (or mark rows invisible/insensitive)
if they do not fall within the selected time region.
2016-10-08 13:40:12 -07:00
72a8276faf visualizer-view: fix time range for ticks
This uses the graph_width to get the proper time range of the
visualizer row. Mostly, this is just complicated because we
the ticks to be an overlay rather than inline with the list
rows.
2016-10-06 21:03:01 -07:00
51ed367b74 wip: visualizer work 2016-10-05 09:40:08 -07:00
8d8c879384 visualizer-view: add helper viewport for scrolling
We can avoid using the inline scrollbar in favor of overlay
scrolling if we bridge the adjustment into the GtkViewport.
This sadly requires us to subclass things to get it just
right.
2016-10-03 16:08:13 -07:00
e54c496f7d visualizer-view: set hscrollbar policy to never
Because we are using ListBox, we can't quite do scrolling the
way we'd like (naturally using the scrolled window). So for now
we need to just disable hscrolling here.

However, it would be nice if we could teach the viewport to
handle this correctly so that it wires up the
GtkScrollable:hscrollbar-adjustment to our internal one.
2016-09-30 16:59:11 -07:00
d64bd3fe51 visualizer-view: set vexpand on scrolledwindow
This ensures that the scrolled window expands to the visible
area, which is indeed the desired effect.
2016-09-30 12:59:57 -07:00
fa58f7a941 visualizer-view: hide scrollbar by default 2016-09-29 18:14:50 -07:00
caa95fcca7 visualizer-view: implement basic panning
There are lots of little things that need fixing, such as the
ticks positioning, and reusing surfaces as much as possible, but
this gets our "MVP" panning in place.
2016-09-29 14:37:00 -07:00
337334e4fa visualizer-view: remove min height for rows
We will handle this in other areas, so we can drop this.
2016-09-28 13:22:25 -07:00
f8a0f2701e visualizer-view: add SpVisualizerView
This adds a new helper widget SpVisualizerView to simplify using
visualizers from applications using libsysprof-ui-2 such as
Builder.

We can manage the view range, zoom, etc from this widget going
forward.
2016-09-27 23:15:56 -07:00