macOS: Rename VLCPopUpButtonCell to VLCHUDPopUpButtonCell
authorMarvin Scholz <epirat07@gmail.com>
Sat, 24 Jun 2017 08:07:40 +0000 (10:07 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Sat, 24 Jun 2017 08:26:18 +0000 (10:26 +0200)
extras/package/macosx/VLC.xcodeproj/project.pbxproj
modules/gui/macosx/Makefile.am
modules/gui/macosx/UI/AudioEffects.xib
modules/gui/macosx/UI/VideoEffects.xib
modules/gui/macosx/VLCHUDPopUpButtonCell.h [new file with mode: 0644]
modules/gui/macosx/VLCHUDPopUpButtonCell.m [new file with mode: 0644]
modules/gui/macosx/VLCPopUpButtonCell.h [deleted file]
modules/gui/macosx/VLCPopUpButtonCell.m [deleted file]

index ae42336..ab72d48 100644 (file)
@@ -75,7 +75,7 @@
                6B4D50931E7979CB004479B5 /* VLCSimplePrefsWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B4D50921E7979CB004479B5 /* VLCSimplePrefsWindow.m */; };
                6B4D50961E7A7D16004479B5 /* NSSound+VLCAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B4D50951E7A7D16004479B5 /* NSSound+VLCAdditions.m */; };
                6B4D50A71E7AB52C004479B5 /* NSScreen+VLCAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B4D50A61E7AB52C004479B5 /* NSScreen+VLCAdditions.m */; };
-               6B5978C51EFBFBF2003D9C80 /* VLCPopUpButtonCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5978C41EFBFBF2003D9C80 /* VLCPopUpButtonCell.m */; };
+               6B5978C51EFBFBF2003D9C80 /* VLCHUDPopUpButtonCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5978C41EFBFBF2003D9C80 /* VLCHUDPopUpButtonCell.m */; };
                6B6FFF701EF9EC350001CEB1 /* CompatibilityFixes.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B6FFF6F1EF9EC350001CEB1 /* CompatibilityFixes.m */; };
                6B8166291EBFC34300C26F1B /* VLCDefaultValueSlider.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B6A499B1DFD9B23009128AC /* VLCDefaultValueSlider.m */; };
                6B81662A1EBFC34300C26F1B /* VLCDefaultValueSliderCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B6A499D1DFD9B23009128AC /* VLCDefaultValueSliderCell.m */; };
                6B4D50951E7A7D16004479B5 /* NSSound+VLCAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSSound+VLCAdditions.m"; sourceTree = "<group>"; };
                6B4D50A51E7AB52C004479B5 /* NSScreen+VLCAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSScreen+VLCAdditions.h"; sourceTree = "<group>"; };
                6B4D50A61E7AB52C004479B5 /* NSScreen+VLCAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSScreen+VLCAdditions.m"; sourceTree = "<group>"; };
-               6B5978C31EFBFBF2003D9C80 /* VLCPopUpButtonCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCPopUpButtonCell.h; sourceTree = "<group>"; };
-               6B5978C41EFBFBF2003D9C80 /* VLCPopUpButtonCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCPopUpButtonCell.m; sourceTree = "<group>"; };
+               6B5978C31EFBFBF2003D9C80 /* VLCHUDPopUpButtonCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCHUDPopUpButtonCell.h; sourceTree = "<group>"; };
+               6B5978C41EFBFBF2003D9C80 /* VLCHUDPopUpButtonCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCHUDPopUpButtonCell.m; sourceTree = "<group>"; };
                6B6A499A1DFD9B23009128AC /* VLCDefaultValueSlider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCDefaultValueSlider.h; sourceTree = "<group>"; };
                6B6A499B1DFD9B23009128AC /* VLCDefaultValueSlider.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VLCDefaultValueSlider.m; sourceTree = "<group>"; };
                6B6A499C1DFD9B23009128AC /* VLCDefaultValueSliderCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VLCDefaultValueSliderCell.h; sourceTree = "<group>"; };
                        children = (
                                6B846FE91CF5DBFF00112E54 /* VLCHUDTextFieldCell.h */,
                                6B846FEA1CF5DBFF00112E54 /* VLCHUDTextFieldCell.m */,
-                               6B5978C31EFBFBF2003D9C80 /* VLCPopUpButtonCell.h */,
-                               6B5978C41EFBFBF2003D9C80 /* VLCPopUpButtonCell.m */,
+                               6B5978C31EFBFBF2003D9C80 /* VLCHUDPopUpButtonCell.h */,
+                               6B5978C41EFBFBF2003D9C80 /* VLCHUDPopUpButtonCell.m */,
                                6B846FDC1CF5D88C00112E54 /* VLCHUDButtonCell.h */,
                                6B846FDD1CF5D88C00112E54 /* VLCHUDButtonCell.m */,
                                6B846FDE1CF5D88C00112E54 /* VLCHUDCheckboxCell.h */,
                                1C3113BC1E508C6900D4DD76 /* VLCKeyboardBacklightControl.m in Sources */,
                                1C3113BD1E508C6900D4DD76 /* macosx.m in Sources */,
                                1C3113BF1E508C6900D4DD76 /* VLCMainMenu.m in Sources */,
