From dbdcd68514a6a447f5551458e57caf34cfa317da Mon Sep 17 00:00:00 2001 From: dynaflash Date: Tue, 7 Aug 2007 04:24:50 +0000 Subject: MacGui: Add Descriptive Tags to Frame Rate Drop Down - 23.976 (NTSC Film) - 25 (PAL Film/Video) - 29.97 (NTSC Video) git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@790 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'macosx') diff --git a/macosx/Controller.mm b/macosx/Controller.mm index bd5452296..0ec7b1eac 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -234,8 +234,26 @@ static NSString* ChooseSourceIdentifier = @"Choose Source Item Identifie [fVidRatePopUp addItemWithTitle: _( @"Same as source" )]; for( int i = 0; i < hb_video_rates_count; i++ ) { - [fVidRatePopUp addItemWithTitle: - [NSString stringWithCString: hb_video_rates[i].string]]; + if ([[NSString stringWithCString: hb_video_rates[i].string] isEqualToString: [NSString stringWithFormat: @"%.3f",23.976]]) + { + [fVidRatePopUp addItemWithTitle:[NSString stringWithFormat: @"%@%@", + [NSString stringWithCString: hb_video_rates[i].string], @" (NTSC Film)"]]; + } + else if ([[NSString stringWithCString: hb_video_rates[i].string] isEqualToString: [NSString stringWithFormat: @"%d",25]]) + { + [fVidRatePopUp addItemWithTitle:[NSString stringWithFormat: @"%@%@", + [NSString stringWithCString: hb_video_rates[i].string], @" (PAL Film/Video)"]]; + } + else if ([[NSString stringWithCString: hb_video_rates[i].string] isEqualToString: [NSString stringWithFormat: @"%.2f",29.97]]) + { + [fVidRatePopUp addItemWithTitle:[NSString stringWithFormat: @"%@%@", + [NSString stringWithCString: hb_video_rates[i].string], @" (NTSC Video)"]]; + } + else + { + [fVidRatePopUp addItemWithTitle: + [NSString stringWithCString: hb_video_rates[i].string]]; + } } [fVidRatePopUp selectItemAtIndex: 0]; @@ -250,7 +268,8 @@ static NSString* ChooseSourceIdentifier = @"Choose Source Item Identifie for( int i = 0; i < hb_audio_bitrates_count; i++ ) { [fAudBitratePopUp addItemWithTitle: - [NSString stringWithCString: hb_audio_bitrates[i].string]]; + [NSString stringWithCString: hb_audio_bitrates[i].string]]; + } [fAudBitratePopUp selectItemAtIndex: hb_audio_bitrates_default]; -- cgit v1.2.3