X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fview.hpp;h=679e587bf3036e705820604eb2f23df99d89205f;hb=8c3397413149b87d2755494fe73186f27edab369;hp=da05691f42f5274b8c8fd86d54ffeccd80230927;hpb=7daebd054e65a244dce36933cbf173b8d7532a09;p=pulseview.git diff --git a/pv/views/trace/view.hpp b/pv/views/trace/view.hpp index da05691..679e587 100644 --- a/pv/views/trace/view.hpp +++ b/pv/views/trace/view.hpp @@ -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 > 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.