diff options
author | Tim Moore <timoore@redhat.com> | 2009-12-01 12:26:59 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-01 12:36:55 +0100 |
commit | d293d53136fa7e6e7eda510847145edf4d3d7f55 (patch) | |
tree | 50d5969dec90938cc7efd42e9aea5bfcf5aa6bae /grapher/Graph.cxx | |
parent | 572a176d481c329b370ce52e7bec1a49ed76c225 (diff) | |
download | systemtap-steved-d293d53136fa7e6e7eda510847145edf4d3d7f55.tar.gz systemtap-steved-d293d53136fa7e6e7eda510847145edf4d3d7f55.tar.xz systemtap-steved-d293d53136fa7e6e7eda510847145edf4d3d7f55.zip |
Add hover text to the graph.
When the graph display is paused, leaving the mouse stationary over
the graph will display the data point under the pointer.
* grapher/CairoWidget.hxx (CairoTextBox): new class
(CairoWidget, CairoPlayButton): refector some play button-specific
things from CairoWidget to CairoPlayButton.
* grapher/CairoWidget.cxx (CairoTextBox::draw): new function.
* grapher/GraphWidget.hxx (GraphWidget): new members for supporting
hover text.
* grapher/GraphWidget.cxx (on_motion_notify_event): Set up hover text box.
(establishHoverTimeout, onHoverTimeout, getGraphUnderPoint): new functions.
Diffstat (limited to 'grapher/Graph.cxx')
-rw-r--r-- | grapher/Graph.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grapher/Graph.cxx b/grapher/Graph.cxx index e9aacd55..61b7e55c 100644 --- a/grapher/Graph.cxx +++ b/grapher/Graph.cxx @@ -14,7 +14,7 @@ namespace systemtap _graphWidth(580), _graphHeight(180), _lineWidth(2), _autoScaling(true), _autoScrolling(true), _zoomFactor(1.0), _playButton(new CairoPlayButton), - _left(0.0), _right(1.0), _top(5.0), _bottom(0.0) + _left(0), _right(1), _top(5.0), _bottom(0.0) { setOrigin(x, y); _graphX = x; |