Commit 36cc211c authored by Vibhoothi's avatar Vibhoothi

libraryView:Add and remove constraints of libraryView's Item

This commit fixses most of constraints issue found in the collectionViewItem's IB
parent aa3299f6
......@@ -2,6 +2,7 @@
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14113" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14113"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
<capability name="system font weights other than Regular or Bold" minToolsVersion="7.0"/>
</dependencies>
......@@ -18,28 +19,20 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView autoresizesSubviews="NO" id="Hz6-mo-xeY" userLabel="Library View">
<rect key="frame" x="0.0" y="0.0" width="300" height="302"/>
<rect key="frame" x="0.0" y="0.0" width="290" height="341"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="KFD-Gv-9GE">
<rect key="frame" x="18" y="46" width="264" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="center" title="Label" id="ZkO-z1-lsg">
<font key="font" metaFont="systemMedium" size="13"/>
<rect key="frame" x="18" y="47" width="254" height="16"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" title="VLConeyyCone" id="ZkO-z1-lsg">
<font key="font" metaFont="systemMedium" size="12"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="LRe-wn-Y2z">
<rect key="frame" x="20" y="73" width="260" height="209"/>
<constraints>
<constraint firstAttribute="width" constant="260" id="YT2-3Y-Cx9"/>
<constraint firstAttribute="height" constant="209" id="kfn-BH-lNb"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="axesIndependently" image="VLC" id="szu-Su-VAK"/>
</imageView>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="rgr-zW-apm">
<rect key="frame" x="20" y="10" width="41" height="19"/>
<buttonCell key="cell" type="roundRect" bezelStyle="roundedRect" image="NSColorPanel" imagePosition="only" imageScaling="axesIndependently" inset="2" id="5di-ev-3yB">
<rect key="frame" x="20" y="20" width="250" height="19"/>
<buttonCell key="cell" type="roundRect" bezelStyle="roundedRect" image="playlist-1btn" imagePosition="only" imageScaling="proportionallyUpOrDown" inset="2" id="5di-ev-3yB">
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="cellTitle"/>
</buttonCell>
......@@ -47,20 +40,29 @@
<action selector="popOver:" target="-2" id="W9r-D0-Mzj"/>
</connections>
</button>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="LRe-wn-Y2z">
<rect key="frame" x="20" y="71" width="250" height="250"/>
<constraints>
<constraint firstAttribute="width" secondItem="LRe-wn-Y2z" secondAttribute="height" multiplier="1:1" id="ChX-Qt-3UN"/>
<constraint firstAttribute="width" constant="250" id="iS2-3s-h2Q"/>
<constraint firstAttribute="height" constant="250" id="mCj-td-Sup"/>
</constraints>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="axesIndependently" image="VLC" id="szu-Su-VAK"/>
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="rgr-zW-apm" secondAttribute="trailing" constant="239" id="M8r-36-CpT"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="leading" secondItem="LRe-wn-Y2z" secondAttribute="leading" id="NUG-yW-5HV"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="leading" secondItem="LRe-wn-Y2z" secondAttribute="leading" id="PHs-vM-L90"/>
<constraint firstItem="LRe-wn-Y2z" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" id="PVA-i5-MUP"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="top" secondItem="KFD-Gv-9GE" secondAttribute="bottom" constant="17" id="TQ6-TU-26c"/>
<constraint firstItem="LRe-wn-Y2z" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" id="c9V-yO-JLD"/>
<constraint firstAttribute="bottom" secondItem="rgr-zW-apm" secondAttribute="bottom" constant="10" id="dlt-eV-IYc"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="top" secondItem="LRe-wn-Y2z" secondAttribute="bottom" constant="10" id="mJL-Un-jgi"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" id="tp2-C2-Uga"/>
<constraint firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" constant="20" id="yoA-wN-liI"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="top" secondItem="KFD-Gv-9GE" secondAttribute="bottom" constant="8" symbolic="YES" id="AkF-3V-X0s"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="top" secondItem="LRe-wn-Y2z" secondAttribute="bottom" constant="8" symbolic="YES" id="AsS-wu-9o4"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" id="D05-LR-gcf"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="leading" secondItem="LRe-wn-Y2z" secondAttribute="leading" id="Deb-my-xoM"/>
<constraint firstItem="LRe-wn-Y2z" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" symbolic="YES" id="EgV-WP-Fvi"/>
<constraint firstItem="rgr-zW-apm" firstAttribute="leading" secondItem="LRe-wn-Y2z" secondAttribute="leading" id="I6Z-ef-ohg"/>
<constraint firstItem="LRe-wn-Y2z" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" symbolic="YES" id="dIP-da-Iqp"/>
<constraint firstAttribute="bottom" secondItem="rgr-zW-apm" secondAttribute="bottom" constant="20" symbolic="YES" id="edn-6n-tvx"/>
<constraint firstItem="KFD-Gv-9GE" firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" id="fyA-AI-4W0"/>
<constraint firstAttribute="trailing" secondItem="LRe-wn-Y2z" secondAttribute="trailing" constant="20" symbolic="YES" id="o13-bN-eYM"/>
</constraints>
<point key="canvasLocation" x="-363" y="1037.5"/>
<point key="canvasLocation" x="-775" y="1330.5"/>
</customView>
<viewController id="N7j-wi-2gE" userLabel="Popover View Controller">
<connections>
......@@ -73,35 +75,31 @@
</connections>
</popover>
<customView id="LAc-1i-9Rt">
<rect key="frame" x="0.0" y="0.0" width="239" height="82"/>
<rect key="frame" x="0.0" y="0.0" width="205" height="107"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bNc-32-jG8">
<rect key="frame" x="66" y="45" width="175" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="bNc-32-jG8">
<rect key="frame" x="81" y="70" width="106" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ConeyCone.mp4" id="Cdi-hZ-jxs">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<imageView fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="0sa-wu-dPr">
<rect key="frame" x="15" y="17" width="48" height="48"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageView translatesAutoresizingMaskIntoConstraints="NO" id="0sa-wu-dPr">
<rect key="frame" x="17" y="17" width="61" height="73"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" imageFrameStyle="grayBezel" image="VLC" id="1Ko-ZD-RIh"/>
</imageView>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Ebf-j5-UtS">
<rect key="frame" x="66" y="27" width="36" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ebf-j5-UtS">
<rect key="frame" x="81" y="45" width="106" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Cone" id="WF4-b6-t4f">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="lSa-IC-VbL">
<rect key="frame" x="66" y="9" width="73" height="17"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="lSa-IC-VbL">
<rect key="frame" x="81" y="20" width="106" height="17"/>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="40404.404" id="sj9-oz-6hS">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
......@@ -109,11 +107,28 @@
</textFieldCell>
</textField>
</subviews>
<point key="canvasLocation" x="25" y="1278"/>
<constraints>
<constraint firstItem="bNc-32-jG8" firstAttribute="top" secondItem="LAc-1i-9Rt" secondAttribute="top" constant="20" symbolic="YES" id="1ET-JM-75A"/>
<constraint firstItem="0sa-wu-dPr" firstAttribute="leading" secondItem="LAc-1i-9Rt" secondAttribute="leading" constant="20" symbolic="YES" id="666-Jk-QXU"/>
<constraint firstItem="0sa-wu-dPr" firstAttribute="top" secondItem="LAc-1i-9Rt" secondAttribute="top" constant="20" symbolic="YES" id="8pi-bg-rag"/>
<constraint firstItem="Ebf-j5-UtS" firstAttribute="top" secondItem="bNc-32-jG8" secondAttribute="bottom" constant="8" symbolic="YES" id="DyL-ip-0Yd"/>
<constraint firstItem="lSa-IC-VbL" firstAttribute="leading" secondItem="bNc-32-jG8" secondAttribute="leading" id="HbK-da-iY4"/>
<constraint firstAttribute="bottom" secondItem="0sa-wu-dPr" secondAttribute="bottom" constant="20" symbolic="YES" id="Kso-LA-kIn"/>
<constraint firstItem="Ebf-j5-UtS" firstAttribute="leading" secondItem="bNc-32-jG8" secondAttribute="leading" id="LGG-d0-q9l"/>
<constraint firstItem="bNc-32-jG8" firstAttribute="leading" secondItem="0sa-wu-dPr" secondAttribute="trailing" constant="8" symbolic="YES" id="Pxg-KK-dX5"/>
<constraint firstItem="lSa-IC-VbL" firstAttribute="leading" secondItem="0sa-wu-dPr" secondAttribute="trailing" constant="8" symbolic="YES" id="Sov-RE-Iiy"/>
<constraint firstItem="lSa-IC-VbL" firstAttribute="top" secondItem="Ebf-j5-UtS" secondAttribute="bottom" constant="8" symbolic="YES" id="T8r-ec-OaT"/>
<constraint firstItem="Ebf-j5-UtS" firstAttribute="leading" secondItem="0sa-wu-dPr" secondAttribute="trailing" constant="8" symbolic="YES" id="UeU-R4-BFq"/>
<constraint firstAttribute="trailing" secondItem="bNc-32-jG8" secondAttribute="trailing" constant="20" symbolic="YES" id="UlV-ak-XdR"/>
<constraint firstItem="Ebf-j5-UtS" firstAttribute="trailing" secondItem="bNc-32-jG8" secondAttribute="trailing" id="YHN-eK-O6c"/>
<constraint firstAttribute="bottom" secondItem="lSa-IC-VbL" secondAttribute="bottom" constant="20" symbolic="YES" id="d6E-ET-pPI"/>
<constraint firstItem="lSa-IC-VbL" firstAttribute="trailing" secondItem="bNc-32-jG8" secondAttribute="trailing" id="w3N-35-dXI"/>
</constraints>
<point key="canvasLocation" x="7.5" y="1278.5"/>
</customView>
</objects>
<resources>
<image name="NSColorPanel" width="32" height="32"/>
<image name="VLC" width="512" height="512"/>
<image name="playlist-1btn" width="29" height="23"/>
</resources>
</document>
......@@ -296,6 +296,10 @@ static const float f_min_window_height = 307.;
- (void)collectionView:(NSCollectionView *)collectionView didSelectItemsAtIndexPaths:VLCLibraryViewItem
{
NSLog(@"Video at:%@ is Selected",VLCLibraryViewItem);
[self performSelector:@selector(makeCollectionViewHidden) withObject:self afterDelay:2.0 ];
// [[[VLCMain sharedInstance] playlist] addPlaylistItems:self.images tryAsSubtitle:YES];
// [[VLCCoreInteraction sharedInstance] playOrPause];
}
- (NSInteger)collectionView:(NSCollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment