X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fview.hpp;h=9529e7a3fee25a3c057a76c5c1c76a5ebc0c4d08;hb=451dc5f33fbc4f559881acdf338c476a976fcbf2;hp=4514989765b9603d4b8809c1eaa0c3a209fc3783;hpb=4a07615736968fc8d635c8d187b8a5d6b8a0e2eb;p=pulseview.git diff --git a/pv/views/trace/view.hpp b/pv/views/trace/view.hpp index 4514989..9529e7a 100644 --- a/pv/views/trace/view.hpp +++ b/pv/views/trace/view.hpp @@ -162,6 +162,10 @@ public: */ const pv::util::Timestamp& ruler_offset() const; + void set_zero_position(pv::util::Timestamp& position); + + void reset_zero_position(); + /** * Returns the vertical scroll offset. */ @@ -329,7 +333,7 @@ Q_SIGNALS: void segment_display_mode_changed(int mode, bool segment_selectable); public Q_SLOTS: - void trigger_event(util::Timestamp location); + void trigger_event(int segment_id, util::Timestamp location); private: void get_scroll_layout(double &length, pv::util::Timestamp &offset) const; @@ -403,6 +407,8 @@ private Q_SLOTS: void on_segment_completed(int new_segment_id); void on_segment_changed(int segment); + void on_settingViewTriggerIsZeroTime_changed(const QVariant new_value); + virtual void perform_delayed_view_update(); void process_sticky_events(); @@ -411,7 +417,7 @@ private Q_SLOTS: * Sets the 'offset_' and ruler_offset_ members and emits the 'offset_changed' * signal if needed. */ - void set_offset(const pv::util::Timestamp& offset); + void set_offset(const pv::util::Timestamp& offset, bool force_update = false); /** * Sets the 'scale_' member and emits the 'scale_changed'