aboutsummaryrefslogtreecommitdiff
path: root/projectionhistory.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-02-11 12:03:59 -0200
committerSamuel Fadel <samuelfadel@gmail.com>2016-02-11 12:03:59 -0200
commitb5ca997b2d2a64f955b78208d0362cba0278f8d3 (patch)
tree0dbd235d7c91c11968946142e8ed7df155471c7e /projectionhistory.h
parentff08c0541156faf8a220a62b4192a80803b86da3 (diff)
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
Diffstat (limited to 'projectionhistory.h')
-rw-r--r--projectionhistory.h6
1 files changed, 4 insertions, 2 deletions
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 &currentY) 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);