libgnomeuimm 2.28.0
|
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_FONT_PICKER_H 00004 #define _LIBGNOMEUIMM_FONT_PICKER_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* $Id: font-picker.hg,v 1.15 2003/11/29 16:39:08 murrayc Exp $ */ 00010 00011 00012 /* font-picker.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-font-picker.h> 00033 00034 00035 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00036 typedef struct _GnomeFontPicker GnomeFontPicker; 00037 typedef struct _GnomeFontPickerClass GnomeFontPickerClass; 00038 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00039 00040 00041 namespace Gnome 00042 { 00043 00044 namespace UI 00045 { class FontPicker_Class; } // namespace UI 00046 00047 } // namespace Gnome 00048 namespace Gnome 00049 { 00050 00051 namespace UI 00052 { 00053 00054 #ifndef GNOMEMM_DISABLE_DEPRECATED 00055 00056 00057 class FontPicker : public Gtk::Button 00058 { 00059 public: 00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00061 typedef FontPicker CppObjectType; 00062 typedef FontPicker_Class CppClassType; 00063 typedef GnomeFontPicker BaseObjectType; 00064 typedef GnomeFontPickerClass BaseClassType; 00065 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00066 00067 virtual ~FontPicker(); 00068 00069 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00070 00071 private: 00072 friend class FontPicker_Class; 00073 static CppClassType fontpicker_class_; 00074 00075 // noncopyable 00076 FontPicker(const FontPicker&); 00077 FontPicker& operator=(const FontPicker&); 00078 00079 protected: 00080 explicit FontPicker(const Glib::ConstructParams& construct_params); 00081 explicit FontPicker(GnomeFontPicker* castitem); 00082 00083 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00084 00085 public: 00086 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00087 static GType get_type() G_GNUC_CONST; 00088 00089 00090 static GType get_base_type() G_GNUC_CONST; 00091 #endif 00092 00094 GnomeFontPicker* gobj() { return reinterpret_cast<GnomeFontPicker*>(gobject_); } 00095 00097 const GnomeFontPicker* gobj() const { return reinterpret_cast<GnomeFontPicker*>(gobject_); } 00098 00099 00100 public: 00101 //C++ methods used to invoke GTK+ virtual functions: 00102 #ifdef GLIBMM_VFUNCS_ENABLED 00103 #endif //GLIBMM_VFUNCS_ENABLED 00104 00105 protected: 00106 //GTK+ Virtual Functions (override these to change behaviour): 00107 #ifdef GLIBMM_VFUNCS_ENABLED 00108 #endif //GLIBMM_VFUNCS_ENABLED 00109 00110 //Default Signal Handlers:: 00111 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00112 virtual void on_font_set(const Glib::ustring& font_name); 00113 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00114 00115 00116 private: 00117 00118 00119 public: 00120 FontPicker(); 00121 00122 00123 void set_title(const Glib::ustring& title); 00124 00125 Glib::ustring get_title() const; 00126 00127 GnomeFontPickerMode get_mode() const; 00128 00129 void set_mode(GnomeFontPickerMode mode); 00130 00131 void set_use_font_in_label (bool use_font_in_label, gint size); 00132 00133 void set_show_size (bool show_size = true); 00134 00135 void uw_set_widget(Gtk::Widget& widget); 00136 00137 00138 Gtk::Widget* uw_get_widget(); 00139 00140 const Gtk::Widget* uw_get_widget() const; 00141 00142 00143 Glib::ustring get_font_name() const;; 00144 00145 bool set_font_name(const Glib::ustring& fontname); 00146 00147 Glib::ustring get_preview_text() const; 00148 00149 void set_preview_text(const Glib::ustring& text); 00150 00151 00157 Glib::SignalProxy1< void,const Glib::ustring& > signal_font_set(); 00158 ; 00159 00160 #ifdef GLIBMM_PROPERTIES_ENABLED 00161 00167 Glib::PropertyProxy<Glib::ustring> property_title() ; 00168 #endif //#GLIBMM_PROPERTIES_ENABLED 00169 00170 #ifdef GLIBMM_PROPERTIES_ENABLED 00171 00177 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const; 00178 #endif //#GLIBMM_PROPERTIES_ENABLED 00179 00180 #ifdef GLIBMM_PROPERTIES_ENABLED 00181 00187 Glib::PropertyProxy<GnomeFontPickerMode> property_mode() ; 00188 #endif //#GLIBMM_PROPERTIES_ENABLED 00189 00190 #ifdef GLIBMM_PROPERTIES_ENABLED 00191 00197 Glib::PropertyProxy_ReadOnly<GnomeFontPickerMode> property_mode() const; 00198 #endif //#GLIBMM_PROPERTIES_ENABLED 00199 00200 #ifdef GLIBMM_PROPERTIES_ENABLED 00201 00207 Glib::PropertyProxy<Glib::ustring> property_font_name() ; 00208 #endif //#GLIBMM_PROPERTIES_ENABLED 00209 00210 #ifdef GLIBMM_PROPERTIES_ENABLED 00211 00217 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const; 00218 #endif //#GLIBMM_PROPERTIES_ENABLED 00219 00220 #ifdef GLIBMM_PROPERTIES_ENABLED 00221 00227 Glib::PropertyProxy<Glib::ustring> property_preview_text() ; 00228 #endif //#GLIBMM_PROPERTIES_ENABLED 00229 00230 #ifdef GLIBMM_PROPERTIES_ENABLED 00231 00237 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_preview_text() const; 00238 #endif //#GLIBMM_PROPERTIES_ENABLED 00239 00240 #ifdef GLIBMM_PROPERTIES_ENABLED 00241 00247 Glib::PropertyProxy<bool> property_use_font_in_label() ; 00248 #endif //#GLIBMM_PROPERTIES_ENABLED 00249 00250 #ifdef GLIBMM_PROPERTIES_ENABLED 00251 00257 Glib::PropertyProxy_ReadOnly<bool> property_use_font_in_label() const; 00258 #endif //#GLIBMM_PROPERTIES_ENABLED 00259 00260 #ifdef GLIBMM_PROPERTIES_ENABLED 00261 00267 Glib::PropertyProxy<int> property_label_font_size() ; 00268 #endif //#GLIBMM_PROPERTIES_ENABLED 00269 00270 #ifdef GLIBMM_PROPERTIES_ENABLED 00271 00277 Glib::PropertyProxy_ReadOnly<int> property_label_font_size() const; 00278 #endif //#GLIBMM_PROPERTIES_ENABLED 00279 00280 #ifdef GLIBMM_PROPERTIES_ENABLED 00281 00287 Glib::PropertyProxy<bool> property_show_size() ; 00288 #endif //#GLIBMM_PROPERTIES_ENABLED 00289 00290 #ifdef GLIBMM_PROPERTIES_ENABLED 00291 00297 Glib::PropertyProxy_ReadOnly<bool> property_show_size() const; 00298 #endif //#GLIBMM_PROPERTIES_ENABLED 00299 00300 00301 }; 00302 00303 #endif //GNOMEMM_DISABLE_DEPRECATED 00304 00305 } /* namespace UI */ 00306 } /* namespace Gnome */ 00307 00308 00309 namespace Glib 00310 { 00319 Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false); 00320 } //namespace Glib 00321 00322 00323 #endif /* _LIBGNOMEUIMM_FONT_PICKER_H */ 00324