From: JazzyNico Date: Thu, 9 Sep 2010 18:59:23 +0000 (+0200) Subject: Extensions. Consistency fix and UI improvements (Text, Path and Web submenus). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6b464dfa85f56bbe7e0ff053bcb709fe346a5e2c;p=inkscape.git Extensions. Consistency fix and UI improvements (Text, Path and Web submenus). --- diff --git a/po/fr.po b/po/fr.po index 28bad2f81..eaefb26a7 100644 --- a/po/fr.po +++ b/po/fr.po @@ -3558,7 +3558,7 @@ msgstr "Unité de hauteur :" #: ../share/extensions/webslicer_create_group.inx.h:5 msgid "Layout Group is only about to help a better code generation (if you need it). To use this, you must to select some \"Slicer rectangles\" first." -msgstr "Le but du groupe de composants est d’aider à générer un meilleur code (si nécessaire). Pour l’utiliser, vous devez d’abord sélectionner des « Rectangles de découpe »." +msgstr "Le but du groupe de composants est d’aider à générer un meilleur code (si nécessaire). Pour l’utiliser, vous devez d’abord sélectionner des « Rectangles de découpe »." #: ../share/extensions/webslicer_create_group.inx.h:6 msgid "Percent (relative to parent size)" diff --git a/share/extensions/dimension.inx b/share/extensions/dimension.inx index cce244d4a..343ad27bf 100644 --- a/share/extensions/dimension.inx +++ b/share/extensions/dimension.inx @@ -5,11 +5,11 @@ dimension.py inkex.py pathmodifier.py - 50 - 50 - - <_option value="geometric">Geometric - <_option value="visual">Visual + 50 + 50 + + <_item value="geometric">Geometric + <_item value="visual">Visual path diff --git a/share/extensions/lorem_ipsum.inx b/share/extensions/lorem_ipsum.inx index b36ff079e..2833af16c 100644 --- a/share/extensions/lorem_ipsum.inx +++ b/share/extensions/lorem_ipsum.inx @@ -4,10 +4,16 @@ com.kaioa.lorem_ipsum lorem_ipsum.py inkex.py - <_param name="title" type="description">This effect creates the standard "Lorem Ipsum" pseudolatin placeholder text. If a flowed text is selected, Lorem Ipsum is added to it; otherwise a new flowed text object, the size of the page, is created in a new layer. - 5 - 16 - 4 + + + 5 + 16 + 4 + + + <_param name="title" type="description">This effect creates the standard "Lorem Ipsum" pseudolatin placeholder text. If a flowed text is selected, Lorem Ipsum is added to it; otherwise a new flowed text object, the size of the page, is created in a new layer. + + all diff --git a/share/extensions/lorem_ipsum.py b/share/extensions/lorem_ipsum.py index 52d1bb190..20a2fdd18 100644 --- a/share/extensions/lorem_ipsum.py +++ b/share/extensions/lorem_ipsum.py @@ -189,6 +189,11 @@ class MyEffect(inkex.Effect): action="store", type="int", dest="fluctuation", default=4, help="+/-") + self.OptionParser.add_option("--tab", + action="store", type="string", + dest="tab", + help="The selected UI-tab when OK was pressed") + self.first_sentence = 1 def makePara(self): diff --git a/share/extensions/measure.inx b/share/extensions/measure.inx index af325a00e..264e33ab6 100644 --- a/share/extensions/measure.inx +++ b/share/extensions/measure.inx @@ -10,13 +10,13 @@ <_item value="length">Length <_item value="area">Area - 12 - -6 - 2 + 12 + -6 + 2 1 - + px pt in diff --git a/share/extensions/split.inx b/share/extensions/split.inx index ced0cf495..63e0fd6ca 100644 --- a/share/extensions/split.inx +++ b/share/extensions/split.inx @@ -4,13 +4,19 @@ com.nerdson.split split.py inkex.py - <_param name="texthelp" type="description">This effect splits texts into different lines, words or letters. Select below how your text should be splitted. - - <_item value="line">Lines - <_item value="word">Words - <_item value="letter">Letters - - true + + + + <_item value="line">Lines + <_item value="word">Words + <_item value="letter">Letters + + true + + + <_param name="texthelp" type="description">This effect splits texts into different lines, words or letters. + + text diff --git a/share/extensions/split.py b/share/extensions/split.py index 5e9de002b..0cbc7b05b 100644 --- a/share/extensions/split.py +++ b/share/extensions/split.py @@ -30,7 +30,10 @@ class Split(inkex.Effect): action="store", type="inkbool", dest="preserve", default="True", help="Preserve original") - + self.OptionParser.add_option("--tab", + action="store", type="string", + dest="tab", + help="The selected UI-tab when OK was pressed") def split_lines(self, node): """Returns a list of lines""" diff --git a/share/extensions/web-set-att.inx b/share/extensions/web-set-att.inx index 5bb14d285..65b35bada 100644 --- a/share/extensions/web-set-att.inx +++ b/share/extensions/web-set-att.inx @@ -1,48 +1,52 @@ - <_name>Set Attributes - org.inkscape.web.set-att - web-set-att.py - inkex.py - <_param name="intro" type="description">This effect adds a feature visible (or usable) only on a SVG enabled web browser (like Firefox). - <_param name="sep1" type="description">•••••••••••••••••••••••••••••••••••••••••••••••• - <_param name="help" type="description">This effect sets one or more attributes in the second selected element, when a defined event occurs on the first selected element. - <_param name="sep2" type="description">•••••••••••••••••••••••••••••••••••••••••••••••• - <_param name="help" type="description">If you want to set more than one attribute, you must separate this with a space, and only with a space. - fill stroke stroke-width - - <_item value="onclick">on click - <_item value="onfocusin">on focus - <_item value="onfocusout">on blur - <_item value="onactivate">on activate - <_item value="onmousedown">on mouse down - <_item value="onmouseup">on mouse up - <_item value="onmouseover">on mouse over - <_item value="onmousemove">on mouse move - <_item value="onmouseout">on mouse out - <_item value="onload">on element loaded - - <_param name="help" type="description">The list of values must have the same size as the attributes list. - red black 5px - - <_item value="append">Run it after - <_item value="prepend">Run it before - <_item value="replace">Replace - - <_param name="help" type="description">The next parameter is useful when you select more than two elements - - <_item value="g-to-one">All selected ones set an attribute in the last one - <_item value="one-to-g">The first selected sets an attribute in all others - - + <_name>Set Attributes + org.inkscape.web.set-att + web-set-att.py + inkex.py + + + fill stroke stroke-width + + <_item value="onclick">on click + <_item value="onfocusin">on focus + <_item value="onfocusout">on blur + <_item value="onactivate">on activate + <_item value="onmousedown">on mouse down + <_item value="onmouseup">on mouse up + <_item value="onmouseover">on mouse over + <_item value="onmousemove">on mouse move + <_item value="onmouseout">on mouse out + <_item value="onload">on element loaded + + <_param name="help" type="description">The list of values must have the same size as the attributes list. + red black 5px + + <_item value="append">Run it after + <_item value="prepend">Run it before + <_item value="replace">Replace + + <_param name="help" type="description">The next parameter is useful when you select more than two elements + + <_item value="g-to-one">All selected ones set an attribute in the last one + <_item value="one-to-g">The first selected sets an attribute in all others + + + + <_param name="intro" type="description">This effect adds a feature visible (or usable) only on a SVG enabled web browser (like Firefox). + <_param name="desc1" type="description">This effect sets one or more attributes in the second selected element, when a defined event occurs on the first selected element. + <_param name="desc2" type="description">If you want to set more than one attribute, you must separate this with a space, and only with a space. + + + all - - - - - - - + + + + + + + diff --git a/share/extensions/web-set-att.py b/share/extensions/web-set-att.py index 7878cd208..65dd5a5b4 100755 --- a/share/extensions/web-set-att.py +++ b/share/extensions/web-set-att.py @@ -44,6 +44,10 @@ class InkWebTransmitAtt(inkwebeffect.InkWebEffect): action="store", type="string", dest="from_and_to", default="g-to-one", help='Who transmit to Who? "g-to-one" All set the last. "one-to-g" The first set all.') + self.OptionParser.add_option("--tab", + action="store", type="string", + dest="tab", + help="The selected UI-tab when OK was pressed") def effect(self): self.ensureInkWebSupport() diff --git a/share/extensions/web-transmit-att.inx b/share/extensions/web-transmit-att.inx index caf284b93..343f65f61 100644 --- a/share/extensions/web-transmit-att.inx +++ b/share/extensions/web-transmit-att.inx @@ -4,43 +4,47 @@ org.inkscape.web.transmit-att web-transmit-att.py inkex.py - <_param name="intro" type="description">This effect adds a feature visible (or usable) only on a SVG enabled web browser (like Firefox). - <_param name="sep1" type="description">•••••••••••••••••••••••••••••••••••••••••••••••• - <_param name="help" type="description">This effect transmits one or more attributes from the first selected element to the second when an event occurs. - <_param name="sep2" type="description">•••••••••••••••••••••••••••••••••••••••••••••••• - <_param name="help" type="description">If you want to transmit more than one attribute, you should separate this with a space, and only with a space. - fill - - <_item value="onclick">on click - <_item value="onfocusin">on focus - <_item value="onfocusout">on blur - <_item value="onactivate">on activate - <_item value="onmousedown">on mouse down - <_item value="onmouseup">on mouse up - <_item value="onmouseover">on mouse over - <_item value="onmousemove">on mouse move - <_item value="onmouseout">on mouse out - <_item value="onload">on element loaded - - - <_item value="append">Run it after - <_item value="prepend">Run it before - <_item value="replace">Replace - - <_param name="help" type="description">The next parameter is useful when you select more than two elements - - <_item value="g-to-one">All selected ones transmit to the last one - <_item value="one-to-g">The first selected transmits to all others - - - all - - - - - - - + + + fill + + <_item value="onclick">on click + <_item value="onfocusin">on focus + <_item value="onfocusout">on blur + <_item value="onactivate">on activate + <_item value="onmousedown">on mouse down + <_item value="onmouseup">on mouse up + <_item value="onmouseover">on mouse over + <_item value="onmousemove">on mouse move + <_item value="onmouseout">on mouse out + <_item value="onload">on element loaded + + + <_item value="append">Run it after + <_item value="prepend">Run it before + <_item value="replace">Replace + + <_param name="help" type="description">The next parameter is useful when you select more than two elements + + <_item value="g-to-one">All selected ones transmit to the last one + <_item value="one-to-g">The first selected transmits to all others + + + + <_param name="intro" type="description">This effect adds a feature visible (or usable) only on a SVG enabled web browser (like Firefox). + <_param name="desc1" type="description">This effect transmits one or more attributes from the first selected element to the second when an event occurs. + <_param name="desc2" type="description">If you want to transmit more than one attribute, you should separate this with a space, and only with a space. + + + + all + + + + + + + diff --git a/share/extensions/web-transmit-att.py b/share/extensions/web-transmit-att.py index c597a41f0..35f16e145 100644 --- a/share/extensions/web-transmit-att.py +++ b/share/extensions/web-transmit-att.py @@ -40,6 +40,10 @@ class InkWebTransmitAtt(inkwebeffect.InkWebEffect): action="store", type="string", dest="from_and_to", default="g-to-one", help='Who transmit to Who? "g-to-one" All tramsmit to the last. "one-to-g" The first transmit to all.') + self.OptionParser.add_option("--tab", + action="store", type="string", + dest="tab", + help="The selected UI-tab when OK was pressed") def effect(self): self.ensureInkWebSupport() diff --git a/share/extensions/webslicer_create_group.inx b/share/extensions/webslicer_create_group.inx index 2238a0901..aaa327ea7 100644 --- a/share/extensions/webslicer_create_group.inx +++ b/share/extensions/webslicer_create_group.inx @@ -1,33 +1,39 @@ - <_name>Set a layout group - org.inkscape.web.slicer.create-group - webslicer_effect.py - webslicer_create_group.py - inkex.py - <_param name="about" type="description">Layout Group is only about to help a better code generation (if you need it). To use this, you must to select some "Slicer rectangles" first. - - - - <_item value="px">Pixel (fixed) - <_item value="percent">Percent (relative to parent size) - <_item value="undefined">Undefined (relative to non-floating content size) - - - <_item value="px">Pixel (fixed) - <_item value="percent">Percent (relative to parent size) - <_item value="undefined">Undefined (relative to non-floating content size) - - - - all - - - - - - - + <_name>Set a layout group + org.inkscape.web.slicer.create-group + webslicer_effect.py + webslicer_create_group.py + inkex.py + + + + + + <_item value="px">Pixel (fixed) + <_item value="percent">Percent (relative to parent size) + <_item value="undefined">Undefined (relative to non-floating content size) + + + <_item value="px">Pixel (fixed) + <_item value="percent">Percent (relative to parent size) + <_item value="undefined">Undefined (relative to non-floating content size) + + + + + <_param name="about" type="description">Layout Group is only about to help a better code generation (if you need it). To use this, you must to select some "Slicer rectangles" first. + + + + all + + + + + + + diff --git a/share/extensions/webslicer_create_group.py b/share/extensions/webslicer_create_group.py index c6f9e653e..c2de0594b 100644 --- a/share/extensions/webslicer_create_group.py +++ b/share/extensions/webslicer_create_group.py @@ -28,26 +28,29 @@ class WebSlicer_CreateGroup(WebSlicer_Effect): def __init__(self): WebSlicer_Effect.__init__(self) self.OptionParser.add_option("--html-id", - action="store", type="string", - dest="html_id", - help="") + action="store", type="string", + dest="html_id", + help="") self.OptionParser.add_option("--html-class", - action="store", type="string", - dest="html_class", - help="") + action="store", type="string", + dest="html_class", + help="") self.OptionParser.add_option("--width-unity", - action="store", type="string", - dest="width_unity", - help="") + action="store", type="string", + dest="width_unity", + help="") self.OptionParser.add_option("--height-unity", - action="store", type="string", - dest="height_unity", - help="") + action="store", type="string", + dest="height_unity", + help="") self.OptionParser.add_option("--bg-color", - action="store", type="string", - dest="bg_color", - help="") - + action="store", type="string", + dest="bg_color", + help="") + self.OptionParser.add_option("--tab", + action="store", type="string", + dest="tab", + help="The selected UI-tab when OK was pressed") def get_base_elements(self): self.layer = self.get_slicer_layer() diff --git a/share/extensions/webslicer_export.inx b/share/extensions/webslicer_export.inx index 3a7324370..f82e42f33 100644 --- a/share/extensions/webslicer_export.inx +++ b/share/extensions/webslicer_export.inx @@ -1,23 +1,29 @@ - <_name>Export layout pieces and HTML+CSS code - org.inkscape.web.slicer.export - webslicer_effect.py - webslicer_export.py - inkex.py - <_param name="about" type="description">All sliced images, and optionaly code, will be generated as you had configured and saved to one directory. - - false - true - + <_name>Export layout pieces and HTML+CSS code + org.inkscape.web.slicer.export + webslicer_effect.py + webslicer_export.py + inkex.py + + + + false + true + + + <_param name="about" type="description">All sliced images, and optionaly code, will be generated as you had configured and saved to one directory. + + + all - - - + + + - - + +