I'd suggest the maker preview menu as a place to look for code wrt the images of paths in dropdowns.

You can probably modify the stockitems code used to pull markers and patterns from the library files too.


On 23/06/2008, Maximilian Albert <Anhalter42@...173...> wrote:
Hi all,

I started working in the direction of Valerie's proposal for a redesigned pen/pencil toolbar (see http://wiki.inkscape.org/wiki/index.php/Vector-brushes), and I have a few quick questions:

1) How can I add images/paths to dropdown menus, e.g., to illustrate the shape that is going to be applied as a PatternAlongPath LPE?

2) I'd like to save the various possible shapes for dropdown menu #6 (cf. the image in the blueprint) in a separate file and read them during runtime rather than to hard-code them in advance. How can I access their path information from my code so that they can be applied as a PatternAlongPath?

3) For the LPE experts (Johan in particular :-) ): Valerie suggests that the width of the shape can be controlled via two spinbuttons. When I apply a given shape to a path (using PatternAlongPath), does the width of the resulting LPE-item depend on the length of the path or is it independent of this length (i.e., does the resulting item become wider when the path is longer and thus the pattern is "stretched" more)?

Thanks in advance,
Max
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@...1921...

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel