From: ritsuka Date: Tue, 19 Aug 2014 17:10:28 +0000 (+0000) Subject: MacGui: Removed the code to show/hide the fSrcAngle* UI elements in Controller.m... X-Git-Tag: 0.10.0~210 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f743cbf1ede8d996ed4fad4812aebce5d34ef3be;p=handbrake MacGui: Removed the code to show/hide the fSrcAngle* UI elements in Controller.m, the same work is now done in the MainMenu.xib with bindings. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6321 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/macosx/Controller.m b/macosx/Controller.m index 72cd0055c..f17eda416 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -611,10 +611,6 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It [fPresetDrawer open]; } - /* Initially set the dvd angle widgets to hidden (dvdnav only) */ - [fSrcAngleLabel setHidden:YES]; - [fSrcAnglePopUp setHidden:YES]; - /* Setup the start / stop popup */ [fEncodeStartStopPopUp removeAllItems]; [fEncodeStartStopPopUp addItemWithTitle: @"Chapters"]; @@ -4318,26 +4314,14 @@ fWorkingCount = 0; [fSrcChapterEndPopUp selectItemAtIndex: hb_list_count( title->list_chapter ) - 1]; [self chapterPopUpChanged:nil]; - - /* if using dvd nav, show the angle widget */ - if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"UseDvdNav"] boolValue]) - { - [fSrcAngleLabel setHidden:NO]; - [fSrcAnglePopUp setHidden:NO]; - - [fSrcAnglePopUp removeAllItems]; - for( int i = 0; i < title->angle_count; i++ ) - { - [fSrcAnglePopUp addItemWithTitle: [NSString stringWithFormat: @"%d", i + 1]]; - } - [fSrcAnglePopUp selectItemAtIndex: 0]; - } - else + + [fSrcAnglePopUp removeAllItems]; + for( int i = 0; i < title->angle_count; i++ ) { - [fSrcAngleLabel setHidden:YES]; - [fSrcAnglePopUp setHidden:YES]; + [fSrcAnglePopUp addItemWithTitle: [NSString stringWithFormat: @"%d", i + 1]]; } - + [fSrcAnglePopUp selectItemAtIndex: 0]; + /* Start Get and set the initial pic size for display */ fTitle = title; diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib index 7ce7fc867..33f0c5d72 100644 --- a/macosx/English.lproj/MainMenu.xib +++ b/macosx/English.lproj/MainMenu.xib @@ -1,5 +1,5 @@ - + @@ -140,6 +140,13 @@ + + + + NSNegateBoolean + + + @@ -153,6 +160,13 @@ + + + + NSNegateBoolean + + + @@ -225,7 +239,7 @@ - + @@ -341,7 +355,7 @@