Skip to content

Commit d907b70

Browse files
committed
Some fix to suit Inkscape standard to inx file have been done.
1 parent a8038a9 commit d907b70

File tree

2 files changed

+41
-42
lines changed

2 files changed

+41
-42
lines changed

dxf_input.inx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<param name="tab" type="notebook">
88
<page name="options" _gui-text="Options">
99
<param name="auto" type="boolean" _gui-text="Use automatic scaling to size A4">true</param>
10-
<param name="scale" type="string" _gui-text="Or, use manual scale factor">1.0</param>
10+
<param name="scale" type="string" _gui-text="Or, use manual scale factor:">1.0</param>
1111
<param name="gcodetoolspoints" type="boolean" _gui-text="Gcodetools compatible point import">false</param>
1212
<param name="sep1" type="description">-------------------------------------------------------------------------</param>
13-
<param name="encoding" type="enum" _gui-text="Character Encoding">
13+
<param name="encoding" type="enum" _gui-text="Character Encoding:">
1414
<item value="latin_1">Latin 1</item>
1515
<item value="cp1250">CP 1250</item>
1616
<item value="cp1252">CP 1252</item>

gcodetools-dev.inx

+39-40
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- Gcodetools: header block -->
3-
<inkscape-extension>
3+
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
44
<!-- Gcodetools: name -->
55
<name>Gcodetools dev</name>
66
<!-- Gcodetools: /name -->
@@ -33,31 +33,31 @@ Gcodetools ver. 1.6
3333
<!-- Gcodetools: /help block -->
3434
<!-- Gcodetools: options block -->
3535
<page name='options' _gui-text='Options'>
36-
<param name="Zscale" type="float" precision="5" min="-100000" max="100000" _gui-text="Scale along Z axis">1</param>
37-
<param name="Zoffset" type="float" precision="5" min="-100000" max="100000" _gui-text="Offset along Z axis">0.0</param>
36+
<param name="Zscale" type="float" precision="5" min="-100000" max="100000" _gui-text="Scale along Z axis:">1</param>
37+
<param name="Zoffset" type="float" precision="5" min="-100000" max="100000" _gui-text="Offset along Z axis:">0.0</param>
3838
<param name="auto_select_paths" type="boolean" _gui-text="Select all paths if nothing is selected">true</param>
39-
<param name="min-arc-radius" type="float" precision="5" min="-1000" max="1000" _gui-text="Minimum arc radius">0.05</param>
39+
<param name="min-arc-radius" type="float" precision="5" min="-1000" max="1000" _gui-text="Minimum arc radius:">0.05</param>
4040
</page>
4141
<!-- Gcodetools: /options block -->
4242
<!-- Gcodetools: preferences block -->
4343
<page name='preferences' _gui-text='Preferences'>
44-
<param name="filename" type="string" _gui-text="File">output.ngc</param>
44+
<param name="filename" type="string" _gui-text="File:">output.ngc</param>
4545
<param name="add-numeric-suffix-to-filename" type="boolean" _gui-text="Add numeric suffix to filename">true</param>
4646

47-
<param name="directory" type="string" _gui-text="Directory">/home</param>
47+
<param name="directory" type="string" _gui-text="Directory:">/home</param>
4848

49-
<param name="Zsafe" type="float" precision="5" min="-1000" max="1000" _gui-text="Z safe height for G00 move over blank">5</param>
50-
<param name="unit" type="enum" _gui-text="Units (mm or in): ">
49+
<param name="Zsafe" type="float" precision="5" min="-1000" max="1000" _gui-text="Z safe height for G00 move over blank:">5</param>
50+
<param name="unit" type="enum" _gui-text="Units (mm or in):">
5151
<item value="G21 (All units in mm)">mm</item>
5252
<item value="G20 (All units in inches)">in</item>
5353
</param>
54-
<param name="postprocessor" type="enum" _gui-text="Post-processor ">
54+
<param name="postprocessor" type="enum" _gui-text="Post-processor:">
5555
<item value=" ">None</item>
5656
<item value="parameterize();">Parameterize Gcode</item>
5757
<item value="flip(y);parameterize();">Flip y axis and parameterize Gcode</item>
5858
<item value="round(4);">Round all values to 4 digits</item>
5959
</param>
60-
<param name="postprocessor-custom" type="string" _gui-text="Additional post-processor"></param>
60+
<param name="postprocessor-custom" type="string" _gui-text="Additional post-processor:"></param>
6161

