Parcourir la source

explain menudata.xml

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42752 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman il y a 15 ans
Parent
commit
8695c0554e
1 fichiers modifiés avec 30 ajouts et 0 suppressions
  1. 30 0
      gui/wxpython/xml/menudata.README

+ 30 - 0
gui/wxpython/xml/menudata.README

@@ -0,0 +1,30 @@
+menudata.xml is in part maintained by this script:
+  gui/wxpython/support/update_menudata.py
+
+which updates the description and keywords (based on module's
+module->label or module->description, module->keywords), and is in
+part maintained by editing the file directly.
+
+Other items (menu structure, menu item label descriptions) are
+untouched by the update_menudata.py script and should be edited
+in the menudata.xml file directly.
+
+
+menuitem breakdown:
+
+<command>   The name of the executable.  e.g. "r.info".
+
+<label>     The menu short description. [maintained in this file]
+
+<handler>   The python function that handles the command.
+	     e.g.OnMenuCmd, OnXTerm, OnXTermNoXMon, many others..
+
+<help>      automatically populated by update_menudata.py from
+	     the <command> module's module->description (or if
+	     it exists, module->label).  [do not edit]
+
+<keywords>  automatically populated by update_menudata.py from
+	     the <command> module's module->keywords.  [do not edit]
+	     (G_add_keyword() in GRASS 7+)
+
+