]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/analogsignal.hpp
Rework the callback mechanism for the global settings
[pulseview.git] / pv / views / trace / analogsignal.hpp
index a66fb9e2fcefca99164644ac7ceb7dae75c209a4..97d5160bd08b42591191211121f6d16fc874669a 100644 (file)
 #ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_ANALOGSIGNAL_HPP
 #define PULSEVIEW_PV_VIEWS_TRACEVIEW_ANALOGSIGNAL_HPP
 
-#include "signal.hpp"
-
 #include <memory>
 
 #include <QComboBox>
 #include <QSpinBox>
 
+#include <pv/globalsettings.hpp>
+#include <pv/views/trace/signal.hpp>
+
 using std::pair;
 using std::shared_ptr;
 
@@ -41,7 +42,7 @@ class SignalBase;
 namespace views {
 namespace trace {
 
-class AnalogSignal : public Signal
+class AnalogSignal : public Signal, public GlobalSettingsInterface
 {
        Q_OBJECT
 
@@ -74,7 +75,7 @@ private:
 public:
        AnalogSignal(pv::Session &session, shared_ptr<data::SignalBase> base);
 
-       virtual ~AnalogSignal() = default;
+       ~AnalogSignal();
 
        shared_ptr<pv::data::SignalData> data() const;
 
@@ -104,6 +105,8 @@ public:
         */
        void scale_handle_drag_release();
 
+       void on_setting_changed(const QString &key, const QVariant &value);
+
        /**
         * Paints the background layer of the signal with a QPainter
         * @param p the QPainter to paint into.