X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=e4d0ebad1ab5237968b0e37ebf1f34c4faa6a877;hb=78b0af3ebcbeab50e1c1634af729c0a7f97fb435;hp=a355cf921cdb43c00bcb5132fec4cc4dfae7d8ae;hpb=f15bb3bc4f964eaafdd4c46f29f69ef74572baee;p=pulseview.git diff --git a/pv/view/view.hpp b/pv/view/view.hpp index a355cf92..e4d0ebad 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -18,8 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef PULSEVIEW_PV_VIEW_VIEW_H -#define PULSEVIEW_PV_VIEW_VIEW_H +#ifndef PULSEVIEW_PV_VIEW_VIEW_HPP +#define PULSEVIEW_PV_VIEW_VIEW_HPP #include @@ -102,8 +102,17 @@ public: * seconds. */ double offset() const; + + /** + * Returns the vertical scroll offset. + */ int owner_visual_v_offset() const; + /** + * Sets the visual v-offset. + */ + void set_v_offset(int offset); + /** * Returns the SI prefix to apply to the graticule time markings. */ @@ -249,7 +258,7 @@ public: private Q_SLOTS: void h_scroll_value_changed(int value); - void v_scroll_value_changed(int value); + void v_scroll_value_changed(); void signals_changed(); void data_updated(); @@ -271,7 +280,6 @@ private: /// The view time offset in seconds. double offset_; - int v_offset_; bool updating_scroll_; double tick_period_; @@ -292,4 +300,4 @@ private: } // namespace view } // namespace pv -#endif // PULSEVIEW_PV_VIEW_VIEW_H +#endif // PULSEVIEW_PV_VIEW_VIEW_HPP