]> sigrok.org Git - pulseview.git/blobdiff - pv/view/view.h
Wrapped Cursors in a shared_ptr
[pulseview.git] / pv / view / view.h
index 4eb255a2da7a0ec131df8daf6ea6286df8442074..155c875b777c8143bbd34fe8a88336388214a8ba 100644 (file)
@@ -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;