diff options
author | Tim Moore <timoore@redhat.com> | 2009-12-08 12:44:03 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-08 23:25:20 +0100 |
commit | cfd482078cd4805076cc6fd7e4e8642b97a03b25 (patch) | |
tree | 2d12ccdcfb9eee27d73f1c09d4da72e70fec82c4 /grapher/StapParser.hxx | |
parent | 72a9e5a2d3788f5465eb5e1610f2402744054f2e (diff) | |
download | systemtap-steved-cfd482078cd4805076cc6fd7e4e8642b97a03b25.tar.gz systemtap-steved-cfd482078cd4805076cc6fd7e4e8642b97a03b25.tar.xz systemtap-steved-cfd482078cd4805076cc6fd7e4e8642b97a03b25.zip |
refactor list of data sets out of GraphWidget into a global data structure.
Also, add a sigc signal for broadcasting data set changes.
* grapher/GraphData.hxx (GraphDataList) new typedef
(getGraphData, graphDataSignal): new functions
* grapher/Graph.hxx (DatasetList): remove typedef in favor of
systemtap::GraphDataList
* grapher/GraphWidget.cxx (GraphWidget, onGraphDataChanged): Use
graphDataSignal to notice new data sets that need to be added. Use
the global data set list instead of one embedded in GraphWidget.
* grapher/StapParser.hxx: delete the _widget member; use signals to
broadcast that there are new data sets instead of calling into the widget.
Diffstat (limited to 'grapher/StapParser.hxx')
-rw-r--r-- | grapher/StapParser.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/grapher/StapParser.hxx b/grapher/StapParser.hxx index 476b0071..eba8a7af 100644 --- a/grapher/StapParser.hxx +++ b/grapher/StapParser.hxx @@ -7,7 +7,6 @@ // later version. #include "GraphData.hxx" -#include "GraphWidget.hxx" #include <string> namespace systemtap @@ -19,14 +18,12 @@ class StapParser DataMap _dataSets; CSVData _csv; Gtk::Window* _win; - GraphWidget* _widget; int _errFd; int _inFd; unsigned char _lineEndChar; public: - StapParser(Gtk::Window* win, - GraphWidget* widget) : _win(win), _widget(widget), _errFd(-1), - _inFd(-1), _lineEndChar('\n') + StapParser(Gtk::Window* win) + : _win(win), _errFd(-1), _inFd(-1), _lineEndChar('\n') { } void parseData(std::tr1::shared_ptr<GraphDataBase> gdata, |