-                               6B5978C51EFBFBF2003D9C80 /* VLCPopUpButtonCell.m in Sources */,
+                               6B5978C51EFBFBF2003D9C80 /* VLCHUDPopUpButtonCell.m in Sources */,
                                1C3113C11E508C6900D4DD76 /* VLCMainWindow.m in Sources */,
                                1C3113C31E508C6900D4DD76 /* VLCMainWindowTitleView.m in Sources */,
                                1C3113C51E508C6900D4DD76 /* misc.m in Sources */,
index 72a2b52..4165e2e 100644 (file)
@@ -83,7 +83,7 @@ libmacosx_plugin_la_SOURCES = \
        gui/macosx/VLCHUDTableHeaderCell.h gui/macosx/VLCHUDTableHeaderCell.m \
        gui/macosx/VLCHUDSegmentedCell.h gui/macosx/VLCHUDSegmentedCell.m \
        gui/macosx/VLCHUDStepperCell.h gui/macosx/VLCHUDStepperCell.m \
-       gui/macosx/VLCPopUpButtonCell.h gui/macosx/VLCPopUpButtonCell.m \
+       gui/macosx/VLCHUDPopUpButtonCell.h gui/macosx/VLCHUDPopUpButtonCell.m \
        gui/macosx/VLCInputManager.h gui/macosx/VLCInputManager.m \
        gui/macosx/VLCMainWindow.h gui/macosx/VLCMainWindow.m \
        gui/macosx/VLCRendererDiscovery.h gui/macosx/VLCRendererDiscovery.m \
index be48798..bbc5d09 100644 (file)
                                                 <popUpButton verticalHuggingPriority="750" id="168">
                                                     <rect key="frame" x="196" y="156" width="155" height="22"/>
                                                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                                    <popUpButtonCell key="cell" type="push" title="headphones" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="181" id="169" customClass="VLCPopUpButtonCell">
+                                                    <popUpButtonCell key="cell" type="push" title="headphones" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="181" id="169" customClass="VLCHUDPopUpButtonCell">
                                                         <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                                         <font key="font" metaFont="smallSystem"/>
                                                         <menu key="menu" title="OtherViews" id="170">
                     <popUpButton verticalHuggingPriority="750" id="701">
                         <rect key="frame" x="110" y="6" width="190" height="22"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="706" id="702" customClass="VLCPopUpButtonCell">
+                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="706" id="702" customClass="VLCHUDPopUpButtonCell">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="smallSystem"/>
                             <menu key="menu" title="OtherViews" id="703">
index e9894fe..1cf02e1 100644 (file)
                                                         <constraints>
                                                             <constraint firstAttribute="width" constant="266" id="P89-PX-ceT"/>
                                                         </constraints>
-                                                        <popUpButtonCell key="cell" type="push" title="Rotate by 90 degrees" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="196" id="194" customClass="VLCPopUpButtonCell">
+                                                        <popUpButtonCell key="cell" type="push" title="Rotate by 90 degrees" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="196" id="194" customClass="VLCHUDPopUpButtonCell">
                                                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                                             <font key="font" metaFont="smallSystem"/>
                                                             <menu key="menu" title="OtherViews" id="195">
                                                 <subviews>
                                                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="187">
                                                         <rect key="frame" x="92" y="54" width="80" height="22"/>
-                                                        <popUpButtonCell key="cell" type="push" title="Gradient" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="190" id="188" customClass="VLCPopUpButtonCell">
+                                                        <popUpButtonCell key="cell" type="push" title="Gradient" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="190" id="188" customClass="VLCHUDPopUpButtonCell">
                                                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                                             <font key="font" metaFont="smallSystem"/>
                                                             <menu key="menu" title="OtherViews" id="189">
                                                     </textField>
                                                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="325">
                                                         <rect key="frame" x="103" y="10" width="190" height="22"/>
-                                                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="328" id="326" customClass="VLCPopUpButtonCell">
+                                                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="328" id="326" customClass="VLCHUDPopUpButtonCell">
                                                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                                             <font key="font" metaFont="smallSystem"/>
                                                             <menu key="menu" title="OtherViews" id="327">
                                                     </slider>
                                                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="692">
                                                         <rect key="frame" x="103" y="32" width="190" height="22"/>
-                                                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="697" id="693" customClass="VLCPopUpButtonCell">
+                                                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="697" id="693" customClass="VLCHUDPopUpButtonCell">
                                                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                                                             <font key="font" metaFont="smallSystem"/>
                                                             <menu key="menu" title="OtherViews" id="694">
                     </tabView>
                     <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="720">
                         <rect key="frame" x="287" y="6" width="68" height="22"/>
-                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="723" id="721" customClass="VLCPopUpButtonCell">
+                        <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" inset="2" selectedItem="723" id="721" customClass="VLCHUDPopUpButtonCell">
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
                             <font key="font" metaFont="smallSystem"/>
                             <menu key="menu" title="OtherViews" id="722">
