synfig-studio
1.0.3
|
#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, Mode > | signal_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< Instance > | get_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 |
CanvasInterface::~CanvasInterface | ( | ) |
|
inline |
|
inline |
|
inline |
Signal called when layer is raised.
|
inline |
Signal called when layer is lowered.
|
inline |
Signal called when layer has been inserted at a given position.
|
inline |
Signal called when a layer has been removed from the canvas.
|
inline |
Signal called when the layer's active status has changed.
|
inline |
Signal called when the layer's "exclude from rendering" flag has changed.
|
inline |
Signal called when the layer's zdepth range has changed. This layer has to be Layer_PasteCanvas.
|
inline |
Signal called when a canvas has been added.
|
inline |
Signal called when a canvas has been removed.
|
inline |
Signal called when a layer's parameter has been changed.
|
inline |
Signal called when the canvas's preview needs to be updated.
References get_canvas().
|
inline |
References get_canvas().
|
inline |
References get_canvas().
|
inline |
Signal called when a ValueNode has changed.
|
inline |
Signal called when a ValueNode has been deleted.
|
inline |
Signal called when a ValueNode has been changed.
References get_canvas().
|
inline |
Signal called when a ValueNode has been renamed.
References get_canvas().
|
inline |
Signal called when the mode has changed.
|
inline |
Signal called when a the ID has been changed.
|
inline |
Signal called whenever the time changes.
|
inline |
Signal called whenever a data node has been replaced.
Second ValueNode replaces first
|
inline |
Signal called whenever the RendDesc changes.
|
inline |
Signal called when a keyframe is added.
|
inline |
Signal called when a keyframe is removed.
|
inline |
Signal called when a keyframe is changed.
|
inline |
Signal called when a keyframe is selected.
Second parameter (void*) hold 'this*' of the signal emiter class (to prevent endless loop)
|
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 | ||
) |
References synfigapp::Action::create().
void CanvasInterface::erase_meta_data | ( | const synfig::String & | key | ) |
References synfigapp::Action::create().
|
inline |
Changes the current SelectionManager object.
|
inline |
Disables the selection manager.
|
inline |
Returns a handle to the current SelectionManager.
|
inline |
Changes the current UIInterface object.
References ui_interface_.
|
inline |
Disables the UIInterface.
References ui_interface_.
|
inline |
Returns a handle to the current UIInterface.
References ui_interface_.
|
inline |
Returns the Canvas associated with this interface.
Referenced by get_description(), get_id(), get_name(), signal_dirty_preview(), signal_value_node_changed(), signal_value_node_child_added(), signal_value_node_child_removed(), and signal_value_node_renamed().
|
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().
|
inline |
Convenience function to retrieve the name of the canvas.
References get_canvas().
|
inline |
Convenience function to retrieve the description of the canvas.
References get_canvas().
|
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 | ( | ) |
void CanvasInterface::set_mode | ( | Mode | x | ) |
Sets the current editing 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.
void CanvasInterface::apply_layer_param_defaults | ( | synfig::Layer::Handle | layer | ) |
Applies initial param values for layer
.
canvas property of layer should be set before call
References synfigapp::Action::create(), synfigapp::Main::get_blend_method(), synfigapp::Main::get_bline_width(), synfigapp::Main::get_fill_color(), synfigapp::Main::get_gradient(), and synfigapp::Main::get_outline_color().
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 | ||
) |
References _, and synfigapp::Action::create().
Referenced by studio::Instance::make_param_menu().
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 | ) |
References synfigapp::Action::ParamList::add(), synfigapp::ValueDesc::get_layer(), synfigapp::ValueDesc::get_param_name(), synfigapp::ValueDesc::get_parent_value_node(), synfigapp::ValueDesc::get_value(), synfigapp::ValueDesc::get_value_node(), synfigapp::ValueDesc::get_value_type(), synfigapp::ValueDesc::is_const(), synfigapp::ValueDesc::is_value_node(), synfigapp::ValueDesc::parent_is_canvas(), synfigapp::ValueDesc::parent_is_layer(), and synfigapp::ValueDesc::parent_is_value_node().
Action::ParamList CanvasInterface::generate_param_list | ( | const std::list< synfigapp::ValueDesc > & | value_desc_list | ) |
References synfigapp::Action::ParamList::add().
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 | ||
) |
References synfigapp::ValueDesc::get_value_node().
void synfigapp::CanvasInterface::waypoint_duplicate | ( | synfig::ValueNode::Handle | value_node, |
synfig::Waypoint | waypoint | ||
) |
void CanvasInterface::waypoint_remove | ( | synfigapp::ValueDesc | value_desc, |
synfig::Waypoint | waypoint | ||
) |
References synfigapp::ValueDesc::get_value_node().
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().
|
static |
References _process_value_desc().
|
static |
|
friend |
|
friend |