X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fview.hpp;h=c2cceb274d851989c8d6b1f8d225fb5ec3e238a1;hb=48b168aaec786edf7be7ff0a3661061f76d86b22;hp=040bac1b828590514fe22937041f050a3b426aef;hpb=95a4b2a131d6995d08f2eb6dded50f928d1ecb1e;p=pulseview.git diff --git a/pv/views/trace/view.hpp b/pv/views/trace/view.hpp index 040bac1b..c2cceb27 100644 --- a/pv/views/trace/view.hpp +++ b/pv/views/trace/view.hpp @@ -271,7 +271,7 @@ public: bool colored_bg() const; /** - * Returns true if cursors are displayed. false otherwise. + * Returns true if cursors are displayed, false otherwise. */ bool cursors_shown() const; @@ -281,14 +281,16 @@ public: void show_cursors(bool show = true); /** - * Sets the cursors to the given offsets. You will still have to call show_cursors separately. + * Sets the cursors to the given offsets. + * You still have to call show_cursors() separately. */ void set_cursors(pv::util::Timestamp& first, pv::util::Timestamp& second); /** * Moves the cursors to a convenient position in the view. + * You still have to call show_cursors() separately. */ - void centre_cursors(); + void center_cursors(); /** * Returns a reference to the pair of cursors. @@ -528,6 +530,8 @@ private: pv::util::Timestamp ruler_offset_; /// The offset of the zero point in seconds. pv::util::Timestamp zero_offset_; + /// Shows whether the user set a custom zero offset that we should keep + bool custom_zero_offset_set_; bool updating_scroll_; bool settings_restored_;