00001
00021
00022
00023
00024
00025 #ifndef __SYNFIG_STUDIO_ICONCONTROLLER_H
00026 #define __SYNFIG_STUDIO_ICONCONTROLLER_H
00027
00028
00029
00030 #include <gtkmm/stock.h>
00031 #include <gtkmm/iconfactory.h>
00032 #include <gtkmm/iconset.h>
00033 #include <gdkmm/cursor.h>
00034
00035 #include <synfig/value.h>
00036
00037
00038
00039
00040
00041
00042
00043 namespace synfig { class ValueNode; class Layer; }
00044
00045 namespace synfigapp { namespace Action { class BookEntry; };};
00046
00047 namespace studio {
00048
00049
00050 class IconController
00051 {
00052 Glib::RefPtr<Gtk::IconFactory> icon_factory;
00053 public:
00054 IconController(const synfig::String& basepath);
00055 ~IconController();
00056
00057 static Gdk::Cursor get_normal_cursor();
00058 static Gdk::Cursor get_tool_cursor(const Glib::ustring& name,const Glib::RefPtr<Gdk::Window>& window);
00059 };
00060
00061 Gtk::StockID layer_icon(const synfig::String &layer);
00062 Glib::RefPtr<Gdk::Pixbuf> get_tree_pixbuf_layer(const synfig::String &layer);
00063
00064 Gtk::StockID value_icon(synfig::ValueBase::Type type);
00065 Gtk::StockID valuenode_icon(etl::handle<synfig::ValueNode> value_node);
00066 Glib::RefPtr<Gdk::Pixbuf> get_tree_pixbuf(synfig::ValueBase::Type type);
00067 Gtk::StockID get_action_stock_id(const synfigapp::Action::BookEntry& action);
00068
00069 };
00070
00071
00072
00073 #endif