Code

Mnemonics in "Input devices", and LPE dialogs (Bug 170765)
[inkscape.git] / src / live_effects / lpe-constructgrid.cpp
index 144f4720d92d7d7970ee51967712f951f86b02e9..cb9c031aa79e06d44ef6fc3ec30aaff0be0696b9 100644 (file)
@@ -16,8 +16,6 @@
 #include <2geom/path.h>
 #include <2geom/transforms.h>
 
-#include "nodepath.h"
-
 namespace Inkscape {
 namespace LivePathEffect {
 
@@ -25,16 +23,16 @@ using namespace Geom;
 
 LPEConstructGrid::LPEConstructGrid(LivePathEffectObject *lpeobject) :
     Effect(lpeobject),
-    nr_x(_("Size X"), _("The size of the grid in X direction."), "nr_x", &wr, this, 5),
-    nr_y(_("Size Y"), _("The size of the grid in Y direction."), "nr_y", &wr, this, 5)
+    nr_x(_("Size _X:"), _("The size of the grid in X direction."), "nr_x", &wr, this, 5),
+    nr_y(_("Size _Y:"), _("The size of the grid in Y direction."), "nr_y", &wr, this, 5)
 {
     registerParameter( dynamic_cast<Parameter *>(&nr_x) );
     registerParameter( dynamic_cast<Parameter *>(&nr_y) );
 
     nr_x.param_make_integer();
     nr_y.param_make_integer();
-    nr_x.param_set_range(1, NR_HUGE);
-    nr_y.param_set_range(1, NR_HUGE);
+    nr_x.param_set_range(1, 1e10);
+    nr_y.param_set_range(1, 1e10);
 }
 
 LPEConstructGrid::~LPEConstructGrid()
@@ -81,13 +79,6 @@ LPEConstructGrid::doEffect_path (std::vector<Geom::Path> const & path_in)
     }
 }
 
-void
-LPEConstructGrid::setup_nodepath(Inkscape::NodePath::Path *np)
-{
-    Effect::setup_nodepath(np);
-    sp_nodepath_make_straight_path(np);
-}
-
 } //namespace LivePathEffect
 } /* namespace Inkscape */