summaryrefslogtreecommitdiffstats
path: root/macosx/Controller.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-12-04 17:06:56 +0000
committerdynaflash <[email protected]>2007-12-04 17:06:56 +0000
commit9639cbcff49ff4afb5d4f1c9471f0d958a8eaaec (patch)
tree5c804aee619ea0449d3b08df22d8d76653518803 /macosx/Controller.mm
parent73277f03248a3a4d288834e9c0bab84266a2d41c (diff)
MacGui: Scanning progress bar now shows as indeterminate (barber pole) as for some reason its progress is not reported since moving to leopard.
- Also added a new scanning message right when we call hb_scan for quicker feedback, especially when opening a new source while encoding another one. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1097 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.mm')
-rw-r--r--macosx/Controller.mm26
1 files changed, 13 insertions, 13 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 47b24edcd..225c9a7ad 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -518,11 +518,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
{
currentScanCount = checkScanCount;
- //[fScanController Cancel: NULL];
- [fScanIndicator setIndeterminate: NO];
- //[fScanIndicator setDoubleValue: 0.0];
- //[fScanIndicator setHidden: YES];
-
[self showNewScan: NULL];
}
@@ -544,10 +539,10 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
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.
+ * indicator ( fScanIndicator ), for now just set to barber pole (indeterminate) in -performScan
+ * and stop indeterminate in -showNewScan .
*/
//[fScanIndicator setHidden: NO];
- [fScanIndicator setIndeterminate: YES];
//[fScanIndicator setDoubleValue: 100.0 * scanprogress_total];
break;
}
@@ -556,10 +551,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
#define p s.param.scandone
case HB_STATE_SCANDONE:
{
-
- [fScanIndicator setIndeterminate: NO];
- [fScanIndicator setDoubleValue: 0.0];
- //[fScanIndicator setHidden: YES];
[self showNewScan: NULL];
[toolbar validateVisibleItems];
break;
@@ -1208,14 +1199,23 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
{
scanTitleNum = 0;
}
- //[fScanIndicator setHidden: NO];
+
+ [fSrcDVD2Field setStringValue: [NSString stringWithFormat: @"Scanning new source ..."]];
+ /* due to issue with progress in the scan indicator, we are starting the
+ indeterminate animation here */
+ [fScanIndicator startAnimation: self];
+ /* we actually pass the scan off to libhb here */
hb_scan( fHandle, [path UTF8String], scanTitleNum );
}
- (IBAction) showNewScan:(id)sender
{
- hb_list_t * list;
+ /* due to issue with progress in the scan indicator, we are stopping the
+ indeterminate animation here */
+ [fScanIndicator stopAnimation: self];
+
+ hb_list_t * list;
hb_title_t * title;
int indxpri=0; // Used to search the longuest title (default in combobox)
int longuestpri=0; // Used to search the longuest title (default in combobox)