05_developer_tutorials:02_extending_groimp:linking-help-button
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| 05_developer_tutorials:02_extending_groimp:linking-help-button [2025/01/31 14:06] – removed - external edit (Unknown date) 127.0.0.1 | 05_developer_tutorials:02_extending_groimp:linking-help-button [2025/01/31 14:06] (current) – ↷ Page moved from 04_developer_documentation:dev-guide:linking-help-button to 05_developer_tutorials:02_extending_groimp:linking-help-button tim2 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Configuration of Help buttons ====== | ||
| + | |||
| + | By default every explorer created in GroIMP has a small question mark button on the upper right corner. | ||
| + | Moreover several buttons are added to different panels. In the following it will be described how to link this buttons to the right places and how to add buttons to newly created panels. | ||
| + | |||
| + | |||
| + | ===== Linking a button to a certain page ===== | ||
| + | |||
| + | Every help button triggers the HelpExplorerFactory which then creates the help panel, during this creation the factory can receive a path to a certain page. If a path was received this path will be opened. | ||
| + | A path in this case is defined by the name of the tree items in the help explorer separated by a slash. e.g.: '' | ||
| + | |||
| + | This path can be provided by the plugin.properties file on different levels, the button will first look for a ' | ||
| + | |||
| + | In practice this means a plugin can have a default path defined by ' | ||
| + | < | ||
| + | pluginName = RGG | ||
| + | provider = grogra.de | ||
| + | docLink = RGG Plugin Manual | ||
| + | |||
| + | [...] | ||
| + | |||
| + | / | ||
| + | </ | ||
| + | |||
| + | In the case of an explorer created by a resource directory, the path in the properties file is ''/ | ||
| + | |||
| + | |||
| + | ===== Adding a new help button to a panel ===== | ||
| + | |||
| + | In order to add a help button to the upper right corner of a panel without a menu, the easiest way is to link the default menu which already includes a help button. This can be done by adding '' | ||
| + | If a menu already exists, | ||
| + | < | ||
| + | < | ||
| + | <link source="/ | ||
| + | </ | ||
| + | |||
| + | If the help is not suppose to be added as a button but as a regular menu item, ''< | ||
| + | |||
| + | |||
