[Scilab-Dev] Re: Issue with the palette in an Xcos toolbox based on the Xcos skeleton example

Sumeet sumeetsk at gmail.com
Mon Jun 11 13:45:38 CEST 2012


You could have a look at the dspblock project that I'm working on here:
http://forge.scilab.org/index.php/p/dspblock/source/tree/master/

I create images in the images / svg folder using inkscape, and the
following code in etc / dspblock.start somehow takes care of the rest. I
haven't tried exploring how xcosPalAddBlock works.

  39<http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L39>h5Files
= gsort(ls(root_tlbx + "/images/h5/*.sod"));
40<http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L40>gifFiles
= gsort(ls(root_tlbx + "/images/gif/*." + ["png" "jpg" "gif"]));
␊  41<http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L41>svgFiles
= gsort(ls(root_tlbx + "/images/svg/*." + ["svg" "png" "jpg"
"gif"]));  42<http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L42>
43<http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L43>for
i=1:size(h5Files, "*")
44<http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L44>pal
= xcosPalAddBlock(pal, h5Files(i), gifFiles(i), svgFiles(i));
45<http://forge.scilab.org/index.php/p/dspblock/source/tree/master/etc/dspblock.start#L45>end
On Mon, Jun 11, 2012 at 7:24 AM, hehiha <dungnguyenbk at gmail.com> wrote:

> I have problem same you.
> Show I don't know what's tool to draw image same.
> > [1]:
> >
> http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/blocks/CSCOPXY.svg
> > [2]:
> >
> http://cgit.scilab.org/scilab/plain/scilab/modules/xcos/images/palettes/CSCOPXY.png
>
> I try to draw by scilab. But it's difficult to drawn.
> Could you tell me method to draw icon for block step by step?
>
>
> --
> View this message in context:
> http://mailinglists.scilab.org/Issue-with-the-palette-in-an-Xcos-toolbox-based-on-the-Xcos-skeleton-example-tp3876681p4024331.html
> Sent from the Scilab developers - Mailing Lists Archives mailing list
> archive at Nabble.com.
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> dev-unsubscribe at lists.scilab.org
> To check the archives of this mailing list, see
> http://mailinglists.scilab.org/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20120611/4f28404b/attachment.htm>


More information about the dev mailing list