libgnomeuimm 2.28.0
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_HREF_H 00004 #define _LIBGNOMEUIMM_HREF_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: href.hg,v 1.11 2002/04/01 16:54:26 murrayc Exp $ */ 00010 00011 00012 /* href.hg 00013 * 00014 * Copyright (C) 1999 The Gtk-- Development Team 00015 * 00016 * This library is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU Lesser General Public 00018 * License as published by the Free Software Foundation; either 00019 * version 2.1 of the License, or (at your option) any later version. 00020 * 00021 * This library is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 * Lesser General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU Lesser General Public 00027 * License along with this library; if not, write to the Free 00028 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00029 */ 00030 00031 #include <gtkmm/button.h> 00032 #include <libgnomeui/gnome-href.h> 00033 00034 00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00036 typedef struct _GnomeHRef GnomeHRef; 00037 typedef struct _GnomeHRefClass GnomeHRefClass; 00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00039 00040 00041 namespace Gnome 00042 { 00043 00044 namespace UI 00045 { class HRef_Class; } // namespace UI 00046 00047 } // namespace Gnome 00048 namespace Gnome 00049 { 00050 00051 namespace UI 00052 { 00053 00054 00055 class HRef : public Gtk::Button 00056 { 00057 public: 00058 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00059 typedef HRef CppObjectType; 00060 typedef HRef_Class CppClassType; 00061 typedef GnomeHRef BaseObjectType; 00062 typedef GnomeHRefClass BaseClassType; 00063 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00064 00065 virtual ~HRef(); 00066 00067 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00068 00069 private: 00070 friend class HRef_Class; 00071 static CppClassType href_class_; 00072 00073 // noncopyable 00074 HRef(const HRef&); 00075 HRef& operator=(const HRef&); 00076 00077 protected: 00078 explicit HRef(const Glib::ConstructParams& construct_params); 00079 explicit HRef(GnomeHRef* castitem); 00080 00081 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00082 00083 public: 00084 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00085 static GType get_type() G_GNUC_CONST; 00086 00087 00088 static GType get_base_type() G_GNUC_CONST; 00089 #endif 00090 00092 GnomeHRef* gobj() { return reinterpret_cast<GnomeHRef*>(gobject_); } 00093 00095 const GnomeHRef* gobj() const { return reinterpret_cast<GnomeHRef*>(gobject_); } 00096 00097 00098 public: 00099 //C++ methods used to invoke GTK+ virtual functions: 00100 #ifdef GLIBMM_VFUNCS_ENABLED 00101 #endif //GLIBMM_VFUNCS_ENABLED 00102 00103 protected: 00104 //GTK+ Virtual Functions (override these to change behaviour): 00105 #ifdef GLIBMM_VFUNCS_ENABLED 00106 #endif //GLIBMM_VFUNCS_ENABLED 00107 00108 //Default Signal Handlers:: 00109 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00110 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00111 00112 00113 private: 00114 00115 00116 public: 00117 HRef(const Glib::ustring& url, const Glib::ustring& label); 00118 HRef(const Glib::ustring& url); 00119 00120 00121 void set_url(const Glib::ustring& url); 00122 00123 Glib::ustring get_url() const; 00124 00125 void set_text(const Glib::ustring& text); 00126 00127 Glib::ustring get_text() const; 00128 00129 #ifdef GLIBMM_PROPERTIES_ENABLED 00130 00136 Glib::PropertyProxy<Glib::ustring> property_url() ; 00137 #endif //#GLIBMM_PROPERTIES_ENABLED 00138 00139 #ifdef GLIBMM_PROPERTIES_ENABLED 00140 00146 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_url() const; 00147 #endif //#GLIBMM_PROPERTIES_ENABLED 00148 00149 #ifdef GLIBMM_PROPERTIES_ENABLED 00150 00156 Glib::PropertyProxy<Glib::ustring> property_text() ; 00157 #endif //#GLIBMM_PROPERTIES_ENABLED 00158 00159 #ifdef GLIBMM_PROPERTIES_ENABLED 00160 00166 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_text() const; 00167 #endif //#GLIBMM_PROPERTIES_ENABLED 00168 00169 00170 }; 00171 00172 } /* namespace UI */ 00173 } //namespace Gnome 00174 00175 00176 namespace Glib 00177 { 00186 Gnome::UI::HRef* wrap(GnomeHRef* object, bool take_copy = false); 00187 } //namespace Glib 00188 00189 00190 #endif /* _LIBGNOMEUIMM_HREF_H */ 00191