synfig-studio  1.0.3
Macros | Functions
layermakebline.cpp File Reference

Template File. More...

#include "layermakebline.h"
#include "layeradd.h"
#include "layermove.h"
#include "layerparamconnect.h"
#include <synfig/context.h>
#include <synfigapp/canvasinterface.h>
#include <synfigapp/general.h>

Macros

#define ACTION_LAYERMAKEBLINE_IMPLEMENT(class_name, local_name, bline_layer_name, put_new_layer_behind,...)

Functions

 ACTION_LAYERMAKEBLINE_IMPLEMENT (LayerMakeOutline, N_("Make Outline"),"outline", false,"advanced_outline","region")
 ACTION_LAYERMAKEBLINE_IMPLEMENT (LayerMakeAdvancedOutline, N_("Make Advanced Outline"),"advanced_outline", false,"outline","region")
 ACTION_LAYERMAKEBLINE_IMPLEMENT (LayerMakeRegion, N_("Make Region"),"region", true,"outline","advanced_outline")

Detailed Description

Template File.

$Id$

Macro Definition Documentation

#define ACTION_LAYERMAKEBLINE_IMPLEMENT (   class_name,
  local_name,
  bline_layer_name,
  put_new_layer_behind,
  ... 
)
Value:
ACTION_INIT(Action::class_name); \
ACTION_SET_NAME(Action::class_name, #class_name); \
ACTION_SET_LOCAL_NAME(Action::class_name, local_name); \
ACTION_SET_TASK(Action::class_name,"make_" bline_layer_name); \
ACTION_SET_CATEGORY(Action::class_name,Action::CATEGORY_LAYER); \
ACTION_SET_PRIORITY(Action::class_name,0); \
ACTION_SET_VERSION(Action::class_name,"0.0"); \
ACTION_SET_CVS_ID(Action::class_name,"$Id$"); \
const char * Action::class_name::possible_layer_names__[] = {__VA_ARGS__}; \
bool Action::class_name::is_candidate(const ParamList &x) \
{ return is_candidate_for_make_bline(x, possible_layer_names__, sizeof(possible_layer_names__)/sizeof(possible_layer_names__[0])); } \
void Action::class_name::prepare() { prepare_make_bline(bline_layer_name, put_new_layer_behind); }

Function Documentation

ACTION_LAYERMAKEBLINE_IMPLEMENT ( LayerMakeOutline  ,
N_("Make Outline")  ,
"outline"  ,
false  ,
"advanced_outline"  ,
"region"   
)
ACTION_LAYERMAKEBLINE_IMPLEMENT ( LayerMakeAdvancedOutline  ,
N_("Make Advanced Outline")  ,
"advanced_outline"  ,
false  ,
"outline"  ,
"region"   
)
ACTION_LAYERMAKEBLINE_IMPLEMENT ( LayerMakeRegion  ,
N_("Make Region")  ,
"region"  ,
true  ,
"outline"  ,
"advanced_outline"   
)