Ardour  9.0-pre0-350-gf17a656217
checkmenuitem.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_CHECKMENUITEM_H
4 #define _GTKMM_CHECKMENUITEM_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: checkmenuitem.hg,v 1.3 2004/01/19 19:48:44 murrayc Exp $ */
11 
12 /* checkmenuitem.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/menuitem.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkCheckMenuItem GtkCheckMenuItem;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class CheckMenuItem_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
52 class CheckMenuItem : public MenuItem
53 {
54  public:
55 #ifndef DOXYGEN_SHOULD_SKIP_THIS
56  typedef CheckMenuItem CppObjectType;
57  typedef CheckMenuItem_Class CppClassType;
58  typedef GtkCheckMenuItem BaseObjectType;
59  typedef GtkCheckMenuItemClass BaseClassType;
60 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
61 
62  virtual ~CheckMenuItem();
63 
64 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 
66 private:
67  friend class CheckMenuItem_Class;
68  static CppClassType checkmenuitem_class_;
69 
70  // noncopyable
72  CheckMenuItem& operator=(const CheckMenuItem&);
73 
74 protected:
75  explicit CheckMenuItem(const Glib::ConstructParams& construct_params);
76  explicit CheckMenuItem(GtkCheckMenuItem* castitem);
77 
78 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
79 
80 public:
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82  static GType get_type() G_GNUC_CONST;
83 
84 
85  static GType get_base_type() G_GNUC_CONST;
86 #endif
87 
89  GtkCheckMenuItem* gobj() { return reinterpret_cast<GtkCheckMenuItem*>(gobject_); }
90 
92  const GtkCheckMenuItem* gobj() const { return reinterpret_cast<GtkCheckMenuItem*>(gobject_); }
93 
94 
95 public:
96  //C++ methods used to invoke GTK+ virtual functions:
97 
98 protected:
99  //GTK+ Virtual Functions (override these to change behaviour):
100 
101  //Default Signal Handlers::
103  virtual void on_toggled();
104 
105 
106 private:
107 
108 
109 public:
110 
112  explicit CheckMenuItem(const Glib::ustring& label, bool mnemonic = false);
113 
114 
115  void set_active(bool state = true);
116 
122  bool get_active() const;
123 
124 
125  void toggled();
126 
127 
139  void set_inconsistent(bool setting = true);
140 
145  bool get_inconsistent() const;
146 
147 
152  void set_draw_as_radio(bool draw_as_radio = true);
153 
158  bool get_draw_as_radio() const;
159 
160 
170  Glib::SignalProxy0< void > signal_toggled();
171 
172 
178  Glib::PropertyProxy< bool > property_active() ;
179 
185  Glib::PropertyProxy_ReadOnly< bool > property_active() const;
186 
192  Glib::PropertyProxy< bool > property_inconsistent() ;
193 
199  Glib::PropertyProxy_ReadOnly< bool > property_inconsistent() const;
200 
206  Glib::PropertyProxy< bool > property_draw_as_radio() ;
207 
213  Glib::PropertyProxy_ReadOnly< bool > property_draw_as_radio() const;
214 
215 
216 protected:
223  virtual void draw_indicator_vfunc(GdkRectangle* area);
224 
225 
226 };
227 
228 } /* namespace Gtk */
229 
230 
231 namespace Glib
232 {
241  Gtk::CheckMenuItem* wrap(GtkCheckMenuItem* object, bool take_copy = false);
242 } //namespace Glib
243 
244 
245 #endif /* _GTKMM_CHECKMENUITEM_H */
246 
virtual ~CheckMenuItem()
Glib::PropertyProxy_ReadOnly< bool > property_inconsistent() const
void set_inconsistent(bool setting=true)
Glib::PropertyProxy< bool > property_inconsistent()
Glib::PropertyProxy< bool > property_draw_as_radio()
bool get_active() const
bool get_inconsistent() const
virtual void draw_indicator_vfunc(GdkRectangle *area)
Glib::PropertyProxy_ReadOnly< bool > property_draw_as_radio() const
void set_draw_as_radio(bool draw_as_radio=true)
Glib::PropertyProxy< bool > property_active()
CheckMenuItem(const Glib::ustring &label, bool mnemonic=false)
Glib::SignalProxy0< void > signal_toggled()
Glib::PropertyProxy_ReadOnly< bool > property_active() const
virtual void on_toggled()
This is a default handler for the signal signal_toggled().
void set_active(bool state=true)
const GtkCheckMenuItem * gobj() const
Provides access to the underlying C GtkObject.
Definition: checkmenuitem.h:92
bool get_draw_as_radio() const
GtkCheckMenuItem * gobj()
Provides access to the underlying C GtkObject.
Definition: checkmenuitem.h:89
Gtk::CheckMenuItem * wrap(GtkCheckMenuItem *object, bool take_copy=false)
Definition: ardour_ui.h:187