Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | 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.14 2002/09/16 12:18:30 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 
00054 class FontPicker : public Gtk::Button
00055 {
00056   public:
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058   typedef FontPicker CppObjectType;
00059   typedef FontPicker_Class CppClassType;
00060   typedef GnomeFontPicker BaseObjectType;
00061   typedef GnomeFontPickerClass BaseClassType;
00062 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00063 
00064   virtual ~FontPicker();
00065 
00066 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00067 
00068 private:
00069   friend class FontPicker_Class;
00070   static CppClassType fontpicker_class_;
00071 
00072   // noncopyable
00073   FontPicker(const FontPicker&);
00074   FontPicker& operator=(const FontPicker&);
00075 
00076 protected:
00077   explicit FontPicker(const Glib::ConstructParams& construct_params);
00078   explicit FontPicker(GnomeFontPicker* castitem);
00079 
00080 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00081 
00082 public:
00083 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00084   static GType get_type()      G_GNUC_CONST;
00085   static GType get_base_type() G_GNUC_CONST;
00086 #endif
00087 
00089   GnomeFontPicker*       gobj()       { return reinterpret_cast<GnomeFontPicker*>(gobject_); }
00090 
00092   const GnomeFontPicker* gobj() const { return reinterpret_cast<GnomeFontPicker*>(gobject_); }
00093 
00094 
00095 public:
00096   //C++ methods used to invoke GTK+ virtual functions:
00097 
00098 protected:
00099   //GTK+ Virtual Functions (override these to change behaviour):
00100 
00101   //Default Signal Handlers::
00102   virtual void on_font_set(const Glib::ustring& font_name);
00103 
00104 
00105 private:
00106 
00107   
00108 public:
00109   FontPicker();
00110 
00111   
00112   void set_title(const Glib::ustring& title);
00113   
00114   Glib::ustring get_title() const;
00115   
00116   GnomeFontPickerMode get_mode() const; 
00117   
00118   void set_mode(GnomeFontPickerMode mode);
00119   
00120   void set_use_font_in_label (bool use_font_in_label, gint size);
00121   
00122   void set_show_size (bool show_size = true);
00123   
00124   void uw_set_widget(Gtk::Widget& widget);
00125 
00126   
00127   Gtk::Widget* uw_get_widget();
00128   
00129   const Gtk::Widget* uw_get_widget() const;
00130 
00131   
00132   Glib::ustring get_font_name() const;;
00133   
00134   bool set_font_name(const Glib::ustring& fontname);
00135   
00136   Glib::ustring get_preview_text() const;
00137   
00138   void set_preview_text(const Glib::ustring& text);
00139 
00140   
00145   Glib::SignalProxy1<void,const Glib::ustring&> signal_font_set();
00146 ;
00147 
00153 Glib::PropertyProxy<Glib::ustring> property_title();
00154 
00160 Glib::PropertyProxy<GnomeFontPickerMode> property_mode();
00161 
00167 Glib::PropertyProxy<Glib::ustring> property_font_name();
00168 
00174 Glib::PropertyProxy<Glib::ustring> property_preview_text();
00175 
00181 Glib::PropertyProxy<bool> property_use_font_in_label();
00182 
00188 Glib::PropertyProxy<int> property_label_font_size();
00189 
00195 Glib::PropertyProxy<bool> property_show_size();
00196 
00197 
00198 };
00199 
00200 } /* namespace UI */
00201 } /* namespace Gnome */
00202 
00203 
00204 namespace Glib
00205 {
00207   Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false);
00208 }
00209 #endif /* _LIBGNOMEUIMM_FONT_PICKER_H */
00210 

Generated on Sun Sep 11 19:04:58 2005 for libgnomeuimm by  doxygen 1.4.4