summaryrefslogtreecommitdiffstats
path: root/grapher/grapher.cxx
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-08 12:44:03 +0100
committerTim Moore <timoore@redhat.com>2009-12-08 23:25:20 +0100
commitcfd482078cd4805076cc6fd7e4e8642b97a03b25 (patch)
tree2d12ccdcfb9eee27d73f1c09d4da72e70fec82c4 /grapher/grapher.cxx
parent72a9e5a2d3788f5465eb5e1610f2402744054f2e (diff)
downloadsystemtap-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/grapher.cxx')
-rw-r--r--grapher/grapher.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/grapher/grapher.cxx b/grapher/grapher.cxx
index 567b0405..4769877f 100644
--- a/grapher/grapher.cxx
+++ b/grapher/grapher.cxx
@@ -161,7 +161,7 @@ public:
void cleanUp();
tr1::shared_ptr<StapParser> makeStapParser()
{
- tr1::shared_ptr<StapParser> result(new StapParser(_win, _widget));
+ tr1::shared_ptr<StapParser> result(new StapParser(_win));
_parsers.push_back(ParserInstance(-1, result));
return result;
}
@@ -274,7 +274,7 @@ int StapLauncher::launch()
}
_exit(1);
}
- tr1::shared_ptr<StapParser> sp(new StapParser(_win, _widget));
+ tr1::shared_ptr<StapParser> sp(new StapParser(_win));
_parsers.push_back(ParserInstance(childPid, sp));
sp->setErrFd(pipefd[2]);
sp->setInFd(pipefd[0]);