User Tools

Site Tools


tutorials:create-groimp-plugin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:create-groimp-plugin [2024/12/06 08:50] gaetantutorials:create-groimp-plugin [2024/12/06 08:54] (current) gaetan
Line 1: Line 1:
 This tutorial aims at showing how to get started on GroIMP plugin development. It is assumed that you are able to compile the plugin using Maven (either the plugin alone, or the whole project). This tutorial aims at showing how to get started on GroIMP plugin development. It is assumed that you are able to compile the plugin using Maven (either the plugin alone, or the whole project).
-In this tutorial we are going to create a new plugin (from the empty template), add a new MimeType (format of file accepted by GroIMP) for both import and export, and add a menu item that run a specific command.+In this tutorial we are going to create a new plugin (from the empty template), add a new MimeType (format of file accepted by GroIMP) for import, and add a menu item that run a specific command.
  
 See: See:
Line 372: Line 372:
  
 The directory is now using the parameter //optionCategory// , which will make it visible in the panel //preferences// of GroIMP. And the tag ''<option />'' is defining a new option with a type and a default value. The directory is now using the parameter //optionCategory// , which will make it visible in the panel //preferences// of GroIMP. And the tag ''<option />'' is defining a new option with a type and a default value.
 +
 +{{:tutorials:tuto_addoption.png?400|}}
  
 Now we change the java code that was creating the Cylinders to use the value of this option. In the file ''Commands.java'', change the method : Now we change the java code that was creating the Cylinders to use the value of this option. In the file ''Commands.java'', change the method :
tutorials/create-groimp-plugin.1733471419.txt.gz · Last modified: 2024/12/06 08:50 by gaetan