Text.h
00001 #ifndef _TEXT_H
00002 #define _TEXT_H
00003
00004 #include <gtkmm.h>
00005 #include <plugins.h>
00006 #include <global_macros.h>
00007 #include <components/SimpleText.h>
00008
00009 namespace UniWidgets
00010 {
00016 class Text : public SimpleText
00017 {
00018 public:
00019 Text();
00020 explicit Text(SimpleText::BaseObjectType* gobject);
00021 virtual ~Text();
00022
00023
00024 void on_font_name_changed();
00025 void on_font_color_changed();
00026 void on_use_theme_changed();
00027 virtual void on_theme_changed();
00028 virtual void load_theme_settings();
00029 virtual void load_property_settings();
00031 virtual void on_size_request(Gtk::Requisition* requisition);
00032 virtual void on_realize();
00033 virtual void on_size_allocate(Gtk::Allocation& alloc);
00034
00035
00036 protected:
00037
00038 Gdk::Color off_color;
00040
00041 virtual void on_text_changed();
00042
00043
00044 private:
00045
00046 void constructor();
00047
00048 DISALLOW_COPY_AND_ASSIGN(Text);
00049
00050 ADD_PROPERTY( property_theme_, Glib::ustring )
00051 ADD_PROPERTY( property_use_theme_, bool )
00052 ADD_PROPERTY( property_font_name_, Glib::ustring )
00053 ADD_PROPERTY( property_abs_font_size_, gint )
00054 ADD_PROPERTY( property_font_color_, Gdk::Color )
00055 };
00056
00057 }
00058 #endif