X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.h;h=155c875b777c8143bbd34fe8a88336388214a8ba;hb=a55c544b0fefead0786633d6d7c2356002b192ae;hp=4eb255a2da7a0ec131df8daf6ea6286df8442074;hpb=b42d25c43e52c900cbdd3e5cde0282961b8721e7;p=pulseview.git diff --git a/pv/view/view.h b/pv/view/view.h index 4eb255a2..155c875b 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -96,11 +96,21 @@ public: */ void show_cursors(bool show = true); + /** + * Moves the cursors to a convenient position in the view. + */ + void centre_cursors(); + /** * Returns a reference to the pair of cursors. */ CursorPair& cursors(); + /** + * Returns a reference to the pair of cursors. + */ + const CursorPair& cursors() const; + const QPoint& hover_point() const; void normalize_layout(); @@ -110,6 +120,8 @@ signals: void signals_moved(); + void selection_changed(); + private: void get_scroll_layout(double &length, double &offset) const;