summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/convert_to_satin.inx17
-rw-r--r--templates/embroider.inx28
-rw-r--r--templates/flip.inx17
-rw-r--r--templates/input.inx (renamed from templates/embroider_input.inx)0
-rw-r--r--templates/install.inx17
-rw-r--r--templates/layer_commands.inx19
-rw-r--r--templates/object_commands.inx22
-rw-r--r--templates/output.inx (renamed from templates/embroider_output.inx)0
-rw-r--r--templates/params.inx17
-rw-r--r--templates/print.inx17
-rw-r--r--templates/simulate.inx17
-rw-r--r--templates/zip.inx (renamed from templates/embroider_zip_output.inx)6
12 files changed, 174 insertions, 3 deletions
diff --git a/templates/convert_to_satin.inx b/templates/convert_to_satin.inx
new file mode 100644
index 00000000..d71b2081
--- /dev/null
+++ b/templates/convert_to_satin.inx
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Convert Line to Satin</_name>
+ <id>org.inkstitch.convert_to_satin</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="extension" type="string" gui-hidden="true">convert_to_satin</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery" />
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/embroider.inx b/templates/embroider.inx
new file mode 100644
index 00000000..7c6544db
--- /dev/null
+++ b/templates/embroider.inx
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Embroider</_name>
+ <id>jonh.embroider</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="collapse_len_mm" type="float" min="0.0" max="10.0" _gui-text="Collapse length (mm)" _gui-description="Jump stitches smaller than this will be treated as normal stitches.">3.0</param>
+ <param name="hide_layers" type="boolean" _gui-text="Hide other layers" _gui-description="Hide all other top-level layers when the embroidery layer is generated, in order to make stitching discernable.">true</param>
+ <param name="output_format" type="optiongroup" _gui-text="Output file format" appearance="minimal">
+ {% for format, description in formats %}
+ <_option value="{{ format }}">{{ description }} ({{ format | upper }})</_option>
+ {% endfor %}
+ {% for format, description in debug_formats %}
+ <_option value="{{ format }}">{{ description }} ({{ format | upper }}) [DEBUG]</_option>
+ {% endfor %}
+ </param>
+ <param name="path" type="string" _gui-text="Directory" _gui-description="Leave empty to save the output in Inkscape's extension directory."></param>
+ <param name="extension" type="string" gui-hidden="true">embroider</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/flip.inx b/templates/flip.inx
new file mode 100644
index 00000000..f129b8d9
--- /dev/null
+++ b/templates/flip.inx
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Flip Satin Columns</_name>
+ <id>org.inkstitch.flip_satins</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="extension" type="string" gui-hidden="true">flip</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/embroider_input.inx b/templates/input.inx
index 15ccdef8..15ccdef8 100644
--- a/templates/embroider_input.inx
+++ b/templates/input.inx
diff --git a/templates/install.inx b/templates/install.inx
new file mode 100644
index 00000000..7275e13a
--- /dev/null
+++ b/templates/install.inx
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Install add-ons for Inkscape</_name>
+ <id>org.inkstitch.install</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="extension" type="string" gui-hidden="true">install</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/layer_commands.inx b/templates/layer_commands.inx
new file mode 100644
index 00000000..7eadd094
--- /dev/null
+++ b/templates/layer_commands.inx
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Add Layer Commands</_name>
+ <id>org.inkstitch.layer_commands</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="description" type="description">Commands will be added to the currently-selected layer.</param>
+ <param name="ignore_layer" type="boolean" _gui-text="Ignore layer (do not stitch any objects in this layer)">false</param>
+ <param name="extension" type="string" gui-hidden="true">layer_commands</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery" />
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/object_commands.inx b/templates/object_commands.inx
new file mode 100644
index 00000000..bba8602b
--- /dev/null
+++ b/templates/object_commands.inx
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Attach Commands</_name>
+ <id>org.inkstitch.commands</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="fill_start" type="boolean" _gui-text="Fill stitch starting position">false</param>
+ <param name="fill_end" type="boolean" _gui-text="Fill stitch ending position">false</param>
+ <param name="stop" type="boolean" _gui-text="Stop after sewing this object">false</param>
+ <param name="trim" type="boolean" _gui-text="Trim thread after sewing this object">false</param>
+ <param name="ignore_object" type="boolean" _gui-text="Ignore this object (do not stitch)">false</param>
+ <param name="extension" type="string" gui-hidden="true">object_commands</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery" />
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/embroider_output.inx b/templates/output.inx
index 4f971fb3..4f971fb3 100644
--- a/templates/embroider_output.inx
+++ b/templates/output.inx
diff --git a/templates/params.inx b/templates/params.inx
new file mode 100644
index 00000000..7b3b4e63
--- /dev/null
+++ b/templates/params.inx
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Params</_name>
+ <id>jonh.embroider.params</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="extension" type="string" gui-hidden="true">params</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/print.inx b/templates/print.inx
new file mode 100644
index 00000000..edc96a4c
--- /dev/null
+++ b/templates/print.inx
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Print</_name>
+ <id>jonh.embroider.print</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="extension" type="string" gui-hidden="true">print</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/simulate.inx b/templates/simulate.inx
new file mode 100644
index 00000000..66f892d8
--- /dev/null
+++ b/templates/simulate.inx
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <_name>Simulate</_name>
+ <id>jonh.embroider.simulate</id>
+ <dependency type="executable" location="extensions">inkstitch.py</dependency>
+ <dependency type="executable" location="extensions">inkex.py</dependency>
+ <param name="extension" type="string" gui-hidden="true">simulate</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu _name="Embroidery"/>
+ </effects-menu>
+ </effect>
+ <script>
+ <command reldir="extensions" interpreter="python">inkstitch.py</command>
+ </script>
+</inkscape-extension>
diff --git a/templates/embroider_zip_output.inx b/templates/zip.inx
index 5d162357..c85e849f 100644
--- a/templates/embroider_zip_output.inx
+++ b/templates/zip.inx
@@ -11,9 +11,9 @@
<_filetypetooltip>Create a ZIP with multiple embroidery file formats using Ink/Stitch</_filetypetooltip>
<dataloss>true</dataloss>
</output>
-{% for format, description in formats %}
- <param name="format-{{format}}" type="boolean" _gui-text=".{{format | upper}}: {{description}}">false</param>
-{% endfor %}
+ {% for format, description in formats %}
+ <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ description }}">false</param>
+ {% endfor %}
<param name="extension" type="string" gui-hidden="true">zip</param>
<script>
<command reldir="extensions" interpreter="python">inkstitch.py</command>