synfig-studio  1.0.3
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
synfigapp::CanvasInterface Class Reference

#include <canvasinterface.h>

Public Types

typedef EditMode Mode

Public Member Functions

sigc::signal< void,
synfig::Layer::Handle, int,
synfig::Canvas::Handle > & 
signal_layer_moved ()
sigc::signal< void,
synfig::Layer::Handle,
synfig::String > & 
signal_layer_new_description ()
sigc::signal< void,
synfig::Layer::Handle > & 
signal_layer_raised ()
 Signal called when layer is raised.
sigc::signal< void,
synfig::Layer::Handle > & 
signal_layer_lowered ()
 Signal called when layer is lowered.
sigc::signal< void,
synfig::Layer::Handle, int > & 
signal_layer_inserted ()
 Signal called when layer has been inserted at a given position.
sigc::signal< void,
synfig::Layer::Handle > & 
signal_layer_removed ()
 Signal called when a layer has been removed from the canvas.
sigc::signal< void,
synfig::Layer::Handle, bool > & 
signal_layer_status_changed ()
 Signal called when the layer's active status has changed.
sigc::signal< void,
synfig::Layer::Handle, bool > & 
signal_layer_exclude_from_rendering_changed ()
 Signal called when the layer's "exclude from rendering" flag has changed.
sigc::signal< void,
synfig::Layer::Handle, bool > & 
signal_layer_z_range_changed ()
 Signal called when the layer's zdepth range has changed. This layer has to be Layer_PasteCanvas.
sigc::signal< void,
etl::handle< synfig::Canvas > > & 
signal_canvas_added ()
 Signal called when a canvas has been added.
sigc::signal< void,
etl::handle< synfig::Canvas > > & 
signal_canvas_removed ()
 Signal called when a canvas has been removed.
sigc::signal< void,
synfig::Layer::Handle,
synfig::String > & 
signal_layer_param_changed ()
 Signal called when a layer's parameter has been changed.
sigc::signal< void > & signal_dirty_preview ()
 Signal called when the canvas's preview needs to be updated.
sigc::signal< void,
etl::handle< synfig::ValueNode >
, etl::handle
< synfig::ValueNode > > & 
signal_value_node_child_added ()
sigc::signal< void,
etl::handle< synfig::ValueNode >
, etl::handle
< synfig::ValueNode > > & 
signal_value_node_child_removed ()
sigc::signal< void,
etl::handle< synfig::ValueNode > > & 
signal_value_node_added ()
 Signal called when a ValueNode has changed.
sigc::signal< void,
etl::handle< synfig::ValueNode > > & 
signal_value_node_deleted ()
 Signal called when a ValueNode has been deleted.
sigc::signal< void,
etl::handle< synfig::ValueNode > > & 
signal_value_node_changed ()
 Signal called when a ValueNode has been changed.
sigc::signal< void,
etl::handle< synfig::ValueNode > > & 
signal_value_node_renamed ()
 Signal called when a ValueNode has been renamed.
sigc::signal< void, Modesignal_mode_changed ()
 Signal called when the mode has changed.
sigc::signal< void > & signal_id_changed ()
 Signal called when a the ID has been changed.
sigc::signal< void > signal_time_changed ()
 Signal called whenever the time changes.
sigc::signal< void,
synfig::ValueNode::Handle,
synfig::ValueNode::Handle > & 
signal_value_node_replaced ()
 Signal called whenever a data node has been replaced.
sigc::signal< void > & signal_rend_desc_changed ()
 Signal called whenever the RendDesc changes.
sigc::signal< void,
synfig::Keyframe > & 
signal_keyframe_added ()
 Signal called when a keyframe is added.
sigc::signal< void,
synfig::Keyframe > & 
signal_keyframe_removed ()
 Signal called when a keyframe is removed.
sigc::signal< void,
synfig::Keyframe > & 
signal_keyframe_changed ()
 Signal called when a keyframe is changed.
