00001
00002
00003 #ifndef _LIBGNOMEUIMM_FONT_PICKER_H
00004 #define _LIBGNOMEUIMM_FONT_PICKER_H
00005
00006 #include <glibmm.h>
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
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
00038
00039
00040 namespace Gnome
00041 {
00042
00043 namespace UI
00044 { class FontPicker_Class; }
00045
00046 }
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
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
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
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
00099
00100 protected:
00101
00102
00103
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
00152 Glib::PropertyProxy<Glib::ustring> property_title() ;
00153
00160 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_title() const;
00161
00168 Glib::PropertyProxy<GnomeFontPickerMode> property_mode() ;
00169
00176 Glib::PropertyProxy_ReadOnly<GnomeFontPickerMode> property_mode() const;
00177
00184 Glib::PropertyProxy<Glib::ustring> property_font_name() ;
00185
00192 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_font_name() const;
00193
00200 Glib::PropertyProxy<Glib::ustring> property_preview_text() ;
00201
00208 Glib::PropertyProxy_ReadOnly<Glib::ustring> property_preview_text() const;
00209
00216 Glib::PropertyProxy<bool> property_use_font_in_label() ;
00217
00224 Glib::PropertyProxy_ReadOnly<bool> property_use_font_in_label() const;
00225
00232 Glib::PropertyProxy<int> property_label_font_size() ;
00233
00240 Glib::PropertyProxy_ReadOnly<int> property_label_font_size() const;
00241
00248 Glib::PropertyProxy<bool> property_show_size() ;
00249
00256 Glib::PropertyProxy_ReadOnly<bool> property_show_size() const;
00257
00258
00259 };
00260
00261 #endif //GNOMEMM_DISABLE_DEPRECATED
00262
00263 }
00264 }
00265
00266
00267 namespace Glib
00268 {
00274 Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false);
00275 }
00276 #endif
00277