summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/transformation.cpp
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2019-06-12 17:36:26 +0000
committerShlomi Fish <shlomif@shlomifish.org>2019-06-12 17:36:26 +0000
commit845d677a3bd7a39320e32b6c53fa70963a92ba87 (patch)
tree0ddee54aa21e0e3122388b3e57fbb5602debacfd /src/ui/dialog/transformation.cpp
parentRefactor: convert rotate_rel() to a method. (diff)
downloadinkscape-845d677a3bd7a39320e32b6c53fa70963a92ba87.tar.gz
inkscape-845d677a3bd7a39320e32b6c53fa70963a92ba87.zip
Refactoring: replace funcs with methods.
I hereby disclaim any implicit or explicit ownership of my changes in this changeset, and put them under a multiple licence consisting of your choice of one of more of: - The CC0 / Public Domain - https://creativecommons.org/choose/zero/ . - The MIT / Expat license - https://en.wikipedia.org/wiki/MIT_License - The default licence of your project - The https://en.wikipedia.org/wiki/GNU_Lesser_General_Public_License - version 2.1 or higher - The https://en.wikipedia.org/wiki/GNU_General_Public_License - version 2 or higher - Any licence in the 2018-Aug-27 popular licenses list of https://opensource.org/licenses - The https://en.wikipedia.org/wiki/Apache_License version 2.0 or later - The https://en.wikipedia.org/wiki/Artistic_License version 2.0 or later - The https://en.wikipedia.org/wiki/ISC_license - The https://opensource.org/licenses/BSD-2-Clause Crediting me will be nice, but not mandatory, and you can change the licence of the project without needing my permission.
Diffstat (limited to 'src/ui/dialog/transformation.cpp')
-rw-r--r--src/ui/dialog/transformation.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/dialog/transformation.cpp b/src/ui/dialog/transformation.cpp
index 2c0ffc869..82efa9de6 100644
--- a/src/ui/dialog/transformation.cpp
+++ b/src/ui/dialog/transformation.cpp
@@ -682,7 +682,7 @@ void Transformation::applyPageMove(Inkscape::Selection *selection)
it < sorted.end();
++it )
{
- sp_item_move_rel(it->item, Geom::Translate(move, 0));
+ it->item->move_rel(Geom::Translate(move, 0));
// move each next object by x relative to previous
move += x;
}
@@ -704,7 +704,7 @@ void Transformation::applyPageMove(Inkscape::Selection *selection)
it < sorted.end();
++it )
{
- sp_item_move_rel(it->item, Geom::Translate(0, move));
+ it->item->move_rel(Geom::Translate(0, move));
// move each next object by x relative to previous
move += y;
}
@@ -826,7 +826,7 @@ void Transformation::applyPageSkew(Inkscape::Selection *selection)
getDesktop()->getMessageStack()->flash(Inkscape::WARNING_MESSAGE, _("Transform matrix is singular, <b>not used</b>."));
return;
}
- sp_item_skew_rel (item, 0.01*skewX, 0.01*skewY);
+ item->skew_rel(0.01*skewX, 0.01*skewY);
} else if (_units_skew.isRadial()) { //deg or rad
double angleX = _scalar_skew_horizontal.getValue("rad");
double angleY = _scalar_skew_vertical.getValue("rad");
@@ -840,7 +840,7 @@ void Transformation::applyPageSkew(Inkscape::Selection *selection)
double skewX = tan(-angleX);
double skewY = tan(angleY);
skewY *= getDesktop()->yaxisdir();
- sp_item_skew_rel (item, skewX, skewY);
+ item->skew_rel(skewX, skewY);
} else { // absolute displacement
double skewX = _scalar_skew_horizontal.getValue("px");
double skewY = _scalar_skew_vertical.getValue("px");
@@ -853,7 +853,7 @@ void Transformation::applyPageSkew(Inkscape::Selection *selection)
getDesktop()->getMessageStack()->flash(Inkscape::WARNING_MESSAGE, _("Transform matrix is singular, <b>not used</b>."));
return;
}
- sp_item_skew_rel (item, skewX/height, skewY/width);
+ item->skew_rel(skewX/height, skewY/width);
}
}
}