menudata.README 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. menudata.xml is in part maintained by this script:
  2. gui/wxpython/tools/update_menudata.py
  3. which updates the description and keywords (based on module's
  4. module->label or module->description, module->keywords), and is in
  5. part maintained by editing the file directly.
  6. Other items (menu structure, menu item label descriptions) are
  7. untouched by the update_menudata.py script and should be edited
  8. in the menudata.xml file directly.
  9. menuitem breakdown:
  10. <command> The name of the executable. e.g. "r.info".
  11. <label> The menu short description. [maintained in this file]
  12. <handler> The python function that handles the command.
  13. e.g.OnMenuCmd, OnXTerm, OnXTermNoXMon, many others..
  14. <help> automatically populated by update_menudata.py from
  15. the <command> module's module->description (or if
  16. it exists, module->label). [do not edit]
  17. <keywords> automatically populated by update_menudata.py from
  18. the <command> module's module->keywords. [do not edit]
  19. (G_add_keyword() in GRASS 7+)