AnalogSignal: Use setting change handler for threshold display
[pulseview.git] / pv / views / trace / logicsignal.hpp
index 2f5c66baa219fb69dcb8e9e42e08de1c01ad1849..cf2f68d82cb90a2bed14560e72927202f100b47a 100644 (file)
@@ -21,6 +21,7 @@
 #define PULSEVIEW_PV_VIEWS_TRACEVIEW_LOGICSIGNAL_HPP
 
 #include <QCache>
+#include <QSpinBox>
 
 #include "signal.hpp"
 
@@ -78,6 +79,9 @@ public:
 
        shared_ptr<pv::data::Logic> logic_data() const;
 
+       virtual void save_settings(QSettings &settings) const;
+       virtual void restore_settings(QSettings &settings);
+
        /**
         * Computes the vertical extents of the contents of this row item.
         * @return A pair containing the minimum and maximum y-values.
@@ -130,11 +134,15 @@ private:
 private Q_SLOTS:
        void on_trigger();
 
+       void on_signal_height_changed(int height);
+
 private:
        int signal_height_;
 
        shared_ptr<pv::devices::Device> device_;
 
+       QSpinBox *signal_height_sb_;
+
        const sigrok::TriggerMatchType *trigger_match_;
        QToolBar *trigger_bar_;
        QAction *trigger_none_;