static const double MaxScale;
static const double MinScale;
- static const int LabelMarginWidth;
- static const int RulerHeight;
-
static const int MaxScrollValue;
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.
void normalize_layout();
+ void update_viewport();
+
signals:
void hover_point_changed();
void selection_changed();
+ void scale_offset_changed();
+
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);
void on_signals_moved();
+ void on_geometry_updated();
+
private:
SigSession &_session;