diff options
author | nick_m <mainsbridge@gmail.com> | 2015-05-23 05:36:03 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-05-23 05:36:03 +1000 |
commit | ea8b5a970f7fdc0818fb86c32c93dd564eff941c (patch) | |
tree | 68b2b6c93267d9131aee82ffa9440c27e40b7782 /gtk2_ardour/keyboard.h | |
parent | 3d599be991a71b7e4611b1c38ee88a77bf1c5460 (diff) |
Bring back contrained drag modifier with preference setting.
- this should work as before, but when applied to a button 1 drag,
the constraint is in the first direction travelled.
Diffstat (limited to 'gtk2_ardour/keyboard.h')
-rw-r--r-- | gtk2_ardour/keyboard.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/keyboard.h b/gtk2_ardour/keyboard.h index 8ed30efb72..b163bfaa37 100644 --- a/gtk2_ardour/keyboard.h +++ b/gtk2_ardour/keyboard.h @@ -44,6 +44,11 @@ class ArdourKeyboard : public Gtkmm2ext::Keyboard static bool indicates_snap (guint state); static bool indicates_snap_delta (guint state); + static void set_constraint_modifier (guint); + /** @return Modifier mask to constrain drags in a particular direction; + */ + static ModifierMask constraint_modifier () { return ModifierMask (constraint_mod); } + static void set_trim_contents_modifier (guint); /** @return Modifier mask to move contents rather than region bounds during trim; */ @@ -74,6 +79,7 @@ class ArdourKeyboard : public Gtkmm2ext::Keyboard */ static ModifierMask note_size_relative_modifier () { return ModifierMask (note_size_relative_mod); } private: + static guint constraint_mod; static guint trim_contents_mod; static guint trim_overlap_mod; static guint trim_anchored_mod; |