diff options
author | titer <[email protected]> | 2006-03-24 16:04:21 +0000 |
---|---|---|
committer | titer <[email protected]> | 2006-03-24 16:04:21 +0000 |
commit | 82485cc9d132e1c284c9bd16dd8acd0094d42946 (patch) | |
tree | 2d5335fe25b1da0ac42f801a4bc913863b43ffff | |
parent | 730315edc4113269902d908e7c4d41954d5a3d5d (diff) |
Minor UI changes
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@48 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/ExpressController.m | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/macosx/ExpressController.m b/macosx/ExpressController.m index 0336cd809..b78bdf8b5 100644 --- a/macosx/ExpressController.m +++ b/macosx/ExpressController.m @@ -65,7 +65,7 @@ } /*********************************************************************** - * Tableview delegate methods + * Tableview datasource methods **********************************************************************/ - (int) numberOfRowsInTableView: (NSTableView *) t { @@ -147,6 +147,10 @@ - (void) openMatrixChanged: (id) sender { [self openEnable: YES]; + if( [fOpenMatrix selectedRow] ) + { + [self openBrowse: self]; + } } - (void) openBrowse: (id) sender @@ -385,22 +389,29 @@ case HB_STATE_WORKING: { NSMutableString * string = [NSMutableString - stringWithFormat: @"Converting: %.1f %%, %.1f fps", - 100.0 * p.progress, p.rate_avg]; - if( p.hours > 0 ) - { - [string appendFormat: @" (%d hours %d mins left)", - p.hours, p.minutes]; - } - else if( p.minutes > 0 ) - { - [string appendFormat: @" (%d mins %d secs left)", - p.minutes, p.seconds]; - } - else if( p.seconds > -1 ) + stringWithFormat: @"Converting: %.1f %%", + 100.0 * p.progress]; + if( p.seconds > -1 ) { - [string appendFormat: @" (%d seconds left)", - p.seconds]; + [string appendFormat: @" (%.1f fps, ", p.rate_avg]; + if( p.hours > 0 ) + { + [string appendFormat: @"%d hour%s %d min%s", + p.hours, p.hours == 1 ? "" : "s", + p.minutes, p.minutes == 1 ? "" : "s"]; + } + else if( p.minutes > 0 ) + { + [string appendFormat: @"%d min%s %d sec%s", + p.minutes, p.minutes == 1 ? "" : "s", + p.seconds, p.seconds == 1 ? "" : "s"]; + } + else + { + [string appendFormat: @"%d second%s", + p.seconds, p.seconds == 1 ? "" : "s"]; + } + [string appendString: @" left)"]; } [fConvertInfoString setStringValue: string]; [fConvertIndicator setIndeterminate: NO]; |