summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-measure-line.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-07-21 19:05:55 +0000
committerjabiertxof <info@marker.es>2016-07-21 19:05:55 +0000
commite7afb49bd67284227bf5df1df22f9993b1bfa581 (patch)
tree5ee0f0a2edaa66685ffa97d1150978317b360f39 /src/live_effects/lpe-measure-line.cpp
parentDisambiguate sigc::ptr_fun to fix C++14 compilation. (diff)
downloadinkscape-e7afb49bd67284227bf5df1df22f9993b1bfa581.tar.gz
inkscape-e7afb49bd67284227bf5df1df22f9993b1bfa581.zip
This for you CR ยท Measure line, show the distance on rect lines CAD like with auto update
(bzr r15017.1.1)
Diffstat (limited to 'src/live_effects/lpe-measure-line.cpp')
-rw-r--r--src/live_effects/lpe-measure-line.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/live_effects/lpe-measure-line.cpp b/src/live_effects/lpe-measure-line.cpp
new file mode 100644
index 000000000..d6fe02afd
--- /dev/null
+++ b/src/live_effects/lpe-measure-line.cpp
@@ -0,0 +1,45 @@
+/*
+ * Author(s):
+ * Jabiertxo Arraiza Cenoz <jabier.arraiza@marker.es>
+ *
+ * Copyright (C) 2014 Author(s)
+
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+#include "live_effects/lpe-measure-line.h"
+
+// TODO due to internal breakage in glibmm headers, this must be last:
+#include <glibmm/i18n.h>
+
+using namespace Geom;
+namespace Inkscape {
+namespace LivePathEffect {
+
+LPEMeasureLine::LPEMeasureLine(LivePathEffectObject *lpeobject) :
+ Effect(lpeobject),
+ text(_("text:"), _("text"), "text", &wr, this, "This is a labelXXX")
+{
+ registerParameter(&text);
+}
+
+LPEMeasureLine::~LPEMeasureLine() {}
+
+Geom::PathVector
+LPEMeasureLine::doEffect_path(Geom::PathVector const &path_in)
+{
+ return path_in;
+}
+
+}; //namespace LivePathEffect
+}; /* namespace Inkscape */
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offset:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :