dev-guide:creating-own-plugin
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dev-guide:creating-own-plugin [2024/06/25 16:12] – [Linking an example] gaetan | dev-guide:creating-own-plugin [2025/04/02 15:30] (current) – gaetan | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Creating a new Plugin ===== | + | ===== GroIMP |
| ==== Plugin structure ==== | ==== Plugin structure ==== | ||
| Line 291: | Line 291: | ||
| ===== Embedded documentation ===== | ===== Embedded documentation ===== | ||
| - | Gr | + | The embedded documentation of GroIMP is based on the docbook format with the htmlhelp template. |
| + | The docbook file must be created in src/ | ||
| + | There are several docbook editors available online. | ||
| + | With GroIMP 2.1.4 it is also possible to use a markdown file as a source of documentation, | ||
| + | A documentation on the Markdown based approach can be found [[dev-guide: | ||
| + | The compilation including the embedded help is described [[maintainer-guide: | ||
| + | The linking of the embedded documentation | ||
| ===== Linking an example ===== | ===== Linking an example ===== | ||
| - | In order to make your plugin easier to get started with, it is recommended to add an example project with it. The example projects are available in GroIMP from the [[user-guide: | + | In order to make your plugin easier to get started with, it is recommended to add an example project with it. The example projects are available in GroIMP from the [[user-guide: |
| - | To include an example project in the plugin the project needs to be referenced in the '' | + | To include an example project,the gsz file needs to be placed in ' |
| <code xml> | <code xml> | ||
| Line 343: | Line 349: | ||
| / | / | ||
| </ | </ | ||
| + | |||
| + | ===== Linking a Template ===== | ||
| + | |||
| + | Similar to the examples a FilterSourceFactory can be used to add new templates. Templates are the files that can be selected by creating a new project ' | ||
| + | To add a gsz file stored in ' | ||
| + | |||
| + | <code xml> | ||
| + | <ref name=" | ||
| + | <ref name=" | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | Additionally the name shown in the menu can be set in the properties file. | ||
| See more: | See more: | ||
dev-guide/creating-own-plugin.1719324766.txt.gz · Last modified: 2024/06/25 16:12 by gaetan
