summaryrefslogtreecommitdiff
path: root/templates/select_elements.xml
blob: fee1f467f6b87672db5cbc5d4400d2d4392f669b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
    <name>Select embroidery elements</name>
    <id>org.inkstitch.select_elements</id>
    <param name="extension" type="string" gui-hidden="true">select_elements</param>

    <param name="options" type="notebook">
        <page name="stitch-type" gui-text="Select options">
            <label appearance="header">Select Stitch Type</label>
            <label>Stroke type</label>
                <param indent="1" name="select-running-stitch" type="boolean" gui-text="Running Stitch">false</param>
                <param indent="1" name="select-ripples" type="boolean" gui-text="Ripples">false</param>
                <param indent="1" name="select-zigzag" type="boolean" gui-text="ZigZag Stitch">false</param>
                <param indent="1" name="select-manual" type="boolean" gui-text="Manual Stitch">false</param>
                <param indent="1" name="select-polyline" type="boolean" gui-text="Polyline">false</param>
            <label>Satin</label>
                <param indent="1" name="select-satin" type="boolean" gui-text="Satin Column">false</param>
                <param indent="1" name="select-e" type="boolean" gui-text="E-Stitch">false</param>
                <param indent="1" name="satin-underlay" type="optiongroup" appearance="combo" gui-text="Underlay type"
                       gui-description="Only select satins with this underlay type">
                    <option value="all">No restriction</option>
                    <option value="no">No underlay</option>
                    <option value="center">Centerwalk</option>
                    <option value="contour">Contour</option>
                    <option value="zigzag">Zigzag</option>
                </param>
            <label>Fills</label>
                <param indent="1" name="select-auto-fill" type="boolean" gui-text="Fill">false</param>
                <param indent="1" name="select-contour-fill" type="boolean" gui-text="Contour Fill">false</param>
                <param indent="1" name="select-guided-fill" type="boolean" gui-text="Guided Fill">false</param>
                <param indent="1" name="select-meander-fill" type="boolean" gui-text="Meander Fill">false</param>
                <param indent="1" name="select-circular-fill" type="boolean" gui-text="Circular Fill">false</param>
                <param indent="1" name="select-legacy-fill" type="boolean" gui-text="Legacy Fill">false</param>
                <param indent="1" name="fill-underlay" type="optiongroup" appearance="combo" gui-text="Underlay"
                       gui-description="Only select fills with this underlay">
                    <option value="all">No restriction</option>
                    <option value="yes">Underlay</option>
                    <option value="no">No Underlay</option>
                </param>
            <label>Clone</label>
                <param indent="1" name="select-clone" type="boolean" gui-text="Clone">false</param>
        </page>
        <page name="info" gui-text="Help">
            <label appearance="header">Select embroidery objects</label>
            <spacer />
            <label>Selects specific embroidery elements by stitch type.</label>
            <label>If there is already an active selection, non maching elements will be deselected.</label>
            <spacer />
            <separator />
            <spacer />
            <label appearance="header">Troubleshoot</label>
            <spacer />
            <label>If this isn't working for you, you may need to insert your path to a python executable manualy.</label>
            <spacer />
            <label>* Windows: Open the "Command Prompt" and type "where python". Copy the path and paste it here.</label>
            <label>* Linux: Open the command line and type "which python". Copy the path and paste it here.</label>
            <label>* macOS: doesn't work, sorry</label>
            <param name="python-path" type="string" gui-text="Python Path"></param>
        </page>
    </param>

    <effect>
        <object-type>all</object-type>
        <effects-menu>
            <submenu name="Ink/Stitch" translatable="no">
                <submenu name="Edit" />
            </submenu>
        </effects-menu>
    </effect>
    <script>
        {{ command_tag | safe }}
    </script>
</inkscape-extension>