X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=8aa551250177199a297d73998b01fab1bd8a79f5;hp=9bb42ef14ea6e239500482698c81f95994c94cc9;hb=eee89ff865c28854eebdcecbe344f225b9ee366f;hpb=48257a69ffad409c9893605d99cd6e15161dff4f diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 9bb42ef1..8aa55125 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 @@ -94,6 +95,8 @@ public: const Viewport* viewport() const; + const QSize header_size() const; + /** * Gets a list of time markers. */ @@ -170,6 +173,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. */ @@ -383,6 +392,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_;