From 0f34fd437efb936ef29ac91186321aa7251fbfb1 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 23 May 2023 11:22:33 +0200 Subject: Massive changes in initial port away from Qt. --- projectionhistory.h | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'projectionhistory.h') diff --git a/projectionhistory.h b/projectionhistory.h index 4fc2ef4..d4b0de6 100644 --- a/projectionhistory.h +++ b/projectionhistory.h @@ -3,14 +3,11 @@ #include -#include - #include +#include class ProjectionHistory - : public QObject { - Q_OBJECT public: enum ObserverType { ObserverCurrent, @@ -34,25 +31,19 @@ public: void undo(); void reset(); -signals: - void undoPerformed() const; - void resetPerformed() const; + nod::signal undoPerformed, resetPerformed; - void currentMapChanged(const arma::mat &Y) const; - void valuesChanged(const arma::vec &values, bool rescale) const; - void cpValuesChanged(const arma::vec &values, bool rescale) const; - void rpValuesChanged(const arma::vec &values, bool rescale) const; + nod::signal currentMapChanged; + nod::signal valuesChanged, + cpValuesChanged, rpValuesChanged; - void mapRewound(const arma::mat &Y) const; - void valuesRewound(const arma::vec &values) const; - void cpValuesRewound(const arma::vec &values) const; - void rpValuesRewound(const arma::vec &values) const; + nod::signal mapRewound; + nod::signal valuesRewound, + cpValuesRewound, rpValuesRewound; - void cpSelectionChanged(const std::vector &cpSelection) const; - void rpSelectionChanged(const std::vector &rpSelection) const; - void selectionChanged(const std::vector &selection) const; + nod::signal &)> cpSelectionChanged, + rpSelectionChanged, selectionChanged; -public slots: void addMap(const arma::mat &Y); bool setType(ObserverType type); -- cgit v1.2.3