Ardour  9.0-pre0-582-g084a23a80d
radiomenuitem.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_RADIOMENUITEM_H
4 #define _GTKMM_RADIOMENUITEM_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: radiomenuitem.hg,v 1.7 2005/04/07 08:46:44 murrayc Exp $ */
11 
12 /* radiomenuitem.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/checkmenuitem.h>
32 #include <gtkmm/radiobutton.h>
33 
34 
35 #ifndef DOXYGEN_SHOULD_SKIP_THIS
36 typedef struct _GtkRadioMenuItem GtkRadioMenuItem;
38 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 
40 
41 namespace Gtk
42 { class RadioMenuItem_Class; } // namespace Gtk
43 namespace Gtk
44 {
45 
46 class RadioMenuItem;
47 
55 {
56  public:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  typedef RadioMenuItem CppObjectType;
59  typedef RadioMenuItem_Class CppClassType;
60  typedef GtkRadioMenuItem BaseObjectType;
61  typedef GtkRadioMenuItemClass BaseClassType;
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 
64  virtual ~RadioMenuItem();
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 private:
69  friend class RadioMenuItem_Class;
70  static CppClassType radiomenuitem_class_;
71 
72  // noncopyable
74  RadioMenuItem& operator=(const RadioMenuItem&);
75 
76 protected:
77  explicit RadioMenuItem(const Glib::ConstructParams& construct_params);
78  explicit RadioMenuItem(GtkRadioMenuItem* 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  GtkRadioMenuItem* gobj() { return reinterpret_cast<GtkRadioMenuItem*>(gobject_); }
92 
94  const GtkRadioMenuItem* gobj() const { return reinterpret_cast<GtkRadioMenuItem*>(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 public:
111 
113 
115 
116  RadioMenuItem(Group& groupx, const Glib::ustring& label, bool mnemonic = false);
117 
118 
119  //We ignore the _new_*_from_widget() functions because they are just the same as calling get_group() and set_group() ourselves.
120 
121 
128 
129  void set_group(Group& group);
130  void reset_group();
131 
132 
145  Glib::SignalProxy0< void > signal_group_changed();
146 
147 
148  //Probably wouldn't work: _WRAP_PROPERTY("group", Group)
149 
150 protected:
151  void constructor(const Group& group);
152 
153 
154 };
155 
156 } /* namspace Gtk */
157 
158 
159 namespace Glib
160 {
169  Gtk::RadioMenuItem* wrap(GtkRadioMenuItem* object, bool take_copy = false);
170 } //namespace Glib
171 
172 
173 #endif /* _GTKMM_RADIOMENUITEM_H */
174 
Glib::SignalProxy0< void > signal_group_changed()
RadioButtonGroup Group
void set_group(Group &group)
void constructor(const Group &group)
const GtkRadioMenuItem * gobj() const
Provides access to the underlying C GtkObject.
Definition: radiomenuitem.h:94
virtual ~RadioMenuItem()
virtual void on_group_changed()
This is a default handler for the signal signal_group_changed().
Gtk::RadioMenuItem * wrap(GtkRadioMenuItem *object, bool take_copy=false)
GtkRadioMenuItem * gobj()
Provides access to the underlying C GtkObject.
Definition: radiomenuitem.h:91
RadioMenuItem(Group &groupx, const Glib::ustring &label, bool mnemonic=false)
RadioMenuItem(Group &groupx)
Definition: ardour_ui.h:188