Ardour  9.0-pre0-582-g084a23a80d
optionmenu.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_OPTIONMENU_H
4 #define _GTKMM_OPTIONMENU_H
5 
6 #include <gtkmmconfig.h>
7 
8 #ifndef GTKMM_DISABLE_DEPRECATED
9 
10 
11 #include <glibmm/ustring.h>
12 #include <sigc++/sigc++.h>
13 
14 /*
15  * Copyright (C) 1998-2002 The gtkmm Development Team
16  *
17  * This library is free software; you can redistribute it and/or
18  * modify it under the terms of the GNU Lesser General Public
19  * License as published by the Free Software Foundation; either
20  * version 2.1 of the License, or (at your option) any later version.
21  *
22  * This library is distributed in the hope that it will be useful,
23  * but WITHOUT ANY WARRANTY; without even the implied warranty of
24  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25  * Lesser General Public License for more details.
26  *
27  * You should have received a copy of the GNU Lesser General Public
28  * License along with this library; if not, write to the Free
29  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
30  */
31 
32  // This is for including the config header before any code (such as
33 // the #ifndef GTKMM_DISABLE_DEPRECATED in deprecated classes) is generated:
34 
35 
36 #include <gtkmm/button.h>
37 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 typedef struct _GtkOptionMenu GtkOptionMenu;
42 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
43 
44 
45 namespace Gtk
46 { class OptionMenu_Class; } // namespace Gtk
47 namespace Gtk
48 {
49 
50 class Menu;
51 
62 class OptionMenu : public Button
63 {
64  public:
65 #ifndef DOXYGEN_SHOULD_SKIP_THIS
66  typedef OptionMenu CppObjectType;
67  typedef OptionMenu_Class CppClassType;
68  typedef GtkOptionMenu BaseObjectType;
69  typedef GtkOptionMenuClass BaseClassType;
70 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
71 
72  virtual ~OptionMenu();
73 
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
75 
76 private:
77  friend class OptionMenu_Class;
78  static CppClassType optionmenu_class_;
79 
80  // noncopyable
81  OptionMenu(const OptionMenu&);
82  OptionMenu& operator=(const OptionMenu&);
83 
84 protected:
85  explicit OptionMenu(const Glib::ConstructParams& construct_params);
86  explicit OptionMenu(GtkOptionMenu* castitem);
87 
88 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
89 
90 public:
91 #ifndef DOXYGEN_SHOULD_SKIP_THIS
92  static GType get_type() G_GNUC_CONST;
93 
94 
95  static GType get_base_type() G_GNUC_CONST;
96 #endif
97 
99  GtkOptionMenu* gobj() { return reinterpret_cast<GtkOptionMenu*>(gobject_); }
100 
102  const GtkOptionMenu* gobj() const { return reinterpret_cast<GtkOptionMenu*>(gobject_); }
103 
104 
105 public:
106  //C++ methods used to invoke GTK+ virtual functions:
107 
108 protected:
109  //GTK+ Virtual Functions (override these to change behaviour):
110 
111  //Default Signal Handlers::
113  virtual void on_changed();
114 
115 
116 private:
117 
118 
119 public:
120 
122 
123 
124  void set_menu(Menu& menu);
125 
127 
128  const Menu* get_menu() const;
129 
130  void remove_menu();
131 
139  int get_history() const;
140 
141  void set_history(guint index);
142 
143 
150  Glib::SignalProxy0< void > signal_changed();
151 
152 
153 private:
155 
156 
157 };
158 
159 } // namespace Gtk
160 
161 
162 namespace Glib
163 {
172  Gtk::OptionMenu* wrap(GtkOptionMenu* object, bool take_copy = false);
173 } //namespace Glib
174 
175 
176 #endif // GTKMM_DISABLE_DEPRECATED
177 
178 
179 #endif /* _GTKMM_OPTIONMENU_H */
180 
void set_menu(Menu &menu)
Gtk::OptionMenu * wrap(GtkOptionMenu *object, bool take_copy=false)
const GtkOptionMenu * gobj() const
Provides access to the underlying C GtkObject.
Definition: optionmenu.h:102
const Menu * get_menu() const
virtual ~OptionMenu()
Menu * get_menu()
void init_accels_handler_()
int get_history() const
Glib::SignalProxy0< void > signal_changed()
GtkOptionMenu * gobj()
Provides access to the underlying C GtkObject.
Definition: optionmenu.h:99
virtual void on_changed()
This is a default handler for the signal signal_changed().
void set_history(guint index)
Definition: ardour_ui.h:188