Ardour  8.7-14-g57a6773833
linkbutton.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_LINKBUTTON_H
4 #define _GTKMM_LINKBUTTON_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: linkbutton.hg,v 1.2 2006/03/22 16:53:22 murrayc Exp $ */
11 
12 /* linkbutton.h
13  *
14  * Copyright (C) 2006 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/button.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkLinkButton GtkLinkButton;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class LinkButton_Class; } // namespace Gtk
42 namespace Gtk
43 {
44 
58 class LinkButton : public Button
59 {
60  public:
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
62  typedef LinkButton CppObjectType;
63  typedef LinkButton_Class CppClassType;
64  typedef GtkLinkButton BaseObjectType;
65  typedef GtkLinkButtonClass BaseClassType;
66 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
67 
68  virtual ~LinkButton();
69 
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
71 
72 private:
73  friend class LinkButton_Class;
74  static CppClassType linkbutton_class_;
75 
76  // noncopyable
77  LinkButton(const LinkButton&);
78  LinkButton& operator=(const LinkButton&);
79 
80 protected:
81  explicit LinkButton(const Glib::ConstructParams& construct_params);
82  explicit LinkButton(GtkLinkButton* castitem);
83 
84 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
85 
86 public:
87 #ifndef DOXYGEN_SHOULD_SKIP_THIS
88  static GType get_type() G_GNUC_CONST;
89 
90 
91  static GType get_base_type() G_GNUC_CONST;
92 #endif
93 
95  GtkLinkButton* gobj() { return reinterpret_cast<GtkLinkButton*>(gobject_); }
96 
98  const GtkLinkButton* gobj() const { return reinterpret_cast<GtkLinkButton*>(gobject_); }
99 
100 
101 public:
102  //C++ methods used to invoke GTK+ virtual functions:
103 
104 protected:
105  //GTK+ Virtual Functions (override these to change behaviour):
106 
107  //Default Signal Handlers::
108 
109 
110 private:
111 
112 public:
114  explicit LinkButton(const Glib::ustring& uri);
115 
116  explicit LinkButton(const Glib::ustring& uri, const Glib::ustring& label);
117 
118 
124  Glib::ustring get_uri() const;
125 
131  void set_uri(const Glib::ustring& uri);
132 
133 
142  bool get_visited() const;
143 
149  void set_visited(bool visited = true);
150 
151 #ifndef GTKMM_DISABLE_DEPRECATED
152 
160  typedef sigc::slot<void, Gtk::LinkButton*, const Glib::ustring&> SlotUri;
161 
168  static void set_uri_hook(const SlotUri& slot);
169 
170 
175  static void unset_uri_hook();
176 #endif // GTKMM_DISABLE_DEPRECATED
177 
178 
184  Glib::PropertyProxy< Glib::ustring > property_uri() ;
185 
191  Glib::PropertyProxy_ReadOnly< Glib::ustring > property_uri() const;
192 
198  Glib::PropertyProxy< bool > property_visited() ;
199 
205  Glib::PropertyProxy_ReadOnly< bool > property_visited() const;
206 
207 
208 };
209 
210 
211 } // namespace Gtk
212 
213 
214 namespace Glib
215 {
224  Gtk::LinkButton* wrap(GtkLinkButton* object, bool take_copy = false);
225 } //namespace Glib
226 
227 
228 #endif /* _GTKMM_LINKBUTTON_H */
229 
GtkLinkButton * gobj()
Provides access to the underlying C GtkObject.
Definition: linkbutton.h:95
void set_uri(const Glib::ustring &uri)
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_uri() const
sigc::slot< void, Gtk::LinkButton *, const Glib::ustring & > SlotUri
Definition: linkbutton.h:160
Glib::PropertyProxy< bool > property_visited()
static void set_uri_hook(const SlotUri &slot)
Gtk::LinkButton * wrap(GtkLinkButton *object, bool take_copy=false)
LinkButton(const Glib::ustring &uri)
Glib::PropertyProxy< Glib::ustring > property_uri()
bool get_visited() const
LinkButton(const Glib::ustring &uri, const Glib::ustring &label)
static void unset_uri_hook()
void set_visited(bool visited=true)
Glib::ustring get_uri() const
Glib::PropertyProxy_ReadOnly< bool > property_visited() const
virtual ~LinkButton()
const GtkLinkButton * gobj() const
Provides access to the underlying C GtkObject.
Definition: linkbutton.h:98
Definition: ardour_ui.h:188