diff options
| author | 2010-01-15 21:36:42 +0000 | |
|---|---|---|
| committer | 2010-01-15 21:36:42 +0000 | |
| commit | cccfbb6c8115eefc83bafa18db7e2b66ade11630 (patch) | |
| tree | 4890f159187b7966b588383ccef81adab83311aa /src/modules/objects/libkviobjects.cpp | |
| parent | Quick doc fix (diff) | |
| download | KVIrc-cccfbb6c8115eefc83bafa18db7e2b66ade11630.tar.gz KVIrc-cccfbb6c8115eefc83bafa18db7e2b66ade11630.tar.bz2 KVIrc-cccfbb6c8115eefc83bafa18db7e2b66ade11630.zip | |
little doc+indentation fix
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@3840 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/libkviobjects.cpp')
| -rw-r--r-- | src/modules/objects/libkviobjects.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
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: - <array>$objects.dump(<flag b>) + <array> $objects.dump(<print:boolean>) @description: - This function returns the tree of the widgets of the kvirc, if the flag <b> 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 <print> 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); |
