Ardour  8.12
gtk2_ardour/keyboard.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2015 Paul Davis <paul@linuxaudiosystems.com>
3  * Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
4  * Copyright (C) 2008-2010 David Robillard <d@drobilla.net>
5  * Copyright (C) 2009 Carl Hetherington <carl@carlh.net>
6  * Copyright (C) 2015-2016 Nick Mainsbridge <mainsbridge@gmail.com>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22 
23 #ifndef __ardour_keyboard_h__
24 #define __ardour_keyboard_h__
25 
26 #include <map>
27 #include <string>
28 
29 #include "ardour/types.h"
30 #include "gtkmm2ext/keyboard.h"
31 
32 #include "selection.h"
33 
34 class ARDOUR_UI;
35 
37 {
38 public:
40 
41  XMLNode& get_state () const;
42  int set_state (const XMLNode&, int version);
43 
45 
47 
49 
51 
55  static bool indicates_snap (guint state);
56 
60  static bool indicates_snap_delta (guint state);
61 
65  static bool indicates_copy (guint state);
66 
70  static bool indicates_constraint (guint state);
71 
72  static void set_constraint_modifier (guint);
75 
76  static void set_slip_contents_modifier (guint);
79 
80  static void set_trim_overlap_modifier (guint);
83 
84  static void set_trim_anchored_modifier (guint);
87 
88  static void set_fine_adjust_modifier (guint);
91 
92  static void set_push_points_modifier (guint);
95 
96  static void set_note_size_relative_modifier (guint);
99 private:
100  static guint constraint_mod;
101  static guint slip_contents_mod;
102  static guint trim_overlap_mod;
103  static guint trim_anchored_mod;
104  static guint fine_adjust_mod;
105  static guint push_points_mod;
107 
108  void find_bindings_files (std::map<std::string,std::string>& files);
109 };
110 
111 #endif /* __ardour_keyboard_h__ */
ArdourKeyboard(ARDOUR_UI &)
static guint push_points_mod
static ModifierMask trim_overlap_modifier()
void reset_relevant_modifier_key_mask()
static ModifierMask constraint_modifier()
static bool indicates_snap_delta(guint state)
int set_state(const XMLNode &, int version)
void find_bindings_files(std::map< std::string, std::string > &files)
static guint trim_anchored_mod
static guint trim_overlap_mod
static ModifierMask note_size_relative_modifier()
static ARDOUR::SelectionOperation selection_type(guint state)
static ModifierMask slip_contents_modifier()
static bool indicates_copy(guint state)
static void set_constraint_modifier(guint)
static ModifierMask fine_adjust_modifier()
static guint fine_adjust_mod
static bool indicates_constraint(guint state)
static void set_trim_overlap_modifier(guint)
static ModifierMask trim_anchored_modifier()
static void set_push_points_modifier(guint)
static void set_slip_contents_modifier(guint)
static guint constraint_mod
static void set_note_size_relative_modifier(guint)
static ModifierMask push_points_modifier()
static void set_trim_anchored_modifier(guint)
XMLNode & get_state() const
static void set_fine_adjust_modifier(guint)
static guint note_size_relative_mod
static guint slip_contents_mod
void setup_keybindings()
static bool indicates_snap(guint state)
Definition: xml++.h:114