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:11] – [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 320: | Line 326: | ||
</ | </ | ||
< | < | ||
- | <code/> | + | </code> |
Where: | Where: | ||
Line 342: | Line 348: | ||
/ | / | ||
/ | / | ||
- | < | + | </code> |
+ | |||
+ | ===== 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 'File/new/ | ||
+ | To add a gsz file stored in ' | ||
+ | |||
+ | <code xml> | ||
+ | <ref name=" | ||
+ | <ref name=" | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </code> | ||
+ | |||
+ | Additionally the name shown in the menu can be set in the properties file. | ||
See more: | See more: |
dev-guide/creating-own-plugin.1719324706.txt.gz · Last modified: 2024/06/25 16:11 by gaetan