Ardour  9.0-pre0-582-g084a23a80d
accelmap.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 #ifndef _GTKMM_ACCELMAP_H
3 #define _GTKMM_ACCELMAP_H
4 
5 /* $Id$ */
6 
7 /* accelmap.h
8  *
9  * Copyright (C) 2002 The Gtkmm Development Team
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with this library; if not, write to the Free
23  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24  */
25 
26 #include <string>
27 
28 #include <gdkmm/types.h>
29 #include <gtkmm/accelkey.h>
30 
31 namespace Gtk
32 {
33 
34 namespace AccelMap
35 {
36 
37 //TODO: Why is the accel_path a std::string, instead of a Glib::ustring? murrayc.
38 
59 void add_entry(const std::string& accel_path,
60  guint accel_key,
61  Gdk::ModifierType accel_mods);
62 
76 bool change_entry(const std::string& accel_path,
77  guint accel_key,
78  Gdk::ModifierType accel_mods,
79  bool replace);
80 
86 void load(const std::string& filename);
87 
95 void save(const std::string& filename);
96 
111 void lock_path(const std::string& accel_path);
112 
118 void unlock_path(const std::string& accel_path);
119 
124 bool lookup_entry (const Glib::ustring& accel_path);
125 
131 bool lookup_entry (const Glib::ustring& accel_path, Gtk::AccelKey& key);
132 
133 } // namespace AccelMap
134 
135 } // namespace Gtk
136 
137 
138 #endif /* _GTKMM_ACCELMAP_H */
139 
bool lookup_entry(const Glib::ustring &accel_path)
void unlock_path(const std::string &accel_path)
void add_entry(const std::string &accel_path, guint accel_key, Gdk::ModifierType accel_mods)
bool change_entry(const std::string &accel_path, guint accel_key, Gdk::ModifierType accel_mods, bool replace)
void lock_path(const std::string &accel_path)
void load(const std::string &filename)
void save(const std::string &filename)
Definition: ardour_ui.h:188