macosx: remove noise filter from GUI
authorVictorien Le Couviour--Tuffet <victorien.lecouviour.tuffet@gmail.com>
Wed, 26 Jul 2017 12:33:03 +0000 (14:33 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 26 Jul 2017 12:41:22 +0000 (14:41 +0200)
This filter has been removed between 1.1.13 and 2.0.0.
Closes #18483.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/gui/macosx/UI/VideoEffects.xib
modules/gui/macosx/VLCVideoEffectsWindowController.h
modules/gui/macosx/VLCVideoEffectsWindowController.m

index a9adf7e..4b5607b 100644 (file)
@@ -73,7 +73,6 @@
                 <outlet property="grainSlider" destination="69" id="2P8-j4-XXS"/>
                 <outlet property="invertCheckbox" destination="300" id="5a9-qz-qdw"/>
                 <outlet property="motiondetectCheckbox" destination="254" id="Yh5-OT-vbA"/>
-                <outlet property="noiseCheckbox" destination="262" id="jaY-lZ-bhE"/>
                 <outlet property="posterizeCheckbox" destination="213" id="JeQ-gc-dJ5"/>
                 <outlet property="posterizeLabel" destination="240" id="L5o-pL-E90"/>
                 <outlet property="posterizeStepper" destination="234" id="Xbv-jQ-dtJ"/>
                                                 <action selector="enablePsychedelic:" target="-2" id="0oR-yp-Qnb"/>
                                             </connections>
                                         </button>
-                                        <button translatesAutoresizingMaskIntoConstraints="NO" id="262">
-                                            <rect key="frame" x="6" y="10" width="52" height="18"/>
-                                            <buttonCell key="cell" type="check" title="Noise" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="263" customClass="VLCHUDCheckboxCell">
-                                                <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                                <font key="font" metaFont="smallSystem"/>
-                                            </buttonCell>
-                                            <connections>
-                                                <action selector="enableNoise:" target="-2" id="KKk-f4-K9A"/>
-                                            </connections>
-                                        </button>
                                         <button translatesAutoresizingMaskIntoConstraints="NO" id="300">
                                             <rect key="frame" x="222" y="10" width="88" height="18"/>
                                             <buttonCell key="cell" type="check" title="Invert colors" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="301" customClass="VLCHUDCheckboxCell">
                                         <constraint firstItem="203" firstAttribute="leading" secondItem="204" secondAttribute="leading" id="4mQ-2f-Qic"/>
                                         <constraint firstItem="279" firstAttribute="leading" secondItem="243" secondAttribute="trailing" constant="8" id="BDq-qY-w9m"/>
                                         <constraint firstItem="256" firstAttribute="leading" secondItem="254" secondAttribute="leading" id="ITR-7T-avj"/>
-                                        <constraint firstItem="243" firstAttribute="leading" secondItem="262" secondAttribute="leading" id="MSk-KY-Ehw"/>
                                         <constraint firstItem="279" firstAttribute="leading" secondItem="300" secondAttribute="leading" id="O8e-w0-Yw7"/>
                                         <constraint firstItem="278" firstAttribute="leading" secondItem="279" secondAttribute="leading" id="OzU-Vi-ao3"/>
                                         <constraint firstItem="207" firstAttribute="top" secondItem="203" secondAttribute="top" id="QKr-fj-vSY"/>
                                         <constraint firstItem="254" firstAttribute="top" secondItem="218" secondAttribute="bottom" constant="6" id="X4R-Jg-fee"/>
                                         <constraint firstItem="256" firstAttribute="top" secondItem="254" secondAttribute="bottom" constant="3" id="ZfS-bV-nS5"/>
                                         <constraint firstItem="271" firstAttribute="leading" secondItem="272" secondAttribute="leading" id="bL3-Wr-Y0U"/>
-                                        <constraint firstItem="262" firstAttribute="top" secondItem="243" secondAttribute="bottom" constant="5" id="chw-Qb-hFM"/>
                                         <constraint firstItem="272" firstAttribute="leading" secondItem="11" secondAttribute="leading" constant="11" id="dCG-fm-mE8"/>
                                         <constraint firstItem="218" firstAttribute="height" secondItem="207" secondAttribute="height" id="gKW-QH-gTo"/>
                                         <constraint firstItem="213" firstAttribute="leading" secondItem="207" secondAttribute="leading" id="gLR-0l-e9q"/>
index 243fc88..f09a5ad 100644 (file)
 @property (readwrite, weak) IBOutlet NSTextField *sepiaLabel;
 @property (readwrite, weak) IBOutlet NSTextField *sepiaTextField;
 @property (readwrite, weak) IBOutlet NSStepper *sepiaStepper;
-@property (readwrite, weak) IBOutlet NSButton *noiseCheckbox;
 @property (readwrite, weak) IBOutlet NSButton *gradientCheckbox;
 @property (readwrite, weak) IBOutlet NSTextField *gradientModeLabel;
 @property (readwrite, weak) IBOutlet NSPopUpButton *gradientModePopup;
 - (IBAction)thresholdModifierChanged:(id)sender;
 - (IBAction)enableSepia:(id)sender;
 - (IBAction)sepiaModifierChanged:(id)sender;
-- (IBAction)enableNoise:(id)sender;
 - (IBAction)enableGradient:(id)sender;
 - (IBAction)gradientModifierChanged:(id)sender;
 - (IBAction)enableExtract:(id)sender;
index 539e214..d9d8b1a 100644 (file)
     [_thresholdSimilarityLabel setStringValue:_NS("Similarity")];
     [_sepiaCheckbox setTitle:_NS("Sepia")];
     [_sepiaLabel setStringValue:_NS("Intensity")];
-    [_noiseCheckbox setTitle:_NS("Noise")];
     [_gradientCheckbox setTitle:_NS("Gradient")];
     [_gradientModeLabel setStringValue:_NS("Mode")];
     [_gradientModePopup removeAllItems];
         [_puzzleCheckbox setState: (NSInteger)strstr(psz_vfilters, "puzzle")];
         [_thresholdCheckbox setState: (NSInteger)strstr(psz_vfilters, "colorthres")];
         [_sepiaCheckbox setState: (NSInteger)strstr(psz_vfilters, "sepia")];
-        [_noiseCheckbox setState: (NSInteger)strstr(psz_vfilters, "noise")];
         [_gradientCheckbox setState: (NSInteger)strstr(psz_vfilters, "gradient")];
         [_extractCheckbox setState: (NSInteger)strstr(psz_vfilters, "extract")];
         [_invertCheckbox setState: (NSInteger)strstr(psz_vfilters, "invert")];
         [_puzzleCheckbox setState: NSOffState];
         [_thresholdCheckbox setState: NSOffState];
         [_sepiaCheckbox setState: NSOffState];
-        [_noiseCheckbox setState: NSOffState];
         [_gradientCheckbox setState: NSOffState];
         [_extractCheckbox setState: NSOffState];
         [_invertCheckbox setState: NSOffState];
     [[VLCCoreInteraction sharedInstance] setVideoFilterProperty: "sepia-intensity" forFilter: "sepia" withValue: getWidgetIntValue(sender)];
 }
 
-- (IBAction)enableNoise:(id)sender
-{
-    [[VLCCoreInteraction sharedInstance] setVideoFilter: "noise" on: [_noiseCheckbox state]];
-}
-
 - (IBAction)enableGradient:(id)sender
 {
     BOOL b_state = [_gradientCheckbox state];