Code

A simple developer example for using enumerated parameters in Extensions.
authorjohanengelen <johanengelen@users.sourceforge.net>
Tue, 19 Sep 2006 08:20:52 +0000 (08:20 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Tue, 19 Sep 2006 08:20:52 +0000 (08:20 +0000)
share/extensions/enum_example.inx [new file with mode: 0644]

diff --git a/share/extensions/enum_example.inx b/share/extensions/enum_example.inx
new file mode 100644 (file)
index 0000000..2793aa2
--- /dev/null
@@ -0,0 +1,18 @@
+<inkscape-extension>
+    <_name>Enumeration example</_name>
+    <id>org.inkscape.effect.enumtest</id>
+    <param name="enum1" type="enum" _gui-text="Select text: ">
+        <item>string 1</item>
+        <item>string 2</item>
+        <item>test 3!</item>
+    </param>
+    <effect>
+               <object-type>all</object-type>
+                <effects-menu>
+                      <submenu _name="Developer Examples"/>
+               </effects-menu>
+    </effect>
+    <script>
+        <command reldir="extensions" interpreter="python">eqtexsvg.py</command>
+    </script>
+</inkscape-extension>