From 52c050dd0ff72f7399cb1bd743d20c7d447e094b Mon Sep 17 00:00:00 2001 From: Noldor Date: Tue, 23 Jan 2007 16:31:02 +0000 Subject: added new buttongroup classes,dcc.setBandwidthLimit; fixed/removed some old code, added doc to dynamictooltips git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@234 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_progressbar.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/objects/class_progressbar.cpp') diff --git a/src/modules/objects/class_progressbar.cpp b/src/modules/objects/class_progressbar.cpp index fd5c12619..cece149a7 100644 --- a/src/modules/objects/class_progressbar.cpp +++ b/src/modules/objects/class_progressbar.cpp @@ -45,10 +45,10 @@ @description: This widget can be used to display a horizontal progress bar. @functions: - !fn: $setProgress() + !fn: $setProgress() Set the amount of steps completed. See also [classfnc]$settotalSteps[/classfnc]() - !fn: $settotalSteps() + !fn: $settotalSteps() The progress bar uses the concept of steps; you give it the total number of steps and the number of steps completed so far and it will display the percentage of steps that have been completed. See also [classfnc]$setProgress[/classfnc]() @@ -95,7 +95,7 @@ bool KviKvsObject_progressbar::init(KviKvsRunTimeContext * pContext,KviKvsVarian bool KviKvsObject_progressbar::functionSetProgress(KviKvsObjectFunctionCall *c) { - kvs_int_t iProgress; + kvs_uint_t iProgress; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("step_value",KVS_PT_UNSIGNEDINTEGER,0,iProgress) KVSO_PARAMETERS_END(c) @@ -104,7 +104,7 @@ bool KviKvsObject_progressbar::functionSetProgress(KviKvsObjectFunctionCall *c) } bool KviKvsObject_progressbar::functionSetTotalSteps(KviKvsObjectFunctionCall *c) { - kvs_int_t iSteps; + kvs_uint_t iSteps; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("total_steps",KVS_PT_UNSIGNEDINTEGER,0,iSteps) KVSO_PARAMETERS_END(c) -- cgit v1.3.1-10-gc9f91