Howto:Hacking Inkscape to add Canvas support: Difference between revisions

m
→‎GUI (INX File): https://inkscape.org/en/develop/extensions/
m (→‎GUI (INX File): https://inkscape.org/en/develop/extensions/)
Line 54: Line 54:


== GUI (INX File) ==
== GUI (INX File) ==
For now, this section contains a few pointers on creating a custom INX file, which is the mechanism to register a new extension with Inkscape and provide a simple UI for it.
For now, this section contains a few pointers on creating a custom INX file, which is the mechanism to register a new extension with Inkscape and provide a simple UI for it.
Extensions can be supplied with values obtained through easily definable parameters. Inkscape provides the basic GUI for user input. The following parameters are supported:
* int (for an integer number input field)
* string (for a text input field)
* float (for a float number input field)
* boolean (for a checkbox)
* enum (for a dropdown list)
* optiongroup (for a dropdown list or radio buttons)
* color (for a color selector, like the one in the Fill & Stroke dialog)
For the sake of the UI there are also the following two parameters that do not provide data to the extension but alter the user input GUI.
    description (for descriptions below parameters)
    notebook (for tabs)


* [http://wiki.inkscape.org/wiki/index.php/Script_extensions Script Extensions]
* [http://wiki.inkscape.org/wiki/index.php/Script_extensions Script Extensions]