aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-02-10 18:31:48 -0200
committerSamuel Fadel <samuelfadel@gmail.com>2016-02-10 18:31:48 -0200
commitb45a21976bece19da81166324dc1cc4260a0e0f4 (patch)
tree2f21da285edb214766fa559081b76a6754cfa8b0 /main.h
parent8d4e5ff43fd9d51dc05d8d2dd87f69ab35bee423 (diff)
Added ProjectionHistory object for history tracking.
Diffstat (limited to 'main.h')
-rw-r--r--main.h7
1 files changed, 6 insertions, 1 deletions
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) {