AW: [Scilab-Dev] XCOS: custom menu entries

Cercueil.Paul Cercueil.Paul at addi-data.com
Thu Nov 4 09:45:56 CET 2010


Hello,

The final goal is to port the Scicos plugin of Gene-Auto to XCOS.
Gene-Auto is an alternative code generator, that produces C code more suitable for embedded hardware.
The old Scicos plugin provided a "GeneAuto" entry on the "Tools" menu of Scicos, which was starting the code generation when activated.

I somewhat found a workaround for this; I redefined the xcosCodeGeneration Scilab function, so that Gene-Auto will be called instead of Scilab's code generator when the user click on "Code generation".
I would nonetheless highly prefer to have a separate menu, so that I don't have to mask existing features to implement mines.

Regards,

Paul Cercueil
ADDI-DATA GmbH

________________________________________
De : Clément David [clement.david at scilab.org]
Date d'envoi : jeudi 4 novembre 2010 9:18
À : dev at lists.scilab.org
Objet : Re: AW: [Scilab-Dev] XCOS: custom menu entries

Hello,

Paul you are right, Xcos GUI is a full java implementation. Currently
the only way to for a user to customize a diagram is to put a custom
block with a Scilab gui (uicontrols) on the 'set' action.

Can you describe your specific use-case please ? It will help us
determine the need of such an heavy customize requirement.

Regards,

Clément

Le jeudi 04 novembre 2010 à 07:30 +0000, Cercueil.Paul a écrit :
> Hello Sylvestre,
>
> I'm sorry, I don't use Mac OSX, and all the menus of XCOS work just as they should. However, I am unable to find a way to create a new menu on the menu bar, as it was possible on the old Scicos with simple scripts.
>
> Later I found that the menus are hardcoded inside the Java code...
> I will modify the source so that it fits our needs, but I'm simply surprised that there's no practical way to control XCOS from Scilab.
>
> Best Regards,
>
> Paul Cercueil
> ADDI-DATA GmbH
>
> -----Ursprüngliche Nachricht-----
> Von: Sylvestre Ledru [mailto:sylvestre.ledru at scilab.org]
> Gesendet: Donnerstag, 4. November 2010 05:53
> An: dev at lists.scilab.org
> Betreff: Re: [Scilab-Dev] XCOS: custom menu entries
>
> Hello Paul,
>
> Looks like you just fall into a Mac OS X bug. I reported this here:
> http://bugzilla.scilab.org/show_bug.cgi?id=4074
>
> If I understand correctly your problem, you have to go into a dedicated
> menu for your module.
>
> Sylvestre
>
>
> Le mercredi 03 novembre 2010 à 07:29 +0000, Cercueil.Paul a écrit :
> > Hello,
> >
> > I am currently porting a plugin made for Scicos to XCOS.
> > Unfortunately, it seems that the interface changed a lot between these two.
> >
> > I would like to add menu entries on the XCOS main window, from a script file loaded when Scilab starts.
> > I found some macros like scicos_menubar() that seem to do it, unfortunately it seems like it belongs to the old Scilab module, and does not work anymore.
> >
> > Any help would be very welcome.
> >
> > Best regards,
> >
> > Paul Cercueil
> > ADDI-DATA GmbH
> >
> >
> >
> > Produktneuheiten! Sehen Sie auf der SPS/IPC/Drives 2010 in Nürnberg:
> > - Echtzeit-Ethernet Systeme x-ARTS zum Messen, Steuern, Regeln über Echtzeit-Protokolle wie EtherCAT, ProfiNet oder VARAN
> > - Mit MODBUS-Bibliothek: einfache Steuerung der Ethernet-Systeme MSX-E über SPS
> >
> >
> > Besuchen Sie uns vom 23. bis 25. November 2010: Halle 7, Stand 7.123. Wir freuen uns auf Sie!
> >
> >
> > ADDI-DATA GmbH - Airport Boulevard B210 - 77836 Rheinmünster (Germany) Amtsgericht Mannheim HRB210433 Geschäftsführer René Ohlmann
> > UST-ID-Nr.: DE 143754253 WEEE-Reg.-Nr. DE 65862200
> >
>

--
Clément David <clement.david at scilab.org>




Produktneuheiten! Sehen Sie auf der SPS/IPC/Drives 2010 in Nürnberg:
- Echtzeit-Ethernet Systeme x-ARTS zum Messen, Steuern, Regeln über Echtzeit-Protokolle wie EtherCAT, ProfiNet oder VARAN
- Mit MODBUS-Bibliothek: einfache Steuerung der Ethernet-Systeme MSX-E über SPS


Besuchen Sie uns vom 23. bis 25. November 2010: Halle 7, Stand 7.123. Wir freuen uns auf Sie!


ADDI-DATA GmbH - Airport Boulevard B210 - 77836 Rheinmünster (Germany) Amtsgericht Mannheim HRB210433 Geschäftsführer René Ohlmann
UST-ID-Nr.: DE 143754253 WEEE-Reg.-Nr. DE 65862200




More information about the dev mailing list