From b45a21976bece19da81166324dc1cc4260a0e0f4 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Wed, 10 Feb 2016 18:31:48 -0200 Subject: Added ProjectionHistory object for history tracking. --- main.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.h') diff --git a/main.h b/main.h index 67b7024..52f94e6 100644 --- a/main.h +++ b/main.h @@ -121,7 +121,7 @@ public: splat->setColorScale(getColorScale(colorScaleType)); } - // Pointer to visual components whose values are set in the main() function + // Pointers to visual components whose values are set in the main() function // after components are instantiated by the QtQuick engine BarChart *cpBarChart, *rpBarChart; Colormap *colormap; @@ -130,6 +130,11 @@ public: ProjectionObserver *projectionObserver; + // Shared object that controls manipulation history + ProjectionHistory *projectionHistory; + Q_INVOKABLE void undoManipulation() { projectionHistory->undo(); } + Q_INVOKABLE void resetManipulation() { projectionHistory->undoAll(); } + public slots: void setCPIndices(const arma::uvec &indices) { m_cpIndices = indices; } void setCP(const arma::mat &cp) { -- cgit v1.2.3