Supply the segment ID when adding samples to optimize trace painting
[pulseview.git] / pv / views / trace / view.hpp
index da05691f42f5274b8c8fd86d54ffeccd80230927..679e587bf3036e705820604eb2f23df99d89205f 100644 (file)
@@ -382,6 +382,7 @@ private Q_SLOTS:
        void capture_state_updated(int state);
 
        void on_new_segment(int new_segment_id);
+       void on_segment_completed(int new_segment_id);
        void on_segment_changed(int segment);
 
        virtual void perform_delayed_view_update();
@@ -424,6 +425,11 @@ private Q_SLOTS:
         */
        void set_time_unit(pv::util::TimeUnit time_unit);
 
+       /**
+        * Sets the current segment with the first segment starting at 0.
+        */
+       void set_current_segment(uint32_t segment_id);
+
 private:
        CustomScrollArea *scrollarea_;
        Viewport *viewport_;
@@ -437,8 +443,6 @@ private:
        vector< shared_ptr<DecodeTrace> > decode_traces_;
 #endif
 
-       /// The ID of the currently displayed segment
-       int current_segment_;
        Trace::SegmentDisplayMode segment_display_mode_;
 
        /// Signals whether the user can change the currently shown segment.