[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 19:54:37 CEST 2012


Thanks Clement.

Does this not work in linux? I tried it in Ubuntu 10.04 and 12.04, it
didn't work in either. When I drag the svg, it doesn't get dropped in the
diagram at all.

On Mon, Jun 11, 2012 at 6:23 PM, Clément DAVID <
clement.david at scilab-enterprises.com> wrote:

> Hello,
>
> Step by step for a MY_BLOCK block:
>  * use inkscape to draw an icon
>  * save it to images/svg/MY_BLOCK.svg
>  * Drag an drop your block into a diagram
>  * check that your icon render well
>  * File->Export to png and save it to images/gif/MY_BLOCK.png
>
> That's all.
>
> Le 11/06/2012 13:45, Sumeet a écrit :
>
>> 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/<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<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<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<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<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<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<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<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
>> <mailto: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<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<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<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 <dev-unsubscribe at lists.scilab.org>
>>    <mailto:dev-unsubscribe at lists.**scilab.org<dev-unsubscribe at lists.scilab.org>
>> >
>>
>>    To check the archives of this mailing list, see
>>    http://mailinglists.scilab.**org/ <http://mailinglists.scilab.org/>
>>
>>
>>
>
> --
> Clément DAVID
> Scilab Enterprises
> skype://clement_david_scilab
>
> --
> To unsubscribe from this mailing-list, please send an empty mail to
> dev-unsubscribe at lists.scilab.**org <dev-unsubscribe at lists.scilab.org>
> To check the archives of this mailing list, see
> http://mailinglists.scilab.**org/ <http://mailinglists.scilab.org/>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20120611/4629e63e/attachment.htm>


More information about the dev mailing list