aboutsummaryrefslogtreecommitdiff
path: root/projectionhistory.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuel@nihil.ws>2023-05-23 11:22:33 +0200
committerSamuel Fadel <samuel@nihil.ws>2023-05-23 11:22:33 +0200
commit0f34fd437efb936ef29ac91186321aa7251fbfb1 (patch)
tree271e994828f4bb19c35b2630f2705cb64b8d4552 /projectionhistory.h
parentbedf6936885694688ddb8bd3452f6bd68ef8d29c (diff)
Massive changes in initial port away from Qt.
Diffstat (limited to 'projectionhistory.h')
-rw-r--r--projectionhistory.h29
1 files changed, 10 insertions, 19 deletions
diff --git a/projectionhistory.h b/projectionhistory.h
index 4fc2ef4..d4b0de6 100644
--- a/projectionhistory.h
+++ b/projectionhistory.h
@@ -3,14 +3,11 @@
#include <vector>
-#include <QObject>
-
#include <armadillo>
+#include <nod.hpp>
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<void()> 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<void(const arma::mat &)> currentMapChanged;
+ nod::signal<void(const arma::vec &, bool)> 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<void(const arma::mat &)> mapRewound;
+ nod::signal<void(const arma::vec &)> valuesRewound,
+ cpValuesRewound, rpValuesRewound;
- void cpSelectionChanged(const std::vector<bool> &cpSelection) const;
- void rpSelectionChanged(const std::vector<bool> &rpSelection) const;
- void selectionChanged(const std::vector<bool> &selection) const;
+ nod::signal<void(const std::vector<bool> &)> cpSelectionChanged,
+ rpSelectionChanged, selectionChanged;
-public slots:
void addMap(const arma::mat &Y);
bool setType(ObserverType type);