]> sigrok.org Git - pulseview.git/blobdiff - pv/view/logicsignal.hpp
ViewWidget: Added drag-handling support for non-TraceTreeItems
[pulseview.git] / pv / view / logicsignal.hpp
index 0705613eb3b9252de57eb566d59505cba297ff1c..63d2ec4af54b6aaa3dfd79acc3b07e837267cae9 100644 (file)
@@ -52,7 +52,6 @@ class LogicSignal : public Signal
 
 private:
        static const int SignalHeight;
-       static const int SignalMargin;
 
        static const float Oversampling;
 
@@ -86,6 +85,17 @@ public:
         */
        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.