synfig-studio  1.0.3
Macros | Variables
iconcontroller.cpp File Reference

Template File. More...

#include "iconcontroller.h"
#include <synfig/valuenodes/valuenode_const.h>
#include <gtkmm/button.h>
#include <gtkmm/window.h>
#include <synfigapp/action.h>
#include <synfig/interpolation.h>
#include <gdkmm.h>
#include "general.h"

Macros

#define IMAGE_DIR   "/usr/local/share/pixmaps"
#define IMAGE_EXT   "png"
#define INIT_STOCK_ICON(name, iconfile, desc)
#define INIT_STOCK_ICON_CLONE(name, stockid, desc)
#define INIT_STOCK_ITEM(name, desc)

Variables

static std::map< int,
Glib::RefPtr< Gdk::Pixbuf > > 
_tree_pixbuf_table_value_type
static Glib::RefPtr< Gdk::Pixbuf > _tree_pixbuf_table_interpolation [(int) INTERPOLATION_CLAMPED+1]

Detailed Description

Template File.

$Id$

Macro Definition Documentation

#define IMAGE_DIR   "/usr/local/share/pixmaps"
#define IMAGE_EXT   "png"
#define INIT_STOCK_ICON (   name,
  iconfile,
  desc 
)
Value:
{ \
Gtk::StockItem stockitem(Gtk::StockID("synfig-" #name),desc); \
Gtk::Stock::add(stockitem); \
Glib::RefPtr<Gtk::IconSet> icon_set = Gtk::IconSet::create(); \
icon_source.set_filename(path_to_icons+iconfile); \
icon_set->add_source(icon_source); \
icon_factory->add(stockitem.get_stock_id(),icon_set); \
}

Referenced by studio::IconController::init_icons().

#define INIT_STOCK_ICON_CLONE (   name,
  stockid,
  desc 
)
Value:
{ \
Gtk::StockItem stockitem(Gtk::StockID("synfig-" #name),desc); \
Gtk::Stock::add(stockitem); \
Glib::RefPtr<Gtk::IconSet> icon_set = Gtk::IconSet::create(); \
if(Gtk::Stock::lookup(stockitem.get_stock_id(),icon_set)) \
icon_factory->add(stockitem.get_stock_id(),icon_set); \
}

Referenced by studio::IconController::init_icons().

#define INIT_STOCK_ITEM (   name,
  desc 
)
Value:
stock_##name=Gtk::StockItem(Gtk::StockID("synfig-" #name),desc); \
Gtk::Stock::add(stock_##name);

Variable Documentation

std::map< int, Glib::RefPtr<Gdk::Pixbuf> > _tree_pixbuf_table_value_type
static
Glib::RefPtr<Gdk::Pixbuf> _tree_pixbuf_table_interpolation[(int) INTERPOLATION_CLAMPED+1]
static