X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.h;h=6f1e87288bd1dd14f40568f86198ea39f0a3a7bc;hb=7d0c935c488742ca45bdcd73bf8573e0e6f67aab;hp=bc99bdd775ef88c26fc235fef299d5a5eebe6a7a;hpb=ca46b5342f79e4786b973c83ed6a4cde5a51908d;p=pulseview.git diff --git a/pv/view/view.h b/pv/view/view.h index bc99bdd7..6f1e8728 100644 --- a/pv/view/view.h +++ b/pv/view/view.h @@ -51,9 +51,6 @@ private: static const double MaxScale; static const double MinScale; - static const int LabelMarginWidth; - static const int RulerHeight; - static const int MaxScrollValue; public: @@ -88,6 +85,8 @@ public: void zoom_fit(); + void zoom_one_to_one(); + /** * Sets the scale and offset. * @param scale The new view scale in seconds per pixel. @@ -142,8 +141,12 @@ signals: private: void get_scroll_layout(double &length, double &offset) const; + void set_zoom(double scale, int offset); + void update_scroll(); + void update_layout(); + static bool compare_trace_v_offsets( const boost::shared_ptr &a, const boost::shared_ptr &b); @@ -167,6 +170,8 @@ private slots: void on_signals_moved(); + void on_geometry_updated(); + private: SigSession &_session;