6262

6363
<param name="create-log" type="boolean" _gui-text="Generate log file">false</param>
@@ -73,7 +73,7 @@ Convert selected objects to drill points (as dxf_import plugin does). Also you c
7373

7474
Also you can manually select object, open XML editor (Shift+Ctrl+X) and add or remove XML tag 'dxfpoint' with any value.
7575
</_param>
76-
<param type='optiongroup' name='dxfpoints-action' _gui-text="Convert selection">
76+
<param type='optiongroup' name='dxfpoints-action' _gui-text="Convert selection:">
7777
<_option value='save'>set as dxfpoint and save shape</_option>
7878
<_option value='replace'>set as dxfpoint and draw arrow</_option>
7979
<_option value='clear'>clear dxfpoint sign</_option>
@@ -83,8 +83,8 @@ Also you can manually select object, open XML editor (Shift+Ctrl+X) and add or r
8383
<!-- Gcodetools: /dxfpoints block -->
8484
<!-- Gcodetools: ptg block -->
8585
<page name='path-to-gcode' _gui-text='Path to Gcode'>
86-
<param name="biarc-tolerance" type='float' precision="5" _gui-text='Biarc interpolation tolerance'>1</param>
87-
<param name="biarc-max-split-depth" type="int" _gui-text="Maximum splitting depth">4</param>
86+
<param name="biarc-tolerance" type='float' precision="5" _gui-text='Biarc interpolation tolerance:'>1</param>
87+
<param name="biarc-max-split-depth" type="int" _gui-text="Maximum splitting depth:">4</param>
8888
<_param name="help" type="description">
8989
Biarc interpolation tolerance is the maximum distance between path and its approximation.
9090
The segment will be split into two segments if the distance between path's segment and it's approximation exceeds biarc interpolation tolerance.
@@ -93,8 +93,8 @@ The segment will be split into two segments if the distance between path's segme
9393
<!-- Gcodetools: /ptg block -->
9494
<!-- Gcodetools: area block -->
9595
<page name='area' _gui-text='Area'>
96-
<param name="max-area-curves" type="int" min="0" max="1000" _gui-text="Maximum area cutting curves">100</param>
97-
<param name="area-inkscape-radius" type="float" min="-1000" max="1000" _gui-text="Area width">-10</param>
96+
<param name="max-area-curves" type="int" min="0" max="1000" _gui-text="Maximum area cutting curves:">100</param>
97+
<param name="area-inkscape-radius" type="float" min="-1000" max="1000" _gui-text="Area width:">-10</param>
9898

9999
<_param name="help" type="description">
100100
"Create area offset": creates several Inkscape path offsets to fill original path's area up to "Area radius" value.
@@ -106,8 +106,8 @@ Only one offset will be created if the "Area width" is equal to "1/2 D".
106106
<!-- Gcodetools: /area block -->
107107
<!-- Gcodetools: area_artefacts block -->
108108
<page name='area_artefacts' _gui-text='Area artefacts'>
109-
<param name="area-find-artefacts-diameter" type="float" min="0.01" max="1000" _gui-text="artefact diameter">5.0</param>
110-
<param name="area-find-artefacts-action" type="optiongroup" _gui-text="Action">
109+
<param name="area-find-artefacts-diameter" type="float" min="0.01" max="1000" _gui-text="artefact diameter:">5.0</param>
110+
<param name="area-find-artefacts-action" type="optiongroup" _gui-text="Action:">
111111
<_option value="mark with an arrow">mark with an arrow</_option>
112112
<_option value="mark with style">mark with style</_option>
113113
<_option value="delete">delete</_option>
@@ -125,9 +125,9 @@ Suspected small objects will be marked out by colored arrows.
125125

