projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 1829182: "Right click context menu not always appears".
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
synfigapp
/
canvasinterface.h
diff --git
a/synfig-studio/trunk/src/synfigapp/canvasinterface.h
b/synfig-studio/trunk/src/synfigapp/canvasinterface.h
index
a088852
..
5bb3ec0
100644
(file)
--- a/
synfig-studio/trunk/src/synfigapp/canvasinterface.h
+++ b/
synfig-studio/trunk/src/synfigapp/canvasinterface.h
@@
-6,6
+6,7
@@
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+** Copyright (c) 2007, 2008 Chris Moore
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
**
** This package is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License as
@@
-210,13
+211,13
@@
public:
etl::loose_handle<Instance> get_instance()const { return instance_; }
//! Changes the name of the canvas. Undoable.
etl::loose_handle<Instance> get_instance()const { return instance_; }
//! Changes the name of the canvas. Undoable.
-
bool
set_name(const synfig::String &x);
+
void
set_name(const synfig::String &x);
//! Changes the description of the canvas. Undoable.
//! Changes the description of the canvas. Undoable.
-
bool
set_description(const synfig::String &x);
+
void
set_description(const synfig::String &x);
//! Changes the ID of the canvas. Undoable.
//! Changes the ID of the canvas. Undoable.
-
bool
set_id(const synfig::String &x);
+
void
set_id(const synfig::String &x);
//! Convenience function to retrieve the name of the canvas
synfig::String get_name()const { return get_canvas()->get_name(); }
//! Convenience function to retrieve the name of the canvas
synfig::String get_name()const { return get_canvas()->get_name(); }
@@
-255,7
+256,7
@@
public:
Mode get_mode()const;
//! Creates a new layer, of type \c id at the top of the layer stack
Mode get_mode()const;
//! Creates a new layer, of type \c id at the top of the layer stack
- synfig::Layer::Handle add_layer(synfig::String id) { return add_layer_to(id,get_canvas()); }
+
//
synfig::Layer::Handle add_layer(synfig::String id) { return add_layer_to(id,get_canvas()); }
synfig::Layer::Handle add_layer_to(synfig::String id,synfig::Canvas::Handle canvas, int depth=0);
synfig::Layer::Handle add_layer_to(synfig::String id,synfig::Canvas::Handle canvas, int depth=0);
@@
-270,12
+271,14
@@
public:
void set_rend_desc(const synfig::RendDesc &rend_desc);
void set_rend_desc(const synfig::RendDesc &rend_desc);
- bool import(const synfig::String &filename,
bool copy
=false);
+ 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(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(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 change_value(synfigapp::ValueDesc value_desc,synfig::ValueBase new_value);