synfig-studio  1.0.3
Macros
state_text.cpp File Reference

Template File. More...

#include "state_text.h"
#include "state_normal.h"
#include "canvasview.h"
#include "workarea.h"
#include "app.h"
#include <synfigapp/action.h>
#include "event_mouse.h"
#include "event_layerclick.h"
#include "docks/dock_toolbox.h"
#include "docks/dialog_tooloptions.h"
#include "duck.h"
#include "widgets/widget_enum.h"
#include <synfigapp/main.h>
#include "general.h"

Macros

#define LAYER_CREATION(button, stockid, tooltip)
#define SPACING(name, px)
#define GAP   (3)
#define INDENTATION   (6)

Detailed Description

Template File.

$Id$

Macro Definition Documentation

#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::StateText_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)