*/
const pv::util::Timestamp& ruler_offset() const;
- void set_zero_position(pv::util::Timestamp& position);
+ void set_zero_position(const pv::util::Timestamp& position);
void reset_zero_position();
+ pv::util::Timestamp absolute_to_ruler_time(const pv::util::Timestamp& abs_time) const;
+ pv::util::Timestamp ruler_to_absolute_time(const pv::util::Timestamp& ruler_time) const;
+
/**
* Returns the vertical scroll offset.
*/
*/
void show_cursors(bool show = true);
+ /**
+ * Sets the cursors to the given offsets. You will 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.
*/
pv::util::Timestamp offset_;
/// The ruler version of the time offset in seconds.
pv::util::Timestamp ruler_offset_;
+ /// The offset of the zero point in seconds.
+ pv::util::Timestamp zero_offset_;
bool updating_scroll_;
bool settings_restored_;