summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-01-07 18:08:18 +0000
committerJabiertxof <jtx@jtx>2017-01-07 18:08:18 +0000
commit949e58535cd5189f1b140a1b3968d40c17d5515f (patch)
tree6ec8c875f1cae3937a71054e05779ca9635a6dc7 /src
parentFix sk.po (diff)
downloadinkscape-949e58535cd5189f1b140a1b3968d40c17d5515f.tar.gz
inkscape-949e58535cd5189f1b140a1b3968d40c17d5515f.zip
Some naming fix and headers
(bzr r15295.1.57)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-mirror_symmetry.cpp13
-rw-r--r--src/live_effects/lpe-mirror_symmetry.h3
2 files changed, 6 insertions, 10 deletions
diff --git a/src/live_effects/lpe-mirror_symmetry.cpp b/src/live_effects/lpe-mirror_symmetry.cpp
index 1fd007de3..e51812a38 100644
--- a/src/live_effects/lpe-mirror_symmetry.cpp
+++ b/src/live_effects/lpe-mirror_symmetry.cpp
@@ -28,10 +28,7 @@
#include "2geom/affine.h"
#include "helper/geom.h"
#include "sp-lpe-item.h"
-#include "uri.h"
-#include "uri-references.h"
#include "path-chemistry.h"
-#include "knotholder.h"
#include "style.h"
#include "xml/sp-css-attr.h"
@@ -58,7 +55,7 @@ LPEMirrorSymmetry::LPEMirrorSymmetry(LivePathEffectObject *lpeobject) :
discard_orig_path(_("Discard original path"), _("Check this to only keep the mirrored part of the path"), "discard_orig_path", &wr, this, false),
fuse_paths(_("Fuse paths"), _("Fuse original and the reflection into a single path"), "fuse_paths", &wr, this, false),
oposite_fuse(_("Opposite fuse"), _("Picks the other side of the mirror as the original"), "oposite_fuse", &wr, this, false),
- split_elements(_("Split elements"), _("Split elements, this allow gradients and other paints. Whith fuse don't work on shapes"), "split_elements", &wr, this, false),
+ split_items(_("Split elements"), _("Split elements, this allow gradients and other paints."), "split_items", &wr, this, false),
start_point(_("Start mirror line"), _("Start mirror line"), "start_point", &wr, this, _("Adjust start of mirroring")),
end_point(_("End mirror line"), _("End mirror line"), "end_point", &wr, this, _("Adjust end of mirroring")),
center_point(_("Center mirror line"), _("Center mirror line"), "center_point", &wr, this, _("Adjust center of mirroring")),
@@ -70,7 +67,7 @@ LPEMirrorSymmetry::LPEMirrorSymmetry(LivePathEffectObject *lpeobject) :
registerParameter(&discard_orig_path);
registerParameter(&fuse_paths);
registerParameter(&oposite_fuse);
- registerParameter(&split_elements);
+ registerParameter(&split_items);
registerParameter(&start_point);
registerParameter(&end_point);
registerParameter(&center_point);
@@ -90,7 +87,7 @@ LPEMirrorSymmetry::~LPEMirrorSymmetry()
void
LPEMirrorSymmetry::doAfterEffect (SPLPEItem const* lpeitem)
{
- if (split_elements && !discard_orig_path) {
+ if (split_items && !discard_orig_path) {
container = dynamic_cast<SPObject *>(sp_lpe_item->parent);
SPDocument * doc = SP_ACTIVE_DOCUMENT;
Inkscape::XML::Node *root = sp_lpe_item->document->getReprRoot();
@@ -440,7 +437,7 @@ LPEMirrorSymmetry::doOnApply (SPLPEItem const* lpeitem)
Geom::PathVector
LPEMirrorSymmetry::doEffect_path (Geom::PathVector const & path_in)
{
- if (split_elements && !fuse_paths) {
+ if (split_items && !fuse_paths) {
return path_in;
}
Geom::PathVector const original_pathv = pathv_to_linear_and_cubic_beziers(path_in);
@@ -452,7 +449,7 @@ LPEMirrorSymmetry::doEffect_path (Geom::PathVector const & path_in)
Geom::Line line_separation((Geom::Point)start_point, (Geom::Point)end_point);
Geom::Affine m = Geom::reflection (line_separation.vector(), (Geom::Point)start_point);
- if (split_elements && fuse_paths) {
+ if (split_items && fuse_paths) {
Geom::OptRect bbox = sp_lpe_item->geometricBounds();
Geom::Path p(Geom::Point(bbox->left(), bbox->top()));
p.appendNew<Geom::LineSegment>(Geom::Point(bbox->right(), bbox->top()));
diff --git a/src/live_effects/lpe-mirror_symmetry.h b/src/live_effects/lpe-mirror_symmetry.h
index c39cf3e04..2122a41e4 100644
--- a/src/live_effects/lpe-mirror_symmetry.h
+++ b/src/live_effects/lpe-mirror_symmetry.h
@@ -20,7 +20,6 @@
#include "live_effects/parameter/parameter.h"
#include "live_effects/parameter/text.h"
#include "live_effects/parameter/point.h"
-#include "live_effects/parameter/path.h"
#include "live_effects/parameter/enum.h"
#include "live_effects/lpegroupbbox.h"
@@ -62,7 +61,7 @@ private:
BoolParam discard_orig_path;
BoolParam fuse_paths;
BoolParam oposite_fuse;
- BoolParam split_elements;
+ BoolParam split_items;
PointParam start_point;
PointParam end_point;
PointParam center_point;