sigc::signal< void,
synfig::Keyframe, void * > & 
signal_keyframe_selected ()
 Signal called when a keyframe is selected.
sigc::signal< void > & signal_keyframe_properties ()
 Signal called when the properties dialog of the selected keyframe must be shown.
void auto_export (const ValueDesc &value_desc)
void auto_export (synfig::ValueNode::Handle value_node)
void set_meta_data (const synfig::String &key, const synfig::String &data)
void erase_meta_data (const synfig::String &key)
void set_selection_manager (const etl::handle< SelectionManager > &sm)
 Changes the current SelectionManager object.
void unset_selection_manager ()
 Disables the selection manager.
const etl::handle
< SelectionManager > & 
get_selection_manager () const
 Returns a handle to the current SelectionManager.
void set_ui_interface (const etl::handle< UIInterface > &uim)
 Changes the current UIInterface object.
void unset_ui_interface ()
 Disables the UIInterface.
const etl::handle< UIInterface > & get_ui_interface ()
 Returns a handle to the current UIInterface.
etl::handle< synfig::Canvas > get_canvas () const
 Returns the Canvas associated with this interface.
etl::loose_handle< Instanceget_instance () const
 Returns the Instance associated with this interface.
void set_name (const synfig::String &x)
 Changes the name of the canvas. Undoable.
void set_description (const synfig::String &x)
 Changes the description of the canvas. Undoable.
void set_id (const synfig::String &x)
 Changes the ID of the canvas. Undoable.
synfig::String get_name () const
 Convenience function to retrieve the name of the canvas.
synfig::String get_description () const
 Convenience function to retrieve the description of the canvas.
synfig::String get_id () const
 Convenience function to retrieve the ID of the canvas.
void set_time (synfig::Time x)
 Sets the current time.
synfig::Time get_time () const
 Retrieves the current time.
void jump_to_next_keyframe ()
 Changes the current time to the next keyframe.
void jump_to_prev_keyframe ()
 Changes the current time to the next keyframe.
void seek_frame (int frames)
void seek_time (synfig::Time time)
void refresh_current_values ()
void set_mode (Mode x)
 Sets the current editing mode.
Mode get_mode () const
 Retrieves the current editing mode.
void apply_layer_param_defaults (synfig::Layer::Handle layer)
 Applies initial param values for layer.
synfig::Layer::Handle add_layer_to (synfig::String id, synfig::Canvas::Handle canvas, int depth=0)
 Creates a new layer, of type id at the top of the layer stack.
bool convert (ValueDesc value_desc, synfig::String type)
bool add_value_node (synfig::ValueNode::Handle value_node, synfig::String name)
 Adds the given ValueNode to the canvas.
Action::ParamList generate_param_list (const synfigapp::ValueDesc &)
Action::ParamList generate_param_list (const std::list< synfigapp::ValueDesc > &)
void set_rend_desc (const synfig::RendDesc &rend_desc)
bool import (const synfig::String &filename, synfig::String &errors, synfig::String &warnings, bool resize_image=false)
void waypoint_duplicate (synfigapp::ValueDesc value_desc, synfig::Waypoint waypoint)
void waypoint_duplicate (synfig::ValueNode::Handle value_node, synfig::Waypoint waypoint)
void waypoint_remove (synfigapp::ValueDesc value_desc, synfig::Waypoint waypoint)
void waypoint_remove (synfig::ValueNode::Handle value_node, synfig::Waypoint waypoint)
bool change_value (synfigapp::ValueDesc value_desc, synfig::ValueBase new_value, bool lock_animation=false)
int find_important_value_descs (std::vector< synfigapp::ValueDesc > &out)
 ~CanvasInterface ()

Static Public Member Functions

