diff options
author | johnallen <[email protected]> | 2007-01-14 01:26:22 +0000 |
---|---|---|
committer | johnallen <[email protected]> | 2007-01-14 01:26:22 +0000 |
commit | 17a07e8bd6ff83eff4def00e2393086a88f0bba5 (patch) | |
tree | 9849c10750113f208a3ff5ff555858b60d0084c0 /macosx/Controller.mm | |
parent | 84bcaf125ca3119eca11bc44207eba3a0b2b3e37 (diff) |
barber pole progress bar is shown during the "muxing" phase and no longer show 0.0%. applies to both HB and IHB
When we can figure out how to get a percent complete, we can use that.
IHB now uses same app icon as HB. Probably want to change the actual icon, but I wanted IHB to make use of the dock progress bar like in HB.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@105 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index d4242ace8..281c3372b 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -334,6 +334,7 @@ static int FormatSettings[3][4] = /* Update slider */ progress_total = ( p.progress + p.job_cur - 1 ) / p.job_count; + [fRipIndicator setIndeterminate: NO]; [fRipIndicator setDoubleValue: 100.0 * progress_total]; /* Update dock icon */ @@ -350,19 +351,19 @@ static int FormatSettings[3][4] = #define p s.param.muxing case HB_STATE_MUXING: { - float progress_total; NSMutableString * string; /* Update text field */ string = [NSMutableString stringWithFormat: - _( @"Muxing: %.2f %%" ), 100.0 * p.progress]; + _( @"Muxing..." )]; [fStatusField setStringValue: string]; /* Update slider */ - [fRipIndicator setDoubleValue: 100.0 * p.progress]; + [fRipIndicator setIndeterminate: YES]; + [fRipIndicator startAnimation: nil]; /* Update dock icon */ - [self UpdateDockIcon: 100.0 * p.progress]; + [self UpdateDockIcon: 1.0]; [fPauseButton setEnabled: YES]; [fPauseButton setTitle: _( @"Pause" )]; @@ -384,6 +385,7 @@ static int FormatSettings[3][4] = { [self EnableUI: YES]; [fStatusField setStringValue: _( @"Done." )]; + [fRipIndicator setIndeterminate: NO]; [fRipIndicator setDoubleValue: 0.0]; [fRipButton setTitle: _( @"Rip" )]; |