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
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
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
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
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
00097
00098
protected:
00099
00100
00101
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 }
00201 }
00202
00203
00204 namespace Glib
00205 {
00207
Gnome::UI::FontPicker*
wrap(GnomeFontPicker* object,
bool take_copy =
false);
00208 }
00209
#endif
00210