Ardour  9.0-pre0-386-g96ef4d20f2
radioaction.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_RADIOACTION_H
4 #define _GTKMM_RADIOACTION_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: radioaction.hg,v 1.8 2006/01/29 12:21:43 murrayc Exp $ */
11 
12 /* Copyright (C) 2003 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/toggleaction.h>
30 #include <gtkmm/radiobuttongroup.h>
31 
32 
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 typedef struct _GtkRadioAction GtkRadioAction;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 namespace Gtk
41 { class RadioAction_Class; } // namespace Gtk
42 #endif //DOXYGEN_SHOULD_SKIP_THIS
43 
44 namespace Gtk
45 {
46 
55 {
56 
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58 
59 public:
60  typedef RadioAction CppObjectType;
61  typedef RadioAction_Class CppClassType;
62  typedef GtkRadioAction BaseObjectType;
63  typedef GtkRadioActionClass BaseClassType;
64 
65 private: friend class RadioAction_Class;
66  static CppClassType radioaction_class_;
67 
68 private:
69  // noncopyable
70  RadioAction(const RadioAction&);
71  RadioAction& operator=(const RadioAction&);
72 
73 protected:
74  explicit RadioAction(const Glib::ConstructParams& construct_params);
75  explicit RadioAction(GtkRadioAction* castitem);
76 
77 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
78 
79 public:
80  virtual ~RadioAction();
81 
84  static GType get_type() G_GNUC_CONST;
85 
86 #ifndef DOXYGEN_SHOULD_SKIP_THIS
87 
88 
89  static GType get_base_type() G_GNUC_CONST;
90 #endif
91 
93  GtkRadioAction* gobj() { return reinterpret_cast<GtkRadioAction*>(gobject_); }
94 
96  const GtkRadioAction* gobj() const { return reinterpret_cast<GtkRadioAction*>(gobject_); }
97 
100 
101 private:
102 
103 public:
105 
106 protected:
107  //TODO: Remove the default constructor, because name may not be NULL.
109 
120  explicit RadioAction(Group& group, const Glib::ustring& name, const StockID& stock_id = StockID(), const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
121 
133  explicit RadioAction(Group& group, const Glib::ustring& name, const Glib::ustring& icon_name, const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
134 
135 public:
136  //Note that gtk_recent_action_new() does not allow name to be NULL, which suggests that we should not have a default constructor,
137  //but it's OK to set the name later:
138 
139  static Glib::RefPtr<RadioAction> create();
140 
141 
151  static Glib::RefPtr<RadioAction> create(Group& group, const Glib::ustring& name, const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
152 
166  static Glib::RefPtr<RadioAction> create(Group& group, const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label = Glib::ustring(), const Glib::ustring& tooltip = Glib::ustring());
167 
181  static Glib::RefPtr<RadioAction> create_with_icon_name(Group& group, const Glib::ustring& name, const Glib::ustring& icon_name, const Glib::ustring& label, const Glib::ustring& tooltip);
182 
183 
195  void set_group(Group& group);
196 
197 
203  int get_current_value() const;
204 
210  void set_current_value(int current_value);
211 
212 
224  Glib::SignalProxy1< void,const Glib::RefPtr<RadioAction>& > signal_changed();
225 
226 
232  Glib::PropertyProxy< int > property_value() ;
233 
239  Glib::PropertyProxy_ReadOnly< int > property_value() const;
240 
241  //Probably wouldn't work: _WRAP_PROPERTY("group", Group)
247  Glib::PropertyProxy< int > property_current_value() ;
248 
254  Glib::PropertyProxy_ReadOnly< int > property_current_value() const;
255 
256 
257 public:
258 
259 public:
260  //C++ methods used to invoke GTK+ virtual functions:
261 
262 protected:
263  //GTK+ Virtual Functions (override these to change behaviour):
264 
265  //Default Signal Handlers::
267  virtual void on_changed(const Glib::RefPtr<RadioAction>& current);
268 
269 
270 };
271 
272 } // namespace Gtk
273 
274 
275 namespace Glib
276 {
285  Glib::RefPtr<Gtk::RadioAction> wrap(GtkRadioAction* object, bool take_copy = false);
286 }
287 
288 
289 #endif /* _GTKMM_RADIOACTION_H */
290 
static Glib::RefPtr< RadioAction > create(Group &group, const Glib::ustring &name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
GtkRadioAction * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
Glib::PropertyProxy_ReadOnly< int > property_current_value() const
Glib::RefPtr< Gtk::RadioAction > wrap(GtkRadioAction *object, bool take_copy=false)
static GType get_type() G_GNUC_CONST
const GtkRadioAction * gobj() const
Provides access to the underlying C GObject.
Definition: radioaction.h:96
RadioButtonGroup Group
Definition: radioaction.h:104
Glib::PropertyProxy< int > property_value()
virtual ~RadioAction()
Glib::SignalProxy1< void, const Glib::RefPtr< RadioAction > & > signal_changed()
RadioAction(Group &group, const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
static Glib::RefPtr< RadioAction > create(Group &group, const Glib::ustring &name, const Gtk::StockID &stock_id, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
Glib::PropertyProxy_ReadOnly< int > property_value() const
void set_current_value(int current_value)
int get_current_value() const
virtual void on_changed(const Glib::RefPtr< RadioAction > &current)
This is a default handler for the signal signal_changed().
void set_group(Group &group)
GtkRadioAction * gobj()
Provides access to the underlying C GObject.
Definition: radioaction.h:93
static Glib::RefPtr< RadioAction > create()
Glib::PropertyProxy< int > property_current_value()
RadioAction(Group &group, const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring())
static Glib::RefPtr< RadioAction > create_with_icon_name(Group &group, const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip)
GtkImageIconNameData name
Definition: gtkimage.h:6
Definition: ardour_ui.h:187