summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-07-22 06:43:40 +0200
committerGitHub <noreply@github.com>2023-07-22 06:43:40 +0200
commit233340c0e72e96ba4c2b80fe0737c0a13884dcf7 (patch)
tree76c0869cd81ac39525218d8721fd5fed7dc4d9e0 /templates
parent7dcb253d9b444ffadda389eca0b18280c7f428c4 (diff)
zip: add input field for custom file names (#2426)
Diffstat (limited to 'templates')
-rw-r--r--templates/zip.xml44
1 files changed, 25 insertions, 19 deletions
diff --git a/templates/zip.xml b/templates/zip.xml
index 1eafd662..86be0e65 100644
--- a/templates/zip.xml
+++ b/templates/zip.xml
@@ -9,25 +9,31 @@
<filetypetooltip>Create a ZIP with multiple embroidery file formats using Ink/Stitch</filetypetooltip>
<dataloss>true</dataloss>
</output>
- <label>Panelization options (defaults to single design):</label>
- <param name="x-repeats" type="int" min="1" max="20" gui-text="Horizontal repeats">1</param>
- <param name="x-spacing" type="float" min="-1000" max="1000" gui-text="Horizontal spacing (mm)">100</param>
- <param name="y-repeats" type="int" min="1" max="20" gui-text="Vertical repeats">1</param>
- <param name="y-spacing" type="float" min="-1000" max="1000" gui-text="Vertical spacing (mm)">100</param>
-
-
- <spacer/>
- <label>Output formats:</label>
- {%- for format, description, mimetype, category in formats %}
- {%- if category != "vector" and category != "debug" %}
- <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ description }}">false</param>
- {%- endif %}
- {%- endfor %}
-
- <param name="format-threadlist" type="boolean" gui-text=".TXT: Threadlist [COLOR]">false</param>
- <param name="format-svg" type="boolean" gui-text=".SVG: Scalable Vector Graphic">false</param>
-
- <param name="extension" type="string" gui-hidden="true">zip</param>
+ <param name="notebook" type="notebook">
+ <page name="file-formats" gui-text="File Formats">
+ <label>Output formats:</label>
+ {%- for format, description, mimetype, category in formats %}
+ {%- if category != "vector" and category != "debug" %}
+ <param name="format-{{ format }}" type="boolean" _gui-text=".{{ format | upper }}: {{ description }}">false</param>
+ {%- endif %}
+ {%- endfor %}
+ <param name="format-threadlist" type="boolean" gui-text=".TXT: Threadlist [COLOR]">false</param>
+ <param name="format-svg" type="boolean" gui-text=".SVG: Scalable Vector Graphic">false</param>
+ <param name="extension" type="string" gui-hidden="true">zip</param>
+ </page>
+ <page name="panelization" gui-text="Panelization Options">
+ <label>For single design set horizontal and vertical repeats to 1</label>
+ <spacer />
+ <param name="x-repeats" type="int" min="1" max="20" gui-text="Horizontal repeats">1</param>
+ <param name="x-spacing" type="float" min="-1000" max="1000" gui-text="Horizontal spacing (mm)">100</param>
+ <param name="y-repeats" type="int" min="1" max="20" gui-text="Vertical repeats">1</param>
+ <param name="y-spacing" type="float" min="-1000" max="1000" gui-text="Vertical spacing (mm)">100</param>
+ </page>
+ <page name="output-options" gui-text="Output Options">
+ <param name="custom-file-name" type="string" gui-text="Custom file name"
+ gui-description="Defines the file names inside the zip archive. Leave empty for default file name."></param>
+ </page>
+ </param>
<script>
{{ command_tag | safe }}
</script>