Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

font-picker.h

Go to the documentation of this file.
00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _LIBGNOMEUIMM_FONT_PICKER_H 00004 #define _LIBGNOMEUIMM_FONT_PICKER_H 00005 00006 #include <glibmm.h> 00007 00008 /* $Id: font-picker.hg,v 1.15 2003/11/29 16:39:08 murrayc Exp $ */ 00009 00010 00011 /* font-picker.hg 00012 * 00013 * Copyright (C) 1999 The Gtk-- Development Team 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Library General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Library General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Library General Public 00026 * License along with this library; if not, write to the Free 00027 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00028 */ 00029 00030 #include <gtkmm/button.h> 00031 #include <libgnomeui/gnome-font-picker.h> 00032 00033 00034 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00035 typedef struct _GnomeFontPicker GnomeFontPicker; 00036 typedef struct _GnomeFontPickerClass GnomeFontPickerClass; 00037 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00038 00039 00040 namespace Gnome 00041 { 00042 00043 namespace UI 00044 { class FontPicker_Class; } // namespace UI 00045 00046 } // namespace Gnome 00047 namespace Gnome 00048 { 00049 00050 namespace UI 00051 { 00052 00053 #ifndef GNOMEMM_DISABLE_DEPRECATED 00054 00055 00056 class FontPicker : public Gtk::Button 00057 { 00058 public: 00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00060 typedef FontPicker CppObjectType; 00061 typedef FontPicker_Class CppClassType; 00062 typedef GnomeFontPicker BaseObjectType; 00063 typedef GnomeFontPickerClass BaseClassType; 00064 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00065 00066 virtual ~FontPicker(); 00067 00068 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00069 00070 private: 00071 friend class FontPicker_Class; 00072 static CppClassType fontpicker_class_; 00073 00074 // noncopyable 00075 FontPicker(const FontPicker&); 00076 FontPicker& operator=(const FontPicker&); 00077 00078 protected: 00079 explicit FontPicker(const Glib::ConstructParams& construct_params); 00080 explicit FontPicker(GnomeFontPicker* castitem); 00081 00082 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00083 00084 public: 00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00086 static GType get_type() G_GNUC_CONST; 00087 static GType get_base_type() G_GNUC_CONST; 00088 #endif 00089 00091 GnomeFontPicker* gobj() { return reinterpret_cast<GnomeFontPicker*>(gobject_); } 00092 00094 const GnomeFontPicker* gobj() const { return reinterpret_cast<GnomeFontPicker*>(gobject_); } 00095 00096 00097 public: 00098 //C++ methods used to invoke GTK+ virtual functions: 00099 00100 protected: 00101 //GTK+ Virtual Functions (override these to change behaviour): 00102 00103 //Default Signal Handlers:: 00104 virtual void on_font_set(const Glib::ustring& font_name); 00105 00106 00107 private: 00108 00109 00110 public: 00111 FontPicker(); 00112 00113 00114 void set_title(const Glib::ustring& title); 00115 00116 Glib::ustring get_title() const; 00117 00118 GnomeFontPickerMode get_mode() const; 00119 00120 void set_mode(GnomeFontPickerMode mode); 00121 00122 void set_use_font_in_label (bool use_font_in_label, gint size); 00123 00124 void set_show_size (bool show_size = true); 00125 00126 void uw_set_widget(Gtk::Widget& widget); 00127 00128 00129 Gtk::Widget* uw_get_widget(); 00130 00131 const Gtk::Widget* uw_get_widget() const; 00132 00133 00134 Glib::ustring get_font_name() const;; 00135 00136 bool set_font_name(const Glib::ustring& fontname); 00137 00138 Glib::ustring get_preview_text() const; 00139 00140 void set_preview_text(const Glib::ustring& text); 00141 00142 00143 Glib::SignalProxy1< void,const Glib::ustring& > signal_font_set(); 00144 ; 00145 00150 Glib::PropertyProxy<Glib::ustring> property_title() ; 00151 00156 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const; 00157 00162 Glib::PropertyProxy<GnomeFontPickerMode> property_mode() ; 00163 00168 Glib::PropertyProxy_ReadOnly<GnomeFontPickerMode> property_mode() const; 00169 00174 Glib::PropertyProxy<Glib::ustring> property_font_name() ; 00175 00180 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const; 00181 00186 Glib::PropertyProxy<Glib::ustring> property_preview_text() ; 00187 00192 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_preview_text() const; 00193 00198 Glib::PropertyProxy<bool> property_use_font_in_label() ; 00199 00204 Glib::PropertyProxy_ReadOnly<bool> property_use_font_in_label() const; 00205 00210 Glib::PropertyProxy<int> property_label_font_size() ; 00211 00216 Glib::PropertyProxy_ReadOnly<int> property_label_font_size() const; 00217 00222 Glib::PropertyProxy<bool> property_show_size() ; 00223 00228 Glib::PropertyProxy_ReadOnly<bool> property_show_size() const; 00229 00230 00231 }; 00232 00233 #endif //GNOMEMM_DISABLE_DEPRECATED 00234 00235 } /* namespace UI */ 00236 } /* namespace Gnome */ 00237 00238 00239 namespace Glib 00240 { 00246 Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false); 00247 } 00248 #endif /* _LIBGNOMEUIMM_FONT_PICKER_H */ 00249

Generated on Wed Jul 28 18:50:35 2004 for libgnomeuimm by doxygen 1.3.7