From dff4d1a9467e38c60e4cd83bc9c33c18e3df92fa Mon Sep 17 00:00:00 2001 From: wodim Date: Sat, 6 Apr 2013 11:14:40 +0000 Subject: clarification for #1374 git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@6326 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/popup/libkvipopup.cpp | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/modules') diff --git a/src/modules/popup/libkvipopup.cpp b/src/modules/popup/libkvipopup.cpp index e31142226..b5bf0c3d0 100644 --- a/src/modules/popup/libkvipopup.cpp +++ b/src/modules/popup/libkvipopup.cpp @@ -127,7 +127,7 @@ @description: Adds a menu item with visible and the optional to an already existing popup or nested popup named . If you want to add an item to a nested popup, use the form - "popup.item".[br] + "popup.item", for example, "channeltextview.myNestedItem".[br] is a string that is evaluated at [cmd]popup[/cmd] call time and may contain identifiers and variables.[br] is an optional [doc:image_id]image identifier[/doc].[br] @@ -180,7 +180,8 @@ static bool popup_kvs_cmd_addItem(KviKvsModuleCallbackCommandCall * c) Run quietly: don't print warning and errors @description: Adds a menu prologue to an already existing popup or nested popup named . If you - want to add an item to a nested popup, use the form "popup.item".[br] + want to add an item to a nested popup, use the form "popup.item", for example, + "channeltextview.myNestedItem".[br] is the optional item id - if not specified, it will be generated automatically.[br] will be executed just before the popup is filled at [cmd]popup.show[/cmd] command call. can be a simple instruction or an instruction block delimited by curly brackets.[br] @@ -228,7 +229,8 @@ static bool popup_kvs_cmd_addPrologue(KviKvsModuleCallbackCommandCall * c) Run quietly: don't print warning and errors @description: Adds a menu epilogue to an already existing popup or nested popup named . If you - want to add an item to a nested popup, use the form "popup.item".[br] + want to add an item to a nested popup, use the form "popup.item", for example, + "channeltextview.myNestedItem".[br] is the optional item id - if not specified, it will be generated automatically.[br] will be executed just after the popup is filled at [cmd]popup.show[/cmd] command call. can be a simple instruction or an instruction block delimited by curly brackets.[br] @@ -274,7 +276,7 @@ static bool popup_kvs_cmd_addEpilogue(KviKvsModuleCallbackCommandCall * c) @description: Adds a nested popup item with visible and the optional to an already existing popup or nested popup named . If you want to add an item to a nested popup, use the form - "popup.item".[br] + "popup.item", for example, "channeltextview.myNestedItem".[br] is a string that is evaluated at [cmd]popup[/cmd] call time and may contain identifiers and variables.[br] is an optional [doc:image_id]image identifier[/doc].[br] @@ -322,7 +324,8 @@ static bool popup_kvs_cmd_addExtPopup(KviKvsModuleCommandCall * c) @description: Adds a descriptive label with visible and the optional to an already existing popup or nested popup named . If you want to add an item to a nested popup, use the form - "popup.item". The label acts like a separator - it is not selectable or clickable.[br] + "popup.item", for example, "channeltextview.myNestedItem". The label acts like a separator - it is + not selectable or clickable.[br] is a string that is evaluated at [cmd]popup[/cmd] call time and may contain identifiers and variables.[br] is an optional [doc:image_id]image identifier[/doc].[br] @@ -368,7 +371,7 @@ static bool popup_kvs_cmd_addLabel(KviKvsModuleCommandCall * c) @description: Adds an empty nested popup item with visible and the optional to an already existing popup or nested popup named . If you want to add an item to a nested popup, use the form - "popup.item".[br] + "popup.item", for example, "channeltextview.myNestedItem".[br] is a string that is evaluated at [cmd]popup[/cmd] call time and may contain identifiers and variables.[br] is an optional [doc:image_id]image identifier[/doc].[br] @@ -415,7 +418,8 @@ static bool popup_kvs_cmd_addSubPopup(KviKvsModuleCommandCall * c) @description: Adds a separator (typically drawn as a straight line) to an already existing popup or nested popup named . If you want to add an item to a nested popup, use the form - "popup.item". The separator is not selectable or clickable.[br] + "popup.item", for example, "channeltextview.myNestedItem". The separator is not selectable + or clickable.[br] is the optional item id - if not specified, it will be generated automatically.[br] If is given, it is evaluated at [cmd]popup.show[/cmd] call time and if the result is 0, the item is not shown in the physical popup.[br] @@ -455,7 +459,8 @@ static bool popup_kvs_cmd_addSeparator(KviKvsModuleCommandCall * c) Run quietly: don't print warning and errors @description: Removes all the items from an already existing popup or nested popup named . - If you want to clear a nested popup, use the form "popup.item".[br] + If you want to clear a nested popup, use the form "popup.item", for example, + "channeltextview.myNestedItem".[br] @seealso: [cmd]defpopup[/cmd], [cmd]popup.show[/cmd], [fnc]popup.isEmpty[/fnc] */ @@ -577,7 +582,7 @@ static bool popup_kvs_cmd_destroy(KviKvsModuleCommandCall * c) !sw: -d | --deep Search the whole popup tree instead of only the first level @description: - Deletes the item specified by from the poup . + Deletes the item specified by from the popup . If the -d flag is specified then the item with the specified is searched in the whole popup tree (containing submenus) otherwise only the first level is searched. [br] -- cgit v1.3.1-10-gc9f91