X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftags%2Fsynfigstudio_%40VERSION_MAJ%40_%40VERSION_MIN%40_%40VERSION_REV%40%2Fsrc%2Fgtkmm%2Ficoncontroller.h;fp=synfig-studio%2Ftags%2Fsynfigstudio_%40VERSION_MAJ%40_%40VERSION_MIN%40_%40VERSION_REV%40%2Fsrc%2Fgtkmm%2Ficoncontroller.h;h=fa48cf1c20db9882d486c95195971e26bd67727b;hb=d98a5bdd45e2c836aa7996f22516008f1ce29947;hp=0000000000000000000000000000000000000000;hpb=c33037508a9f5a0607b14f3feed692a0d364d68a;p=synfig.git diff --git a/synfig-studio/tags/synfigstudio_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@/src/gtkmm/iconcontroller.h b/synfig-studio/tags/synfigstudio_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@/src/gtkmm/iconcontroller.h new file mode 100644 index 0000000..fa48cf1 --- /dev/null +++ b/synfig-studio/tags/synfigstudio_@VERSION_MAJ@_@VERSION_MIN@_@VERSION_REV@/src/gtkmm/iconcontroller.h @@ -0,0 +1,73 @@ +/* === 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 { class BookEntry; };}; + +namespace studio { + + +class IconController +{ + Glib::RefPtr icon_factory; +public: + IconController(const synfig::String& basepath); + ~IconController(); + + static Gdk::Cursor get_normal_cursor(); + static Gdk::Cursor 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::ValueBase::Type type); +Gtk::StockID valuenode_icon(etl::handle value_node); +Glib::RefPtr get_tree_pixbuf(synfig::ValueBase::Type type); +Gtk::StockID get_action_stock_id(const synfigapp::Action::BookEntry& action); + +}; // END of namespace studio + +/* === E N D =============================================================== */ + +#endif