summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-18 00:39:23 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-18 00:39:23 +0000
commit20d3483a8de3268751045e61c6bc04a50506761c (patch)
tree07f73a4c0ad64abb6eaa550c088b4ebe8fda9484 /src/shape-editor.cpp
parentUse the visible curve (instead of original curve when a LPE is applied) for t... (diff)
downloadinkscape-20d3483a8de3268751045e61c6bc04a50506761c.tar.gz
inkscape-20d3483a8de3268751045e61c6bc04a50506761c.zip
Many debugging messages
(bzr r6661)
Diffstat (limited to 'src/shape-editor.cpp')
-rw-r--r--src/shape-editor.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/shape-editor.cpp b/src/shape-editor.cpp
index b26b117ca..a7dc872b6 100644
--- a/src/shape-editor.cpp
+++ b/src/shape-editor.cpp
@@ -62,6 +62,7 @@ ShapeEditor::~ShapeEditor() {
}
void ShapeEditor::unset_item(SubType type, bool keep_knotholder) {
+ g_print ("ShapeEditor::unset_item()\n");
Inkscape::XML::Node *old_repr = NULL;
switch (type) {
@@ -172,6 +173,7 @@ static void shapeeditor_event_attr_changed(Inkscape::XML::Node */*repr*/, gchar
gchar const */*old_value*/, gchar const */*new_value*/,
bool /*is_interactive*/, gpointer data)
{
+ g_print ("shapeeditor_event_attr_changed()\n");
gboolean changed_np = FALSE;
gboolean changed_kh = FALSE;
@@ -224,6 +226,7 @@ static Inkscape::XML::NodeEventVector shapeeditor_repr_events = {
void ShapeEditor::set_item(SPItem *item, SubType type, bool keep_knotholder) {
+ g_print ("ShapeEditor::set_item()\n");
// this happens (and should only happen) when for an LPEItem having both knotholder and nodepath the knotholder
// is adapted; in this case we don't want to delete the knotholder since this freezes the handles
unset_item(type, keep_knotholder);
@@ -269,6 +272,7 @@ void ShapeEditor::set_item(SPItem *item, SubType type, bool keep_knotholder) {
*/
void ShapeEditor::set_item_lpe_path_parameter(SPItem *item, SPObject *lpeobject, const char * key)
{
+ g_print ("ShapeEditor::set_item_lpe_path_parameter()\n");
unset_item(SH_NODEPATH);
this->grab_node = -1;
@@ -310,6 +314,7 @@ ShapeEditor::set_knotholder(KnotHolder * knot_holder)
Why not make a reload function in NodePath and in KnotHolder? */
void ShapeEditor::reset_item (SubType type, bool keep_knotholder)
{
+ g_print ("ShapeEditor::reset_item()\n");
switch (type) {
case SH_NODEPATH:
if ( (this->nodepath) && (IS_LIVEPATHEFFECT(this->nodepath->object)) ) {
@@ -342,7 +347,7 @@ void ShapeEditor::update_statusbar () {
}
bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) {
-
+ g_print ("ShapeEditor::is_over_stroke ()");
if (!this->nodepath)
return false; // no stroke in knotholder
@@ -354,8 +359,10 @@ bool ShapeEditor::is_over_stroke (NR::Point event_p, bool remember) {
SPCurve *curve;
if (SP_IS_SHAPE(item)) {
+ g_print ("; getting curve from shape\n");
curve = sp_shape_get_curve(SP_SHAPE(item));
} else {
+ g_print ("; getting curve from nodepath's curve\n");
this->nodepath->curve; // not sure if np->curve is always up to date...
}
Geom::PathVector const &pathv = curve->get_pathvector();