From cccfbb6c8115eefc83bafa18db7e2b66ade11630 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 15 Jan 2010 21:36:42 +0000 Subject: little doc+indentation fix git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3840 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/libkviobjects.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/modules/objects/libkviobjects.cpp') diff --git a/src/modules/objects/libkviobjects.cpp b/src/modules/objects/libkviobjects.cpp index 7803c69e0..4c6fb6af8 100644 --- a/src/modules/objects/libkviobjects.cpp +++ b/src/modules/objects/libkviobjects.cpp @@ -630,24 +630,26 @@ static bool objects_kvs_fnc_listObjects(KviKvsModuleFunctionCall * cmd) @short: Dump the kvirc widgets. @syntax: - $objects.dump() + $objects.dump() @description: - This function returns the tree of the widgets of the kvirc, if the flag is planned to 1,[br] - will return it on the currente window, if it' is planned to 0 instead it will return it as an array.[br] - ES: - %A[]=$objects.dump(0) + This function return an array containing a representation of the widgets tree in kvirc;[br] + If the flag is enabled, the array will be printed in the current window, too. + @examples: + [example] + %A[]=$objects.dump(0) %i=0 while (%i != %A[]#) { echo %A[%i] %i++ } + [/example] */ bool bFlag; KVSO_PARAMETERS_BEGIN(cmd) - KVSO_PARAMETER("flag on video",KVS_PT_BOOL,0,bFlag) + KVSO_PARAMETER("print on current window",KVS_PT_BOOL,0,bFlag) KVSO_PARAMETERS_END(cmd) if (bFlag) cmd->window()->output(80, "Objects dump:"); QWidgetList list = g_pApp->topLevelWidgets(); @@ -684,7 +686,6 @@ static bool objects_kvs_fnc_listObjects(KviKvsModuleFunctionCall * cmd) dumpChildObjects(cmd->window(), list.at(i), spacing.ptr(), bFlag,n,idx); } - //++it; } cmd->returnValue()->setArray(n); -- cgit v1.3.1-10-gc9f91