Ardour  9.0-pre0-582-g084a23a80d
radiobutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_RADIOBUTTON_H
4 #define _GTKMM_RADIOBUTTON_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: radiobutton.hg,v 1.8 2006/01/24 14:55:50 murrayc Exp $ */
11 
12 /* radiobutton.h
13  *
14  * Copyright (C) 1998-2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/checkbutton.h>
32 #include <gtkmm/radiobuttongroup.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkRadioButton GtkRadioButton;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class RadioButton_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
54 class RadioButton : public CheckButton
55 {
56  public:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  typedef RadioButton CppObjectType;
59  typedef RadioButton_Class CppClassType;
60  typedef GtkRadioButton BaseObjectType;
61  typedef GtkRadioButtonClass BaseClassType;
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 
64  virtual ~RadioButton();
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 private:
69  friend class RadioButton_Class;
70  static CppClassType radiobutton_class_;
71 
72  // noncopyable
73  RadioButton(const RadioButton&);
74  RadioButton& operator=(const RadioButton&);
75 
76 protected:
77  explicit RadioButton(const Glib::ConstructParams& construct_params);
78  explicit RadioButton(GtkRadioButton* castitem);
79 
80 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
81 
82 public:
83 #ifndef DOXYGEN_SHOULD_SKIP_THIS
84  static GType get_type() G_GNUC_CONST;
85 
86 
87  static GType get_base_type() G_GNUC_CONST;
88 #endif
89 
91  GtkRadioButton* gobj() { return reinterpret_cast<GtkRadioButton*>(gobject_); }
92 
94  const GtkRadioButton* gobj() const { return reinterpret_cast<GtkRadioButton*>(gobject_); }
95 
96 
97 public:
98  //C++ methods used to invoke GTK+ virtual functions:
99 
100 protected:
101  //GTK+ Virtual Functions (override these to change behaviour):
102 
103  //Default Signal Handlers::
105  virtual void on_group_changed();
106 
107 
108 private:
109 
110  //gtkmmproc error: gtk_radio_button_group : ignored method defs lookup failed
111 public:
113 
115  explicit RadioButton(const Glib::ustring& label, bool mnemonic = false);
116 
124  explicit RadioButton(Group& group);
125 
130  RadioButton(Group& group, const Glib::ustring& label, bool mnemonic = false);
131 
132 
139 
145  void set_group(Group& group);
146 
149  void reset_group();
150 
151 
158  Glib::SignalProxy0< void > signal_group_changed();
159 
160 
161  //Probably wouldn't work: _WRAP_PROPERTY("group", Group)
162 
163 
164 };
165 
166 } /* namespace Gtk */
167 
168 
169 namespace Glib
170 {
179  Gtk::RadioButton* wrap(GtkRadioButton* object, bool take_copy = false);
180 } //namespace Glib
181 
182 
183 #endif /* _GTKMM_RADIOBUTTON_H */
184 
virtual ~RadioButton()
RadioButton(const Glib::ustring &label, bool mnemonic=false)
RadioButton(Group &group, const Glib::ustring &label, bool mnemonic=false)
GtkRadioButton * gobj()
Provides access to the underlying C GtkObject.
Definition: radiobutton.h:91
virtual void on_group_changed()
This is a default handler for the signal signal_group_changed().
const GtkRadioButton * gobj() const
Provides access to the underlying C GtkObject.
Definition: radiobutton.h:94
Gtk::RadioButton * wrap(GtkRadioButton *object, bool take_copy=false)
RadioButton(Group &group)
void set_group(Group &group)
RadioButtonGroup Group
Definition: radiobutton.h:112
Glib::SignalProxy0< void > signal_group_changed()
Definition: ardour_ui.h:188