X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.h;h=0f5e254da4f12681dfff1f10621c91c0af1b9422;hb=f1283456ae0859990ccd914f8c147064345df13f;hp=5a10ee9ecea7be2b9dacd69c6bb964d0a215de23;hpb=69dd2b030f0bf289fe3132cf3c0f3725c578a916;p=pulseview.git diff --git a/pv/view/view.h b/pv/view/view.h index 5a10ee9e..0f5e254d 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -23,12 +23,10 @@ #include -#include - #include #include -#include "cursor.h" +#include "cursorpair.h" namespace pv { @@ -98,10 +96,15 @@ 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. */ - std::pair& cursors(); + CursorPair& cursors(); const QPoint& hover_point() const; @@ -154,9 +157,10 @@ private: double _offset; int _v_offset; + bool _updating_scroll; bool _show_cursors; - std::pair _cursors; + CursorPair _cursors; QPoint _hover_point; };