X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fview.hpp;h=fb097b01cfb604fb9893d4d50390ca7b64e5100f;hp=28c94e5285d1dfc6cc21c06daa618138f3723bc8;hb=7ea2a4ff0765fdad34b84e4b4631d6f3f5588714;hpb=ffc00fdd5946593ad2a587078fd4ee9ba0a507ec diff --git a/pv/views/trace/view.hpp b/pv/views/trace/view.hpp index 28c94e52..fb097b01 100644 --- a/pv/views/trace/view.hpp +++ b/pv/views/trace/view.hpp @@ -187,6 +187,11 @@ public: */ const pv::util::Timestamp& tick_period() const; + /** + * Returns number of minor division ticks per time marking. + */ + unsigned int minor_tick_count() const; + /** * Returns the unit of time currently used. */ @@ -324,7 +329,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; @@ -479,6 +484,7 @@ private: pv::util::Timestamp tick_period_; pv::util::SIPrefix tick_prefix_; + unsigned int minor_tick_count_; unsigned int tick_precision_; util::TimeUnit time_unit_;