From b5ca997b2d2a64f955b78208d0362cba0278f8d3 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Thu, 11 Feb 2016 12:03:59 -0200 Subject: Modified the way the history interacts with other components. * Main class is now responsible for updating map components whenever the current map changes (even rewinding): this simplifies other objects because they don't have to know anything about how the data is being displayed later (no CP/RP juggling everywhere) * Added undo/reset actions to main view, including menu items * ProjectionHistory now has specific signals for each change happening to the history --- manipulationhandler.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'manipulationhandler.h') diff --git a/manipulationhandler.h b/manipulationhandler.h index 8bb8a98..b1aed61 100644 --- a/manipulationhandler.h +++ b/manipulationhandler.h @@ -26,11 +26,7 @@ public: void setTechnique(Technique technique) { m_technique = technique; } signals: - void cpChanged(const arma::mat &cpY) const; - void rpChanged(const arma::mat &rpY) const; void mapChanged(const arma::mat &Y) const; - void cpRewound(const arma::mat &cpY) const; - void rpRewound(const arma::mat &rpY) const; void mapRewound(const arma::mat &Y) const; public slots: @@ -39,7 +35,7 @@ public slots: private: arma::mat m_X; - arma::uvec m_cpIndices, m_rpIndices; + arma::uvec m_cpIndices; ProjectionHistory *m_history; Technique m_technique; }; -- cgit v1.2.3