diff --git a/modules/gui/macosx/VLCHUDPopUpButtonCell.h b/modules/gui/macosx/VLCHUDPopUpButtonCell.h
new file mode 100644 (file)
index 0000000..23aeb31
--- /dev/null
@@ -0,0 +1,53 @@
+//
+//  VLCHUDPopUpButtonCell.h
+//  BGHUDAppKit
+//
+//  Created by BinaryGod on 5/31/08.
+//
+//  Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com)
+//  All rights reserved.
+//
+//  Redistribution and use in source and binary forms, with or without modification,
+//  are permitted provided that the following conditions are met:
+//
+//             Redistributions of source code must retain the above copyright notice, this
+//     list of conditions and the following disclaimer.
+//
+//             Redistributions in binary form must reproduce the above copyright notice,
+//     this list of conditions and the following disclaimer in the documentation and/or
+//     other materials provided with the distribution.
+//
+//             Neither the name of the BinaryMethod.com nor the names of its contributors
+//     may be used to endorse or promote products derived from this software without
+//     specific prior written permission.
+//
+//     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND
+//     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+//     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+//     IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+//     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+//     BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+//     OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+//     WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+//     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+//     POSSIBILITY OF SUCH DAMAGE.
+
+#import <Cocoa/Cocoa.h>
+
+@interface VLCHUDPopUpButtonCell : NSPopUpButtonCell
+
+@property NSShadow *dropShadow;
+
+@property NSColor *strokeColor;
+@property NSColor *darkStrokeColor;
+@property NSColor *disabledStrokeColor;
+@property NSColor *selectionTextActiveColor;
+@property NSColor *selectionTextInActiveColor;
+@property NSColor *cellTextColor;
+@property NSColor *disabledCellTextColor;
+
+@property NSGradient *normalGradient;
+@property NSGradient *disabledNormalGradient;
+
+
+@end
diff --git a/modules/gui/macosx/VLCHUDPopUpButtonCell.m b/modules/gui/macosx/VLCHUDPopUpButtonCell.m
new file mode 100644 (file)
index 0000000..b7248cf
--- /dev/null
@@ -0,0 +1,399 @@
+//
+//  VLCHUDPopUpButtonCell.m
+//  BGHUDAppKit
+//
+//  Created by BinaryGod on 5/31/08.
+//
+//  Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com)
+//  All rights reserved.
+//
+//  Redistribution and use in source and binary forms, with or without modification,
+//  are permitted provided that the following conditions are met:
+//
+//             Redistributions of source code must retain the above copyright notice, this
+//     list of conditions and the following disclaimer.
+//
+//             Redistributions in binary form must reproduce the above copyright notice,
+//     this list of conditions and the following disclaimer in the documentation and/or
+//     other materials provided with the distribution.
+//
+//             Neither the name of the BinaryMethod.com nor the names of its contributors
+//     may be used to endorse or promote products derived from this software without
+//     specific prior written permission.
+//
+//     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND
+//     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+//     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+//     IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+//     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+//     BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
+//     OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+//     WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+//     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+//     POSSIBILITY OF SUCH DAMAGE.
+
+#import "VLCHUDPopUpButtonCell.h"
+
+@implementation VLCHUDPopUpButtonCell
+
+- (instancetype)initWithCoder:(NSCoder *)coder
+{
+    self = [super initWithCoder:coder];
+    if (self) {
+        _dropShadow = [[NSShadow alloc] init];
+        [_dropShadow setShadowColor:[NSColor blackColor]];
+        [_dropShadow setShadowBlurRadius:2];
+        [_dropShadow setShadowOffset:NSMakeSize(0, -1)];
+
+        _strokeColor = [NSColor colorWithDeviceRed:0.749f green:0.761f blue:0.788f alpha:1.0f];
+        _darkStrokeColor = [NSColor colorWithDeviceRed:0.141f green:0.141f blue:0.141f alpha:0.5f];
+        _disabledStrokeColor = [NSColor colorWithDeviceRed:0.749f green:0.761f blue:0.788f alpha:0.2f];
+        _selectionTextActiveColor = [NSColor whiteColor];
+        _selectionTextInActiveColor = [NSColor whiteColor];
+        _cellTextColor = [NSColor whiteColor];
+        _disabledCellTextColor = [NSColor colorWithDeviceRed:1 green:1 blue:1 alpha:0.2f];
+
+        _normalGradient = [[NSGradient alloc] initWithStartingColor:[NSColor colorWithDeviceRed:0.251f green:0.251f blue:0.255f alpha:0.5f]
+                                                        endingColor:[NSColor colorWithDeviceRed:0.118f green:0.118f blue:0.118f alpha:0.5f]];
+        _disabledNormalGradient = [[NSGradient alloc] initWithStartingColor:[NSColor colorWithDeviceRed:0.251f green:0.251f blue:0.255f alpha:0.2f]
+                                                                endingColor:[NSColor colorWithDeviceRed:0.118f green:0.118f blue:0.118f alpha:0.2f]];
+    }
+    return self;
+}
+
+#pragma mark Drawing Functions
+
+- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
+
+    NSRect frame = cellFrame;
+
+    // Adjust frame by .5 so lines draw true
+    frame.origin.x += .5f;
+    frame.origin.y += .5f;
+    frame.size.height = [self cellSize].height;
+
+    // Make Adjustments to Frame based on Cell Size
+    switch ([self controlSize]) {
+
+        case NSRegularControlSize:
+            frame.origin.x += 3;
+            frame.size.width -= 7;
+            frame.origin.y += 2;
+            frame.size.height -= 7;
+            break;
+
+        case NSSmallControlSize:
+            frame.origin.y += 1;
+            frame.size.height -= 6;
+            frame.origin.x += 3;
+            frame.size.width -= 7;
+            break;
+
+        case NSMiniControlSize:
+            frame.origin.x += 1;
+            frame.size.width -= 4;
+            frame.size.height -= 2;
+            break;
+    }
+
+    if ([self isBordered]) {
+        NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:frame xRadius: 4 yRadius: 4];
+
+        [NSGraphicsContext saveGraphicsState];
+        [_dropShadow set];
+        [_darkStrokeColor set];
+        [path stroke];
+        [NSGraphicsContext restoreGraphicsState];
+
+        if ([self isEnabled]) {
+            [_normalGradient drawInBezierPath: path angle: 90];
+            [_strokeColor set];
+        } else {
+            [_disabledNormalGradient drawInBezierPath: path angle: 90];
+            [_disabledStrokeColor set];
+        }
+
+        [path setLineWidth: 1.0f ];
+        [path stroke];
+    }
+
+    // Draw the arrows
+    [self drawArrowsInRect: frame];
+
+    // Adjust rect for title drawing
+    switch ([self controlSize]) {
+
+        case NSRegularControlSize:
+
+            frame.origin.x += 8;
+            frame.origin.y += 1;
+            frame.size.width -= 29;
+            break;
+
+        case NSSmallControlSize:
+
+            frame.origin.x += 8;
+            frame.origin.y += 2;
+            frame.size.width -= 29;
+            break;
+
+        case NSMiniControlSize:
+
+            frame.origin.x += 8;
+            frame.origin.y += .5f;
+            frame.size.width -= 26;
+            break;
+    }
+
+    NSMutableAttributedString *aTitle = [[self attributedTitle] mutableCopy];
+
+    // Make sure aTitle actually contains something
+    if (aTitle.length > 0) {
+        [aTitle beginEditing];
+        [aTitle removeAttribute:NSForegroundColorAttributeName range:NSMakeRange(0, aTitle.length)];
+
+        if (self.isEnabled) {
+            if (self.isHighlighted) {
+
+                if (self.controlView.window.isKeyWindow) {
+                    [aTitle addAttribute:NSForegroundColorAttributeName
+                                   value:_selectionTextActiveColor
+                                   range:NSMakeRange(0, aTitle.length)];
+                } else {
+                    [aTitle addAttribute:NSForegroundColorAttributeName
+                                   value:_selectionTextInActiveColor
+                                   range:NSMakeRange(0, aTitle.length)];
+                }
+            } else {
+                [aTitle addAttribute:NSForegroundColorAttributeName
+                               value:_cellTextColor
+                               range:NSMakeRange(0, aTitle.length)];
+            }
+        } else {
+            [aTitle addAttribute:NSForegroundColorAttributeName
+                           value:_disabledCellTextColor
+                           range:NSMakeRange(0, aTitle.length)];
+        }
+        [aTitle endEditing];
+    }
+
+    int arrowAdjustment = 0;
+
+    cellFrame.size.height -= 2;
+    if (self.isBordered) {
+        cellFrame.origin.x += 5;
+    }
+
+    switch (self.controlSize) {
+        case NSRegularControlSize:
+            arrowAdjustment = 21;
+            break;
+
+        case NSSmallControlSize:
+            arrowAdjustment = 18;
+            break;
+
+        case NSMiniControlSize:
+            arrowAdjustment = 15;
+            break;
+    }
+
+    NSRect titleFrame = NSMakeRect(cellFrame.origin.x + 5, NSMidY(cellFrame) - ([aTitle size].height/2), cellFrame.size.width - arrowAdjustment, [aTitle size].height);
+    NSRect imageFrame = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y, cellFrame.size.width - arrowAdjustment, cellFrame.size.height);
+
+    if([self image]) {
+
+        switch ([self imagePosition]) {
+
+            case NSImageLeft:
+            case NSNoImage:
+
+                titleFrame.origin.x += 6;
+                titleFrame.origin.x += [[self image] size].width;
+                break;
+
+            case NSImageOnly:
+                titleFrame.size.width = 0;
+                break;
+
+            default:
+                break;
+        }
+    }
+
+    if([self imagePosition] != NSImageOnly) {
+        [super drawTitle:aTitle withFrame:titleFrame inView:controlView];
+    }
+
+
+    if([self imagePosition] != NSNoImage) {
+        [self drawImage:[self image] withFrame:imageFrame inView:controlView];
+    }
+}
+
+- (void)drawArrowsInRect:(NSRect) frame {
+
+    CGFloat arrowsWidth;
+    CGFloat arrowsHeight;
+    CGFloat arrowWidth;
+    CGFloat arrowHeight;
+
+    int arrowAdjustment = 0;
+
+    //Adjust based on Control size
+    switch ([self controlSize]) {
+        default: // Silence uninitialized variable warnings
+        case NSRegularControlSize:
+
+            if ([self isBordered]) {
+
+                arrowAdjustment = 21;
+            } else {
+
+                arrowAdjustment = 11;
+            }
+
+            arrowWidth = 3.5f;
+            arrowHeight = 2.5f;
+            arrowsHeight = 2;
+            arrowsWidth = 2.5f;
+            break;
+
+        case NSSmallControlSize:
+
+            if ([self isBordered]) {
+
+                arrowAdjustment = 18;
+            } else {
+
+                arrowAdjustment = 8;
+            }
+
+            arrowWidth = 3.5f;
+            arrowHeight = 2.5f;
+            arrowsHeight = 2;
+            arrowsWidth = 2.5f;
+
+            break;
+
+        case NSMiniControlSize:
+
+            if ([self isBordered]) {
+
+                arrowAdjustment = 15;
+            } else {
+
+                arrowAdjustment = 5;
+            }
+
+            arrowWidth = 2.5f;
+            arrowHeight = 1.5f;
+            arrowsHeight = 1.5f;
+            arrowsWidth = 2;
+            break;
+    }
+
+    frame.origin.x += (frame.size.width - arrowAdjustment);
+    frame.size.width = arrowAdjustment;
+
+    if ([self pullsDown]) {
+
+        NSBezierPath *arrow = [[NSBezierPath alloc] init];
+
+        NSPoint points[3];
+
+        points[0] = NSMakePoint(frame.origin.x + ((frame.size.width /2) - arrowWidth), frame.origin.y + ((frame.size.height /2) - arrowHeight));
+        points[1] = NSMakePoint(frame.origin.x + ((frame.size.width /2) + arrowWidth), frame.origin.y + ((frame.size.height /2) - arrowHeight));
+        points[2] = NSMakePoint(frame.origin.x + (frame.size.width /2), frame.origin.y + ((frame.size.height /2) + arrowHeight));
+
+        [arrow appendBezierPathWithPoints: points count: 3];
+        
+        if ([self isEnabled]) {
+            
+            if ([self isHighlighted]) {
+                
+                if ([[[self controlView] window] isKeyWindow]) {
+                    
+                    [_selectionTextActiveColor set];
+                } else {
+                    
+                    [_selectionTextInActiveColor set];
+                }
+            } else {
+                
+                [_cellTextColor set];
+            }
+        } else {
+            
+            [_disabledCellTextColor set];
+        }
+        
+        [arrow fill];
+    } else {
+        
+        NSBezierPath *topArrow = [[NSBezierPath alloc] init];
+        
+        NSPoint topPoints[3];
+        
+        topPoints[0] = NSMakePoint(frame.origin.x + ((frame.size.width /2) - arrowsWidth), frame.origin.y + ((frame.size.height /2) - arrowsHeight));
+        topPoints[1] = NSMakePoint(frame.origin.x + ((frame.size.width /2) + arrowsWidth), frame.origin.y + ((frame.size.height /2) - arrowsHeight));
+        topPoints[2] = NSMakePoint(frame.origin.x + (frame.size.width /2), frame.origin.y + ((frame.size.height /2) - ((arrowsHeight * 2) + 2)));
+        
+        [topArrow appendBezierPathWithPoints: topPoints count: 3];
+        
+        if([self isEnabled]) {
+            
+            if([self isHighlighted]) {
+                
+                if([[[self controlView] window] isKeyWindow])
+                {
+                    
+                    [_selectionTextActiveColor set];
+                } else {
+                    
+                    [_selectionTextInActiveColor set];
+                }
+            } else {
+                
+                [_cellTextColor set];
+            }
+        } else {
+            
+            [_disabledCellTextColor set];
+        }
+        [topArrow fill];
+        
+        NSBezierPath *bottomArrow = [[NSBezierPath alloc] init];
+        
+        NSPoint bottomPoints[3];
+        
+        bottomPoints[0] = NSMakePoint(frame.origin.x + ((frame.size.width /2) - arrowsWidth), frame.origin.y + ((frame.size.height /2) + arrowsHeight));
+        bottomPoints[1] = NSMakePoint(frame.origin.x + ((frame.size.width /2) + arrowsWidth), frame.origin.y + ((frame.size.height /2) + arrowsHeight));
+        bottomPoints[2] = NSMakePoint(frame.origin.x + (frame.size.width /2), frame.origin.y + ((frame.size.height /2) + ((arrowsHeight * 2) + 2)));
+        
+        [bottomArrow appendBezierPathWithPoints: bottomPoints count: 3];
+        
+        if ([self isEnabled]) {
+            
+            if ([self isHighlighted]) {
+                
+                if ([[[self controlView] window] isKeyWindow]) {
+                    
+                    [_selectionTextActiveColor set];
+                } else {
+                    
+                    [_selectionTextInActiveColor set];
+                }
+            } else {
+                
+                [_cellTextColor set];
+            }
+        } else {
+            
+            [_disabledCellTextColor set];
+        }
+        [bottomArrow fill];
+    }
+}
+
+@end
diff --git a/modules/gui/macosx/VLCPopUpButtonCell.h b/modules/gui/macosx/VLCPopUpButtonCell.h
deleted file mode 100644 (file)
index 54c5043..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-//  VLCPopUpButtonCell.h
-//  BGHUDAppKit
-//
-//  Created by BinaryGod on 5/31/08.
-//
-//  Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com)
-//  All rights reserved.
-//
-//  Redistribution and use in source and binary forms, with or without modification,
-//  are permitted provided that the following conditions are met:
-//
-//             Redistributions of source code must retain the above copyright notice, this
-//     list of conditions and the following disclaimer.
-//
-//             Redistributions in binary form must reproduce the above copyright notice,
-//     this list of conditions and the following disclaimer in the documentation and/or
-//     other materials provided with the distribution.
-//
-//             Neither the name of the BinaryMethod.com nor the names of its contributors
-//     may be used to endorse or promote products derived from this software without
-//     specific prior written permission.
-//
-//     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND
-//     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-//     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-//     IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-//     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-//     BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
-//     OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-//     WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-//     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-//     POSSIBILITY OF SUCH DAMAGE.
-
-#import <Cocoa/Cocoa.h>
-
-@interface VLCPopUpButtonCell : NSPopUpButtonCell
-
-@property NSShadow *dropShadow;
-
-@property NSColor *strokeColor;
-@property NSColor *darkStrokeColor;
-@property NSColor *disabledStrokeColor;
-@property NSColor *selectionTextActiveColor;
-@property NSColor *selectionTextInActiveColor;
-@property NSColor *cellTextColor;
-@property NSColor *disabledCellTextColor;
-
-@property NSGradient *normalGradient;
-@property NSGradient *disabledNormalGradient;
-
-
-@end
diff --git a/modules/gui/macosx/VLCPopUpButtonCell.m b/modules/gui/macosx/VLCPopUpButtonCell.m
deleted file mode 100644 (file)
index fa979de..0000000
+++ /dev/null
@@ -1,399 +0,0 @@
-//
-//  VLCPopUpButtonCell.m
-//  BGHUDAppKit
-//
-//  Created by BinaryGod on 5/31/08.
-//
-//  Copyright (c) 2008, Tim Davis (BinaryMethod.com, binary.god@gmail.com)
-//  All rights reserved.
-//
-//  Redistribution and use in source and binary forms, with or without modification,
-//  are permitted provided that the following conditions are met:
-//
-//             Redistributions of source code must retain the above copyright notice, this
-//     list of conditions and the following disclaimer.
-//
-//             Redistributions in binary form must reproduce the above copyright notice,
-//     this list of conditions and the following disclaimer in the documentation and/or
-//     other materials provided with the distribution.
-//
-//             Neither the name of the BinaryMethod.com nor the names of its contributors
-//     may be used to endorse or promote products derived from this software without
-//     specific prior written permission.
-//
-//     THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND
-//     ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-//     WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-//     IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-//     INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-//     BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
-//     OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-//     WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-//     ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-//     POSSIBILITY OF SUCH DAMAGE.
-
-#import "VLCPopUpButtonCell.h"
-
-@implementation VLCPopUpButtonCell
-
-- (instancetype)initWithCoder:(NSCoder *)coder
-{
-    self = [super initWithCoder:coder];
-    if (self) {
-        _dropShadow = [[NSShadow alloc] init];
-        [_dropShadow setShadowColor:[NSColor blackColor]];
-        [_dropShadow setShadowBlurRadius:2];
-        [_dropShadow setShadowOffset:NSMakeSize(0, -1)];
-
-        _strokeColor = [NSColor colorWithDeviceRed:0.749f green:0.761f blue:0.788f alpha:1.0f];
-        _darkStrokeColor = [NSColor colorWithDeviceRed:0.141f green:0.141f blue:0.141f alpha:0.5f];
-        _disabledStrokeColor = [NSColor colorWithDeviceRed:0.749f green:0.761f blue:0.788f alpha:0.2f];
-        _selectionTextActiveColor = [NSColor whiteColor];
-        _selectionTextInActiveColor = [NSColor whiteColor];
-        _cellTextColor = [NSColor whiteColor];
-        _disabledCellTextColor = [NSColor colorWithDeviceRed:1 green:1 blue:1 alpha:0.2f];
-
-        _normalGradient = [[NSGradient alloc] initWithStartingColor:[NSColor colorWithDeviceRed:0.251f green:0.251f blue:0.255f alpha:0.5f]
-                                                        endingColor:[NSColor colorWithDeviceRed:0.118f green:0.118f blue:0.118f alpha:0.5f]];
-        _disabledNormalGradient = [[NSGradient alloc] initWithStartingColor:[NSColor colorWithDeviceRed:0.251f green:0.251f blue:0.255f alpha:0.2f]
-                                                                endingColor:[NSColor colorWithDeviceRed:0.118f green:0.118f blue:0.118f alpha:0.2f]];
-    }
-    return self;
-}
-
-#pragma mark Drawing Functions
-
-- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
-
-    NSRect frame = cellFrame;
-
-    // Adjust frame by .5 so lines draw true
-    frame.origin.x += .5f;
-    frame.origin.y += .5f;
-    frame.size.height = [self cellSize].height;
-
-    // Make Adjustments to Frame based on Cell Size
-    switch ([self controlSize]) {
-
-        case NSRegularControlSize:
-            frame.origin.x += 3;
-            frame.size.width -= 7;
-            frame.origin.y += 2;
-            frame.size.height -= 7;
-            break;
-
-        case NSSmallControlSize:
-            frame.origin.y += 1;
-            frame.size.height -= 6;
-            frame.origin.x += 3;
-            frame.size.width -= 7;
-            break;
-
-        case NSMiniControlSize:
-            frame.origin.x += 1;
-            frame.size.width -= 4;
-            frame.size.height -= 2;
-            break;
-    }
-
-    if ([self isBordered]) {
-        NSBezierPath *path = [NSBezierPath bezierPathWithRoundedRect:frame xRadius: 4 yRadius: 4];
-
-        [NSGraphicsContext saveGraphicsState];
-        [_dropShadow set];
-        [_darkStrokeColor set];
-        [path stroke];
-        [NSGraphicsContext restoreGraphicsState];
-
-        if ([self isEnabled]) {
-            [_normalGradient drawInBezierPath: path angle: 90];
-            [_strokeColor set];
-        } else {
-            [_disabledNormalGradient drawInBezierPath: path angle: 90];
-            [_disabledStrokeColor set];
-        }
-
-        [path setLineWidth: 1.0f ];
-        [path stroke];
-    }
-
-    // Draw the arrows
-    [self drawArrowsInRect: frame];
-
-    // Adjust rect for title drawing
-    switch ([self controlSize]) {
-
-        case NSRegularControlSize:
-
-            frame.origin.x += 8;
-            frame.origin.y += 1;
-            frame.size.width -= 29;
-            break;
-
-        case NSSmallControlSize:
-
-            frame.origin.x += 8;
-            frame.origin.y += 2;
-            frame.size.width -= 29;
-            break;
-
-        case NSMiniControlSize:
-
-            frame.origin.x += 8;
-            frame.origin.y += .5f;
-            frame.size.width -= 26;
-            break;
-    }
-
-    NSMutableAttributedString *aTitle = [[self attributedTitle] mutableCopy];
-
-    // Make sure aTitle actually contains something
-    if (aTitle.length > 0) {
-        [aTitle beginEditing];
-        [aTitle removeAttribute:NSForegroundColorAttributeName range:NSMakeRange(0, aTitle.length)];
-
-        if (self.isEnabled) {
-            if (self.isHighlighted) {
-
-                if (self.controlView.window.isKeyWindow) {
-                    [aTitle addAttribute:NSForegroundColorAttributeName
-                                   value:_selectionTextActiveColor
-                                   range:NSMakeRange(0, aTitle.length)];
-                } else {
-                    [aTitle addAttribute:NSForegroundColorAttributeName
-                                   value:_selectionTextInActiveColor
-                                   range:NSMakeRange(0, aTitle.length)];
-                }
-            } else {
-                [aTitle addAttribute:NSForegroundColorAttributeName
-                               value:_cellTextColor
-                               range:NSMakeRange(0, aTitle.length)];
-            }
-        } else {
-            [aTitle addAttribute:NSForegroundColorAttributeName
-                           value:_disabledCellTextColor
-                           range:NSMakeRange(0, aTitle.length)];
-        }
-        [aTitle endEditing];
-    }
-
-    int arrowAdjustment = 0;
-
-    cellFrame.size.height -= 2;
-    if (self.isBordered) {
-        cellFrame.origin.x += 5;
-    }
-
-    switch (self.controlSize) {
-        case NSRegularControlSize:
-            arrowAdjustment = 21;
-            break;
-
-        case NSSmallControlSize:
-            arrowAdjustment = 18;
-            break;
-
-        case NSMiniControlSize:
-            arrowAdjustment = 15;
-            break;
-    }
-
-    NSRect titleFrame = NSMakeRect(cellFrame.origin.x + 5, NSMidY(cellFrame) - ([aTitle size].height/2), cellFrame.size.width - arrowAdjustment, [aTitle size].height);
-    NSRect imageFrame = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y, cellFrame.size.width - arrowAdjustment, cellFrame.size.height);
-
-    if([self image]) {
-
-        switch ([self imagePosition]) {
-
-            case NSImageLeft:
-            case NSNoImage:
-
-                titleFrame.origin.x += 6;
-                titleFrame.origin.x += [[self image] size].width;
-                break;
-
-            case NSImageOnly:
-                titleFrame.size.width = 0;
-                break;
-
-            default:
-                break;
-        }
-    }
-
-    if([self imagePosition] != NSImageOnly) {
-        [super drawTitle:aTitle withFrame:titleFrame inView:controlView];
-    }
-
-
-    if([self imagePosition] != NSNoImage) {
-        [self drawImage:[self image] withFrame:imageFrame inView:controlView];
-    }
-}
-
-- (void)drawArrowsInRect:(NSRect) frame {
-
-    CGFloat arrowsWidth;
-    CGFloat arrowsHeight;
-    CGFloat arrowWidth;
-    CGFloat arrowHeight;
-
-    int arrowAdjustment = 0;
-
-    //Adjust based on Control size
-    switch ([self controlSize]) {
-        default: // Silence uninitialized variable warnings
-        case NSRegularControlSize:
-
-            if ([self isBordered]) {
-
-                arrowAdjustment = 21;
-            } else {
-
-                arrowAdjustment = 11;
-            }
-
-            arrowWidth = 3.5f;
-            arrowHeight = 2.5f;
-            arrowsHeight = 2;
-            arrowsWidth = 2.5f;
-            break;
-
-        case NSSmallControlSize:
-
-            if ([self isBordered]) {
-
-                arrowAdjustment = 18;
-            } else {
-
-                arrowAdjustment = 8;
-            }
-
-            arrowWidth = 3.5f;
-            arrowHeight = 2.5f;
-            arrowsHeight = 2;
-            arrowsWidth = 2.5f;
-
-            break;
-
-        case NSMiniControlSize:
-
-            if ([self isBordered]) {
-
-                arrowAdjustment = 15;
-            } else {
-
-                arrowAdjustment = 5;
-            }
-
-            arrowWidth = 2.5f;
-            arrowHeight = 1.5f;
-            arrowsHeight = 1.5f;
-            arrowsWidth = 2;
-            break;
-    }
-
-    frame.origin.x += (frame.size.width - arrowAdjustment);
-    frame.size.width = arrowAdjustment;
-
-    if ([self pullsDown]) {
-
-        NSBezierPath *arrow = [[NSBezierPath alloc] init];
-
-        NSPoint points[3];
-
-        points[0] = NSMakePoint(frame.origin.x + ((frame.size.width /2) - arrowWidth), frame.origin.y + ((frame.size.height /2) - arrowHeight));
-        points[1] = NSMakePoint(frame.origin.x + ((frame.size.width /2) + arrowWidth), frame.origin.y + ((frame.size.height /2) - arrowHeight));
-        points[2] = NSMakePoint(frame.origin.x + (frame.size.width /2), frame.origin.y + ((frame.size.height /2) + arrowHeight));
-
-        [arrow appendBezierPathWithPoints: points count: 3];
-        
-        if ([self isEnabled]) {
-            
-            if ([self isHighlighted]) {
-                
-                if ([[[self controlView] window] isKeyWindow]) {
-                    
-                    [_selectionTextActiveColor set];
-                } else {
-                    
-                    [_selectionTextInActiveColor set];
-                }
-            } else {
-                
-                [_cellTextColor set];
-            }
-        } else {
-            
-            [_disabledCellTextColor set];
-        }
-        
-        [arrow fill];
-    } else {
-        
-        NSBezierPath *topArrow = [[NSBezierPath alloc] init];
-        
-        NSPoint topPoints[3];
-        
-        topPoints[0] = NSMakePoint(frame.origin.x + ((frame.size.width /2) - arrowsWidth), frame.origin.y + ((frame.size.height /2) - arrowsHeight));
-        topPoints[1] = NSMakePoint(frame.origin.x + ((frame.size.width /2) + arrowsWidth), frame.origin.y + ((frame.size.height /2) - arrowsHeight));
-        topPoints[2] = NSMakePoint(frame.origin.x + (frame.size.width /2), frame.origin.y + ((frame.size.height /2) - ((arrowsHeight * 2) + 2)));
-        
-        [topArrow appendBezierPathWithPoints: topPoints count: 3];
-        
-        if([self isEnabled]) {
-            
-            if([self isHighlighted]) {
-                
-                if([[[self controlView] window] isKeyWindow])
-                {
-                    
-                    [_selectionTextActiveColor set];
-                } else {
-                    
-                    [_selectionTextInActiveColor set];
-                }
-            } else {
-                
-                [_cellTextColor set];
-            }
-        } else {
-            
-            [_disabledCellTextColor set];
-        }
-        [topArrow fill];
-        
-        NSBezierPath *bottomArrow = [[NSBezierPath alloc] init];
-        
-        NSPoint bottomPoints[3];
-        
-        bottomPoints[0] = NSMakePoint(frame.origin.x + ((frame.size.width /2) - arrowsWidth), frame.origin.y + ((frame.size.height /2) + arrowsHeight));
-        bottomPoints[1] = NSMakePoint(frame.origin.x + ((frame.size.width /2) + arrowsWidth), frame.origin.y + ((frame.size.height /2) + arrowsHeight));
-        bottomPoints[2] = NSMakePoint(frame.origin.x + (frame.size.width /2), frame.origin.y + ((frame.size.height /2) + ((arrowsHeight * 2) + 2)));
-        
-        [bottomArrow appendBezierPathWithPoints: bottomPoints count: 3];
-        
-        if ([self isEnabled]) {
-            
-            if ([self isHighlighted]) {
-                
-                if ([[[self controlView] window] isKeyWindow]) {
-                    
-                    [_selectionTextActiveColor set];
-                } else {
-                    
-                    [_selectionTextInActiveColor set];
-                }
-            } else {
-                
-                [_cellTextColor set];
-            }
-        } else {
-            
-            [_disabledCellTextColor set];
-        }
-        [bottomArrow fill];
-    }
-}
-
-@end