X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fsignal.hpp;h=2cc49a77d1962499c8bece819c5a0824485bf543;hp=7f88720f7943904142008b82d88f8103caefa464;hb=526c8c00a61aa5f6ac7e3ee56991db957b45828d;hpb=1373fec59223e7511078abe3dbf4a6b61b4af234 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