gazebosim/gz-gui

Option to set/change plugin configuration

Ouverte

#142 ouverte le 3 nov. 2020

 (0 commentaire) (0 réaction) (0 personne assignée)C++ (68 forks)auto 404
enhancementhelp wanted

Métriques du dépôt

Stars
 (103 étoiles)
Métriques de merge PR
 (Merge moyen 8h 31m) (3 PRs mergées en 30 j)

Description

Currently, support for plugin configurations is limited to passing them at the moment the plugin is loaded. This configuration can only be passed programmatically or from the command line. This makes it impossible to configure a plugin that's inserted from the top-right menu, for example.

It would be nice to add the ability of changing a plugin's configuration during runtime.

  • On the GUI, this could be an extra field on the plugin's Settings menu.
  • To make things simple, we could just let users input the config string in an XML format through the GUI. In the future, we could consider a way for plugins to declare their schema so we can generate an interface with fields to be filled.
  • In the code, we could add a new optional callback for plugins to implement when they receive a new configuration, similar to LoadConfig. Maybe UpdateConfig, which receives an XML element with the new config.

Guide contributeur