projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply patch from mantis 2761 from tinram to add padding and make a string translatable.
[ardour.git]
/
gtk2_ardour
/
editor_drag.h
diff --git
a/gtk2_ardour/editor_drag.h
b/gtk2_ardour/editor_drag.h
index c234dcb918130086c0d55fa898a5829828039d88..97e503f0d680de2829eb4fb3609cfbaf85e6bea3 100644
(file)
--- a/
gtk2_ardour/editor_drag.h
+++ b/
gtk2_ardour/editor_drag.h
@@
-110,11
+110,12
@@
public:
return false;
}
return false;
}
- /** Called when a subclass should update the editor's selection following a drag */
- virtual void update_selection () {}
+ virtual bool allow_vertical_autoscroll () const {
+ return true;
+ }
protected:
protected:
- nframes64_t adjusted_current_frame () const;
+ nframes64_t adjusted_current_frame (
GdkEvent *
) const;
Editor* _editor; ///< our editor
ArdourCanvas::Item* _item; ///< our item
Editor* _editor; ///< our editor
ArdourCanvas::Item* _item; ///< our item
@@
-151,8
+152,6
@@
public:
RegionDrag (Editor *, ArdourCanvas::Item *, RegionView *, std::list<RegionView*> const &);
virtual ~RegionDrag () {}
RegionDrag (Editor *, ArdourCanvas::Item *, RegionView *, std::list<RegionView*> const &);
virtual ~RegionDrag () {}
- void update_selection ();
-
protected:
RegionView* _primary; ///< the view that was clicked on (or whatever) to start the drag
protected:
RegionView* _primary; ///< the view that was clicked on (or whatever) to start the drag
@@
-339,6
+338,14
@@
public:
void motion (GdkEvent *, bool);
void finished (GdkEvent *, bool);
void motion (GdkEvent *, bool);
void finished (GdkEvent *, bool);
+ bool active (Editing::MouseMode) {
+ return true;
+ }
+
+ bool allow_vertical_autoscroll () const {
+ return false;
+ }
+
private:
EditorCursor* _cursor; ///< cursor being dragged
bool _stop; ///< true to stop the transport on starting the drag, otherwise false
private:
EditorCursor* _cursor; ///< cursor being dragged
bool _stop; ///< true to stop the transport on starting the drag, otherwise false
@@
-397,9
+404,7
@@
public:
void motion (GdkEvent *, bool);
void finished (GdkEvent *, bool);
void motion (GdkEvent *, bool);
void finished (GdkEvent *, bool);
- bool active (Editing::MouseMode m) {
- return (m == Editing::MouseGain);
- }
+ bool active (Editing::MouseMode m);
private:
private: