From 75c5affd4d7919a969ab65a4a28b6306686e5f9c Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 29 Sep 2015 16:01:00 -0300 Subject: HistoryGraph now notifies when the active item changes. Scatterplot now differentiates between interactive and programatic changes in x/y data. --- main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index e8a826e..7027be8 100644 --- a/main.cpp +++ b/main.cpp @@ -72,8 +72,10 @@ int main(int argc, char **argv) &interactionHandler, SLOT(setSubsample(const arma::mat &))); QObject::connect(&interactionHandler, SIGNAL(subsampleChanged(const arma::mat &)), plot, SLOT(setXY(const arma::mat &))); - QObject::connect(subsamplePlot, SIGNAL(xyChanged(const arma::mat &)), + QObject::connect(subsamplePlot, SIGNAL(xyInteractivelyChanged(const arma::mat &)), history, SLOT(addHistoryItem(const arma::mat &))); + QObject::connect(history, SIGNAL(currentItemChanged(const arma::mat &)), + subsamplePlot, SLOT(setXY(const arma::mat &))); SelectionHandler selectionHandler(sampleIndices); QObject::connect(subsamplePlot, SIGNAL(selectionChanged(const QSet &)), @@ -107,7 +109,6 @@ int main(int argc, char **argv) plot->setColorScale(&colorScale); plot->setColorData(labels); - //interactionHandler.setSubsample(Ys); subsamplePlot->setXY(Ys); subsamplePlot->setColorData(labels(sampleIndices)); -- cgit v1.2.3