Ardour  9.0-pre0-582-g084a23a80d
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 #pragma once
24 
25 #include <map>
26 #include <string>
27 
28 #include "ardour/types.h"
29 #include "gtkmm2ext/keyboard.h"
30 
31 #include "selection.h"
32 
33 class ARDOUR_UI;
34 
36 {
37 public:
39 
40  XMLNode& get_state () const;
41  int set_state (const XMLNode&, int version);
42 
44 
46 
48 
50 
54  static bool indicates_snap (guint state);
55 
59  static bool indicates_snap_delta (guint state);
60 
64  static bool indicates_copy (guint state);
65 
69  static bool indicates_constraint (guint state);
70 
71  static void set_constraint_modifier (guint);
74 
75  static void set_slip_contents_modifier (guint);
78 
79  static void set_trim_overlap_modifier (guint);
82 
83  static void set_trim_anchored_modifier (guint);
86 
87  static void set_fine_adjust_modifier (guint);
90 
91  static void set_push_points_modifier (guint);
94 
95  static void set_note_size_relative_modifier (guint);
98 private:
99  static guint constraint_mod;
100  static guint slip_contents_mod;
101  static guint trim_overlap_mod;
102  static guint trim_anchored_mod;
103  static guint fine_adjust_mod;
104  static guint push_points_mod;
106 
107  void find_bindings_files (std::map<std::string,std::string>& files);
108 };
109 
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