00001
00002
00003 #ifndef _LIBGNOMEUIMM_FONT_PICKER_H
00004 #define _LIBGNOMEUIMM_FONT_PICKER_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
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
00039
00040
00041 namespace Gnome
00042 {
00043
00044 namespace UI
00045 { class FontPicker_Class; }
00046
00047 }
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
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
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
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
00100
00101 protected:
00102
00103
00104
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 }
00265 }
00266
00267
00268 namespace Glib
00269 {
00275 Gnome::UI::FontPicker* wrap(GnomeFontPicker* object, bool take_copy = false);
00276 }
00277
00278
00279 #endif
00280