X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.h;h=f378e9116c24a6ccb0b3376cf2fe7d77ac18b7ba;hb=ef8311a4296a2dc85c82b063de61efa4eb7a8404;hp=18da73224e952a8bae50421fa59735d21438e419;hpb=8b454527dc987d552b189099ee61cf699095aa7e;p=pulseview.git diff --git a/pv/view/view.h b/pv/view/view.h index 18da7322..f378e911 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -23,6 +23,8 @@ #include +#include + #include #include @@ -86,6 +88,8 @@ public: */ void set_scale_offset(double scale, double offset); + std::list > selected_items() const; + /** * Returns true if cursors are displayed. false otherwise. */ @@ -106,6 +110,11 @@ public: */ CursorPair& cursors(); + /** + * Returns a reference to the pair of cursors. + */ + const CursorPair& cursors() const; + const QPoint& hover_point() const; void normalize_layout(); @@ -122,8 +131,6 @@ private: void update_scroll(); - void reset_signal_layout(); - private: bool eventFilter(QObject *object, QEvent *event);