X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Flogicsignal.hpp;h=63d2ec4af54b6aaa3dfd79acc3b07e837267cae9;hb=ab6d2eabbab741cd9233cf731f22faaae621fc8a;hp=0705613eb3b9252de57eb566d59505cba297ff1c;hpb=da30ecb7e72bd2547e524258efa5ec642988b70b;p=pulseview.git diff --git a/pv/view/logicsignal.hpp b/pv/view/logicsignal.hpp index 0705613..63d2ec4 100644 --- a/pv/view/logicsignal.hpp +++ b/pv/view/logicsignal.hpp @@ -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 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.