Index: trunk/doc-rnd/TODO
===================================================================
--- trunk/doc-rnd/TODO (revision 1640)
+++ trunk/doc-rnd/TODO (revision 1641)
@@ -1,11 +1,5 @@
- test before release: gsch2pcb-rnd
-- doc/text:
- - [res]
- - format doc
- - multi-key
-
-
CLEANUP #5
- next_gui: keep them open, hide
- look for #warnings
Index: trunk/doc-rnd/res.html
===================================================================
--- trunk/doc-rnd/res.html (revision 1640)
+++ trunk/doc-rnd/res.html (revision 1641)
@@ -82,6 +82,7 @@
A key description is a text in the form of:
+ - the name of the node is the visible name of the menu item
- <key>keyname, e.g. "<key>k" for key K, or "<key>F10" for F10
- modifier<key>keyname, e.g. "Alt-<key>K" for Alt+K
- modifier-modifier<key>keyname, e.g. "Shift-Alt-<key>K" for Shift+Alt+K; modifiers are Alt, Shift and Ctrl; order does not matter, all three can be used together.
@@ -88,8 +89,29 @@
- multikey sequence: multiple of the above, separated by semicolons (protected with {} for lihata, as the text contains semicolon); e.g. "{<key>f;<key>o}" means the user presses "f" then "o". Sequences can be a dozen stroke long and any segment may use modifiers
-TODO
+An example menu item with submenus (can be a main menu or a submenu of
+another menu item):
+
+ha:example menu item {
+ li:submenu {
+ ha:menu item {
+ action=Save(ElementConnections)
+ tip=example menu
+ }
+ -
+ ha:another menu item {
+ a={Shift-Alt<key>r}
+ action={Action1(); Action2();}
+ }
+ }
+}
+
+ li:popups
+Each children is a hash that describes a popup menu. A popup menu behaves
+exactly like a menu item, it should have a submenu list. Popup windows will
+be popped up by executing an action with the name of the popup menu.
+
save/load and compatibility
Not affected.