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 
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 Library General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2 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  * Library General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU Library 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   static GType get_base_type() G_GNUC_CONST;
00089 #endif
00090 
00092   GnomeFontPicker*       gobj()       { return reinterpret_cast<GnomeFontPicker*>(gobject_); }
00093 
00095   const GnomeFontPicker* gobj() const { return reinterpret_cast<GnomeFontPicker*>(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   virtual void on_font_set(const Glib::ustring& font_name);
00111 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00112 
00113 
00114 private:
00115 
00116   
00117 public:
00118   FontPicker();
00119 
00120   
00121   void set_title(const Glib::ustring& title);
00122   
00123   Glib::ustring get_title() const;
00124   
00125   GnomeFontPickerMode get_mode() const; 
00126   
00127   void set_mode(GnomeFontPickerMode mode);
00128   
00129   void set_use_font_in_label (bool use_font_in_label, gint size);
00130   
00131   void set_show_size (bool show_size = true);
00132   
00133   void uw_set_widget(Gtk::Widget& widget);
00134 
00135   
00136   Gtk::Widget* uw_get_widget();
00137   
00138   const Gtk::Widget* uw_get_widget() const;
00139 
00140   
00141   Glib::ustring get_font_name() const;;
00142   
00143   bool set_font_name(const Glib::ustring& fontname);
00144   
00145   Glib::ustring get_preview_text() const;
00146   
00147   void set_preview_text(const Glib::ustring& text);
00148 
00149   
00150   Glib::SignalProxy1< void,const Glib::ustring& > signal_font_set();
00151 ;
00152 
00153   #ifdef GLIBMM_PROPERTIES_ENABLED
00154 
00160   Glib::PropertyProxy<Glib::ustring> property_title() ;
00161 #endif //#GLIBMM_PROPERTIES_ENABLED
00162 
00163 #ifdef GLIBMM_PROPERTIES_ENABLED
00164 
00170   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const;
00171 #endif //#GLIBMM_PROPERTIES_ENABLED
00172 
00173   #ifdef GLIBMM_PROPERTIES_ENABLED
00174 
00180   Glib::PropertyProxy<GnomeFontPickerMode> property_mode() ;
00181 #endif //#GLIBMM_PROPERTIES_ENABLED
00182 
00183 #ifdef GLIBMM_PROPERTIES_ENABLED
00184 
00190   Glib::PropertyProxy_ReadOnly<GnomeFontPickerMode> property_mode() const;
00191 #endif //#GLIBMM_PROPERTIES_ENABLED
00192 
00193   #ifdef GLIBMM_PROPERTIES_ENABLED
00194 
00200   Glib::PropertyProxy<Glib::ustring> property_font_name() ;
00201 #endif //#GLIBMM_PROPERTIES_ENABLED
00202 
00203 #ifdef GLIBMM_PROPERTIES_ENABLED
00204 
00210   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const;
00211 #endif //#GLIBMM_PROPERTIES_ENABLED
00212 
00213   #ifdef GLIBMM_PROPERTIES_ENABLED
00214 
00220   Glib::PropertyProxy<Glib::ustring> property_preview_text() ;
00221 #endif //#GLIBMM_PROPERTIES_ENABLED
00222 
00223 #ifdef GLIBMM_PROPERTIES_ENABLED
00224 
00230   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_preview_text() const;
00231 #endif //#GLIBMM_PROPERTIES_ENABLED
00232 
00233   #ifdef GLIBMM_PROPERTIES_ENABLED
00234 
00240   Glib::PropertyProxy<bool> property_use_font_in_label() ;
00241 #endif //#GLIBMM_PROPERTIES_ENABLED
00242 
00243 #ifdef GLIBMM_PROPERTIES_ENABLED
00244 
00250   Glib::PropertyProxy_ReadOnly<bool> property_use_font_in_label() const;
00251 #endif //#GLIBMM_PROPERTIES_ENABLED
00252 
00253   #ifdef GLIBMM_PROPERTIES_ENABLED
00254 
00260   Glib::PropertyProxy<int> property_label_font_size() ;
00261 #endif //#GLIBMM_PROPERTIES_ENABLED
00262 
00263 #ifdef GLIBMM_PROPERTIES_ENABLED
00264 
00270   Glib::PropertyProxy_ReadOnly<int> property_label_font_size() const;
00271 #endif //#GLIBMM_PROPERTIES_ENABLED
00272 
00273   #ifdef GLIBMM_PROPERTIES_ENABLED
00274 
00280   Glib::PropertyProxy<bool> property_show_size() ;
00281 #endif //#GLIBMM_PROPERTIES_ENABLED
00282 
00283 #ifdef GLIBMM_PROPERTIES_ENABLED
00284 
00290   Glib::PropertyProxy_ReadOnly<bool> property_show_size() const;
00291 #endif //#GLIBMM_PROPERTIES_ENABLED
00292 
00293 
00294 };
00295 
00296 #endif //GNOMEMM_DISABLE_DEPRECATED
00297 
00298 } /* namespace UI */
00299 } /* namespace Gnome */
00300 
00301 
00302 namespace Glib
00303 {
00309   Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false);
00310 } //namespace Glib
00311 
00312 
00313 #endif /* _LIBGNOMEUIMM_FONT_PICKER_H */
00314 

Generated on Mon Sep 25 16:06:04 2006 for libgnomeuimm by  doxygen 1.4.7