X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.h;h=6f1e87288bd1dd14f40568f86198ea39f0a3a7bc;hb=269528f55e7fd77f762c2008d257921cd30e1519;hp=c25ed78ada3f90a8cab3d6d4a9c7964c83c2a4a9;hpb=9cef95672622f4ecdb21edef9d81a10c789daf1e;p=pulseview.git diff --git a/pv/view/view.h b/pv/view/view.h index c25ed78a..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: @@ -86,6 +83,10 @@ public: void zoom(double steps); void zoom(double steps, int offset); + void zoom_fit(); + + void zoom_one_to_one(); + /** * Sets the scale and offset. * @param scale The new view scale in seconds per pixel. @@ -140,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); @@ -165,6 +170,8 @@ private slots: void on_signals_moved(); + void on_geometry_updated(); + private: SigSession &_session;