ButtonDemoVC.xib 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
  3. <dependencies>
  4. <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
  5. <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
  6. </dependencies>
  7. <objects>
  8. <customObject id="-2" userLabel="File's Owner" customClass="ButtonDemoVC" customModule="PDF_Reader_Pro" customModuleProvider="target">
  9. <connections>
  10. <outlet property="componentView" destination="NMO-q2-vVb" id="g7l-Ob-q8S"/>
  11. <outlet property="disabledButton" destination="i4d-QD-upg" id="vke-Wd-9FO"/>
  12. <outlet property="letfBox" destination="gVj-Fc-SAL" id="Des-cr-Ckv"/>
  13. <outlet property="onlyIconButton" destination="frJ-56-7CT" id="Y42-z2-0E9"/>
  14. <outlet property="showLeftIconButton" destination="DNo-RF-yR9" id="jGr-gY-e9l"/>
  15. <outlet property="showRightIconButton" destination="1Hp-Py-Q4D" id="vVt-EI-TIH"/>
  16. <outlet property="sizeComboBox" destination="s5g-4r-jzg" id="uJQ-im-5EB"/>
  17. <outlet property="typeComboBox" destination="AXH-Yf-Bps" id="Tkd-Ul-6Gv"/>
  18. <outlet property="view" destination="Hz6-mo-xeY" id="0bl-1N-x8E"/>
  19. <outlet property="viewHeight" destination="c2j-RP-ICW" id="wYs-5e-Mmd"/>
  20. <outlet property="viewWidth" destination="wKL-Qp-b1Q" id="AH7-Dy-2T1"/>
  21. </connections>
  22. </customObject>
  23. <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
  24. <customObject id="-3" userLabel="Application" customClass="NSObject"/>
  25. <customView id="Hz6-mo-xeY">
  26. <rect key="frame" x="0.0" y="0.0" width="592" height="395"/>
  27. <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
  28. <subviews>
  29. <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="gVj-Fc-SAL">
  30. <rect key="frame" x="20" y="20" width="355" height="355"/>
  31. <view key="contentView" id="yMM-iK-OVf">
  32. <rect key="frame" x="1" y="1" width="353" height="353"/>
  33. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  34. <subviews>
  35. <customView translatesAutoresizingMaskIntoConstraints="NO" id="NMO-q2-vVb" customClass="ComponentButton" customModule="KMComponentLibrary">
  36. <rect key="frame" x="97" y="149" width="159" height="56"/>
  37. <constraints>
  38. <constraint firstAttribute="height" constant="56" id="c2j-RP-ICW"/>
  39. <constraint firstAttribute="width" constant="159" id="wKL-Qp-b1Q"/>
  40. </constraints>
  41. </customView>
  42. </subviews>
  43. <constraints>
  44. <constraint firstItem="NMO-q2-vVb" firstAttribute="centerX" secondItem="yMM-iK-OVf" secondAttribute="centerX" id="Qit-Hr-AJx"/>
  45. <constraint firstItem="NMO-q2-vVb" firstAttribute="centerY" secondItem="yMM-iK-OVf" secondAttribute="centerY" id="SUJ-il-viF"/>
  46. </constraints>
  47. </view>
  48. <constraints>
  49. <constraint firstAttribute="width" secondItem="gVj-Fc-SAL" secondAttribute="height" multiplier="1:1" id="a5K-lB-Z8M"/>
  50. </constraints>
  51. </box>
  52. <box boxType="custom" cornerRadius="4" title="Box" translatesAutoresizingMaskIntoConstraints="NO" id="cMz-rn-6IT">
  53. <rect key="frame" x="395" y="20" width="177" height="355"/>
  54. <view key="contentView" id="C8A-65-Sbf">
  55. <rect key="frame" x="1" y="1" width="175" height="353"/>
  56. <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  57. <subviews>
  58. <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="frJ-56-7CT">
  59. <rect key="frame" x="18" y="132" width="83" height="18"/>
  60. <buttonCell key="cell" type="check" title="Only icon" bezelStyle="regularSquare" imagePosition="left" inset="2" id="n8f-ya-rME">
  61. <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
  62. <font key="font" metaFont="system"/>
  63. </buttonCell>
  64. <connections>
  65. <action selector="onlyIconAction:" target="-2" id="4or-Ri-XbD"/>
  66. </connections>
  67. </button>
  68. <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="DNo-RF-yR9">
  69. <rect key="frame" x="18" y="96" width="112" height="18"/>
  70. <buttonCell key="cell" type="check" title="Show left icon" bezelStyle="regularSquare" imagePosition="left" inset="2" id="S6I-FV-Aqk">
  71. <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
  72. <font key="font" metaFont="system"/>
  73. </buttonCell>
  74. <connections>
  75. <action selector="showLeftIconAction:" target="-2" id="BBR-TP-XJR"/>
  76. </connections>
  77. </button>
  78. <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="1Hp-Py-Q4D">
  79. <rect key="frame" x="18" y="60" width="120" height="18"/>
  80. <buttonCell key="cell" type="check" title="Show right icon" bezelStyle="regularSquare" imagePosition="left" inset="2" id="aTh-Gs-N0Q">
  81. <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
  82. <font key="font" metaFont="system"/>
  83. </buttonCell>
  84. <connections>
  85. <action selector="showRightIconAction:" target="-2" id="v23-3z-WxD"/>
  86. </connections>
  87. </button>
  88. <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="guu-gb-wpT">
  89. <rect key="frame" x="18" y="207" width="34" height="16"/>
  90. <textFieldCell key="cell" lineBreakMode="clipping" title="Size:" id="5bn-qK-MtP">
  91. <font key="font" metaFont="system"/>
  92. <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
  93. <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
  94. </textFieldCell>
  95. </textField>
  96. <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="bqU-wQ-HMR">
  97. <rect key="frame" x="18" y="247" width="38" height="16"/>
  98. <textFieldCell key="cell" lineBreakMode="clipping" title="Type:" id="HBT-sg-Lou">
  99. <font key="font" metaFont="system"/>
  100. <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
  101. <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
  102. </textFieldCell>
  103. </textField>
  104. <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="i4d-QD-upg">
  105. <rect key="frame" x="18" y="168" width="79" height="18"/>
  106. <buttonCell key="cell" type="check" title="Disabled" bezelStyle="regularSquare" imagePosition="left" inset="2" id="P3F-BR-V0T">
  107. <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
  108. <font key="font" metaFont="system"/>
  109. </buttonCell>
  110. <connections>
  111. <action selector="stateAction:" target="-2" id="kGE-cZ-QTf"/>
  112. </connections>
  113. </button>
  114. <comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="AXH-Yf-Bps">
  115. <rect key="frame" x="63" y="243" width="105" height="23"/>
  116. <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" alignment="center" title="Primary" drawsBackground="YES" completes="NO" numberOfVisibleItems="5" id="MHu-99-RZX">
  117. <font key="font" metaFont="system"/>
  118. <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
  119. <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
  120. <objectValues>
  121. <string>Primary</string>
  122. <string>Secondary</string>
  123. <string>Default (Tertiary)</string>
  124. <string>Gray</string>
  125. <string>Text Primary</string>
  126. <string>Text Gray</string>
  127. <string>Text Gray Opacity</string>
  128. <string>Text Gray Low</string>
  129. <string>Danger</string>
  130. <string>Danger Ghost</string>
  131. <string>Text Danger</string>
  132. <string>White</string>
  133. <string>White Ghost</string>
  134. <string>Text White</string>
  135. <string>Link White</string>
  136. <string>Link Accent</string>
  137. <string>Link Gray</string>
  138. </objectValues>
  139. </comboBoxCell>
  140. <connections>
  141. <action selector="typeAction:" target="-2" id="r4q-9z-klk"/>
  142. </connections>
  143. </comboBox>
  144. <comboBox focusRingType="none" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="s5g-4r-jzg">
  145. <rect key="frame" x="59" y="203" width="109" height="23"/>
  146. <comboBoxCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" alignment="center" title="XL" drawsBackground="YES" completes="NO" numberOfVisibleItems="6" id="4qR-B4-5VB">
  147. <font key="font" metaFont="system"/>
  148. <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
  149. <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
  150. <objectValues>
  151. <string>XL</string>
  152. <string>L</string>
  153. <string>M</string>
  154. <string>S</string>
  155. <string>XS</string>
  156. <string>XXS</string>
  157. <string>XXXS</string>
  158. </objectValues>
  159. </comboBoxCell>
  160. <connections>
  161. <action selector="sizeAction:" target="-2" id="9C4-IS-1oN"/>
  162. </connections>
  163. </comboBox>
  164. </subviews>
  165. <constraints>
  166. <constraint firstItem="guu-gb-wpT" firstAttribute="leading" secondItem="C8A-65-Sbf" secondAttribute="leading" constant="20" id="0jG-Jf-Wl2"/>
  167. <constraint firstItem="1Hp-Py-Q4D" firstAttribute="leading" secondItem="C8A-65-Sbf" secondAttribute="leading" constant="20" id="4pd-xr-ptl"/>
  168. <constraint firstItem="i4d-QD-upg" firstAttribute="top" secondItem="s5g-4r-jzg" secondAttribute="bottom" constant="20" id="5he-MZ-8rH"/>
  169. <constraint firstItem="DNo-RF-yR9" firstAttribute="top" secondItem="frJ-56-7CT" secondAttribute="bottom" constant="20" id="6YU-qY-bi7"/>
  170. <constraint firstItem="s5g-4r-jzg" firstAttribute="top" secondItem="AXH-Yf-Bps" secondAttribute="bottom" constant="20" id="6n2-TW-ewf"/>
  171. <constraint firstItem="s5g-4r-jzg" firstAttribute="leading" secondItem="guu-gb-wpT" secondAttribute="trailing" constant="10" id="7In-JX-5DR"/>
  172. <constraint firstAttribute="trailing" secondItem="AXH-Yf-Bps" secondAttribute="trailing" constant="10" id="AYy-TP-A2E"/>
  173. <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="i4d-QD-upg" secondAttribute="trailing" constant="20" symbolic="YES" id="Bxz-g5-Ubl"/>
  174. <constraint firstItem="frJ-56-7CT" firstAttribute="top" secondItem="i4d-QD-upg" secondAttribute="bottom" constant="20" id="HTj-Iv-hKP"/>
  175. <constraint firstItem="frJ-56-7CT" firstAttribute="leading" secondItem="C8A-65-Sbf" secondAttribute="leading" constant="20" id="I6m-hY-6l6"/>
  176. <constraint firstItem="1Hp-Py-Q4D" firstAttribute="top" secondItem="DNo-RF-yR9" secondAttribute="bottom" constant="20" id="KnK-fX-F9L"/>
  177. <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="DNo-RF-yR9" secondAttribute="trailing" constant="20" symbolic="YES" id="MJa-7r-gFs"/>
  178. <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="1Hp-Py-Q4D" secondAttribute="trailing" constant="20" symbolic="YES" id="RRC-E7-ySz"/>
  179. <constraint firstItem="AXH-Yf-Bps" firstAttribute="centerY" secondItem="bqU-wQ-HMR" secondAttribute="centerY" id="fVR-UJ-VsO"/>
  180. <constraint firstItem="DNo-RF-yR9" firstAttribute="leading" secondItem="C8A-65-Sbf" secondAttribute="leading" constant="20" id="hbh-45-p7M"/>
  181. <constraint firstItem="s5g-4r-jzg" firstAttribute="centerY" secondItem="guu-gb-wpT" secondAttribute="centerY" id="oSp-V9-Rik"/>
  182. <constraint firstItem="bqU-wQ-HMR" firstAttribute="leading" secondItem="C8A-65-Sbf" secondAttribute="leading" constant="20" id="rN9-55-qPc"/>
  183. <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="frJ-56-7CT" secondAttribute="trailing" constant="20" symbolic="YES" id="rbO-5n-a68"/>
  184. <constraint firstItem="i4d-QD-upg" firstAttribute="leading" secondItem="C8A-65-Sbf" secondAttribute="leading" constant="20" id="sEX-9E-pmL"/>
  185. <constraint firstAttribute="trailing" secondItem="s5g-4r-jzg" secondAttribute="trailing" constant="10" id="vtJ-UV-GBj"/>
  186. <constraint firstItem="AXH-Yf-Bps" firstAttribute="leading" secondItem="bqU-wQ-HMR" secondAttribute="trailing" constant="10" id="xqK-La-Vly"/>
  187. </constraints>
  188. </view>
  189. <constraints>
  190. <constraint firstItem="i4d-QD-upg" firstAttribute="centerY" secondItem="cMz-rn-6IT" secondAttribute="centerY" id="S8K-fK-RTp"/>
  191. </constraints>
  192. </box>
  193. </subviews>
  194. <constraints>
  195. <constraint firstItem="cMz-rn-6IT" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" id="5IL-Hz-fZX"/>
  196. <constraint firstAttribute="trailing" secondItem="cMz-rn-6IT" secondAttribute="trailing" constant="20" id="PEc-yI-QHC"/>
  197. <constraint firstAttribute="bottom" secondItem="cMz-rn-6IT" secondAttribute="bottom" constant="20" id="UH1-6T-gB5"/>
  198. <constraint firstItem="cMz-rn-6IT" firstAttribute="leading" secondItem="gVj-Fc-SAL" secondAttribute="trailing" constant="20" id="XXi-aA-Ic8"/>
  199. <constraint firstItem="gVj-Fc-SAL" firstAttribute="leading" secondItem="Hz6-mo-xeY" secondAttribute="leading" constant="20" id="am1-gM-ueL"/>
  200. <constraint firstAttribute="bottom" secondItem="gVj-Fc-SAL" secondAttribute="bottom" constant="20" id="f4F-Kc-fEf"/>
  201. <constraint firstItem="gVj-Fc-SAL" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" constant="20" id="kwr-FB-XCa"/>
  202. </constraints>
  203. <point key="canvasLocation" x="182" y="175.5"/>
  204. </customView>
  205. </objects>
  206. </document>