126126
<!-- Gcodetools: engraving block -->
127127
<page name='engraving' _gui-text='Engraving'>
128-
<param name="engraving-sharp-angle-tollerance" type="float" precision="5" min="0" max="180" _gui-text="Sharp angle tolerance">150</param>
129-
<param name="engraving-max-dist" type="float" precision="5" min="0" max="1000" _gui-text="Maximum distance for engraving">10</param>
130-
<param name="engraving-newton-iterations" type="int" min="2" max="10" _gui-text="Number of sample points used to calculate distance">4</param>
128+
<param name="engraving-sharp-angle-tollerance" type="float" precision="5" min="0" max="180" _gui-text="Sharp angle tolerance:">150</param>
129+
<param name="engraving-max-dist" type="float" precision="5" min="0" max="1000" _gui-text="Maximum distance for engraving:">10</param>
130+
<param name="engraving-newton-iterations" type="int" min="2" max="10" _gui-text="Number of sample points used to calculate distance:">4</param>
131131
<param name="engraving-draw-calculation-paths" type="boolean" _gui-text="Draw additional graphics to debug engraving path">false</param>
132132

133133
<_param name="help" type="description">
@@ -143,7 +143,7 @@ ellipse.(R1=r and R2=r*4r).....: math.sqrt(max(0,r**2-w**2))*4</_param>
143143
<!-- Gcodetools: orientation block -->
144144
<page name='orientation' _gui-text='Orientation'>
145145

146-
<param name="orientation-points-count" type="optiongroup" _gui-text="Orientation type: ">
146+
<param name="orientation-points-count" type="optiongroup" _gui-text="Orientation type:">
147147
<_option value="2">2-points mode
148148
(move and rotate,
149149
maintained aspect ratio X/Y)</_option>
@@ -152,9 +152,9 @@ maintained aspect ratio X/Y)</_option>
152152
different X/Y scale)</_option>
153153
<_option value="graffiti">Add graffiti points</_option>
154154
</param>
155-
<param name="Zsurface" type="float" precision="5" min="-1000" max="1000" _gui-text="Z surface">0</param>
156-
<param name="Zdepth" type="float" precision="5" min="-1000" max="1000" _gui-text="Z depth">-1</param>
157-
<param name="unit" type="enum" _gui-text="Units (mm or in): ">
155+
<param name="Zsurface" type="float" precision="5" min="-1000" max="1000" _gui-text="Z surface:">0</param>
156+
<param name="Zdepth" type="float" precision="5" min="-1000" max="1000" _gui-text="Z depth:">-1</param>
157+
<param name="unit" type="enum" _gui-text="Units (mm or in):">
158158
<item value="G21 (All units in mm)">mm</item>
159159
<item value="G20 (All units in inches)">in</item>
160160
</param>
@@ -202,15 +202,15 @@ Press Apply to create new tool.
202202

203203
<!-- Gcodetools: lathe block -->
204204
<page name='lathe' _gui-text='Lathe'>
205-
<param name="lathe-width" type="float" precision="5" min="0" max="1000" _gui-text="Lathe width">10</param>
206-
<param name="lathe-fine-cut-width" type="float" precision="5" min="0" max="1000" _gui-text="Fine cut width">1</param>
207-
<param name="lathe-fine-cut-count" type="int" min="0" max="1000" _gui-text="Fine cut count">1</param>
208-
<param name="lathe-create-fine-cut-using" _gui-text="Create fine cut using" type="optiongroup" appearance="minimal">
205+
<param name="lathe-width" type="float" precision="5" min="0" max="1000" _gui-text="Lathe width:">10</param>
206+
<param name="lathe-fine-cut-width" type="float" precision="5" min="0" max="1000" _gui-text="Fine cut width:">1</param>
207+
<param name="lathe-fine-cut-count" type="int" min="0" max="1000" _gui-text="Fine cut count:">1</param>
208+
<param name="lathe-create-fine-cut-using" _gui-text="Create fine cut using:" type="optiongroup" appearance="minimal">
209209
<option value="Move path">Move path</option>
210210
<option value="Offset path">Offset path</option>
211211
</param>
212-
<param name="lathe-x-axis-remap" type="string" _gui-text="Lathe X axis remap">X</param>
213-
<param name="lathe-z-axis-remap" type="string" _gui-text="Lathe Z axis remap">Z</param>
212+
<param name="lathe-x-axis-remap" type="string" _gui-text="Lathe X axis remap:">X</param>
213+
<param name="lathe-z-axis-remap" type="string" _gui-text="Lathe Z axis remap:">Z</param>
214214

