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 --- projectionhistory.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'projectionhistory.h') diff --git a/projectionhistory.h b/projectionhistory.h index 28a9b4b..9fe9ffc 100644 --- a/projectionhistory.h +++ b/projectionhistory.h @@ -20,10 +20,12 @@ public: bool hasPrev() const { return m_hasPrev; } void undo(); - void undoAll(); + void reset(); signals: - void historyChanged(const arma::mat ¤tY) const; + void undoPerformed(const arma::mat &prevY) const; + void resetPerformed(const arma::mat &firstY) const; + void mapAdded(const arma::mat &newY) const; public slots: void addMap(const arma::mat &Y); -- cgit v1.2.3