synfig-studio  1.0.3
Macros | Functions
gui/instance.cpp File Reference
#include "instance.h"
#include <cassert>
#include <gtkmm/stock.h>
#include <gtkmm/image.h>
#include <gtkmm/menuitem.h>
#include <gtkmm/imagemenuitem.h>
#include <gtkmm/separatormenuitem.h>
#include <gtkmm/button.h>
#include <iostream>
#include "canvasview.h"
#include "app.h"
#include <sigc++/signal.h>
#include <sigc++/adaptors/hide.h>
#include "docks/dock_toolbox.h"
#include "onemoment.h"
#include <synfig/savecanvas.h>
#include "autorecover.h"
#include <sigc++/retype_return.h>
#include <sigc++/retype.h>
#include <synfig/valuenodes/valuenode_composite.h>
#include <synfig/valuenodes/valuenode_duplicate.h>
#include "widgets/widget_waypointmodel.h"
#include <gtkmm/actiongroup.h>
#include "iconcontroller.h"
#include "workarea.h"
#include <sys/stat.h>
#include <errno.h>
#include <ETL/stringf>
#include "general.h"

Macros

#define ADD_IMAGE_MENU_ITEM(Interpolation, StockId, Text)
#define ADD_IMAGE_MENU_ITEM(Type, StockId, Text)

Functions

void edit_several_waypoints (etl::handle< CanvasView > canvas_view, std::list< synfigapp::ValueDesc > value_desc_list)

Macro Definition Documentation

#define ADD_IMAGE_MENU_ITEM (   Interpolation,
  StockId,
  Text 
)
Value:
param_list.add("new_value", Interpolation); \
item = Gtk::manage(new Gtk::ImageMenuItem( \
*Gtk::manage(new Gtk::Image(Gtk::StockID(StockId), Gtk::IconSize::from_name("synfig-small_icon"))), \
_(Text) )); \
item->signal_activate().connect( \
sigc::bind( \
sigc::bind( \
sigc::mem_fun(*const_cast<studio::Instance*>(this),&studio::Instance::process_action), \
param_list ), \
"ValueDescSetInterpolation" )); \
item->show_all(); \
param_interpolation_menu->append(*item); \
param_list.erase("new_value");

Referenced by studio::Instance::make_param_menu().

#define ADD_IMAGE_MENU_ITEM (   Type,
  StockId,
  Text 
)
Value:
param_list.add("new_value", ValueBase((int)WidthPoint::Type)); \
item = Gtk::manage(new Gtk::ImageMenuItem( \
*Gtk::manage(new Gtk::Image(Gtk::StockID(StockId),Gtk::IconSize::from_name("synfig-small_icon"))), \
_(Text) )); \
item->signal_activate().connect( \
sigc::bind( \
sigc::bind( \
sigc::mem_fun(*const_cast<studio::Instance*>(this),&studio::Instance::process_action), \
param_list ), \
"ValueDescSet" )); \
item->show_all(); \
parammenu.append(*item); \
param_list.erase("new_value");

Function Documentation

void edit_several_waypoints ( etl::handle< CanvasView canvas_view,
std::list< synfigapp::ValueDesc value_desc_list 
)