mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 12:52:21 +00:00
removed bottom bar in outline view
This commit is contained in:
@@ -288,6 +288,7 @@
|
|||||||
<constraint firstItem="690" firstAttribute="top" secondItem="54" secondAttribute="bottom" id="705"/>
|
<constraint firstItem="690" firstAttribute="top" secondItem="54" secondAttribute="bottom" id="705"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="690" secondAttribute="bottom" id="708"/>
|
<constraint firstAttribute="bottom" secondItem="690" secondAttribute="bottom" id="708"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
|
<point key="canvasLocation" x="256" y="530"/>
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
<resources>
|
<resources>
|
||||||
|
|||||||
@@ -16,9 +16,6 @@ APPKIT_EXTERN NSString *const MPOutlineViewDidChangeGroupSelection;
|
|||||||
|
|
||||||
@interface MPOutlineViewController : MPViewController <MPTargetNodeResolving, NSOutlineViewDelegate, NSMenuDelegate>
|
@interface MPOutlineViewController : MPViewController <MPTargetNodeResolving, NSOutlineViewDelegate, NSMenuDelegate>
|
||||||
|
|
||||||
|
|
||||||
@property (weak) IBOutlet HNHUIGradientView *bottomBar;
|
|
||||||
|
|
||||||
- (void)clearSelection;
|
- (void)clearSelection;
|
||||||
- (void)showOutline;
|
- (void)showOutline;
|
||||||
- (void)regsiterNotificationsForDocument:(MPDocument *)document;
|
- (void)regsiterNotificationsForDocument:(MPDocument *)document;
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
|||||||
|
|
||||||
}
|
}
|
||||||
@property (weak) IBOutlet NSOutlineView *outlineView;
|
@property (weak) IBOutlet NSOutlineView *outlineView;
|
||||||
@property (weak) IBOutlet NSButton *addGroupButton;
|
|
||||||
|
|
||||||
@property (strong) NSTreeController *treeController;
|
@property (strong) NSTreeController *treeController;
|
||||||
@property (strong) MPOutlineDataSource *datasource;
|
@property (strong) MPOutlineDataSource *datasource;
|
||||||
@@ -79,8 +78,6 @@ NSString *const _MPOutlinveViewHeaderViewIdentifier = @"HeaderCell";
|
|||||||
[self.outlineView registerForDraggedTypes:@[ KPKGroupUTI, KPKEntryUTI ]];
|
[self.outlineView registerForDraggedTypes:@[ KPKGroupUTI, KPKEntryUTI ]];
|
||||||
[self.outlineView setDraggingSourceOperationMask:NSDragOperationEvery forLocal:YES];
|
[self.outlineView setDraggingSourceOperationMask:NSDragOperationEvery forLocal:YES];
|
||||||
[self.outlineView setDoubleAction:@selector(_doubleClickedGroup:)];
|
[self.outlineView setDoubleAction:@selector(_doubleClickedGroup:)];
|
||||||
[self.bottomBar setBorderType:HNHBorderTop|HNHBorderHighlight];
|
|
||||||
[self.addGroupButton setAction:[MPActionHelper actionOfType:MPActionAddGroup]];
|
|
||||||
|
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||||
selector:@selector(_didBecomeFirstResponder:)
|
selector:@selector(_didBecomeFirstResponder:)
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9059" systemVersion="15B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="9532" systemVersion="15D21" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="macosx"/>
|
<deployment identifier="macosx"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9059"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="9532"/>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<objects>
|
<objects>
|
||||||
<customObject id="-2" userLabel="File's Owner" customClass="MPOutlineViewController">
|
<customObject id="-2" userLabel="File's Owner" customClass="MPOutlineViewController">
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="addGroupButton" destination="425" id="434"/>
|
|
||||||
<outlet property="bottomBar" destination="394" id="433"/>
|
|
||||||
<outlet property="outlineView" destination="228" id="271"/>
|
<outlet property="outlineView" destination="228" id="271"/>
|
||||||
<outlet property="view" destination="196" id="273"/>
|
<outlet property="view" destination="196" id="273"/>
|
||||||
</connections>
|
</connections>
|
||||||
@@ -19,15 +17,14 @@
|
|||||||
<rect key="frame" x="0.0" y="0.0" width="272" height="449"/>
|
<rect key="frame" x="0.0" y="0.0" width="272" height="449"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="24" horizontalPageScroll="10" verticalLineScroll="24" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="227">
|
<scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="24" horizontalPageScroll="10" verticalLineScroll="24" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="227">
|
||||||
<rect key="frame" x="0.0" y="30" width="272" height="419"/>
|
<rect key="frame" x="0.0" y="0.0" width="272" height="449"/>
|
||||||
<clipView key="contentView" drawsBackground="NO" id="WAU-Bu-ack">
|
<clipView key="contentView" drawsBackground="NO" id="WAU-Bu-ack">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="272" height="419"/>
|
<rect key="frame" x="0.0" y="0.0" width="272" height="449"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<outlineView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" selectionHighlightStyle="sourceList" multipleSelection="NO" autosaveColumns="NO" rowHeight="24" rowSizeStyle="automatic" viewBased="YES" indentationPerLevel="16" outlineTableColumn="231" id="228" customClass="MPOutlineView">
|
<outlineView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" selectionHighlightStyle="sourceList" multipleSelection="NO" autosaveColumns="NO" rowHeight="24" rowSizeStyle="automatic" viewBased="YES" indentationPerLevel="16" outlineTableColumn="231" id="228" customClass="MPOutlineView">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="272" height="0.0"/>
|
<rect key="frame" x="0.0" y="0.0" width="272" height="449"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<animations/>
|
|
||||||
<size key="intercellSpacing" width="3" height="0.0"/>
|
<size key="intercellSpacing" width="3" height="0.0"/>
|
||||||
<color key="backgroundColor" name="_sourceListBackgroundColor" catalog="System" colorSpace="catalog"/>
|
<color key="backgroundColor" name="_sourceListBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -51,7 +48,6 @@
|
|||||||
<subviews>
|
<subviews>
|
||||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="238">
|
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="238">
|
||||||
<rect key="frame" x="1" y="1" width="267" height="14"/>
|
<rect key="frame" x="1" y="1" width="267" height="14"/>
|
||||||
<animations/>
|
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="HEADER CELL" id="239">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="HEADER CELL" id="239">
|
||||||
<font key="font" metaFont="smallSystemBold"/>
|
<font key="font" metaFont="smallSystemBold"/>
|
||||||
<color key="textColor" red="0.43921568630000002" green="0.4941176471" blue="0.54901960780000003" alpha="1" colorSpace="calibratedRGB"/>
|
<color key="textColor" red="0.43921568630000002" green="0.4941176471" blue="0.54901960780000003" alpha="1" colorSpace="calibratedRGB"/>
|
||||||
@@ -64,7 +60,6 @@
|
|||||||
<constraint firstAttribute="trailing" secondItem="238" secondAttribute="trailing" constant="3" id="253"/>
|
<constraint firstAttribute="trailing" secondItem="238" secondAttribute="trailing" constant="3" id="253"/>
|
||||||
<constraint firstItem="238" firstAttribute="centerY" secondItem="237" secondAttribute="centerY" id="254"/>
|
<constraint firstItem="238" firstAttribute="centerY" secondItem="237" secondAttribute="centerY" id="254"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<animations/>
|
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="textField" destination="238" id="245"/>
|
<outlet property="textField" destination="238" id="245"/>
|
||||||
</connections>
|
</connections>
|
||||||
@@ -79,12 +74,10 @@
|
|||||||
<constraint firstAttribute="width" constant="17" id="385"/>
|
<constraint firstAttribute="width" constant="17" id="385"/>
|
||||||
<constraint firstAttribute="height" constant="17" id="bah-Ng-60T"/>
|
<constraint firstAttribute="height" constant="17" id="bah-Ng-60T"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<animations/>
|
|
||||||
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="NSActionTemplate" id="242"/>
|
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="NSActionTemplate" id="242"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="243" customClass="HNHUIBadgedTextField">
|
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="243" customClass="HNHUIBadgedTextField">
|
||||||
<rect key="frame" x="26" y="4" width="242" height="17"/>
|
<rect key="frame" x="26" y="4" width="242" height="17"/>
|
||||||
<animations/>
|
|
||||||
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="244" customClass="HNHUIBadgedTextFieldCell">
|
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="244" customClass="HNHUIBadgedTextFieldCell">
|
||||||
<font key="font" metaFont="system"/>
|
<font key="font" metaFont="system"/>
|
||||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||||
@@ -100,7 +93,6 @@
|
|||||||
<constraint firstItem="243" firstAttribute="bottom" secondItem="241" secondAttribute="bottom" id="388"/>
|
<constraint firstItem="243" firstAttribute="bottom" secondItem="241" secondAttribute="bottom" id="388"/>
|
||||||
<constraint firstAttribute="trailing" secondItem="243" secondAttribute="trailing" constant="3" id="389"/>
|
<constraint firstAttribute="trailing" secondItem="243" secondAttribute="trailing" constant="3" id="389"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<animations/>
|
|
||||||
<connections>
|
<connections>
|
||||||
<outlet property="imageView" destination="241" id="247"/>
|
<outlet property="imageView" destination="241" id="247"/>
|
||||||
<outlet property="textField" destination="243" id="246"/>
|
<outlet property="textField" destination="243" id="246"/>
|
||||||
@@ -111,58 +103,27 @@
|
|||||||
</tableColumns>
|
</tableColumns>
|
||||||
</outlineView>
|
</outlineView>
|
||||||
</subviews>
|
</subviews>
|
||||||
<animations/>
|
|
||||||
<nil key="backgroundColor"/>
|
<nil key="backgroundColor"/>
|
||||||
</clipView>
|
</clipView>
|
||||||
<animations/>
|
|
||||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="229">
|
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="229">
|
||||||
<rect key="frame" x="1" y="119" width="238" height="15"/>
|
<rect key="frame" x="1" y="119" width="238" height="15"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<animations/>
|
|
||||||
</scroller>
|
</scroller>
|
||||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="230">
|
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="230">
|
||||||
<rect key="frame" x="224" y="17" width="15" height="102"/>
|
<rect key="frame" x="224" y="17" width="15" height="102"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<animations/>
|
|
||||||
</scroller>
|
</scroller>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="394" customClass="HNHUIGradientView">
|
|
||||||
<rect key="frame" x="0.0" y="0.0" width="272" height="30"/>
|
|
||||||
<subviews>
|
|
||||||
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="425">
|
|
||||||
<rect key="frame" x="7" y="5" width="32" height="19"/>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="width" constant="32" id="432"/>
|
|
||||||
</constraints>
|
|
||||||
<animations/>
|
|
||||||
<buttonCell key="cell" type="roundRect" bezelStyle="roundedRect" image="NSAddTemplate" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="426">
|
|
||||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
|
||||||
<font key="font" metaFont="cellTitle"/>
|
|
||||||
</buttonCell>
|
|
||||||
</button>
|
|
||||||
</subviews>
|
|
||||||
<constraints>
|
|
||||||
<constraint firstAttribute="height" constant="30" id="402"/>
|
|
||||||
<constraint firstItem="425" firstAttribute="centerY" secondItem="394" secondAttribute="centerY" id="428"/>
|
|
||||||
<constraint firstItem="425" firstAttribute="leading" secondItem="394" secondAttribute="leading" constant="7" id="429"/>
|
|
||||||
</constraints>
|
|
||||||
<animations/>
|
|
||||||
</customView>
|
|
||||||
</subviews>
|
</subviews>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="227" firstAttribute="leading" secondItem="196" secondAttribute="leading" id="263"/>
|
<constraint firstItem="227" firstAttribute="leading" secondItem="196" secondAttribute="leading" id="263"/>
|
||||||
<constraint firstItem="227" firstAttribute="top" secondItem="196" secondAttribute="top" id="267"/>
|
<constraint firstItem="227" firstAttribute="top" secondItem="196" secondAttribute="top" id="267"/>
|
||||||
<constraint firstItem="227" firstAttribute="trailing" secondItem="196" secondAttribute="trailing" id="269"/>
|
<constraint firstItem="227" firstAttribute="trailing" secondItem="196" secondAttribute="trailing" id="269"/>
|
||||||
<constraint firstItem="394" firstAttribute="leading" secondItem="196" secondAttribute="leading" id="397"/>
|
<constraint firstAttribute="bottom" secondItem="227" secondAttribute="bottom" id="NQ5-NK-jdK"/>
|
||||||
<constraint firstItem="394" firstAttribute="trailing" secondItem="196" secondAttribute="trailing" id="400"/>
|
|
||||||
<constraint firstItem="394" firstAttribute="bottom" secondItem="196" secondAttribute="bottom" id="408"/>
|
|
||||||
<constraint firstItem="394" firstAttribute="top" secondItem="227" secondAttribute="bottom" id="409"/>
|
|
||||||
</constraints>
|
</constraints>
|
||||||
<animations/>
|
|
||||||
</customView>
|
</customView>
|
||||||
</objects>
|
</objects>
|
||||||
<resources>
|
<resources>
|
||||||
<image name="NSActionTemplate" width="14" height="14"/>
|
<image name="NSActionTemplate" width="14" height="14"/>
|
||||||
<image name="NSAddTemplate" width="11" height="11"/>
|
|
||||||
</resources>
|
</resources>
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
Reference in New Issue
Block a user