00001
00002
00003 #ifndef _LIBGNOMEUIMM_HREF_H
00004 #define _LIBGNOMEUIMM_HREF_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include <gtkmm/button.h>
00031 #include <libgnomeui/gnome-href.h>
00032
00033
00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00035 typedef struct _GnomeHRef GnomeHRef;
00036 typedef struct _GnomeHRefClass GnomeHRefClass;
00037 #endif
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace UI
00044 { class HRef_Class; }
00045
00046 }
00047 namespace Gnome
00048 {
00049
00050 namespace UI
00051 {
00052
00053
00054 class HRef : public Gtk::Button
00055 {
00056 public:
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058 typedef HRef CppObjectType;
00059 typedef HRef_Class CppClassType;
00060 typedef GnomeHRef BaseObjectType;
00061 typedef GnomeHRefClass BaseClassType;
00062 #endif
00063
00064 virtual ~HRef();
00065
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067
00068 private:
00069 friend class HRef_Class;
00070 static CppClassType href_class_;
00071
00072
00073 HRef(const HRef&);
00074 HRef& operator=(const HRef&);
00075
00076 protected:
00077 explicit HRef(const Glib::ConstructParams& construct_params);
00078 explicit HRef(GnomeHRef* castitem);
00079
00080 #endif
00081
00082 public:
00083 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00084 static GType get_type() G_GNUC_CONST;
00085 static GType get_base_type() G_GNUC_CONST;
00086 #endif
00087
00089 GnomeHRef* gobj() { return reinterpret_cast<GnomeHRef*>(gobject_); }
00090
00092 const GnomeHRef* gobj() const { return reinterpret_cast<GnomeHRef*>(gobject_); }
00093
00094
00095 public:
00096
00097
00098 protected:
00099
00100
00101
00102
00103
00104 private:
00105
00106
00107 public:
00108 HRef(const Glib::ustring& url, const Glib::ustring& label);
00109 HRef(const Glib::ustring& url);
00110
00111
00112 void set_url(const Glib::ustring& url);
00113
00114 Glib::ustring get_url() const;
00115
00116 void set_text(const Glib::ustring& text);
00117
00118 Glib::ustring get_text() const;
00119
00125 Glib::PropertyProxy<Glib::ustring> property_url();
00126
00132 Glib::PropertyProxy<Glib::ustring> property_text();
00133
00134
00135 };
00136
00137 }
00138 }
00139
00140
00141 namespace Glib
00142 {
00144 Gnome::UI::HRef* wrap(GnomeHRef* object, bool take_copy = false);
00145 }
00146 #endif
00147