*/
const pv::util::Timestamp& ruler_offset() const;
+ void set_zero_position(pv::util::Timestamp& position);
+
+ void reset_zero_position();
+
/**
* Returns the vertical scroll offset.
*/
*/
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.
*/
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;
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();
* 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'
pv::util::Timestamp tick_period_;
pv::util::SIPrefix tick_prefix_;
+ unsigned int minor_tick_count_;
unsigned int tick_precision_;
util::TimeUnit time_unit_;