From b7af5417c3aae659009a9b3fd22034192d227e92 Mon Sep 17 00:00:00 2001 From: JazzyNico Date: Mon, 6 Sep 2010 20:55:37 +0200 Subject: [PATCH] Extensions. Consistency fix and UI improvements (Modify path submenu). --- share/extensions/addnodes.inx | 10 +-- share/extensions/edge3d.inx | 45 ++++++------- share/extensions/flatten.inx | 2 +- share/extensions/fractalize.inx | 8 +-- share/extensions/interp_att_g.inx | 102 ++++++++++++++++-------------- share/extensions/interp_att_g.py | 4 ++ share/extensions/radiusrand.inx | 44 +++++++------ share/extensions/radiusrand.py | 5 ++ share/extensions/straightseg.inx | 12 ++-- share/extensions/whirl.inx | 8 +-- 10 files changed, 127 insertions(+), 113 deletions(-) diff --git a/share/extensions/addnodes.inx b/share/extensions/addnodes.inx index f260f3df4..b61d0a92d 100644 --- a/share/extensions/addnodes.inx +++ b/share/extensions/addnodes.inx @@ -4,12 +4,12 @@ org.ekips.filter.addnodes addnodes.py inkex.py - - <_option value="bymax">By max. segment length - <_option value="bynum">By number of segments + + <_item value="bymax">By max. segment length + <_item value="bynum">By number of segments - 10.0 - 2 + 10.0 + 2 path diff --git a/share/extensions/edge3d.inx b/share/extensions/edge3d.inx index 9b287359f..bc5f073ed 100644 --- a/share/extensions/edge3d.inx +++ b/share/extensions/edge3d.inx @@ -1,30 +1,23 @@ - <_name>Edge 3D - org.greygreen.inkscape.effects.edge3d - edge3d.py - inkex.py - 45 - 2 - 0 - 10 - 5 - 2 - 2 - + <_name>Edge 3D + org.greygreen.inkscape.effects.edge3d + edge3d.py + inkex.py + 45 + 2 + 0 + 10 + 5 + 2 + 2 + path - - - - - + + + + + diff --git a/share/extensions/flatten.inx b/share/extensions/flatten.inx index 8167175d8..4c8298623 100644 --- a/share/extensions/flatten.inx +++ b/share/extensions/flatten.inx @@ -4,7 +4,7 @@ org.ekips.filter.flatten flatten.py inkex.py - 10.0 + 10.0 path diff --git a/share/extensions/fractalize.inx b/share/extensions/fractalize.inx index 189bb2afa..4893189e8 100755 --- a/share/extensions/fractalize.inx +++ b/share/extensions/fractalize.inx @@ -4,13 +4,13 @@ org.ekips.filter.fractalize fractalize.py inkex.py - 6 - 4.0 + 6 + 4.0 path - - + + + <_name>Interpolate Attribute in a group + org.inkscape.filter.interp-att-g + interp_att_g.py + inkex.py + + + + <_item value="width">Width + <_item value="height">Height + <_item value="scale">Scale + <_item value="trans-x">Translate X + <_item value="trans-y">Translate Y + <_item value="fill">Fill + <_item value="opacity">Opacity + <_item value="other">Other + + <_param name="other-info" type="description">If you select "Other", you must know the SVG attributes to identify here this "other". + + + <_item value="color">Color + <_item value="int">Integer Number + <_item value="float">Float Number + + + <_item value="tag">Tag + <_item value="style">Style + <_item value="transform">Transformation + + <_param name="sep" type="description">•••••••••••••••••••••••••••••••••••••••••••••••• + + + + <_item value="none">No Unit + <_item value="color">Color + px + pt + in + cm + mm + + + + <_param name="intro" type="description">This effect applies a value for any interpolatable attribute for all elements inside the selected group or for all elements in a multiple selection. + + + + all + + + + + diff --git a/share/extensions/interp_att_g.py b/share/extensions/interp_att_g.py index f23edaf36..9829de3e8 100755 --- a/share/extensions/interp_att_g.py +++ b/share/extensions/interp_att_g.py @@ -50,6 +50,10 @@ class InterpAttG(inkex.Effect): action="store", type="string", dest="unit", default="color", help="Values unit.") + self.OptionParser.add_option("--tab", + action="store", type="string", + dest="tab", + help="The selected UI-tab when OK was pressed") def getColorValues(self): sv = string.replace( self.options.start_val, '#', '' ) diff --git a/share/extensions/radiusrand.inx b/share/extensions/radiusrand.inx index 3349f4549..38e7d6c4c 100644 --- a/share/extensions/radiusrand.inx +++ b/share/extensions/radiusrand.inx @@ -1,22 +1,28 @@ - <_name>Jitter nodes - org.ekips.filter.radiusrand - radiusrand.py - inkex.py - <_param name="title" type="description">This effect randomly shifts the nodes (and optionally node handles) of the selected path. - 10.0 - 10.0 - true - false - true - - path - - - - - + <_name>Jitter nodes + org.ekips.filter.radiusrand + radiusrand.py + inkex.py + + + 10.0 + 10.0 + true + false + true + + + <_param name="title" type="description">This effect randomly shifts the nodes (and optionally node handles) of the selected path. + + + + path + + + + + diff --git a/share/extensions/radiusrand.py b/share/extensions/radiusrand.py index 15b816853..1a36d5cba 100755 --- a/share/extensions/radiusrand.py +++ b/share/extensions/radiusrand.py @@ -52,6 +52,11 @@ class RadiusRandomize(inkex.Effect): action="store", type="inkbool", dest="norm", default=True, help="Use normal distribution") + self.OptionParser.add_option("--tab", + action="store", type="string", + dest="tab", + help="The selected UI-tab when OK was pressed") + def effect(self): for id, node in self.selected.iteritems(): if node.tag == inkex.addNS('path','svg'): diff --git a/share/extensions/straightseg.inx b/share/extensions/straightseg.inx index 965b33086..45014c879 100644 --- a/share/extensions/straightseg.inx +++ b/share/extensions/straightseg.inx @@ -4,13 +4,13 @@ org.ekips.filter.straightseg straightseg.py inkex.py - 50.0 - 1 + 50.0 + 1 - path - - - + path + + +