aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
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) {