/* === S Y N F I G ========================================================= */ /*! \file iconcontroller.h ** \brief Template Header ** ** $Id$ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as ** published by the Free Software Foundation; either version 2 of ** the License, or (at your option) any later version. ** ** This package is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ** General Public License for more details. ** \endlegal */ /* ========================================================================= */ /* === S T A R T =========================================================== */ #ifndef __SYNFIG_STUDIO_ICONCONTROLLER_H #define __SYNFIG_STUDIO_ICONCONTROLLER_H /* === H E A D E R S ======================================================= */ #include #include #include #include #include /* === M A C R O S ========================================================= */ /* === T Y P E D E F S ===================================================== */ /* === C L A S S E S & S T R U C T S ======================================= */ namespace synfig { class ValueNode; class Layer; } namespace synfigapp { namespace Action { struct BookEntry; };}; namespace studio { class IconController { Glib::RefPtr icon_factory; public: IconController(const synfig::String& basepath); ~IconController(); void init_icons(const synfig::String& path_to_icons); static Glib::RefPtr get_normal_cursor(); static Glib::RefPtr get_tool_cursor(const Glib::ustring& name,const Glib::RefPtr& window); }; Gtk::StockID layer_icon(const synfig::String &layer); Glib::RefPtr get_tree_pixbuf_layer(const synfig::String &layer); Gtk::StockID value_icon(synfig::Type &type); Gtk::StockID interpolation_icon(synfig::Interpolation type); Gtk::StockID valuenode_icon(etl::handle value_node); Glib::RefPtr get_tree_pixbuf(synfig::Type &type); Glib::RefPtr get_interpolation_pixbuf(synfig::Interpolation itype); Gtk::StockID get_action_stock_id(const synfigapp::Action::BookEntry& action); }; // END of namespace studio /* === E N D =============================================================== */ #endif