Commit 5159eab4 authored by Nicolas Dufour's avatar Nicolas Dufour Committed by Nicolas Dufour

Extensions:

* New isometric grid.
* All grids are now grouped in Render>Grids.
Translations:
* inkscape.pot update.

(bzr r10135)
parent 382a4e8a
......@@ -394,6 +394,7 @@ share/extensions/web-transmit-att.py
[type: gettext/xml] share/extensions/generate_voronoi.inx
[type: gettext/xml] share/extensions/gimp_xcf.inx
[type: gettext/xml] share/extensions/grid_cartesian.inx
[type: gettext/xml] share/extensions/grid_isometric.inx
[type: gettext/xml] share/extensions/grid_polar.inx
[type: gettext/xml] share/extensions/guides_creator.inx
[type: gettext/xml] share/extensions/guillotine.inx
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: inkscape-devel@lists.sourceforge.net\n"
"POT-Creation-Date: 2011-03-29 19:33+0200\n"
"POT-Creation-Date: 2011-03-30 23:08+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -7519,6 +7519,7 @@ msgstr ""
#: ../share/extensions/foldablebox.inx.h:6
#: ../share/extensions/funcplot.inx.h:14 ../share/extensions/gears.inx.h:6
#: ../share/extensions/grid_cartesian.inx.h:15
#: ../share/extensions/grid_isometric.inx.h:6
#: ../share/extensions/grid_polar.inx.h:20
#: ../share/extensions/guides_creator.inx.h:17
#: ../share/extensions/lindenmayer.inx.h:31
......@@ -7537,7 +7538,14 @@ msgstr ""
msgid "Render"
msgstr ""
#: ../src/extension/internal/grid.cpp:212
#: ../src/extension/internal/grid.cpp:211
#: ../src/ui/dialog/document-properties.cpp:119
#: ../src/ui/dialog/inkscape-preferences.cpp:1072
#: ../src/widgets/toolbox.cpp:2321
msgid "Grids"
msgstr ""
#: ../src/extension/internal/grid.cpp:214
msgid "Draw a path which is a grid"
msgstr ""
......@@ -13263,12 +13271,6 @@ msgstr ""
msgid "Guides"
msgstr ""
#: ../src/ui/dialog/document-properties.cpp:119
#: ../src/ui/dialog/inkscape-preferences.cpp:1072
#: ../src/widgets/toolbox.cpp:2321
msgid "Grids"
msgstr ""
#: ../src/ui/dialog/document-properties.cpp:120 ../src/verbs.cpp:2586
msgid "Snap"
msgstr ""
......@@ -25127,6 +25129,7 @@ msgid ""
msgstr ""
#: ../share/extensions/grid_cartesian.inx.h:1
#: ../share/extensions/grid_isometric.inx.h:1
msgid "Border Thickness (px):"
msgstr ""
......@@ -25214,6 +25217,42 @@ msgstr ""
msgid "Y Axis"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:2
msgid "Division Spacing (px):"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:3
msgid "Isometric Grid"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:4
msgid "Major Division Thickness (px):"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:5
msgid "Minor Division Thickness (px):"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:7
msgid "Subdivisions per Major Division:"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:8
msgid "Subminor Division Thickness (px):"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:9
msgid "Subsubdivs per Subdivision:"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:10
msgid "X Divisions [x2]:"
msgstr ""
#: ../share/extensions/grid_isometric.inx.h:11
msgid "Y Divisions [x2] [> 1/2 X Div]:"
msgstr ""
#: ../share/extensions/grid_polar.inx.h:1
msgid "Angle Divisions at Centre:"
msgstr ""
......
......@@ -66,6 +66,7 @@ extensions = \
generate_voronoi.py \
gimp_xcf.py \
grid_cartesian.py \
grid_isometric.py \
grid_polar.py \
guides_creator.py \
guillotine.py \
......@@ -233,6 +234,7 @@ modules = \
generate_voronoi.inx \
gimp_xcf.inx \
grid_cartesian.inx \
grid_isometric.inx \
grid_polar.inx \
guides_creator.inx \
guillotine.inx \
......
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Cartesian Grid</_name>
<id>grid.cartesian</id>
<dependency type="executable" location="extensions">grid_cartesian.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="border_th" type="float" min="0" max="1000" _gui-text="Border Thickness (px):">3</param>
<_param name="x_axis" type="description" appearance="header">X Axis</_param>
<param name="x_divs" type="int" min="1" max="1000" _gui-text="Major X Divisions:">6</param>
<param name="dx" type="float" min="1" max="1000" _gui-text="Major X Division Spacing (px):">100.0</param>
<param name="x_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major X Division:">2</param>
<param name="x_log" type="boolean" _gui-text="Logarithmic X Subdiv. (Base given by entry above)">false</param>
<param name="x_subsubdivs" type="int" min="1" max="1000" _gui-text="Subsubdivs. per X Subdivision:">5</param>
<param name="x_half_freq" type="int" min="1" max="1000" _gui-text="Halve X Subsubdiv. Frequency after 'n' Subdivs. (log only):">4</param>
<param name="x_divs_th" type="float" min="0" max="1000" _gui-text="Major X Division Thickness (px):">2</param>
<param name="x_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor X Division Thickness (px):">1</param>
<param name="x_subsubdivs_th" type="float" min="0" max="1000" _gui-text="Subminor X Division Thickness (px):">0.3</param>
<_param name="y_axis" type="description" appearance="header">Y Axis</_param>
<param name="y_divs" type="int" min="1" max="1000" _gui-text="Major Y Divisions:">5</param>
<param name="dy" type="float" min="1" max="1000" _gui-text="Major Y Division Spacing (px):">100.0</param>
<param name="y_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major Y Division:">1</param>
<param name="y_log" type="boolean" _gui-text="Logarithmic Y Subdiv. (Base given by entry above)">false</param>
<param name="y_subsubdivs" type="int" min="1" max="1000" _gui-text="Subsubdivs. per Y Subdivision:">5</param>
<param name="y_half_freq" type="int" min="1" max="1000" _gui-text="Halve Y Subsubdiv. Frequency after 'n' Subdivs. (log only):">4</param>
<param name="y_divs_th" type="float" min="0" max="1000" _gui-text="Major Y Division Thickness (px):">2</param>
<param name="y_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor Y Division Thickness (px):">1</param>
<param name="y_subsubdivs_th" type="float" min="0" max="1000" _gui-text="Subminor Y Division Thickness (px):">0.3</param>
<_name>Cartesian Grid</_name>
<id>grid.cartesian</id>
<dependency type="executable" location="extensions">grid_cartesian.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="border_th" type="float" min="0" max="1000" _gui-text="Border Thickness (px):">3</param>
<_param name="x_axis" type="description" appearance="header">X Axis</_param>
<param name="x_divs" type="int" min="1" max="1000" _gui-text="Major X Divisions:">6</param>
<param name="dx" type="float" min="1" max="1000" _gui-text="Major X Division Spacing (px):">100.0</param>
<param name="x_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major X Division:">2</param>
<param name="x_log" type="boolean" _gui-text="Logarithmic X Subdiv. (Base given by entry above)">false</param>
<param name="x_subsubdivs" type="int" min="1" max="1000" _gui-text="Subsubdivs. per X Subdivision:">5</param>
<param name="x_half_freq" type="int" min="1" max="1000" _gui-text="Halve X Subsubdiv. Frequency after 'n' Subdivs. (log only):">4</param>
<param name="x_divs_th" type="float" min="0" max="1000" _gui-text="Major X Division Thickness (px):">2</param>
<param name="x_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor X Division Thickness (px):">1</param>
<param name="x_subsubdivs_th" type="float" min="0" max="1000" _gui-text="Subminor X Division Thickness (px):">0.3</param>
<_param name="y_axis" type="description" appearance="header">Y Axis</_param>
<param name="y_divs" type="int" min="1" max="1000" _gui-text="Major Y Divisions:">5</param>
<param name="dy" type="float" min="1" max="1000" _gui-text="Major Y Division Spacing (px):">100.0</param>
<param name="y_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major Y Division:">1</param>
<param name="y_log" type="boolean" _gui-text="Logarithmic Y Subdiv. (Base given by entry above)">false</param>
<param name="y_subsubdivs" type="int" min="1" max="1000" _gui-text="Subsubdivs. per Y Subdivision:">5</param>
<param name="y_half_freq" type="int" min="1" max="1000" _gui-text="Halve Y Subsubdiv. Frequency after 'n' Subdivs. (log only):">4</param>
<param name="y_divs_th" type="float" min="0" max="1000" _gui-text="Major Y Division Thickness (px):">2</param>
<param name="y_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor Y Division Thickness (px):">1</param>
<param name="y_subsubdivs_th" type="float" min="0" max="1000" _gui-text="Subminor Y Division Thickness (px):">0.3</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Render"/>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">grid_cartesian.py</command>
</script>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Render">
<submenu name="Grids"/>
</submenu>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">grid_cartesian.py</command>
</script>
</inkscape-extension>
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Isometric Grid</_name>
<id>grid.iso_grid</id>
<dependency type="executable" location="extensions">grid_isometric.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="x_divs" type="int" min="1" max="1000" _gui-text="X Divisions [x2]:">5</param>
<param name="y_divs" type="int" min="1" max="1000" _gui-text="Y Divisions [x2] [> 1/2 X Div]:">5</param>
<param name="dx" type="float" min="1" max="1000" _gui-text="Division Spacing (px):">50.0</param>
<param name="subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major Division:">2</param>
<param name="subsubdivs" type="int" min="1" max="1000" _gui-text="Subsubdivs per Subdivision:">5</param>
<param name="divs_th" type="float" min="0" max="1000" _gui-text="Major Division Thickness (px):">2</param>
<param name="subdivs_th" type="float" min="0" max="1000" _gui-text="Minor Division Thickness (px):">0.5</param>
<param name="subsubdivs_th" type="float" min="0" max="1000" _gui-text="Subminor Division Thickness (px):">0.1</param>
<param name="border_th" type="float" min="0" max="1000" _gui-text="Border Thickness (px):">3</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Render">
<submenu name="Grids"/>
</submenu>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">grid_isometric.py</command>
</script>
</inkscape-extension>
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Polar Grid</_name>
<id>grids.polar</id>
<dependency type="executable" location="extensions">grid_polar.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="c_dot_dia" type="float" min="1" max="1000" _gui-text="Centre Dot Diameter (px):">5.0</param>
<param name="a_labels" type="enum" _gui-text="Circumferential Labels:">
<_item value="none">None</_item>
<_item value="deg">Degrees</_item>
</param>
<param name="a_label_size" type="int" min="1" max="1000" _gui-text="Circumferential Label Size (px):">18</param>
<param name="a_label_outset" type="float" min="0" max="1000" _gui-text="Circumferential Label Outset (px):">24</param>
<_param name="circ_divs_label" type="description" appearance="header">Circular Divisions</_param>
<param name="r_divs" type="int" min="1" max="1000" _gui-text="Major Circular Divisions:">5</param>
<param name="dr" type="float" min="1" max="1000" _gui-text="Major Circular Division Spacing (px):">50.0</param>
<param name="r_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major Circular Division:">3</param>
<param name="r_log" type="boolean" _gui-text="Logarithmic Subdiv. (Base given by entry above)">false</param>
<param name="r_divs_th" type="float" min="0" max="1000" _gui-text="Major Circular Division Thickness (px):">2</param>
<param name="r_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor Circular Division Thickness (px):">1</param>
<_param name="ang_divs_label" type="description" appearance="header">Angular Divisions</_param>
<param name="a_divs" type="int" min="1" max="1000" _gui-text="Angle Divisions:">24</param>
<param name="a_divs_cent" type="int" min="1" max="1000" _gui-text="Angle Divisions at Centre:">4</param>
<param name="a_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major Angular Division:">1</param>
<param name="a_subdivs_cent" type="int" min="0" max="1000" _gui-text="Minor Angle Division End 'n' Divs. Before Centre:">2</param>
<param name="a_divs_th" type="float" min="0" max="1000" _gui-text="Major Angular Division Thickness (px):">2</param>
<param name="a_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor Angular Division Thickness (px):">1</param>
<_name>Polar Grid</_name>
<id>grids.polar</id>
<dependency type="executable" location="extensions">grid_polar.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<param name="c_dot_dia" type="float" min="1" max="1000" _gui-text="Centre Dot Diameter (px):">5.0</param>
<param name="a_labels" type="enum" _gui-text="Circumferential Labels:">
<_item value="none">None</_item>
<_item value="deg">Degrees</_item>
</param>
<param name="a_label_size" type="int" min="1" max="1000" _gui-text="Circumferential Label Size (px):">18</param>
<param name="a_label_outset" type="float" min="0" max="1000" _gui-text="Circumferential Label Outset (px):">24</param>
<_param name="circ_divs_label" type="description" appearance="header">Circular Divisions</_param>
<param name="r_divs" type="int" min="1" max="1000" _gui-text="Major Circular Divisions:">5</param>
<param name="dr" type="float" min="1" max="1000" _gui-text="Major Circular Division Spacing (px):">50.0</param>
<param name="r_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major Circular Division:">3</param>
<param name="r_log" type="boolean" _gui-text="Logarithmic Subdiv. (Base given by entry above)">false</param>
<param name="r_divs_th" type="float" min="0" max="1000" _gui-text="Major Circular Division Thickness (px):">2</param>
<param name="r_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor Circular Division Thickness (px):">1</param>
<_param name="ang_divs_label" type="description" appearance="header">Angular Divisions</_param>
<param name="a_divs" type="int" min="1" max="1000" _gui-text="Angle Divisions:">24</param>
<param name="a_divs_cent" type="int" min="1" max="1000" _gui-text="Angle Divisions at Centre:">4</param>
<param name="a_subdivs" type="int" min="1" max="1000" _gui-text="Subdivisions per Major Angular Division:">1</param>
<param name="a_subdivs_cent" type="int" min="0" max="1000" _gui-text="Minor Angle Division End 'n' Divs. Before Centre:">2</param>
<param name="a_divs_th" type="float" min="0" max="1000" _gui-text="Major Angular Division Thickness (px):">2</param>
<param name="a_subdivs_th" type="float" min="0" max="1000" _gui-text="Minor Angular Division Thickness (px):">1</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Render"/>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">grid_polar.py</command>
</script>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu _name="Render">
<submenu name="Grids"/>
</submenu>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">grid_polar.py</command>
</script>
</inkscape-extension>
......@@ -207,7 +207,9 @@ Grid::init (void)
"<effect>\n"
"<object-type>all</object-type>\n"
"<effects-menu>\n"
"<submenu name=\"" N_("Render") "\" />\n"
"<submenu name=\"" N_("Render") "\">\n"
"<submenu name=\"" N_("Grids") "\" />\n"
"</submenu>\n"
"</effects-menu>\n"
"<menu-tip>" N_("Draw a path which is a grid") "</menu-tip>\n"
"</effect>\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment