From d01146cc258985e5095de384fb3fe204c9ae734a Mon Sep 17 00:00:00 2001 From: ritsuka Date: Mon, 27 Jul 2015 08:53:17 +0000 Subject: [PATCH] MacGui: remove the "use picture filters" checkbox in the add preset sheet. The user can always remove the filters manually before adding the preset. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7380 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/English.lproj/AddPreset.xib | 49 ++++++++++++++++-------------- macosx/HBAddPresetController.m | 9 ++---- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/macosx/English.lproj/AddPreset.xib b/macosx/English.lproj/AddPreset.xib index 3c812dcbc..ef6a7b8ba 100644 --- a/macosx/English.lproj/AddPreset.xib +++ b/macosx/English.lproj/AddPreset.xib @@ -1,16 +1,15 @@ - + - + - @@ -22,19 +21,20 @@ - + - + - + - + Select which picture settings to use when loading a preset (resolution, anamorphic mode, cropping).
'None': do not alter the current picture settings (for a new source scan, same effect as 'Source maximum'). 'Custom': choose the maximum width and height allowed by the preset (has no effect if the preset specifies Strict anamorphic). 'Source maximum': use the source dimensions. + @@ -46,8 +46,9 @@ - + + @@ -55,8 +56,9 @@ - + + @@ -64,8 +66,9 @@ - + + @@ -73,9 +76,10 @@ - + Enter a description for the preset. The description will be shown when hovering the mouse over the preset name in the preset drawer. + @@ -86,7 +90,7 @@ - + @@ -96,6 +100,7 @@ Select the maximum width allowed by the preset (has no effect if the preset specifies Strict anamorphic). 0 means no limit is placed on the width. + @@ -106,6 +111,7 @@ + @@ -116,6 +122,7 @@ Select the maximum height allowed by the preset (has no effect if the preset specifies Strict anamorphic). 0 means no limit is placed on the height. + @@ -124,13 +131,16 @@ + + - + + @@ -140,17 +150,10 @@ - + - + diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m index 41b507d0c..14999dfc6 100644 --- a/macosx/HBAddPresetController.m +++ b/macosx/HBAddPresetController.m @@ -21,8 +21,6 @@ @property (unsafe_unretained) IBOutlet NSTextField *picHeight; @property (unsafe_unretained) IBOutlet NSBox *picWidthHeightBox; -@property (unsafe_unretained) IBOutlet NSButton *picFilters; - @property (nonatomic, strong) HBPreset *preset; @property NSSize size; @@ -69,11 +67,8 @@ * Default to Custom for all other anamorphic modes */ [self.picSettingsPopUp selectItemWithTag: (1 + ([self.preset.content[@"PicturePAR"] integerValue] == HB_ANAMORPHIC_STRICT))]; - /* Save the current filters in the preset by default */ - [self.picFilters setState:NSOnState]; /* Initialize custom height and width settings to current values */ - [self.picWidth setStringValue: [NSString stringWithFormat:@"%d", (int)self.size.width]]; [self.picHeight setStringValue: [NSString stringWithFormat:@"%d",(int)self.size.height]]; [self addPresetPicDropdownChanged:nil]; @@ -117,8 +112,8 @@ //Get the whether or not to apply pic Size and Cropping (includes Anamorphic) dict[@"UsesPictureSettings"] = @(self.picSettingsPopUp.selectedItem.tag); - // Get whether or not to use the current Picture Filter settings for the preset - dict[@"UsesPictureFilters"] = @((BOOL) self.picFilters.state); + // Always use Picture Filter settings for the preset + dict[@"UsesPictureFilters"] = @YES; self.preset.content = [dict copy]; -- 2.40.0