Ardour  9.0-pre0-582-g084a23a80d
toolitem.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TOOLITEM_H
4 #define _GTKMM_TOOLITEM_H
5 
6 #include <gtkmmconfig.h>
7 
8 
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
11 
12 /*
13  * Copyright (C) 1998-2002 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  // This is for including the config header before any code (such as
31 // the #ifndef GTKMM_DISABLE_DEPRECATED in deprecated classes) is generated:
32 
33 
34 #include <gtkmm/bin.h>
35 #include <gtkmm/tooltips.h>
36 #include <gtkmm/sizegroup.h>
37 
38 
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 typedef struct _GtkToolItem GtkToolItem;
41 typedef struct _GtkToolItemClass GtkToolItemClass;
42 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
43 
44 
45 namespace Gtk
46 { class ToolItem_Class; } // namespace Gtk
47 namespace Gtk
48 {
49 
54 class ToolItem : public Bin
55 {
56  public:
57 #ifndef DOXYGEN_SHOULD_SKIP_THIS
58  typedef ToolItem CppObjectType;
59  typedef ToolItem_Class CppClassType;
60  typedef GtkToolItem BaseObjectType;
61  typedef GtkToolItemClass BaseClassType;
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63 
64  virtual ~ToolItem();
65 
66 #ifndef DOXYGEN_SHOULD_SKIP_THIS
67 
68 private:
69  friend class ToolItem_Class;
70  static CppClassType toolitem_class_;
71 
72  // noncopyable
73  ToolItem(const ToolItem&);
74  ToolItem& operator=(const ToolItem&);
75 
76 protected:
77  explicit ToolItem(const Glib::ConstructParams& construct_params);
78  explicit ToolItem(GtkToolItem* 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  GtkToolItem* gobj() { return reinterpret_cast<GtkToolItem*>(gobject_); }
92 
94  const GtkToolItem* gobj() const { return reinterpret_cast<GtkToolItem*>(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 bool on_create_menu_proxy();
107  virtual void on_toolbar_reconfigured();
108 
109 
110 private:
111 
112 public:
114 
115 
122  void set_homogeneous(bool homogeneous = true);
123 
130  bool get_homogeneous() const;
131 
132 
140  void set_expand(bool expand = true);
141 
147  bool get_expand() const;
148 
149 
150 #ifndef GTKMM_DISABLE_DEPRECATED
151 
164  void set_tooltip(Tooltips& tooltips, const Glib::ustring& tip_text, const Glib::ustring& tip_private = Glib::ustring());
165 #endif // GTKMM_DISABLE_DEPRECATED
166 
167 
173  void set_tooltip_text(const Glib::ustring& text);
174 
180  void set_tooltip_markup(const Glib::ustring& markup);
181 
182 
190  void set_use_drag_window(bool use_drag_window = true);
191 
197  bool get_use_drag_window() const;
198 
199 
204  void set_visible_horizontal(bool visible_horizontal = true);
205 
213 
214 
223  void set_visible_vertical(bool visible_vertical = true);
224 
230  bool get_visible_vertical() const;
231 
232 
238  bool get_is_important() const;
239 
248  void set_is_important(bool is_important = true);
249 
250 
258  Pango::EllipsizeMode get_ellipsize_mode() const;
259 
268 
277 
299 
309 
310 
318  float get_text_alignment() const;
319 
328 
335  Glib::RefPtr<SizeGroup> get_text_size_group();
336 
343  Glib::RefPtr<const SizeGroup> get_text_size_group() const;
344 
345 
354 
363 
377  Widget* get_proxy_menu_item(const Glib::ustring& menu_item_id);
378 
392  const Widget* get_proxy_menu_item(const Glib::ustring& menu_item_id) const;
393 
401  void set_proxy_menu_item(const Glib::ustring& menu_item_id, Widget& menu_item);
402 
403 
412  void rebuild_menu();
413 
414 
420 
421  //TODO: This suggests calling set_proxy_menu_item() with NULL. but the function asserts against that.
422 
453  Glib::SignalProxy0< bool > signal_create_menu_proxy();
454 
455 
473  Glib::SignalProxy0< void > signal_toolbar_reconfigured();
474 
475 
476  //We use no_default_handler for this, because we can not add a new vfunc to 2.5 without breaking ABI.
477 
478  #ifndef GTKMM_DISABLE_DEPRECATED
479  //Note that we can ifdef this out, only because it doesn't affect class size, because we use no_default_handler:
490  Glib::SignalProxy3< bool,Tooltips*,const Glib::ustring&,const Glib::ustring& > signal_set_tooltip();
491  //_WRAP_SIGNAL(bool set_tooltip(Tooltips* tooltips, const Glib::ustring& tip_text, const Glib::ustring& tip_private), set_tooltip, no_default_handler, deprecated) //TODO: Implement deprecated for _WRAP_SIGNAL() to avoid hand-coding this:
492 
493  #endif //GTKMM_DISABLE_DEPRECATED
494 
500  Glib::PropertyProxy< bool > property_visible_horizontal() ;
501 
507  Glib::PropertyProxy_ReadOnly< bool > property_visible_horizontal() const;
508 
514  Glib::PropertyProxy< bool > property_visible_vertical() ;
515 
521  Glib::PropertyProxy_ReadOnly< bool > property_visible_vertical() const;
522 
528  Glib::PropertyProxy< bool > property_is_important() ;
529 
535  Glib::PropertyProxy_ReadOnly< bool > property_is_important() const;
536 
537 
538 };
539 
540 } // namespace Gtk
541 
542 
543 namespace Glib
544 {
553  Gtk::ToolItem* wrap(GtkToolItem* object, bool take_copy = false);
554 } //namespace Glib
555 
556 
557 #endif /* _GTKMM_TOOLITEM_H */
558 
Definition: bin.h:55
Pango::EllipsizeMode get_ellipsize_mode() const
Glib::RefPtr< const SizeGroup > get_text_size_group() const
GtkToolItem * gobj()
Provides access to the underlying C GtkObject.
Definition: toolitem.h:91
const GtkToolItem * gobj() const
Provides access to the underlying C GtkObject.
Definition: toolitem.h:94
virtual ~ToolItem()
ReliefStyle get_relief_style() const
void set_expand(bool expand=true)
Glib::PropertyProxy< bool > property_visible_horizontal()
void set_tooltip_text(const Glib::ustring &text)
Glib::RefPtr< SizeGroup > get_text_size_group()
Glib::SignalProxy3< bool, Tooltips *, const Glib::ustring &, const Glib::ustring & > signal_set_tooltip()
virtual void on_toolbar_reconfigured()
This is a default handler for the signal signal_toolbar_reconfigured().
Glib::PropertyProxy_ReadOnly< bool > property_visible_vertical() const
void rebuild_menu()
bool get_visible_horizontal() const
Widget * retrieve_proxy_menu_item()
bool get_homogeneous() const
void set_homogeneous(bool homogeneous=true)
Widget * get_proxy_menu_item(const Glib::ustring &menu_item_id)
const Widget * retrieve_proxy_menu_item() const
void set_proxy_menu_item(const Glib::ustring &menu_item_id, Widget &menu_item)
Glib::SignalProxy0< void > signal_toolbar_reconfigured()
Gtk::ToolItem * wrap(GtkToolItem *object, bool take_copy=false)
IconSize get_icon_size() const
Glib::SignalProxy0< bool > signal_create_menu_proxy()
bool get_use_drag_window() const
virtual bool on_create_menu_proxy()
This is a default handler for the signal signal_create_menu_proxy().
Orientation get_text_orientation() const
Orientation get_orientation() const
float get_text_alignment() const
ToolbarStyle get_toolbar_style() const
void set_visible_vertical(bool visible_vertical=true)
void set_is_important(bool is_important=true)
Glib::PropertyProxy_ReadOnly< bool > property_is_important() const
bool get_visible_vertical() const
void toolbar_reconfigured()
void set_tooltip_markup(const Glib::ustring &markup)
bool get_is_important() const
Glib::PropertyProxy< bool > property_visible_vertical()
void set_use_drag_window(bool use_drag_window=true)
Glib::PropertyProxy_ReadOnly< bool > property_visible_horizontal() const
bool get_expand() const
void set_tooltip(Tooltips &tooltips, const Glib::ustring &tip_text, const Glib::ustring &tip_private=Glib::ustring())
const Widget * get_proxy_menu_item(const Glib::ustring &menu_item_id) const
void set_visible_horizontal(bool visible_horizontal=true)
Glib::PropertyProxy< bool > property_is_important()
Definition: ardour_ui.h:188