type="hidden" for <param> on INX file

Bug #171870 reported by Aurium
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Marcin Floryan

Bug Description

Hi,

I'm doing the InkMoz (the Bridge from Inkscape to Mozilla), to enable the
creation of javascript extensions for Inkscape and using the Gecko's DOM
implementation and other functionalities.
http://www.colivre.coop.br/bin/view/Aurium/InkMoz

So... I create the runInkMoz.py that will do little things and call the XUL
aplication that enables what i said.

What i need to say is: The extension code can't be called directly by the
Inkscape. There is no way to do it with an javascript file. :-/ ...and that
is not a Inkscape problem. ;-)

So... The Inkscape must call the InkMoz (this is a work for Inkscape) and
it call the file.js to run inside itself.

But... The InkMoz must be on the Inkscape extension directory and the js
file too.
I can't do this:
<command reldir="extensions">runInkMoz.py file.js</command>
I know... is more dificult to parse that.
Well... you can add the type="hidden" for <param> like that:
<param name="occult" type="hidden">my static arg value</param>
...
<command reldir="extensions">runInkMoz.py</command>
and the runInkMoz.py will know what it need with a non user accessible
parameter.

All bridges will be like that. The inkscape call the bridge, and it call
the extension code file.

The type="hidden" can be useful for a lot of things and very necessary for
that.

Thanks

Ted Gould (ted)
Changed in inkscape:
importance: Undecided → Wishlist
Ted Gould (ted)
Changed in inkscape:
status: New → Triaged
Revision history for this message
Marcin Floryan (mfloryan) wrote :

The type is used to denote the type of value passed in the parameter but you can now create parameters that are hidden from the GUI and I believe this should fix the problem. Use the "gui-hidden" attribute on the param element.

Revision history for this message
Marcin Floryan (mfloryan) wrote :

See inkscape_help_manual.inx for examples

Changed in inkscape:
assignee: ted-gould → mfloryan
status: Triaged → Fix Released
Revision history for this message
zuencap (zuencap) wrote :

Please add some explanation about this attribute to wiki.

jazzynico (jazzynico)
tags: added: extensions-plugins
Revision history for this message
jazzynico (jazzynico) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.