mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
A few cleanups. Map scroll wheel to movement of the viewport.
git-svn-id: svn://localhost/ardour2/branches/3.0@5197 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
22a107592e
commit
2bc94116e8
4 changed files with 130 additions and 47 deletions
|
|
@ -900,20 +900,23 @@ class Editor : public PublicEditor
|
|||
void scroll_canvas_vertically ();
|
||||
|
||||
struct VisualChange {
|
||||
enum Type {
|
||||
TimeOrigin = 0x1,
|
||||
ZoomLevel = 0x2,
|
||||
YOrigin = 0x4
|
||||
};
|
||||
|
||||
Type pending;
|
||||
nframes64_t time_origin;
|
||||
double frames_per_unit;
|
||||
double y_origin;
|
||||
|
||||
int idle_handler_id;
|
||||
|
||||
VisualChange() : pending ((VisualChange::Type) 0), time_origin (0), frames_per_unit (0), idle_handler_id (-1) {}
|
||||
enum Type {
|
||||
TimeOrigin = 0x1,
|
||||
ZoomLevel = 0x2,
|
||||
YOrigin = 0x4
|
||||
};
|
||||
|
||||
Type pending;
|
||||
nframes64_t time_origin;
|
||||
double frames_per_unit;
|
||||
double y_origin;
|
||||
|
||||
int idle_handler_id;
|
||||
|
||||
VisualChange() : pending ((VisualChange::Type) 0), time_origin (0), frames_per_unit (0), idle_handler_id (-1) {}
|
||||
void add (Type t) {
|
||||
pending = Type (pending | t);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -925,6 +928,7 @@ class Editor : public PublicEditor
|
|||
void queue_visual_change (nframes64_t);
|
||||
void queue_visual_change (double);
|
||||
void queue_visual_change_y (double);
|
||||
void ensure_visual_change_idle_handler ();
|
||||
|
||||
void end_location_changed (ARDOUR::Location*);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue