Steps to add menu/toolbar actions
- Extend either
shiva.ActionCommand or shiva.ToggleCommand.
- Call
shiva.Main.addCommand ("comandName", command)
to add the command to SHIVA command pool. The current naming convention for the command name is
plugin/action. For instance: "Painter/saveVolume".
- If the command is a ToggleCommand, modify
shiva/resources/command.xml to indicate
command group s.t. only one ToggleCommand is selected at any given time.
- To add the command to the menu, modify
shiva/resources/menu.xml
- To add the command to the toolbar, modify
shiva/resources/toolbar.xml
Icons used in toolbar.xml in general are located in
shiva/resourcies/icon/.