diff options
author | dynaflash <[email protected]> | 2007-12-03 19:23:08 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-12-03 19:23:08 +0000 |
commit | 73277f03248a3a4d288834e9c0bab84266a2d41c (patch) | |
tree | 7b35f6842ce11e26a17463267e2f7b2f34499287 /macosx/Controller.mm | |
parent | 4e6f46f143e644d1c43b28f73b800712258c8ef6 (diff) |
MacGui: Increase size of main window by 200 px wide and 50 px high.
- This should offer more room as we desperately need it.
- Should still offer compatibility with 1280 x 1024 display with the presets drawer open and a dock on either the bottom or side
- Also added more granularity to the Constant Quality slider, now can choose any whole percentage instead of just even.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1096 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r-- | macosx/Controller.mm | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm index b09dec31f..47b24edcd 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -520,8 +520,8 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It currentScanCount = checkScanCount; //[fScanController Cancel: NULL]; [fScanIndicator setIndeterminate: NO]; - [fScanIndicator setDoubleValue: 0.0]; - [fScanIndicator setHidden: YES]; + //[fScanIndicator setDoubleValue: 0.0]; + //[fScanIndicator setHidden: YES]; [self showNewScan: NULL]; } @@ -537,12 +537,18 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It #define p s.param.scanning case HB_STATE_SCANNING: { + [fSrcDVD2Field setStringValue: [NSString stringWithFormat: - _( @"Scanning title %d of %d..." ), - p.title_cur, p.title_count]]; - [fScanIndicator setIndeterminate: NO]; - [fScanIndicator setDoubleValue: 100.0 * ( p.title_cur - 1 ) / - p.title_count]; + _( @"Scanning title %d of %d..." ), + p.title_cur, p.title_count]]; + float scanprogress_total; + scanprogress_total = ( p.title_cur - 1 ) / p.title_count; + /* FIX ME: currently having an issue showing progress on the scan + * indicator, for now just set to barber pole. + */ + //[fScanIndicator setHidden: NO]; + [fScanIndicator setIndeterminate: YES]; + //[fScanIndicator setDoubleValue: 100.0 * scanprogress_total]; break; } #undef p @@ -553,7 +559,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It [fScanIndicator setIndeterminate: NO]; [fScanIndicator setDoubleValue: 0.0]; - [fScanIndicator setHidden: YES]; + //[fScanIndicator setHidden: YES]; [self showNewScan: NULL]; [toolbar validateVisibleItems]; break; @@ -1172,7 +1178,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It { /* We setup the scan status in the main window to indicate a source title scan */ [fSrcDVD2Field setStringValue: _( @"Opening a new source title ..." )]; - [fScanIndicator setHidden: NO]; + //[fScanIndicator setHidden: NO]; [fScanIndicator setIndeterminate: YES]; [fScanIndicator startAnimation: nil]; @@ -1202,7 +1208,9 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It { scanTitleNum = 0; } + //[fScanIndicator setHidden: NO]; hb_scan( fHandle, [path UTF8String], scanTitleNum ); + } - (IBAction) showNewScan:(id)sender |