Kent Olsson schrieb:
Here are a few suggestions for the progress bar taken from my own
progress bar:
1. change constructor
QxProgressBar(vDirection, vMin, vMax)
then the progress bar ca grow in all directions with the following new
constants:
QxConst.DIRECTION_RIGHT = "right";
QxConst.DIRECTION_LEFT = "left";
QxConst.DIRECTION_UP = "up";
QxConst.DIRECTION_DOWN = "down";
i don't think, this is a good idea because
1) the direction is almost from left to right (IMHO i can't see any need
for anything else)
2) vMin is IMHO mostly 0 (in my progressbar you can change this, but in
fact in the 25 years i am programming i have never changed this)
3) the property most neeted is the max - property.
so if you think, we need all of this, the constructor should be:
QxProgressBar(vMax, vMin, vDirection)
2. create a setter for the text to be displayed, and remove it from the
constructor, as it is not always wished.
sorry, i can't understand, what you mean.
if you don't like the text, write
mybar.showPercent(false).
and if you would show any other text (for example the name of a file you
load) how could this be done AUTOMATICALLY inside the class?
isn't it better in this case to set your own text (for example under the
bar, like window does by deleting or copying files)
3. the text displayed is not always % it could be points or decimal or
nothing too
sorry, i began to think, i am foolish but i don't understand. what is
the sense of writing "i have done 12 points of the whole progress"?
I will upload my code and see if we can use that in any way for the
standard widget.
Please wait about 30 minutes. i am actually working on some changes.
lets "merge" the code if i am done.
Olli
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel