projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Part 1 of loading 2.X sessions; some things work, some things don't, hacks a-plenty.
[ardour.git]
/
gtk2_ardour
/
keyboard.h
diff --git
a/gtk2_ardour/keyboard.h
b/gtk2_ardour/keyboard.h
index 29052993348cebf7f35e41765bf8d685943a5350..9f354f38e38d015f372bff5a365d7da765fabea4 100644
(file)
--- a/
gtk2_ardour/keyboard.h
+++ b/
gtk2_ardour/keyboard.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2001 Paul Davis
+ Copyright (C) 2001 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-40,7
+40,7
@@
class Keyboard : public sigc::trackable, PBD::Stateful
~Keyboard ();
XMLNode& get_state (void);
~Keyboard ();
XMLNode& get_state (void);
- int set_state (const XMLNode&);
+ int set_state (const XMLNode&
, int version = 3000
);
typedef std::vector<uint32_t> State;
typedef uint32_t ModifierMask;
typedef std::vector<uint32_t> State;
typedef uint32_t ModifierMask;
@@
-90,6
+90,11
@@
class Keyboard : public sigc::trackable, PBD::Stateful
static bool no_modifiers_active (guint state);
static void set_snap_modifier (guint);
static bool no_modifiers_active (guint state);
static void set_snap_modifier (guint);
+
+ /** @return Modifier mask to temporarily toggle grid setting; with this modifier
+ * - magnetic or normal grid should become no grid and
+ * - no grid should become normal grid
+ */
static ModifierMask snap_modifier () { return ModifierMask (snap_mod); }
static guint edit_button() { return edit_but; }
static ModifierMask snap_modifier () { return ModifierMask (snap_mod); }
static guint edit_button() { return edit_but; }