static int find_important_value_descs (synfig::Canvas::Handle canvas, std::vector< synfigapp::ValueDesc > &out, synfig::GUIDSet &guid_set)
static etl::handle
< CanvasInterface
create (etl::loose_handle< Instance > instance, etl::handle< synfig::Canvas > canvas)

Friends

class Instance
class Action::EditModeSet

Member Typedef Documentation

Constructor & Destructor Documentation

CanvasInterface::~CanvasInterface ( )

Member Function Documentation

sigc::signal<void,synfig::Layer::Handle,int,synfig::Canvas::Handle>& synfigapp::CanvasInterface::signal_layer_moved ( )
inline
sigc::signal<void,synfig::Layer::Handle,synfig::String>& synfigapp::CanvasInterface::signal_layer_new_description ( )
inline
sigc::signal<void,synfig::Layer::Handle>& synfigapp::CanvasInterface::signal_layer_raised ( )
inline

Signal called when layer is raised.

sigc::signal<void,synfig::Layer::Handle>& synfigapp::CanvasInterface::signal_layer_lowered ( )
inline

Signal called when layer is lowered.

sigc::signal<void,synfig::Layer::Handle,int>& synfigapp::CanvasInterface::signal_layer_inserted ( )
inline

Signal called when layer has been inserted at a given position.

sigc::signal<void,synfig::Layer::Handle>& synfigapp::CanvasInterface::signal_layer_removed ( )
inline

Signal called when a layer has been removed from the canvas.

sigc::signal<void,synfig::Layer::Handle,bool>& synfigapp::CanvasInterface::signal_layer_status_changed ( )
inline

Signal called when the layer's active status has changed.

sigc::signal<void,synfig::Layer::Handle,bool>& synfigapp::CanvasInterface::signal_layer_exclude_from_rendering_changed ( )
inline

Signal called when the layer's "exclude from rendering" flag has changed.

sigc::signal<void,synfig::Layer::Handle,bool>& synfigapp::CanvasInterface::signal_layer_z_range_changed ( )
inline

Signal called when the layer's zdepth range has changed. This layer has to be Layer_PasteCanvas.

sigc::signal<void,etl::handle<synfig::Canvas> >& synfigapp::CanvasInterface::signal_canvas_added ( )
inline

Signal called when a canvas has been added.

sigc::signal<void,etl::handle<synfig::Canvas> >& synfigapp::CanvasInterface::signal_canvas_removed ( )
inline

Signal called when a canvas has been removed.

sigc::signal<void,synfig::Layer::Handle,synfig::String>& synfigapp::CanvasInterface::signal_layer_param_changed ( )
inline

Signal called when a layer's parameter has been changed.

sigc::signal<void>& synfigapp::CanvasInterface::signal_dirty_preview ( )
inline

Signal called when the canvas's preview needs to be updated.

References get_canvas().

sigc::signal<void,etl::handle<synfig::ValueNode>,etl::handle<synfig::ValueNode> >& synfigapp::CanvasInterface::signal_value_node_child_added ( )
inline

References get_canvas().

sigc::signal<void,etl::handle<synfig::ValueNode>,etl::handle<synfig::ValueNode> >& synfigapp::CanvasInterface::signal_value_node_child_removed ( )
inline

References get_canvas().

sigc::signal<void,etl::handle<synfig::ValueNode> >& synfigapp::CanvasInterface::signal_value_node_added ( )
inline

Signal called when a ValueNode has changed.

sigc::signal<void,etl::handle<synfig::ValueNode> >& synfigapp::CanvasInterface::signal_value_node_deleted ( )
inline

Signal called when a ValueNode has been deleted.

sigc::signal<void,etl::handle<synfig::ValueNode> >& synfigapp::CanvasInterface::signal_value_node_changed ( )
inline

Signal called when a ValueNode has been changed.

References get_canvas().

sigc::signal<void,etl::handle<synfig::ValueNode> >& synfigapp::CanvasInterface::signal_value_node_renamed ( )
inline

