X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=026c7683ffaef224c501ed94ad6cdbe586452742;hp=4561cec661f95c546dd979129460f2b089d74249;hb=5c5ce7574062e0d3ad4f7d9dde70b482315d54fb;hpb=361c560ed9ef67278916e086ed0b0649ae01b583 diff --git a/pv/view/view.hpp b/pv/view/view.hpp index 4561cec6..026c7683 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -90,6 +90,11 @@ public: const Viewport* viewport() const; + /** + * Gets a list of time markers. + */ + std::vector< std::shared_ptr > time_items() const; + /** * Returns the view time scale in seconds per pixel. */ @@ -154,12 +159,7 @@ public: /** * Returns a reference to the pair of cursors. */ - CursorPair& cursors(); - - /** - * Returns a reference to the pair of cursors. - */ - const CursorPair& cursors() const; + std::shared_ptr cursors() const; const QPoint& hover_point() const; @@ -274,7 +274,7 @@ private: unsigned int tick_prefix_; bool show_cursors_; - CursorPair cursors_; + std::shared_ptr cursors_; QPoint hover_point_;