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 
00101 protected:
00102   //GTK+ Virtual Functions (override these to change behaviour):
00103 
00104   //Default Signal Handlers::
00105   virtual void on_font_set(const Glib::ustring& font_name);
00106 
00107 
00108 private:
00109 
00110   
00111 public:
00112   FontPicker();
00113 
00114   
00115   void set_title(const Glib::ustring& title);
00116   
00117   Glib::ustring get_title() const;
00118   
00119   GnomeFontPickerMode get_mode() const; 
00120   
00121   void set_mode(GnomeFontPickerMode mode);
00122   
00123   void set_use_font_in_label (bool use_font_in_label, gint size);
00124   
00125   void set_show_size (bool show_size = true);
00126   
00127   void uw_set_widget(Gtk::Widget& widget);
00128 
00129   
00130   Gtk::Widget* uw_get_widget();
00131   
00132   const Gtk::Widget* uw_get_widget() const;
00133 
00134   
00135   Glib::ustring get_font_name() const;;
00136   
00137   bool set_font_name(const Glib::ustring& fontname);
00138   
00139   Glib::ustring get_preview_text() const;
00140   
00141   void set_preview_text(const Glib::ustring& text);
00142 
00143   
00144   Glib::SignalProxy1< void,const Glib::ustring& > signal_font_set();
00145 ;
00146 
00153   Glib::PropertyProxy<Glib::ustring> property_title() ;
00154 
00161   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const;
00162 
00169   Glib::PropertyProxy<GnomeFontPickerMode> property_mode() ;
00170 
00177   Glib::PropertyProxy_ReadOnly<GnomeFontPickerMode> property_mode() const;
00178 
00185   Glib::PropertyProxy<Glib::ustring> property_font_name() ;
00186 
00193   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const;
00194 
00201   Glib::PropertyProxy<Glib::ustring> property_preview_text() ;
00202 
00209   Glib::PropertyProxy_ReadOnly<Glib::ustring> property_preview_text() const;
00210 
00217   Glib::PropertyProxy<bool> property_use_font_in_label() ;
00218 
00225   Glib::PropertyProxy_ReadOnly<bool> property_use_font_in_label() const;
00226 
00233   Glib::PropertyProxy<int> property_label_font_size() ;
00234 
00241   Glib::PropertyProxy_ReadOnly<int> property_label_font_size() const;
00242 
00249   Glib::PropertyProxy<bool> property_show_size() ;
00250 
00257   Glib::PropertyProxy_ReadOnly<bool> property_show_size() const;
00258 
00259 
00260 };
00261 
00262 #endif //GNOMEMM_DISABLE_DEPRECATED
00263 
00264 } /* namespace UI */
00265 } /* namespace Gnome */
00266 
00267 
00268 namespace Glib
00269 {
00275   Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false);
00276 } //namespace Glib
00277 
00278 
00279 #endif /* _LIBGNOMEUIMM_FONT_PICKER_H */
00280 

Generated on Fri Aug 4 06:02:51 2006 for libgnomeuimm by  doxygen 1.4.7