Bug 22615 - [Dialogs] Native ProgressBar look does not match look of AnimatedProgress
Summary: [Dialogs] Native ProgressBar look does not match look of AnimatedProgress
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Veronika Irvine CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-08-21 04:23 EDT by Andre Weinand CLA
Modified: 2002-10-30 16:06 EST (History)
4 users (show)

See Also:


Attachments
Animated Aqua progressbar (14.70 KB, image/gif)
2002-08-27 08:39 EDT, Andre Weinand CLA
no flags Details
Patch from Chris McLaren (4.65 KB, text/plain)
2002-09-27 10:06 EDT, Tod Creasey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Weinand CLA 2002-08-21 04:23:20 EDT
On MacOS X the Windows look of the AnimatedProgress does not match the Aqua look 
of the native ProgressBar. So clients using the wrapper ProgressIndicator get either the 
correct Aqua look or the Windows look (which offends real Mac users :-)

BTW: On MacOS X the native ProgressBar already provides the functionality of the 
AnimatedProgress so on MacOS X the ProgressIndicator could just avoid switching to 
the AnimatedProgress.
Comment 1 Tod Creasey CLA 2002-08-27 08:33:11 EDT
Chris could you look at this on your Powerbook please?
Comment 2 Andre Weinand CLA 2002-08-27 08:39:31 EDT
Created attachment 1898 [details]
Animated Aqua progressbar
Comment 3 Andre Weinand CLA 2002-08-27 08:40:44 EDT
Since Chris is on vacation I've added the picture from Apple's Aqua specification.
Comment 4 Andre Weinand CLA 2002-09-24 03:55:33 EDT
On the SWT mailing list Steve agreed to support an INDETERMINED mode in the SWT 
ProgressBar. When can we expect this?
Comment 5 Steve Northover CLA 2002-09-24 07:51:05 EDT
We have done the investigative hacking on the other platforms and have 
something running.  It's amazing but they all use the native "idle handler" 
mechanism to do the updating instead of forking a thread inside the control.  
One further wrinkle is that the native XP progress bar does not update at all  
when the theme is changed so we will need to run the 98/2000 code in 
ProgressBar on XP until MS fixes the problem (we can't have a progress bar that 
doesn't update!).

The only remaining thing is to choose (and release) the SWT style constant.
On the table are:

SWT.INDETERMINATE
SWT.INFINITE
SWT.CONTINUOUS
SWT.ANIMATED

I'm leaning towards SWT.ANIMATED because it's a concept that might apply to 
another widget.  SWT.INFINITE is my second choice.  The other names are too 
long.

I'm reassigning to SWT and adding VI and SSQ to this discussion so they can 
give their opinion.
Comment 6 Andre Weinand CLA 2002-09-24 07:59:36 EDT
SWT.ANIMATED: +1
Comment 7 Veronika Irvine CLA 2002-09-24 08:58:39 EDT
SWT .ANIMATED -1
SWT.INDETERMINATE +1

I do not think we should use SWT.ANIMATED because this value might be 
interesting later on for other things.  It is very difficult to assign a value 
for an SWT constant that does not conflict with other styles (values are re-
used for multiple styles since there is a limited number of them).  Since we do 
not know which widgets might in the future be interested in the ANIMATED style, 
we can not know which styles not to conflict with.
Comment 8 Chris McLaren CLA 2002-09-24 09:13:57 EDT
SWT.ANIMATED -1.
It is possible to have a representation for indeterminate that is not animated. In fact, I beleive the mac has both 'animated' and 'indeterminate' as independant settings. (i haven't really checked what turning off animated does..). consider platforms that give the user the option to turn off all the fluff.. like watching your window expand when it opens or your popups fade in and out. I see animated representing more along those lines.. 

SWT.INFINITE -1 .
This implies its the progress bar that never ends.. (Which seems true in some cases...)

SWT.INDETERMINATE +1.
That's exactly what it means. Unless there is a specific restriction on the number of characters, in which I would suggest SWT.DUNNO :)
Comment 9 Steve Northover CLA 2002-09-24 09:41:27 EDT
Assigning to SN.  I'm now leaning towards SWT.INFINITE (Chris, it doesn't end) 
because of VI's and Chris's comments.  Chris, the SWT naming rules are to 
choose the shortest possible names that make sense to avoid typing and 
scrolling when reading code.  We believe that long names actually hurt 
readability as much as short names.

Waiting for "the great" Silenio's opinion and then we will procede.
Comment 10 Steve Northover CLA 2002-09-24 09:46:45 EDT
... that was "too short" names. <g>
Comment 11 Silenio Quarti CLA 2002-09-24 11:09:08 EDT
SWT.INDETERMINATE +1

I believe this is the only one (out of the four above) that really means what 
we want. SWT.ANIMATED is good, but as Chris said, there can be animated 
progress bars that are not "indeterminate". This is the case on Photon 
(Pt_GAUGE_LIVE and Pt_GAUGE_INDETERMINATE).

Comment 12 Steve Northover CLA 2002-09-24 14:56:46 EDT
SWT.INDETERMINATE it is.  Code has been released on Windows and Motif.
Comment 13 Andre Weinand CLA 2002-09-24 17:11:52 EDT
Released ProgressBar support for SWT.INDETERMINATE on Mac OS X.
Comment 14 Silenio Quarti CLA 2002-09-24 18:15:34 EDT
Released INDETERMINATE support on Photon and GTK2.
Comment 15 Chris McLaren CLA 2002-09-27 09:51:55 EDT
Changed JFace's ProgressIndicator to support native indeterminate Progress widget.
Sent to Tod to commit.

As of now, there are no references to SWT custom control AnimatedProgress in the Eclipse source.. Steve, should we deprecate AnimatedProgress?
Comment 16 Steve Northover CLA 2002-09-27 09:55:55 EDT
Yes we should deprecate the class. Veronika?  Once that is done, we can close 
this PR.
Comment 17 Tod Creasey CLA 2002-09-27 10:06:17 EDT
We can release this change after the 20021001 build in order that we do not 
break anyone using the SWT in the 20020924 integration build.
Comment 18 Tod Creasey CLA 2002-09-27 10:06:57 EDT
Created attachment 2073 [details]
Patch from Chris McLaren
Comment 19 Steve Northover CLA 2002-09-27 10:18:22 EDT
Reassigning to VI.  Close after deprecating the old thing.
Comment 20 Veronika Irvine CLA 2002-09-27 11:03:54 EDT
Deprecated AnimatedProgress.
Comment 21 Tod Creasey CLA 2002-10-07 14:30:22 EDT
Patch released for build 20021008