void zoom(double steps);
void zoom(double steps, int offset);
- void zoom_fit();
+ void zoom_fit(bool gui_state);
void zoom_one_to_one();
void sticky_scrolling_changed(bool state);
+ void always_zoom_to_fit_changed(bool state);
+
private:
void get_scroll_layout(double &length, double &offset) const;
bool updating_scroll_;
bool sticky_scrolling_;
+ bool always_zoom_to_fit_;
QTimer delayed_view_updater_;
double tick_period_;