215215

216216
</page>
@@ -219,31 +219,31 @@ Press Apply to create new tool.
219219

220220
<!-- Gcodetools: offset block -->
221221
<page name='offset' _gui-text='Offset'>
222-
<param name="offset-radius" type="float" precision="5" min="-1000" max="1000" _gui-text="Offset radius">10</param>
223-
<param name="offset-step" type="float" precision="5" min="0" max="1000" _gui-text="Offset step">10</param>
222+
<param name="offset-radius" type="float" precision="5" min="-1000" max="1000" _gui-text="Offset radius:">10</param>
223+
<param name="offset-step" type="float" precision="5" min="0" max="1000" _gui-text="Offset step:">10</param>
224224
<param name="offset-draw-clippend-path" type="boolean" _gui-text="Draw clipped path">false</param>
225225
<param name="offset-just-get-distance" type="boolean" _gui-text="Don't do offset just get distance">false</param>
226226
</page>
227227
<!-- Gcodetools: /offset block -->
228228

229229
<!-- Gcodetools: arrangement block -->
230230
<page name='arrangement' _gui-text='Arrangement'>
231-
<param name='arrangement-material-width' type="float" precision="5" min="0" max="1000000" _gui-text='Material width'>500</param>
232-
<param name='arrangement-population-count' type="int" min="0" max="1000000" _gui-text='Genetic algorithm populations count'>100</param>
231+
<param name='arrangement-material-width' type="float" precision="5" min="0" max="1000000" _gui-text='Material width:'>500</param>
232+
<param name='arrangement-population-count' type="int" min="0" max="1000000" _gui-text='Genetic algorithm populations count:'>100</param>
233233
</page>
234234
<!-- Gcodetools: /arrangement block -->
235235

236236

237237

238238
<!-- Gcodetools: graffiti block -->
239239
<page name='graffiti' _gui-text='Graffiti'>
240-
<param name="graffiti-max-seg-length" type="float" precision="5" min="0" max="1000" _gui-text="Maximum segment length">10</param>
241-
<param name="graffiti-min-radius" type="float" precision="5" min="0" max="1000" _gui-text="Minimal connector radius">10</param>
242-
<param name="graffiti-start-pos" type="string" _gui-text="Start position (x;y)">(0.0;0.0)</param>
240+
<param name="graffiti-max-seg-length" type="float" precision="5" min="0" max="1000" _gui-text="Maximum segment length:">10</param>
241+
<param name="graffiti-min-radius" type="float" precision="5" min="0" max="1000" _gui-text="Minimal connector radius:">10</param>
242+
<param name="graffiti-start-pos" type="string" _gui-text="Start position (x;y):">(0.0;0.0)</param>
243243
<param name="graffiti-create-preview" type="boolean" _gui-text="Create preview">true</param>
244244
<param name="graffiti-create-linearization-preview" type="boolean" _gui-text="Create linearization preview">true</param>
245-
<param name="graffiti-preview-size" type="int" min="100" max="10000" _gui-text="Preview's size (px)">800</param>
246-
<param name="graffiti-preview-emmit" type="int" min="100" max="10000" _gui-text="Preview's paint emmit (pts/s)">1000</param>
245+
<param name="graffiti-preview-size" type="int" min="100" max="10000" _gui-text="Preview's size (px):">800</param>
246+
<param name="graffiti-preview-emmit" type="int" min="100" max="10000" _gui-text="Preview's paint emmit (pts/s):">1000</param>
247247

248248
</page>
249249
<!-- Gcodetools: /graffiti block -->
@@ -266,6 +266,5 @@ Press Apply to create new tool.
266266
<script>
267267
<command reldir="extensions" interpreter="python">gcodetools-dev.py</command>
268268
</script>
269-
270269
</inkscape-extension>
271270
<!-- Gcodetools: /footer block -->

0 commit comments

Comments
 (0)