1 /* === S Y N F I G ========================================================= */
3 ** \brief Template Header
5 ** $Id: iconcontroler.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_STUDIO_ICONCONTROLER_H
26 #define __SYNFIG_STUDIO_ICONCONTROLER_H
28 /* === H E A D E R S ======================================================= */
30 #include <gtkmm/stock.h>
31 #include <gtkmm/iconfactory.h>
32 #include <gtkmm/iconset.h>
33 #include <gdkmm/cursor.h>
35 #include <synfig/value.h>
37 /* === M A C R O S ========================================================= */
39 /* === T Y P E D E F S ===================================================== */
41 /* === C L A S S E S & S T R U C T S ======================================= */
43 namespace synfig { class ValueNode; class Layer; }
45 namespace synfigapp { namespace Action { class BookEntry; };};
52 Glib::RefPtr<Gtk::IconFactory> icon_factory;
54 IconControler(const synfig::String& basepath);
57 static Gdk::Cursor get_normal_cursor();
58 static Gdk::Cursor get_tool_cursor(const Glib::ustring& name,const Glib::RefPtr<Gdk::Window>& window);
61 Gtk::StockID layer_icon(const synfig::String &layer);
62 Glib::RefPtr<Gdk::Pixbuf> get_tree_pixbuf_layer(const synfig::String &layer);
64 Gtk::StockID value_icon(synfig::ValueBase::Type type);
65 Gtk::StockID valuenode_icon(etl::handle<synfig::ValueNode> value_node);
66 Glib::RefPtr<Gdk::Pixbuf> get_tree_pixbuf(synfig::ValueBase::Type type);
67 Gtk::StockID get_action_stock_id(const synfigapp::Action::BookEntry& action);
69 }; // END of namespace studio
71 /* === E N D =============================================================== */