diff options
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) { |