summaryrefslogtreecommitdiffstats
path: root/grapher/CairoWidget.cxx
Commit message (Collapse)AuthorAgeFilesLines
* grapher: workaround for bz 11118Tim Moore2009-12-311-1/+1
| | | | | | * grapher/CairoWidget.cxx (CairoTextBox::draw): Use boost::is_from_range instead of is_any_of. Reports on the net suggest that is_any_of triggers a compiler bug.
* change namespace indentation to 0Tim Moore2009-12-211-81/+81
| | | | | A silly change, but this works better with other tools, like git diff. I should have started the C++ files this way.
* add copyright and license to grapher filesTim Moore2009-12-071-0/+8
|
* tweak multiline hover text to have proper interline spacingTim Moore2009-12-041-7/+13
| | | | | | | | * grapher/CairoWidget.cxx (CairoTextBox::draw): Use font information to caculate legible spacing. Also change the font to something more readable. * testsuite/systemtap.examples/general/grapher.stp: Put carriage returns in the right spots.
* support multiline data output from scripts run under the grapherTim Moore2009-12-041-5/+31
| | | | | | | | | | | | | | This is accompanied by support for multiline output in hover text. * grapher/StapParser.cxx (ioCallback): Read data 'til the end of line character, not just '\n'. Be careful to use I/O functions that don't treat '\n' specially. * grapher/StapParser.hxx: ditto * grapher/CairoWidget.cxx (CairoTextBox::draw): Perform line breaks for hover text. * testsuite/systemtap.examples/general/grapher.stp: Do multiline output of keyboard events. Also, fix longstanding breaking in the pty probe.
* Add hover text to the graph.Tim Moore2009-12-011-0/+21
| | | | | | | | | | | | | | 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.
* Move grapher to subdirectoryTim Moore2009-04-201-0/+42