synfig-studio  1.0.3
Macros
state_bline.cpp File Reference

Template File. More...

#include <synfig/valuenodes/valuenode_dynamiclist.h>
#include "state_bline.h"
#include "state_normal.h"
#include "canvasview.h"
#include "workarea.h"
#include "app.h"
#include <synfig/valuenodes/valuenode_bline.h>
#include <ETL/hermite>
#include <ETL/calculus>
#include <utility>
#include "event_mouse.h"
#include "event_layerclick.h"
#include "docks/dock_toolbox.h"
#include "docks/dialog_tooloptions.h"
#include "widgets/widget_enum.h"
#include "widgets/widget_distance.h"
#include <synfig/transform.h>
#include <synfigapp/main.h>
#include "general.h"
#include <gtkmm/separatormenuitem.h>
#include <gtkmm/imagemenuitem.h>

Macros

#define DISTINGUISH_FIRST_DUCK
#define LAYER_CREATION(button, stockid, tooltip)
#define SPACING(name, px)
#define GAP   (3)
#define INDENTATION   (6)
#define STATE_BLINE_ADD_MENU_ITEM(title, split_angle, split_radius, icon)
#define STATE_BLINE_ADD_MENU_ITEM(title, split_angle, split_radius, icon)

Detailed Description

Template File.

$Id$

Macro Definition Documentation

#define DISTINGUISH_FIRST_DUCK
#define LAYER_CREATION (   button,
  stockid,
  tooltip 
)
Value:
{ \
Gtk::Image *icon = manage(new Gtk::Image(Gtk::StockID(stockid), \
Gtk::ICON_SIZE_SMALL_TOOLBAR)); \
button.add(*icon); \
} \
button.set_relief(Gtk::RELIEF_NONE); \
button.set_tooltip_text(tooltip) ;\
button.signal_toggled().connect(sigc::mem_fun(*this, \
&studio::StateBLine_Context::toggle_layer_creation))
#define SPACING (   name,
  px 
)
Value:
Gtk::Alignment *name = Gtk::manage(new Gtk::Alignment()); \
name->set_size_request(px)
#define GAP   (3)
#define INDENTATION   (6)
#define STATE_BLINE_ADD_MENU_ITEM (   title,
  split_angle,
  split_radius,
  icon 
)
Value:
do { \
item2 = manage(new Gtk::ImageMenuItem( \
*manage(new Gtk::Image( \
Gtk::StockID(icon), \
Gtk::ICON_SIZE_MENU )), \
_(title))); \
item2->signal_activate().connect( \
sigc::bind( \
sigc::mem_fun(*this,&studio::StateBLine_Context::bline_set_split_handle), \
value_node, split_angle, split_radius )); \
item2->show(); \
menu.append(*item2); \
} while (false)
#define STATE_BLINE_ADD_MENU_ITEM (   title,
  split_angle,
  split_radius,
  icon 
)
Value:
do { \
item2 = manage(new Gtk::ImageMenuItem( \
*Gtk::manage(new Gtk::Image( \
Gtk::StockID(icon), \
Gtk::ICON_SIZE_MENU )), \
_(title))); \
item2->signal_activate().connect( \
sigc::bind( \
sigc::mem_fun(*this,&studio::StateBLine_Context::bline_set_split_handle), \
value_node, split_angle, split_radius )); \
item2->show(); \
menu.append(*item2); \
} while(false)