SHIVA.AddCommand ( vs. r1.1)
Diffs

 <<O>>  Difference Topic AddCommand (r1.1 - 13 Sep 2005 - Main.HengYuan)
Line: 1 to 1
Added:
>
>
META TOPICPARENT Plugin

Steps to add menu/toolbar actions

  1. Extend either shiva.ActionCommand or shiva.ToggleCommand.
  2. 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".
  3. 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.
  4. To add the command to the menu, modify shiva/resources/menu.xml
  5. 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/.


Topic: AddCommand . { View | Diffs | r1.1 | More }

Revision -
Revision r1.1 - 13 Sep 2005 - 21:06 - Main.HengYuan