X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fsignal.hpp;h=2cc49a77d1962499c8bece819c5a0824485bf543;hb=572c3bb71a824b15442ed63c600e77517c6ae411;hp=7f88720f7943904142008b82d88f8103caefa464;hpb=1373fec59223e7511078abe3dbf4a6b61b4af234;p=pulseview.git diff --git a/pv/views/trace/signal.hpp b/pv/views/trace/signal.hpp index 7f88720f..2cc49a77 100644 --- a/pv/views/trace/signal.hpp +++ b/pv/views/trace/signal.hpp @@ -75,6 +75,10 @@ public: shared_ptr base() const; + void set_current_segment(const int segment); + + int get_current_segment() const; + virtual void save_settings(QSettings &settings) const; virtual void restore_settings(QSettings &settings); @@ -98,6 +102,9 @@ protected: pv::Session &session_; QComboBox *name_widget_; + + /// The ID of the currently displayed segment + int current_segment_; }; } // namespace trace