]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/trace.hpp
Move current_segment_ to Trace
[pulseview.git] / pv / views / trace / trace.hpp
index 75705226780e8c7a7aea029806fbf5ffdf78b4d4..cd1c8af349f7014b80547549ed462f33eba63d16 100644 (file)
@@ -126,6 +126,10 @@ public:
         */
        QRectF label_rect(const QRectF &rect) const;
 
+       void set_current_segment(const int segment);
+
+       int get_current_segment() const;
+
 protected:
        /**
         * Paints the background layer of the signal with a QPainter.
@@ -166,6 +170,9 @@ protected:
 
        SegmentDisplayMode segment_display_mode_;
 
+       /// The ID of the currently displayed segment
+       int current_segment_;
+
 private:
        pv::widgets::Popup *popup_;
        QFormLayout *popup_form_;