![](https://secure.gravatar.com/avatar/e1ef55136ae45d648254935a18e9acb7.jpg?s=120&d=mm&r=g)
Hi Pieter,
Your request is a special case of "a more interactive extension dialog". I think that is a important feature and you may consider to integrate Autoglade to inkscape as a default module to extensions that need a more inteligent dialog. http://autoglade.sourceforge.net
But that will be really more cool if the Autoglade idea was implemented inside the inkscape and the INX may point to a partial glade file to build the fields area with more flexibility to the developer and some automation inside the dialog.
Aurium
On Tue, Nov 16, 2010 at 10:31 AM, Pieter Barendrecht <pieter@...2481...> wrote:
Hi,
I wondered whether you guys agree with me that examples could be useful in some extensions? With most extensions, you can create the desired result by trial-and-error (using the Live Preview function). However, other extensions aren't really self-explanatory (like the Lindenmayer System extension). Although there is a description how it can be used, most users won't understand what you can create with the extension. Therefore, I proposed to implement a list of examples (or a tab "Examples").
I would like to implement it myself, but I don't know where to start. I found some documentation about the INX files: http://wiki.inkscape.org/wiki/index.php/MakingAnINX Maybe with a <script> environment, it would be possible to automatically assign appropriate values to the fields?
Regards, Pieter
On 10/27/2010 06:12 PM, Pieter Barendrecht wrote:
Hi all,
I'm currently working on an expansion of the L-System Extension (just for fun, getting to know XML and Python). I implemented an extra parameter "Factor", such that the fractal scales with each level. More info about this at the Inkscape Forums: http://www.inkscapeforum.com/viewtopic.php?f=5&t=6411
The thing is, I would like to include some examples in the extension. I thought of a drop-down menu (an "enum" type), with entries like "Koch Snowflake" and "Pythagoras Tree".
<param name="Examples" type="enum" _gui-text="Examples:"> <item value="Koch_Snowflake">Koch Snowflake</item> <item value="Pythagoras_Tree">Pythagoras Tree</item> </param>
When the user clicks on such an entry, appropriate values should be assigned to the fields (e.g. Axiom="F", Rules="F=F+F+F", Factor="0.5", etc.). I wondered whether this is possible using XML, or the Relax NG schema language?
So to be clear, the GUI-part isn't a problem. The UI looks like this at the moment: http://www.redpanda.nl/ExamplesInkscape.png However, the "auto-assign" function needs to be implemented yet.
Thanks, Pieter
Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel