Signal: Added scale_handle_offset, scale_handle_dragged and scale_handle_released
[pulseview.git] / pv / view / analogsignal.hpp
index 4f737aaad640c3226ce365625bcf78e150d30e1a..58c2d3cb7b622e419ce1fcb19d83ed5edf7480fb 100644 (file)
@@ -53,14 +53,23 @@ public:
 
        std::shared_ptr<pv::data::Analog> analog_data() const;
 
-       void set_scale(float scale);
-
        /**
         * Computes the vertical extents of the contents of this row item.
         * @return A pair containing the minimum and maximum y-values.
         */
        std::pair<int, int> v_extents() const;
 
+       /**
+        * Returns the offset to show the drag handle.
+        */
+       int scale_handle_offset() const;
+
+       /**
+        * Handles the scale handle being dragged to an offset.
+        * @param offset the offset the scale handle was dragged to.
+        */
+       void scale_handle_dragged(int offset);
+
        /**
         * Paints the background layer of the signal with a QPainter
         * @param p the QPainter to paint into.