added new options to migrategroups extension
This commit is contained in:
parent
0da493ace9
commit
89f19a339e
@ -39,19 +39,28 @@
|
|||||||
<separator/>
|
<separator/>
|
||||||
<vbox>
|
<vbox>
|
||||||
<label appearance="header">Objects / Misc</label>
|
<label appearance="header">Objects / Misc</label>
|
||||||
|
<hbox>
|
||||||
|
<vbox>
|
||||||
<!--<param name="svg" type="bool" gui-text="svg">true</param>-->
|
<!--<param name="svg" type="bool" gui-text="svg">true</param>-->
|
||||||
<!--<param name="sodipodi" type="bool" gui-text="sodipodi">true</param>-->
|
<!--<param name="sodipodi" type="bool" gui-text="sodipodi">true</param>-->
|
||||||
<param name="clipPath" type="bool" gui-text="clipPath">true</param>
|
<param name="clipPath" type="bool" gui-text="clipPath">true</param>
|
||||||
<param name="defs" type="bool" gui-text="defs">true</param>
|
<param name="defs" type="bool" gui-text="defs">true</param>
|
||||||
<param name="image" type="bool" gui-text="image">true</param>
|
<param name="image" type="bool" gui-text="image">true</param>
|
||||||
|
<param name="mask" type="bool" gui-text="mask">true</param>
|
||||||
<param name="marker" type="bool" gui-text="marker">true</param>
|
<param name="marker" type="bool" gui-text="marker">true</param>
|
||||||
<param name="metadata" type="bool" gui-text="metadata">true</param>
|
<param name="metadata" type="bool" gui-text="metadata">true</param>
|
||||||
|
</vbox>
|
||||||
|
<spacer/>
|
||||||
|
<vbox>
|
||||||
<param name="pattern" type="bool" gui-text="pattern">true</param>
|
<param name="pattern" type="bool" gui-text="pattern">true</param>
|
||||||
<param name="script" type="bool" gui-text="script">true</param>
|
<param name="script" type="bool" gui-text="script">true</param>
|
||||||
|
<param name="switch" type="bool" gui-text="switch">true</param>
|
||||||
<param name="symbol" type="bool" gui-text="symbol">true</param>
|
<param name="symbol" type="bool" gui-text="symbol">true</param>
|
||||||
<param name="use" type="bool" gui-text="use">true</param>
|
<param name="use" type="bool" gui-text="use">true</param>
|
||||||
</vbox>
|
</vbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
</vbox>
|
||||||
|
</hbox>
|
||||||
<separator/>
|
<separator/>
|
||||||
<param name="operationmode" type="optiongroup" appearance="combo" gui-text="Operation mode">
|
<param name="operationmode" type="optiongroup" appearance="combo" gui-text="Operation mode">
|
||||||
<option value="ungroup_only">Ungroup (flatten) only</option>
|
<option value="ungroup_only">Ungroup (flatten) only</option>
|
||||||
|
@ -47,6 +47,7 @@ class MigrateGroups(inkex.Effect):
|
|||||||
self.arg_parser.add_argument("--tspan", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--tspan", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--linearGradient", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--linearGradient", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--radialGradient", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--radialGradient", type=inkex.Boolean, default=True)
|
||||||
|
self.arg_parser.add_argument("--mask", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--meshGradient", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--meshGradient", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--meshRow", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--meshRow", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--meshPatch", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--meshPatch", type=inkex.Boolean, default=True)
|
||||||
@ -54,6 +55,7 @@ class MigrateGroups(inkex.Effect):
|
|||||||
self.arg_parser.add_argument("--script", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--script", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--symbol", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--symbol", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--stop", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--stop", type=inkex.Boolean, default=True)
|
||||||
|
self.arg_parser.add_argument("--switch", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--use", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--use", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--flowRoot", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--flowRoot", type=inkex.Boolean, default=True)
|
||||||
self.arg_parser.add_argument("--flowRegion", type=inkex.Boolean, default=True)
|
self.arg_parser.add_argument("--flowRegion", type=inkex.Boolean, default=True)
|
||||||
@ -85,8 +87,10 @@ class MigrateGroups(inkex.Effect):
|
|||||||
namespace.append("{http://www.w3.org/2000/svg}meshPatch") if self.options.meshPatch else ""
|
namespace.append("{http://www.w3.org/2000/svg}meshPatch") if self.options.meshPatch else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}script") if self.options.script else ""
|
namespace.append("{http://www.w3.org/2000/svg}script") if self.options.script else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}symbol") if self.options.symbol else ""
|
namespace.append("{http://www.w3.org/2000/svg}symbol") if self.options.symbol else ""
|
||||||
|
namespace.append("{http://www.w3.org/2000/svg}mask") if self.options.mask else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}metadata") if self.options.metadata else ""
|
namespace.append("{http://www.w3.org/2000/svg}metadata") if self.options.metadata else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}stop") if self.options.stop else ""
|
namespace.append("{http://www.w3.org/2000/svg}stop") if self.options.stop else ""
|
||||||
|
namespace.append("{http://www.w3.org/2000/svg}switch") if self.options.switch else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}use") if self.options.use else ""
|
namespace.append("{http://www.w3.org/2000/svg}use") if self.options.use else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}flowRoot") if self.options.flowRoot else ""
|
namespace.append("{http://www.w3.org/2000/svg}flowRoot") if self.options.flowRoot else ""
|
||||||
namespace.append("{http://www.w3.org/2000/svg}flowRegion") if self.options.flowRegion else ""
|
namespace.append("{http://www.w3.org/2000/svg}flowRegion") if self.options.flowRegion else ""
|
||||||
|
Reference in New Issue
Block a user