summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2020-01-20 16:19:08 +0100
committerDamiano Galassi <[email protected]>2020-01-20 16:19:08 +0100
commit5ca812830dfd7558616ec81d566dfc08dc79a165 (patch)
tree7ae0d8c20e2048b28624d90c10470db90910940f
parent063e587158fead42f198f73fd16f42e091c536f4 (diff)
MacGui: remove unused code.
-rw-r--r--macosx/Base.lproj/Presets.xib13
-rw-r--r--macosx/HBPresetsViewController.h1
-rw-r--r--macosx/HBPresetsViewController.m16
3 files changed, 5 insertions, 25 deletions
diff --git a/macosx/Base.lproj/Presets.xib b/macosx/Base.lproj/Presets.xib
index 23f4cedf5..ecb75e9cc 100644
--- a/macosx/Base.lproj/Presets.xib
+++ b/macosx/Base.lproj/Presets.xib
@@ -1,15 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15702" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15705" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15702"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15705"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<customObject id="-2" userLabel="File's Owner" customClass="HBPresetsViewController">
<connections>
- <outlet property="headerBottomConstraint" destination="jy6-AG-t3l" id="0Ar-a2-XjQ"/>
- <outlet property="headerLabel" destination="jCz-Aw-giC" id="eh7-O4-fFD"/>
<outlet property="outlineView" destination="00W-tb-wgY" id="T3u-ix-uIb"/>
<outlet property="treeController" destination="ohT-Pp-wBT" id="YGP-sN-dS3"/>
<outlet property="view" destination="Hz6-mo-xeY" id="xR8-5v-xDQ"/>
@@ -39,12 +37,12 @@ Overrides all encode settings. Settings may be further adjusted after selecting
<tableColumns>
<tableColumn identifier="name" width="219" minWidth="16" maxWidth="1000" id="jhC-ge-H1w">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
- <font key="font" metaFont="label" size="11"/>
+ <font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
</tableHeaderCell>
<textFieldCell key="dataCell" controlSize="small" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="4tC-UE-40G">
- <font key="font" metaFont="label" size="11"/>
+ <font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
@@ -57,7 +55,7 @@ Overrides all encode settings. Settings may be further adjusted after selecting
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="VdJ-Vk-fzJ">
<rect key="frame" x="0.0" y="0.0" width="219" height="14"/>
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="oBC-Nh-TwB">
- <font key="font" metaFont="label" size="11"/>
+ <font key="font" metaFont="menu" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
<connections>
@@ -206,7 +204,6 @@ Overrides all encode settings. Settings may be further adjusted after selecting
<constraint firstItem="kfi-wq-mgV" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="3" id="dhx-Bz-GhP"/>
<constraint firstItem="uad-bt-uKD" firstAttribute="top" secondItem="jCz-Aw-giC" secondAttribute="bottom" constant="6" id="jy6-AG-t3l"/>
<constraint firstItem="Ybq-Zt-sta" firstAttribute="leading" secondItem="b3V-8w-euU" secondAttribute="trailing" constant="8" id="k1Z-q1-OXB"/>
- <constraint firstItem="uad-bt-uKD" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" priority="250" constant="6" id="qPU-x9-bnh"/>
</constraints>
<point key="canvasLocation" x="21" y="276"/>
</customView>
diff --git a/macosx/HBPresetsViewController.h b/macosx/HBPresetsViewController.h
index 3f2fd6bf3..9cf9fc48d 100644
--- a/macosx/HBPresetsViewController.h
+++ b/macosx/HBPresetsViewController.h
@@ -35,7 +35,6 @@ NS_ASSUME_NONNULL_BEGIN
@property (nonatomic, readwrite) HBPreset *selectedPreset;
@property (nonatomic, readwrite, getter=isEnabled) BOOL enabled;
-@property (nonatomic, readwrite) BOOL showHeader;
@end
diff --git a/macosx/HBPresetsViewController.m b/macosx/HBPresetsViewController.m
index 4ce075293..d2528e738 100644
--- a/macosx/HBPresetsViewController.m
+++ b/macosx/HBPresetsViewController.m
@@ -49,9 +49,6 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
@property (nonatomic, readwrite) HBPreset *selectedPresetInternal;
@property (nonatomic, unsafe_unretained) IBOutlet NSTreeController *treeController;
-@property (nonatomic, strong) IBOutlet NSTextField *headerLabel;
-@property (nonatomic, strong) IBOutlet NSLayoutConstraint *headerBottomConstraint;
-
/**
* Helper var for drag & drop
*/
@@ -78,7 +75,6 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
_selectedPresetInternal = presetManager.defaultPreset;
_expandedNodes = [[NSArray arrayWithArray:[NSUserDefaults.standardUserDefaults
objectForKey:@"HBPreviewViewExpandedStatus"]] mutableCopy];
- _showHeader = YES;
}
return self;
}
@@ -101,10 +97,6 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
[self expandNodes:[self.treeController.arrangedObjects childNodes]];
[self.treeController setSelectionIndexPath:[self.presets indexPathOfPreset:self.selectedPreset]];
-
- // Update header state
- self.showHeader = _showHeader;
-
[self.treeController addObserver:self forKeyPath:@"selectedObjects" options:NSKeyValueObservingOptionNew context:HBPresetsViewControllerContext];
}
@@ -255,14 +247,6 @@ static void *HBPresetsViewControllerContext = &HBPresetsViewControllerContext;
#pragma mark - UI Methods
-- (void)setShowHeader:(BOOL)showHeader
-{
- _showHeader = showHeader;
-
- self.headerLabel.hidden = !showHeader;
- self.headerBottomConstraint.active = showHeader;
-}
-
- (IBAction)clicked:(id)sender
{
if (self.delegate && [self.treeController.selectedObjects.firstObject isLeaf])