summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-06-29 19:08:19 +0000
committerCarl Hetherington <carl@carlh.net>2010-06-29 19:08:19 +0000
commit7898aabcaa08659cd0bee5bba61df4503b7fadc7 (patch)
tree57cfb8e9693f527595bd5a9045e60f3c9d8c7573 /gtk2_ardour/editor.h
parentbebeb5abec36919ac4fce9602a2ad94a4d79935a (diff)
Fix vertical canvas autoscroll when dragging track heights. Fixes #3240.
git-svn-id: svn://localhost/ardour2/branches/3.0@7327 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r--gtk2_ardour/editor.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h
index f81a212d9b..c4203efa1c 100644
--- a/gtk2_ardour/editor.h
+++ b/gtk2_ardour/editor.h
@@ -447,6 +447,12 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
void begin_reversible_command (std::string cmd_name);
void commit_reversible_command ();
+ DragManager* drags () const {
+ return _drags;
+ }
+
+ void maybe_autoscroll (bool, bool);
+
/* handy cursors for everyone to use */
static Gdk::Cursor* cross_hair_cursor;
@@ -941,8 +947,8 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
int _scroll_callbacks;
double _canvas_width;
- double _canvas_height;
- double full_canvas_height;
+ double _canvas_height; ///< height of the visible area of the track canvas
+ double full_canvas_height; ///< full height of the canvas
bool track_canvas_map_handler (GdkEventAny*);
@@ -1685,8 +1691,6 @@ public:
bool autoscroll_canvas ();
void start_canvas_autoscroll (int x, int y);
void stop_canvas_autoscroll ();
- void maybe_autoscroll (GdkEventMotion*, bool);
- bool allow_vertical_scroll;
/* trimming */
void point_trim (GdkEvent *, nframes64_t);