- updated for new menu commands
- corrected: menuscreen_goto -> menu_goto (V.Boerchers)
This commit is contained in:
@@ -413,10 +413,14 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>menu_add_item <menu_id> <new_item_id> <type></term>
|
||||
<term>menu_add_item <menu_id> <new_item_id> <type> [options]</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Adds a new menuitem to a menu. The main menu of a client, will be created automatically as soon as the client adds an item. This main menu has an empty id ("") and the name is identical to the name of the client.
|
||||
Adds a new menuitem to a menu. The main menu of a client,
|
||||
will be created automatically as soon as the client adds
|
||||
an item. This main menu has an empty id ("") and the name
|
||||
is identical to the name of the client. The options are
|
||||
described under menu_set_item below.
|
||||
<variablelist><title>menu item types</title>
|
||||
<varlistentry>
|
||||
<term>action</term>
|
||||
@@ -501,6 +505,31 @@
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>-is_hidden false|true (false)</term>
|
||||
<listitem><para>
|
||||
If the item currently should not appear in a menu.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term>-parent <parentid> ()</term>
|
||||
<listitem><para> (Re)sets the parent of this
|
||||
menu. Parentid has to be of type menu. This
|
||||
function does not change any menu (neither the
|
||||
old nor the new parent) since this option is
|
||||
normally used with hidden menus. Otherwise use
|
||||
menu_add/del_item. Applying this option is
|
||||
equivalent to second argument of the menu_goto
|
||||
command. </para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term>action</term>
|
||||
@@ -688,13 +717,55 @@
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>menuscreen_goto <menu_id></term>
|
||||
<term>menu_goto <menu_id> [<parent_id>]</term>
|
||||
<listitem>
|
||||
<para>
|
||||
Changes current menu to <menu_id>. Depending on the
|
||||
configure option --enable-permissive-menuscreen-goto the
|
||||
configure option --enable-permissive-menu-goto the
|
||||
client may switch to any (if enabled) or his menus only
|
||||
(if not enabled).
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><menu_id></term>
|
||||
<listitem><para>
|
||||
The menuitem to go to (any menu type e.g. an
|
||||
action or a menu).
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parent_id></term>
|
||||
<listitem><para>
|
||||
Resets the parent of <menu_id>. This
|
||||
optional parameter can be used to reuse a menu
|
||||
from different places (for wizzards etc.). Use it
|
||||
with caution: This may lead to a messy menu
|
||||
structure in particular due to the fact that the
|
||||
menus are not changed !
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term>menu_set_main <menu_id></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Sets the entry point into the menu system. Use this to
|
||||
make the server menu invisible. Note that you may only set
|
||||
the menu to your own clients menus unless the configure
|
||||
option --permissive-menu-goto is used. (See menuscreens.c
|
||||
for the menu ids of the server menus.)
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><menu_id></term>
|
||||
<listitem><para>
|
||||
The new main menu, restricted to the client's own
|
||||
menus.
|
||||
</para></listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
Reference in New Issue
Block a user