Signal called when a ValueNode has been renamed.

References get_canvas().

sigc::signal<void,Mode> synfigapp::CanvasInterface::signal_mode_changed ( )
inline

Signal called when the mode has changed.

sigc::signal<void>& synfigapp::CanvasInterface::signal_id_changed ( )
inline

Signal called when a the ID has been changed.

sigc::signal<void> synfigapp::CanvasInterface::signal_time_changed ( )
inline

Signal called whenever the time changes.

sigc::signal<void,synfig::ValueNode::Handle,synfig::ValueNode::Handle>& synfigapp::CanvasInterface::signal_value_node_replaced ( )
inline

Signal called whenever a data node has been replaced.

Second ValueNode replaces first

sigc::signal<void>& synfigapp::CanvasInterface::signal_rend_desc_changed ( )
inline

Signal called whenever the RendDesc changes.

sigc::signal<void,synfig::Keyframe>& synfigapp::CanvasInterface::signal_keyframe_added ( )
inline

Signal called when a keyframe is added.

sigc::signal<void,synfig::Keyframe>& synfigapp::CanvasInterface::signal_keyframe_removed ( )
inline

Signal called when a keyframe is removed.

sigc::signal<void,synfig::Keyframe>& synfigapp::CanvasInterface::signal_keyframe_changed ( )
inline

Signal called when a keyframe is changed.

sigc::signal<void,synfig::Keyframe,void*>& synfigapp::CanvasInterface::signal_keyframe_selected ( )
inline

Signal called when a keyframe is selected.

Second parameter (void*) hold 'this*' of the signal emiter class (to prevent endless loop)

sigc::signal<void>& synfigapp::CanvasInterface::signal_keyframe_properties ( )
inline

Signal called when the properties dialog of the selected keyframe must be shown.

void CanvasInterface::auto_export ( const ValueDesc value_desc)

References _, and synfigapp::Action::create().

void CanvasInterface::auto_export ( synfig::ValueNode::Handle  value_node)
void CanvasInterface::set_meta_data ( const synfig::String &  key,
const synfig::String &  data 
)
void CanvasInterface::erase_meta_data ( const synfig::String &  key)
void synfigapp::CanvasInterface::set_selection_manager ( const etl::handle< SelectionManager > &  sm)
inline

Changes the current SelectionManager object.

void synfigapp::CanvasInterface::unset_selection_manager ( )
inline

Disables the selection manager.

const etl::handle<SelectionManager>& synfigapp::CanvasInterface::get_selection_manager ( ) const
inline

Returns a handle to the current SelectionManager.

void synfigapp::CanvasInterface::set_ui_interface ( const etl::handle< UIInterface > &  uim)
inline

Changes the current UIInterface object.

References ui_interface_.

void synfigapp::CanvasInterface::unset_ui_interface ( )
inline

Disables the UIInterface.

References ui_interface_.

const etl::handle<UIInterface>& synfigapp::CanvasInterface::get_ui_interface ( )
inline

Returns a handle to the current UIInterface.

References ui_interface_.

etl::handle<synfig::Canvas> synfigapp::CanvasInterface::get_canvas ( ) const
inline
etl::loose_handle<Instance> synfigapp::CanvasInterface::get_instance ( ) const
inline

Returns the Instance associated with this interface.

void CanvasInterface::set_name ( const synfig::String &  x)

Changes the name of the canvas. Undoable.

References _, and synfigapp::Action::create().

void CanvasInterface::set_description ( const synfig::String &  x)

Changes the description of the canvas. Undoable.

References _, and synfigapp::Action::create().

void CanvasInterface::set_id ( const synfig::String &  x)

Changes the ID of the canvas. Undoable.

References _, and synfigapp::Action::create().

synfig::String synfigapp::CanvasInterface::get_name ( ) const
inline

Convenience function to retrieve the name of the canvas.

References get_canvas().

