summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/density_map.xml30
-rw-r--r--templates/stitch_plan_preview.xml3
-rw-r--r--templates/stitch_plan_preview_undo.xml17
3 files changed, 48 insertions, 2 deletions
diff --git a/templates/density_map.xml b/templates/density_map.xml
new file mode 100644
index 00000000..d8348cbb
--- /dev/null
+++ b/templates/density_map.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Density Map</name>
+ <id>org.inkstitch.density_map</id>
+ <param name="extension" type="string" gui-hidden="true">density_map</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch" translatable="no">
+ <submenu name="Visualise and Export" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <label appearance="header">Red markers</label>
+ <param name="num-neighbors-red" gui-text="Number of stitches" gui-description="0 = no density info" type="int" min="0" max="99" indents="1">6</param>
+ <param name="density-radius-red" gui-text="within a radius (mm) of" type="float" min="0" max="50" indents="1">0.5</param>
+ <spacer />
+ <label appearance="header">Yellow markers</label>
+ <param name="num-neighbors-yellow" gui-text="Number of stitches" gui-description="0 = no density info" type="int" min="0" max="99" indents="1">3</param>
+ <param name="density-radius-yellow" gui-text="within a radius (mm) of" type="float" min="0" max="50">0.5</param>
+ <spacer />
+ <param name="layer-visibility" type="optiongroup" appearance="combo" gui-text="Design layer visibility" indents="1">
+ <option value="0">Unchanged</option>
+ <option value="1">Hidden</option>
+ <option value="2">Lower opacity</option>
+ </param>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>
diff --git a/templates/stitch_plan_preview.xml b/templates/stitch_plan_preview.xml
index ba602aaf..c78089ee 100644
--- a/templates/stitch_plan_preview.xml
+++ b/templates/stitch_plan_preview.xml
@@ -18,8 +18,7 @@
<option value="2">Lower opacity</option>
</param>
<param name="needle-points" type="boolean" gui-text="Needle points">false</param>
- <separator />
- <label>Hit Ctrl+Z to undo this action after inspection.</label>
+ <spacer />
<script>
{{ command_tag | safe }}
</script>
diff --git a/templates/stitch_plan_preview_undo.xml b/templates/stitch_plan_preview_undo.xml
new file mode 100644
index 00000000..bb5e2308
--- /dev/null
+++ b/templates/stitch_plan_preview_undo.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<inkscape-extension translationdomain="inkstitch" xmlns="http://www.inkscape.org/namespace/inkscape/extension">
+ <name>Undo Stitch Plan Preview</name>
+ <id>org.inkstitch.stitch_plan_preview_undo</id>
+ <param name="extension" type="string" gui-hidden="true">stitch_plan_preview_undo</param>
+ <effect>
+ <object-type>all</object-type>
+ <effects-menu>
+ <submenu name="Ink/Stitch" translatable="no">
+ <submenu name="Visualise and Export" />
+ </submenu>
+ </effects-menu>
+ </effect>
+ <script>
+ {{ command_tag | safe }}
+ </script>
+</inkscape-extension>