Blame synfig-studio/src/gui/iconcontroller.h

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