]> sigrok.org Git - pulseview.git/blobdiff - pv/view/view.h
Make header width responsive to label text
[pulseview.git] / pv / view / view.h
index bc99bdd775ef88c26fc235fef299d5a5eebe6a7a..886aa8302adc4259e44b04d43aec6b3d7e8689cc 100644 (file)
@@ -51,7 +51,6 @@ private:
        static const double MaxScale;
        static const double MinScale;
 
-       static const int LabelMarginWidth;
        static const int RulerHeight;
 
        static const int MaxScrollValue;
@@ -88,6 +87,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 +143,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<pv::view::Trace> &a,
                const boost::shared_ptr<pv::view::Trace> &b);
@@ -167,6 +172,8 @@ private slots:
 
        void on_signals_moved();
 
+       void on_geometry_updated();
+
 private:
        SigSession &_session;