Rekative snap - add comments
authornick_m <mainsbridge@gmail.com>
Sat, 23 May 2015 15:10:06 +0000 (01:10 +1000)
committernick_m <mainsbridge@gmail.com>
Sat, 23 May 2015 15:10:06 +0000 (01:10 +1000)
gtk2_ardour/keyboard.cc
gtk2_ardour/keyboard.h

index bdce6badda7fbeba68dbb6c92cb891a25a91a219..96c73f63d41b64f8da0f53191061d11172488cf1 100644 (file)
@@ -242,6 +242,9 @@ ArdourKeyboard::set_state (const XMLNode& node, int version)
        return Keyboard::set_state (node, version);
 }
 
+/* Snap and snap delta modifiers may contain each other, so we use the 
+ * following two methods to sort that out:
+ */
 bool
 ArdourKeyboard::indicates_snap (guint state)
 {
index b163bfaa375410c1aa0018d3c7eff93c820fca80..9ca60950bb2dbb4d1feca236614303975d50dd87 100644 (file)
@@ -41,7 +41,14 @@ class ArdourKeyboard : public Gtkmm2ext::Keyboard
 
        ARDOUR_UI& ui;
 
+       /** @param state The button state from a GdkEvent.
+        *  @return true if the modifier state indicates snap modifier
+        */
        static bool indicates_snap (guint state);
+
+       /** @param state The button state from a GdkEvent.
+        *  @return true if the modifier state indicates snap delta
+        */
        static bool indicates_snap_delta (guint state);
 
        static void set_constraint_modifier (guint);