Ardour  9.0-pre0-582-g084a23a80d
tk/ytkmm/ytkmm/gtkmm/activatable.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_ACTIVATABLE_H
4 #define _GTKMM_ACTIVATABLE_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: activatable.hg,v 1.3 2006/05/18 17:53:15 murrayc Exp $ */
11 
12 /* Copyright (C) 2009 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 #include <gtkmm/action.h>
30 #include <glibmm/interface.h>
31 
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 extern "C"
35 {
37 }
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
42 typedef struct _GtkActivatable GtkActivatable;
43 typedef struct _GtkActivatableClass GtkActivatableClass;
44 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
45 
46 
47 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 namespace Gtk
49 { class Activatable_Class; } // namespace Gtk
50 #endif // DOXYGEN_SHOULD_SKIP_THIS
51 
52 namespace Gtk
53 {
54 
55 //TODO: Use this when we can add new base classes to existing classes.
61 class Activatable : public Glib::Interface
62 {
63 
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 
66 public:
67  typedef Activatable CppObjectType;
68  typedef Activatable_Class CppClassType;
69  typedef GtkActivatable BaseObjectType;
70  typedef GtkActivatableIface BaseClassType;
71 
72 private:
73  friend class Activatable_Class;
74  static CppClassType activatable_class_;
75 
76  // noncopyable
77  Activatable(const Activatable&);
78  Activatable& operator=(const Activatable&);
79 
80 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
81 protected:
86 
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
94  explicit Activatable(const Glib::Interface_Class& interface_class);
95 
96 public:
97  // This is public so that C++ wrapper instances can be
98  // created for C instances of unwrapped types.
99  // For instance, if an unexpected C type implements the C interface.
100  explicit Activatable(GtkActivatable* castitem);
101 
102 protected:
103 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
104 
105 public:
106  virtual ~Activatable();
107 
108  static void add_interface(GType gtype_implementer);
109 
112  static GType get_type() G_GNUC_CONST;
113 
114 #ifndef DOXYGEN_SHOULD_SKIP_THIS
115  static GType get_base_type() G_GNUC_CONST;
116 #endif
117 
119  GtkActivatable* gobj() { return reinterpret_cast<GtkActivatable*>(gobject_); }
120 
122  const GtkActivatable* gobj() const { return reinterpret_cast<GtkActivatable*>(gobject_); }
123 
124 private:
125 
126 
127 public:
128 
147  void do_set_related_action(const Glib::RefPtr<Action>& action);
148 
153  Glib::RefPtr<Action> get_related_action();
154 
159  Glib::RefPtr<const Action> get_related_action() const;
160 
168 
176  void sync_action_properties(const Glib::RefPtr<Action>& action);
177 
186  void set_related_action(const Glib::RefPtr<Action>& action);
187 
199  void set_use_action_appearance(bool use_appearance = true);
200 
206  Glib::PropertyProxy< Glib::RefPtr<Action> > property_related_action() ;
207 
213  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Action> > property_related_action() const;
214 
220  Glib::PropertyProxy< bool > property_use_action_appearance() ;
221 
227  Glib::PropertyProxy_ReadOnly< bool > property_use_action_appearance() const;
228 
229 
230  virtual void update_vfunc(const Glib::RefPtr<Action>& action, const Glib::ustring& property_name);
231 
232  virtual void sync_action_properties_vfunc(const Glib::RefPtr<Action>& action);
233 
234 
235 public:
236 
237 public:
238  //C++ methods used to invoke GTK+ virtual functions:
239 
240 protected:
241  //GTK+ Virtual Functions (override these to change behaviour):
242 
243  //Default Signal Handlers::
244 
245 
246 };
247 
248 } // namespace Gtk
249 
250 
251 namespace Glib
252 {
261  Glib::RefPtr<Gtk::Activatable> wrap(GtkActivatable* object, bool take_copy = false);
262 
263 } // namespace Glib
264 
265 
266 #endif /* _GTKMM_ACTIVATABLE_H */
267 
void set_related_action(const Glib::RefPtr< Action > &action)
virtual void update_vfunc(const Glib::RefPtr< Action > &action, const Glib::ustring &property_name)
GtkActivatable * gobj()
Provides access to the underlying C GObject.
static GType get_type() G_GNUC_CONST
Glib::RefPtr< Action > get_related_action()
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Action > > property_related_action() const
static void add_interface(GType gtype_implementer)
Glib::RefPtr< Gtk::Activatable > wrap(GtkActivatable *object, bool take_copy=false)
virtual void sync_action_properties_vfunc(const Glib::RefPtr< Action > &action)
Glib::PropertyProxy_ReadOnly< bool > property_use_action_appearance() const
Glib::PropertyProxy< Glib::RefPtr< Action > > property_related_action()
const GtkActivatable * gobj() const
Provides access to the underlying C GObject.
Glib::PropertyProxy< bool > property_use_action_appearance()
virtual ~Activatable()
Glib::RefPtr< const Action > get_related_action() const
void set_use_action_appearance(bool use_appearance=true)
bool get_use_action_appearance() const
void do_set_related_action(const Glib::RefPtr< Action > &action)
void sync_action_properties(const Glib::RefPtr< Action > &action)
struct _GtkActivatable GtkActivatable
Definition: ardour_ui.h:188