summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-03-08 16:56:44 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-03-08 16:56:44 +0000
commit7e306ee20d7adc76d2c3a038434f22d51af3498a (patch)
tree57088551477b8efee68bdb0c9fcbd91717e5d0ba /src
parentallow use multiple lines, added new icon (diff)
parentFixed icons files to save circles without 'd' atribute pointed by su_v (diff)
downloadinkscape-7e306ee20d7adc76d2c3a038434f22d51af3498a.tar.gz
inkscape-7e306ee20d7adc76d2c3a038434f22d51af3498a.zip
fixing icons and update to trunk
(bzr r13973.1.4)
Diffstat (limited to 'src')
-rw-r--r--src/libcroco/cr-statement.c2
-rw-r--r--src/live_effects/lpe-knot.cpp2
-rw-r--r--src/live_effects/lpe-simplify.cpp29
-rw-r--r--src/live_effects/lpe-simplify.h1
-rw-r--r--src/live_effects/lpe-sketch.cpp2
5 files changed, 7 insertions, 29 deletions
diff --git a/src/libcroco/cr-statement.c b/src/libcroco/cr-statement.c
index fb8df867f..4666f26ec 100644
--- a/src/libcroco/cr-statement.c
+++ b/src/libcroco/cr-statement.c
@@ -2011,7 +2011,7 @@ cr_statement_ruleset_set_sel_list (CRStatement * a_this,
* cr_statement_ruleset_get_declarations:
*
*@a_this: the current instance of #CRStatement.
- *@a_decl_list: out parameter. A pointer to the the returned
+ *@a_decl_list: out parameter. A pointer to the returned
*list of declaration. Must not be NULL.
*
*Gets a pointer to the list of declaration contained
diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp
index 3876aa24b..820221abf 100644
--- a/src/live_effects/lpe-knot.cpp
+++ b/src/live_effects/lpe-knot.cpp
@@ -404,7 +404,7 @@ LPEKnot::doEffect_path (std::vector<Geom::Path> const &path_in)
for (unsigned comp=0; comp<path_in.size(); comp++){
//find the relevant path component in gpaths (required to allow groups!)
- //Q: do we always recieve the group members in the same order? can we rest on that?
+ //Q: do we always receive the group members in the same order? can we rest on that?
unsigned i0 = 0;
for (i0=0; i0<gpaths.size(); i0++){
if (path_in[comp]==gpaths[i0]) break;
diff --git a/src/live_effects/lpe-simplify.cpp b/src/live_effects/lpe-simplify.cpp
index 12bd9dc60..590ad92af 100644
--- a/src/live_effects/lpe-simplify.cpp
+++ b/src/live_effects/lpe-simplify.cpp
@@ -29,9 +29,7 @@ LPESimplify::LPESimplify(LivePathEffectObject *lpeobject)
: Effect(lpeobject),
steps(_("Steps:"),_("Change number of simplify steps "), "steps", &wr, this,1),
threshold(_("Roughly threshold:"), _("Roughly threshold:"), "threshold", &wr, this, 0.003),
- smooth_angles(_("Smooth angles:"), _("Max degree diference on handles to preform a smooth"), "smooth_angles", &wr, this, 20.),
- helper(_("Helper"), _("Show helper"), "helper", &wr, this, false,
- "", INKSCAPE_ICON("on"), INKSCAPE_ICON("off")),
+ smooth_angles(_("Smooth angles:"), _("Max degree difference on handles to preform a smooth"), "smooth_angles", &wr, this, 20.),
nodes(_("Helper nodes"), _("Show helper nodes"), "nodes", &wr, this, false,
"", INKSCAPE_ICON("on"), INKSCAPE_ICON("off")),
handles(_("Helper handles"), _("Show helper handles"), "handles", &wr, this, false,
@@ -45,7 +43,6 @@ LPESimplify::LPESimplify(LivePathEffectObject *lpeobject)
registerParameter(dynamic_cast<Parameter *>(&steps));
registerParameter(dynamic_cast<Parameter *>(&threshold));
registerParameter(dynamic_cast<Parameter *>(&smooth_angles));
- registerParameter(dynamic_cast<Parameter *>(&helper));
registerParameter(dynamic_cast<Parameter *>(&nodes));
registerParameter(dynamic_cast<Parameter *>(&handles));
registerParameter(dynamic_cast<Parameter *>(&simplifyindividualpaths));
@@ -72,7 +69,7 @@ LPESimplify::doBeforeEffect (SPLPEItem const* lpeitem)
bbox = SP_ITEM(lpeitem)->visualBounds();
SPLPEItem * item = const_cast<SPLPEItem*>(lpeitem);
radiusHelperNodes = 12.0;
- if(current_zoom != 0){
+ if(current_zoom != 0 && (nodes || handles)){
if(current_zoom < 0.5){
radiusHelperNodes *= current_zoom + 0.4;
} else if(current_zoom > 1) {
@@ -100,26 +97,13 @@ LPESimplify::newWidget()
vbox->set_homogeneous(false);
vbox->set_spacing(2);
std::vector<Parameter *>::iterator it = param_vector.begin();
- Gtk::HBox * buttonTop = Gtk::manage(new Gtk::HBox(true,0));
Gtk::HBox * buttons = Gtk::manage(new Gtk::HBox(true,0));
Gtk::HBox * buttonsBottom = Gtk::manage(new Gtk::HBox(true,0));
while (it != param_vector.end()) {
if ((*it)->widget_is_visible) {
Parameter * param = *it;
Gtk::Widget * widg = dynamic_cast<Gtk::Widget *>(param->param_newWidget());
- if (param->param_key == "helper")
- {
- Glib::ustring * tip = param->param_getTooltip();
- if (widg) {
- buttonTop->pack_start(*widg, true, true, 2);
- if (tip) {
- widg->set_tooltip_text(*tip);
- } else {
- widg->set_tooltip_text("");
- widg->set_has_tooltip(false);
- }
- }
- } else if (param->param_key == "simplifyindividualpaths" ||
+ if (param->param_key == "simplifyindividualpaths" ||
param->param_key == "simplifyJustCoalesce")
{
Glib::ustring * tip = param->param_getTooltip();
@@ -165,7 +149,6 @@ LPESimplify::newWidget()
++it;
}
- vbox->pack_start(*buttonTop,true, true, 2);
vbox->pack_start(*buttons,true, true, 2);
vbox->pack_start(*buttonsBottom,true, true, 2);
return dynamic_cast<Gtk::Widget *>(vbox);
@@ -201,10 +184,6 @@ LPESimplify::doEffect(SPCurve *curve) {
void
LPESimplify::generateHelperPathAndSmooth(Geom::PathVector &result)
{
- if(!handles && !nodes && smooth_angles == 0){
- return;
- }
-
if(steps < 1){
return;
}
@@ -336,7 +315,7 @@ LPESimplify::drawHandleLine(Geom::Point p,Geom::Point p2)
Geom::Path path;
path.start( p );
double diameter = radiusHelperNodes;
- if(helper && Geom::distance(p,p2) > (diameter * 0.35)){
+ if(handles && Geom::distance(p,p2) > (diameter * 0.35)){
Geom::Ray ray2(p, p2);
p2 = p2 - Geom::Point::polar(ray2.angle(),(diameter * 0.35));
}
diff --git a/src/live_effects/lpe-simplify.h b/src/live_effects/lpe-simplify.h
index 9721d15c4..15423915d 100644
--- a/src/live_effects/lpe-simplify.h
+++ b/src/live_effects/lpe-simplify.h
@@ -41,7 +41,6 @@ private:
ScalarParam steps;
ScalarParam threshold;
ScalarParam smooth_angles;
- ToggleButtonParam helper;
ToggleButtonParam nodes;
ToggleButtonParam handles;
ToggleButtonParam simplifyindividualpaths;
diff --git a/src/live_effects/lpe-sketch.cpp b/src/live_effects/lpe-sketch.cpp
index 8ad0e616f..551dbe16a 100644
--- a/src/live_effects/lpe-sketch.cpp
+++ b/src/live_effects/lpe-sketch.cpp
@@ -240,7 +240,7 @@ LPESketch::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_
for (unsigned i = 0; i<nbiter_approxstrokes; i++){
//Basic steps:
- //- Choose a rdm seg [s0,s1], find coresponding [t0,t1],
+ //- Choose a rdm seg [s0,s1], find corresponding [t0,t1],
//- Pick a rdm perturbation delta(s), collect 'piece(t)+delta(s(t))' over [t0,t1] into output.
// pick a point where to start the stroke (s0 = dist from start).