projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added zoom one-to-one
[pulseview.git]
/
pv
/
view
/
view.h
diff --git
a/pv/view/view.h
b/pv/view/view.h
index 25e43b8a36c17b7feedf914c8fc2dd95e4c9cbac..db03ce9b43a81b1a7b6a5eda32e0986e15cb1c86 100644
(file)
--- a/
pv/view/view.h
+++ b/
pv/view/view.h
@@
-86,6
+86,10
@@
public:
void zoom(double steps);
void zoom(double steps, int offset);
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.
/**
* Sets the scale and offset.
* @param scale The new view scale in seconds per pixel.
@@
-126,6
+130,8
@@
public:
void normalize_layout();
void normalize_layout();
+ void update_viewport();
+
signals:
void hover_point_changed();
signals:
void hover_point_changed();
@@
-138,6
+144,8
@@
signals:
private:
void get_scroll_layout(double &length, double &offset) const;
private:
void get_scroll_layout(double &length, double &offset) const;
+ void set_zoom(double scale, int offset);
+
void update_scroll();
static bool compare_trace_v_offsets(
void update_scroll();
static bool compare_trace_v_offsets(