Ardour  9.0-pre0-582-g084a23a80d
accelkey.h
Go to the documentation of this file.
1 /* $Id$ */
2 #ifndef _GTKMM_ACCELKEY_H
3 #define _GTKMM_ACCELKEY_H
4 
5 /* menu_elems.h
6  *
7  * Copyright (C) 1998-2002 The gtkmm Development Team
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free
21  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22  */
23 
24 #include <gdk/gdkkeysyms.h>
25 #include <gdkmm/types.h>
26 
27 
28 namespace Gtk
29 {
30 
41 class AccelKey
42 {
43 public:
45 
51  AccelKey(guint accel_key, Gdk::ModifierType accel_mods,
52  const Glib::ustring& accel_path = "");
53 
60  AccelKey(const Glib::ustring& accelerator,
61  const Glib::ustring& accel_path = Glib::ustring());
62 
63  AccelKey(const AccelKey& src);
64 
65  AccelKey& operator=(const AccelKey& src);
66 
67  bool is_null() const;
68 
72  guint get_key() const;
80  Glib::ustring get_path() const;
84  Glib::ustring get_abbrev() const;
85 
86 protected:
87  guint key_;
89  Glib::ustring path_;
90 };
91 
92 } /* namespace Gtk */
93 
94 #endif //_GTKMM_ACCELKEY_H
Glib::ustring path_
Definition: accelkey.h:89
Glib::ustring get_path() const
AccelKey(const AccelKey &src)
Gdk::ModifierType mod_
Definition: accelkey.h:88
bool is_null() const
AccelKey(const Glib::ustring &accelerator, const Glib::ustring &accel_path=Glib::ustring())
guint get_key() const
Glib::ustring get_abbrev() const
AccelKey & operator=(const AccelKey &src)
AccelKey(guint accel_key, Gdk::ModifierType accel_mods, const Glib::ustring &accel_path="")
Gdk::ModifierType get_mod() const
guint key_
Definition: accelkey.h:87
Definition: ardour_ui.h:188