Ardour  8.7-14-g57a6773833
accelgroup.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ACCELGROUP_H
4 #define _GTKMM_ACCELGROUP_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: accelgroup.hg,v 1.8 2005/04/07 08:46:44 murrayc Exp $ */
11 
12 /* Copyright (C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or (at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 
30 #include <gdkmm/types.h>
31 #include <gtkmm/object.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkAccelGroup GtkAccelGroup;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 #ifndef DOXYGEN_SHOULD_SKIP_THIS
41 namespace Gtk
42 { class AccelGroup_Class; } // namespace Gtk
43 #endif //DOXYGEN_SHOULD_SKIP_THIS
44 
45 namespace Gtk
46 {
47 
63 class AccelGroup : public Glib::Object
64 {
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 public:
69  typedef AccelGroup CppObjectType;
70  typedef AccelGroup_Class CppClassType;
71  typedef GtkAccelGroup BaseObjectType;
72  typedef GtkAccelGroupClass BaseClassType;
73 
74 private: friend class AccelGroup_Class;
75  static CppClassType accelgroup_class_;
76 
77 private:
78  // noncopyable
79  AccelGroup(const AccelGroup&);
80  AccelGroup& operator=(const AccelGroup&);
81 
82 protected:
83  explicit AccelGroup(const Glib::ConstructParams& construct_params);
84  explicit AccelGroup(GtkAccelGroup* castitem);
85 
86 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
87 
88 public:
89  virtual ~AccelGroup();
90 
93  static GType get_type() G_GNUC_CONST;
94 
95 #ifndef DOXYGEN_SHOULD_SKIP_THIS
96 
97 
98  static GType get_base_type() G_GNUC_CONST;
99 #endif
100 
102  GtkAccelGroup* gobj() { return reinterpret_cast<GtkAccelGroup*>(gobject_); }
103 
105  const GtkAccelGroup* gobj() const { return reinterpret_cast<GtkAccelGroup*>(gobject_); }
106 
109 
110 private:
111 
112  //gtkmmproc error: _gtk_accel_group_reconnect : ignored method defs lookup failed
113 
114 protected:
116 
117 public:
122  static Glib::RefPtr<AccelGroup> create();
123 
124 
131  bool get_is_locked() const;
132 
139 
140 
151  void lock();
152 
155  void unlock();
156 
165  bool disconnect_key(guint accel_key, Gdk::ModifierType accel_mods);
166 
173  static bool valid(guint keyval, Gdk::ModifierType modifiers);
174 
180  static void parse(const Glib::ustring& accelerator, guint& accelerator_key, Gdk::ModifierType& accelerator_mods);
181 
186  static Glib::ustring name(guint accelerator_key, Gdk::ModifierType accelerator_mods);
187 
188 
196  static Glib::ustring get_label(guint accelerator_key, Gdk::ModifierType accelerator_mods);
197 
208  static void set_default_mod_mask(Gdk::ModifierType default_mod_mask);
209 
212 
213  //TODO: Add an overload that takes a ustring instead of a GQuark.
214 
226  bool activate(GQuark accel_quark, const Glib::RefPtr<Glib::Object>& acceleratable, guint accel_key, Gdk::ModifierType accel_mods);
227 
228 
229  //Let's not wrap this, because the GtkAccelGroupFindFunc callback uses GClosures, and it's not clear that this is useful.
230  //AccelKey find(const SlotFind& slot);
231  //GtkAccelKey* gtk_accel_group_find(GtkAccelGroup* accel_group, GtkAccelGroupFindFunc find_func, gpointer data);
232 
233 
244  static bool activate(Gtk::Object& object, guint accel_key, Gdk::ModifierType accel_mods);
245 
246 
253  Glib::SignalProxy3< bool,const Glib::RefPtr<Glib::Object>&,guint,Gdk::ModifierType > signal_accel_activate();
254 
255 
256  //TODO: The C type is unpleasant:
257  //This has C docs, but it isn't worth mentioning them for such a useless signal. murrayc.
258 
265  Glib::SignalProxy3< void,guint,Gdk::ModifierType,GClosure* > signal_accel_changed();
266 
267 
273  Glib::PropertyProxy_ReadOnly< bool > property_is_locked() const;
274 
275 
281  Glib::PropertyProxy_ReadOnly< Gdk::ModifierType > property_modifier_mask() const;
282 
283 
284 public:
285 
286 public:
287  //C++ methods used to invoke GTK+ virtual functions:
288 
289 protected:
290  //GTK+ Virtual Functions (override these to change behaviour):
291 
292  //Default Signal Handlers::
294  virtual void on_accel_changed(guint keyval, Gdk::ModifierType modifier, GClosure* accel_closure);
295 
296 
297 };
298 
299 } // namespace Gtk
300 
301 
302 namespace Glib
303 {
312  Glib::RefPtr<Gtk::AccelGroup> wrap(GtkAccelGroup* object, bool take_copy = false);
313 }
314 
315 
316 #endif /* _GTKMM_ACCELGROUP_H */
317 
static void parse(const Glib::ustring &accelerator, guint &accelerator_key, Gdk::ModifierType &accelerator_mods)
static Glib::ustring name(guint accelerator_key, Gdk::ModifierType accelerator_mods)
static Gdk::ModifierType get_default_mod_mask()
See set_default_mod_mask().
const GtkAccelGroup * gobj() const
Provides access to the underlying C GObject.
Definition: accelgroup.h:105
virtual void on_accel_changed(guint keyval, Gdk::ModifierType modifier, GClosure *accel_closure)
This is a default handler for the signal signal_accel_changed().
bool activate(GQuark accel_quark, const Glib::RefPtr< Glib::Object > &acceleratable, guint accel_key, Gdk::ModifierType accel_mods)
static bool activate(Gtk::Object &object, guint accel_key, Gdk::ModifierType accel_mods)
Gdk::ModifierType get_modifier_mask() const
Glib::PropertyProxy_ReadOnly< Gdk::ModifierType > property_modifier_mask() const
GtkAccelGroup * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
static void set_default_mod_mask(Gdk::ModifierType default_mod_mask)
static bool valid(guint keyval, Gdk::ModifierType modifiers)
bool disconnect_key(guint accel_key, Gdk::ModifierType accel_mods)
Glib::RefPtr< Gtk::AccelGroup > wrap(GtkAccelGroup *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< bool > property_is_locked() const
Glib::SignalProxy3< void, guint, Gdk::ModifierType, GClosure * > signal_accel_changed()
virtual ~AccelGroup()
static Glib::RefPtr< AccelGroup > create()
bool get_is_locked() const
Glib::SignalProxy3< bool, const Glib::RefPtr< Glib::Object > &, guint, Gdk::ModifierType > signal_accel_activate()
GtkAccelGroup * gobj()
Provides access to the underlying C GObject.
Definition: accelgroup.h:102
static Glib::ustring get_label(guint accelerator_key, Gdk::ModifierType accelerator_mods)
static GType get_type() G_GNUC_CONST
Definition: ardour_ui.h:188