X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=635273dae74ad6e1131a592da699beba6a8e76e7;hp=95e518a274db8c11314ca22808bbea6fd0831108;hb=520362f8c4082820193f09e43b27a8c7df2ef011;hpb=af503b104d890a357c736c678bb00296d889c090 diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 95e518a2..635273da 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -55,6 +55,7 @@ class Header; class Ruler; class Trace; class Viewport; +class TriggerMarker; class View : public QAbstractScrollArea, public TraceTreeItemOwner { Q_OBJECT @@ -170,6 +171,12 @@ public: */ void enable_sticky_scrolling(bool state); + /** + * Enables or disables coloured trace backgrounds. If they're not + * coloured then they will use alternating colors. + */ + void enable_coloured_bg(bool state); + /** * Returns true if cursors are displayed. false otherwise. */ @@ -238,6 +245,9 @@ Q_SIGNALS: /// Emitted when the time_unit changed. void time_unit_changed(); +public Q_SLOTS: + void trigger_event(util::Timestamp location); + private: void get_scroll_layout(double &length, pv::util::Timestamp &offset) const; @@ -380,6 +390,8 @@ private: std::list< std::shared_ptr > flags_; char next_flag_text_; + std::vector< std::shared_ptr > trigger_markers_; + QPoint hover_point_; unsigned int sticky_events_;