synfig::String synfigapp::CanvasInterface::get_description ( ) const
inline

Convenience function to retrieve the description of the canvas.

References get_canvas().

synfig::String synfigapp::CanvasInterface::get_id ( ) const
inline

Convenience function to retrieve the ID of the canvas.

References get_canvas().

void CanvasInterface::set_time ( synfig::Time  x)

Sets the current time.

Referenced by studio::CanvasView::on_waypoint_clicked_canvasview().

synfig::Time CanvasInterface::get_time ( ) const

Retrieves the current time.

void CanvasInterface::jump_to_next_keyframe ( )

Changes the current time to the next keyframe.

void CanvasInterface::jump_to_prev_keyframe ( )

Changes the current time to the next keyframe.

void CanvasInterface::seek_frame ( int  frames)
void CanvasInterface::seek_time ( synfig::Time  time)
void CanvasInterface::refresh_current_values ( )
Todo:
This needs to be documented further.
void CanvasInterface::set_mode ( Mode  x)

Sets the current editing mode.

See Also
Mode

References _, and synfigapp::Action::create().

Referenced by synfigapp::PushMode::PushMode(), and synfigapp::PushMode::~PushMode().

CanvasInterface::Mode CanvasInterface::get_mode ( ) const

Retrieves the current editing mode.

See Also
Mode
void CanvasInterface::apply_layer_param_defaults ( synfig::Layer::Handle  layer)
Layer::Handle CanvasInterface::add_layer_to ( synfig::String  id,
synfig::Canvas::Handle  canvas,
int  depth = 0 
)

Creates a new layer, of type id at the top of the layer stack.

References _, and synfigapp::Action::create().

bool CanvasInterface::convert ( ValueDesc  value_desc,
synfig::String  type 
)
bool CanvasInterface::add_value_node ( synfig::ValueNode::Handle  value_node,
synfig::String  name 
)

Adds the given ValueNode to the canvas.

References _, and synfigapp::Action::create().

Action::ParamList CanvasInterface::generate_param_list ( const synfigapp::ValueDesc value_desc)
Action::ParamList CanvasInterface::generate_param_list ( const std::list< synfigapp::ValueDesc > &  value_desc_list)
void CanvasInterface::set_rend_desc ( const synfig::RendDesc &  rend_desc)

References _, and synfigapp::Action::create().

bool CanvasInterface::import ( const synfig::String &  filename,
synfig::String &  errors,
synfig::String &  warnings,
bool  resize_image = false 
)
void CanvasInterface::waypoint_duplicate ( synfigapp::ValueDesc  value_desc,
synfig::Waypoint  waypoint 
)
void synfigapp::CanvasInterface::waypoint_duplicate ( synfig::ValueNode::Handle  value_node,
synfig::Waypoint  waypoint 
)
void CanvasInterface::waypoint_remove ( synfigapp::ValueDesc  value_desc,
synfig::Waypoint  waypoint 
)
void synfigapp::CanvasInterface::waypoint_remove ( synfig::ValueNode::Handle  value_node,
synfig::Waypoint  waypoint 
)
bool CanvasInterface::change_value ( synfigapp::ValueDesc  value_desc,
synfig::ValueBase  new_value,
bool  lock_animation = false 
)
int CanvasInterface::find_important_value_descs ( std::vector< synfigapp::ValueDesc > &  out)

Referenced by _process_value_desc().

int CanvasInterface::find_important_value_descs ( synfig::Canvas::Handle  canvas,
std::vector< synfigapp::ValueDesc > &  out,
synfig::GUIDSet &  guid_set 
)
static

References _process_value_desc().

etl::handle< CanvasInterface > CanvasInterface::create ( etl::loose_handle< Instance instance,
etl::handle< synfig::Canvas >  canvas 
)
static

Friends And Related Function Documentation

friend class Instance
friend
friend class Action::EditModeSet
friend

The documentation for this class was generated from the following files: