Ardour  9.0-pre0-582-g084a23a80d
menutoolbutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_MENUTOOLBUTTON_H
4 #define _GTKMM_MENUTOOLBUTTON_H
5 
6 #include <gtkmmconfig.h>
7 
8 
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
11 
12 /*
13  * Copyright (C) 2003 The gtkmm Development Team
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free
27  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28  */
29 
30 
31 #include <gtkmm/toolbutton.h>
32 #include <gtkmm/menu.h>
33 #include <gtkmm/tooltips.h>
34 
35 
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 
41 
42 namespace Gtk
43 { class MenuToolButton_Class; } // namespace Gtk
44 namespace Gtk
45 {
46 
53 class MenuToolButton : public ToolButton
54 {
55  public:
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
57  typedef MenuToolButton CppObjectType;
58  typedef MenuToolButton_Class CppClassType;
59  typedef GtkMenuToolButton BaseObjectType;
60  typedef GtkMenuToolButtonClass BaseClassType;
61 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
62 
63  virtual ~MenuToolButton();
64 
65 #ifndef DOXYGEN_SHOULD_SKIP_THIS
66 
67 private:
68  friend class MenuToolButton_Class;
69  static CppClassType menutoolbutton_class_;
70 
71  // noncopyable
73  MenuToolButton& operator=(const MenuToolButton&);
74 
75 protected:
76  explicit MenuToolButton(const Glib::ConstructParams& construct_params);
77  explicit MenuToolButton(GtkMenuToolButton* castitem);
78 
79 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
80 
81 public:
82 #ifndef DOXYGEN_SHOULD_SKIP_THIS
83  static GType get_type() G_GNUC_CONST;
84 
85 
86  static GType get_base_type() G_GNUC_CONST;
87 #endif
88 
90  GtkMenuToolButton* gobj() { return reinterpret_cast<GtkMenuToolButton*>(gobject_); }
91 
93  const GtkMenuToolButton* gobj() const { return reinterpret_cast<GtkMenuToolButton*>(gobject_); }
94 
95 
96 public:
97  //C++ methods used to invoke GTK+ virtual functions:
98 
99 protected:
100  //GTK+ Virtual Functions (override these to change behaviour):
101 
102  //Default Signal Handlers::
104  virtual void on_show_menu();
105 
106 
107 private:
108 
109 
110 public:
114 
121  explicit MenuToolButton(const Gtk::StockID& stock_id);
122 
123 
130  explicit MenuToolButton(const Glib::ustring& label);
131 
139  explicit MenuToolButton(Widget& icon_widget, const Glib::ustring& label = Glib::ustring());
140 
141 
147  void set_menu(Menu& menu);
148 
155 
161  const Menu* get_menu() const;
162 
163 
164 #ifndef GTKMM_DISABLE_DEPRECATED
165 
179  void set_arrow_tooltip(Tooltips& tooltips, const Glib::ustring& tip_text, const Glib::ustring& tip_private);
180 #endif // GTKMM_DISABLE_DEPRECATED
181 
182 
189  void set_arrow_tooltip_text(const Glib::ustring& text);
190 
197  void set_arrow_tooltip_markup(const Glib::ustring& markup);
198 
199 
206  Glib::SignalProxy0< void > signal_show_menu();
207 
213  Glib::PropertyProxy< Menu* > property_menu() ;
214 
220  Glib::PropertyProxy_ReadOnly< Menu* > property_menu() const;
221 
222 
223 };
224 
225 } // namespace Gtk
226 
227 
228 namespace Glib
229 {
238  Gtk::MenuToolButton* wrap(GtkMenuToolButton* object, bool take_copy = false);
239 } //namespace Glib
240 
241 
242 #endif /* _GTKMM_MENUTOOLBUTTON_H */
243 
Glib::SignalProxy0< void > signal_show_menu()
virtual void on_show_menu()
This is a default handler for the signal signal_show_menu().
Glib::PropertyProxy_ReadOnly< Menu * > property_menu() const
void set_arrow_tooltip_text(const Glib::ustring &text)
void set_arrow_tooltip_markup(const Glib::ustring &markup)
MenuToolButton(Widget &icon_widget, const Glib::ustring &label=Glib::ustring())
GtkMenuToolButton * gobj()
Provides access to the underlying C GtkObject.
const Menu * get_menu() const
virtual ~MenuToolButton()
void set_menu(Menu &menu)
void set_arrow_tooltip(Tooltips &tooltips, const Glib::ustring &tip_text, const Glib::ustring &tip_private)
MenuToolButton(const Glib::ustring &label)
Glib::PropertyProxy< Menu * > property_menu()
MenuToolButton(const Gtk::StockID &stock_id)
Gtk::MenuToolButton * wrap(GtkMenuToolButton *object, bool take_copy=false)
const GtkMenuToolButton * gobj() const
Provides access to the underlying C GtkObject.
Definition: ardour_ui.h:188