Browse Source

【2025】【Edit】水印界面增加滚动效果

niehaoyu 1 month ago
parent
commit
ecb487515e

+ 22 - 3
PDF Office/PDF Master/KMClass/KMPDFViewController/EditTool/Watermark/Views/KMNWatermarkPropertyController.swift

@@ -37,7 +37,8 @@ class KMNWatermarkPropertyController: NSViewController {
     @IBOutlet var typeTabs: ComponentTabs!
     
     @IBOutlet var infoContendView: NSView!
-    @IBOutlet var infoContendTopConst: NSLayoutConstraint!
+    @IBOutlet var infoScrollView: KMScrollView!
+    @IBOutlet var infoScrollTopConst: NSLayoutConstraint!
     
     //Text
     @IBOutlet var textBGView: NSView!
@@ -98,9 +99,15 @@ class KMNWatermarkPropertyController: NSViewController {
         super.viewDidLoad()
         // Do view setup here.
         
+        infoScrollView.documentView = infoContendView
+        infoScrollView.scrollerStyle = .overlay
+        infoScrollView.layout()
+        
         setupProperty()
         
         reloadData()
+        
+        refreshScrollView()
     }
     
     func setupProperty() {
@@ -296,6 +303,16 @@ class KMNWatermarkPropertyController: NSViewController {
          
     }
     
+    func refreshScrollView() {
+        infoScrollView.contentViewSize = CGSizeMake(264, 672)
+        if watermarkData.watermarkType == .text {
+            infoScrollView.contentViewSize = CGSizeMake(264, 672)
+        } else if watermarkData.watermarkType == .image {
+            infoScrollView.contentViewSize = CGSizeMake(264, 512)
+        }
+        infoScrollView.scrollToTop()
+    }
+    
     func reloadData() {
         
         titleLabel.stringValue = KMLocalizedString("Add Watermark")
@@ -303,11 +320,11 @@ class KMNWatermarkPropertyController: NSViewController {
         saveTemplateBGView.isHidden = false
         templateButton.properties.icon = NSImage(named: "icon_wm_template")
         typeTabsBGView.isHidden = false
-        infoContendTopConst.constant = 56
+        infoScrollTopConst.constant = 56
         
         if editSubType == .edit {
             typeTabsBGView.isHidden = true
-            infoContendTopConst.constant = 8
+            infoScrollTopConst.constant = 8
             
             titleLabel.stringValue = KMLocalizedString("Edit Template")
             leftTopButton.isHidden = false
@@ -671,6 +688,8 @@ extension KMNWatermarkPropertyController: ComponentTabsDelegate {
         reloadData()
         
         delegate?.watermarkPropertyControllerDidUpdate?(self)
+        
+        refreshScrollView()
     }
 }
 

+ 387 - 363
PDF Office/PDF Master/KMClass/KMPDFViewController/EditTool/Watermark/Views/KMNWatermarkPropertyController.xib

@@ -25,8 +25,9 @@
                 <outlet property="fontNameSelect" destination="YYQ-vV-Qfw" id="Q27-LU-02w"/>
                 <outlet property="fontSizeSelect" destination="dlH-9Z-5E0" id="Mhe-CQ-JDO"/>
                 <outlet property="fontStyleSelect" destination="Wdl-DJ-XxU" id="hU6-0J-tKs"/>
-                <outlet property="infoContendTopConst" destination="JQF-We-7un" id="yc2-R2-wya"/>
                 <outlet property="infoContendView" destination="0BT-YI-uuZ" id="2sZ-VA-OZc"/>
+                <outlet property="infoScrollTopConst" destination="Ou7-2T-pKe" id="bAg-2a-jPo"/>
+                <outlet property="infoScrollView" destination="Ipy-hA-XxM" id="AeZ-F6-Wf7"/>
                 <outlet property="leftTopButton" destination="WHs-GW-3o7" id="Jmn-IX-orV"/>
                 <outlet property="positionBGView" destination="nTM-xd-HIx" id="QrI-tv-xuG"/>
                 <outlet property="positionItemView" destination="vd3-5J-Jcb" id="8pT-KI-aHC"/>
@@ -52,14 +53,14 @@
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
         <customView id="Hz6-mo-xeY">
-            <rect key="frame" x="0.0" y="0.0" width="273" height="840"/>
+            <rect key="frame" x="0.0" y="0.0" width="265" height="739"/>
             <autoresizingMask key="autoresizingMask" flexibleMinX="YES" heightSizable="YES"/>
             <subviews>
                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="WSD-S7-Nbi">
-                    <rect key="frame" x="0.0" y="0.0" width="273" height="840"/>
+                    <rect key="frame" x="0.0" y="0.0" width="265" height="739"/>
                     <subviews>
                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="4VY-fx-x7j">
-                            <rect key="frame" x="0.0" y="800" width="273" height="40"/>
+                            <rect key="frame" x="0.0" y="699" width="265" height="40"/>
                             <subviews>
                                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="WHs-GW-3o7" customClass="ComponentButton" customModule="KMComponentLibrary">
                                     <rect key="frame" x="8" y="8" width="24" height="24"/>
@@ -69,7 +70,7 @@
                                     </constraints>
                                 </customView>
                                 <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="jkG-Uv-4gv">
-                                    <rect key="frame" x="88" y="12" width="98" height="16"/>
+                                    <rect key="frame" x="84" y="12" width="98" height="16"/>
                                     <textFieldCell key="cell" lineBreakMode="clipping" title="Add Watermark" id="7Za-QS-Sai">
                                         <font key="font" usesAppearanceFont="YES"/>
                                         <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -77,14 +78,14 @@
                                     </textFieldCell>
                                 </textField>
                                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="WMO-rB-mGc" customClass="ComponentButton" customModule="KMComponentLibrary">
-                                    <rect key="frame" x="241" y="8" width="24" height="24"/>
+                                    <rect key="frame" x="233" y="8" width="24" height="24"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="24" id="3P7-j0-Bdf"/>
                                         <constraint firstAttribute="width" constant="24" id="DDB-CZ-8uP"/>
                                     </constraints>
                                 </customView>
                                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="1Nd-L1-fnG" customClass="ComponentDivider" customModule="KMComponentLibrary">
-                                    <rect key="frame" x="0.0" y="0.0" width="273" height="1"/>
+                                    <rect key="frame" x="0.0" y="0.0" width="265" height="1"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="1" id="RWN-Rv-wpY"/>
                                     </constraints>
@@ -104,10 +105,10 @@
                             </constraints>
                         </customView>
                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="Gk1-Vc-pA7">
-                            <rect key="frame" x="0.0" y="744" width="273" height="56"/>
+                            <rect key="frame" x="0.0" y="643" width="265" height="56"/>
                             <subviews>
                                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="3ld-PC-yBt" customClass="ComponentTabs" customModule="KMComponentLibrary">
-                                    <rect key="frame" x="21" y="16" width="232" height="32"/>
+                                    <rect key="frame" x="17" y="16" width="232" height="32"/>
                                     <constraints>
                                         <constraint firstAttribute="width" constant="232" id="6VD-OM-ddO"/>
                                         <constraint firstAttribute="height" constant="32" id="Igq-lj-Wx7"/>
@@ -120,364 +121,38 @@
                                 <constraint firstItem="3ld-PC-yBt" firstAttribute="top" secondItem="Gk1-Vc-pA7" secondAttribute="top" constant="8" id="lXb-bN-aTg"/>
                             </constraints>
                         </customView>
-                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="0BT-YI-uuZ">
-                            <rect key="frame" x="0.0" y="78" width="273" height="666"/>
-                            <subviews>
-                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="l8C-Vk-idO">
-                                    <rect key="frame" x="21" y="482" width="232" height="184"/>
-                                    <subviews>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wJd-KI-caZ" customClass="ComponentTextarea" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="120" width="232" height="64"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="64" id="WDx-tX-R5I"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="YYQ-vV-Qfw" customClass="ComponentSelect" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="80" width="232" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="I6V-Cq-opN"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="Wdl-DJ-XxU" customClass="ComponentSelect" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="40" width="112" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="width" constant="112" id="gUW-GN-dYM"/>
-                                                <constraint firstAttribute="height" constant="32" id="oA6-a7-sNa"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="dlH-9Z-5E0" customClass="ComponentSelect" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="120" y="40" width="112" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="width" constant="112" id="HON-tr-cRI"/>
-                                                <constraint firstAttribute="height" constant="32" id="Umj-J9-ELx"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="vsn-3z-gA0" customClass="ComponentCColorGroup" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="0.0" width="232" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="FTo-ag-Opw"/>
-                                                <constraint firstAttribute="width" constant="232" id="twJ-dg-8nb"/>
-                                            </constraints>
-                                        </customView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="wJd-KI-caZ" firstAttribute="top" secondItem="l8C-Vk-idO" secondAttribute="top" id="2Gv-Wv-xSD"/>
-                                        <constraint firstItem="vsn-3z-gA0" firstAttribute="centerX" secondItem="l8C-Vk-idO" secondAttribute="centerX" id="AQu-tc-8ek"/>
-                                        <constraint firstItem="Wdl-DJ-XxU" firstAttribute="leading" secondItem="l8C-Vk-idO" secondAttribute="leading" id="BnU-xA-xYU"/>
-                                        <constraint firstItem="YYQ-vV-Qfw" firstAttribute="top" secondItem="wJd-KI-caZ" secondAttribute="bottom" constant="8" id="CHb-A2-vhi"/>
-                                        <constraint firstAttribute="width" constant="232" id="NXo-r0-JPZ"/>
-                                        <constraint firstItem="dlH-9Z-5E0" firstAttribute="centerY" secondItem="Wdl-DJ-XxU" secondAttribute="centerY" id="UW7-pX-GrQ"/>
-                                        <constraint firstAttribute="height" constant="184" id="XKl-iC-jdT"/>
-                                        <constraint firstItem="Wdl-DJ-XxU" firstAttribute="top" secondItem="YYQ-vV-Qfw" secondAttribute="bottom" constant="8" id="euz-yf-ng9"/>
-                                        <constraint firstItem="wJd-KI-caZ" firstAttribute="leading" secondItem="l8C-Vk-idO" secondAttribute="leading" id="f67-dG-lMb"/>
-                                        <constraint firstAttribute="trailing" secondItem="wJd-KI-caZ" secondAttribute="trailing" id="nqU-ba-NrR"/>
-                                        <constraint firstItem="YYQ-vV-Qfw" firstAttribute="leading" secondItem="l8C-Vk-idO" secondAttribute="leading" id="nv5-7e-QrO"/>
-                                        <constraint firstItem="vsn-3z-gA0" firstAttribute="top" secondItem="Wdl-DJ-XxU" secondAttribute="bottom" constant="8" id="uig-9L-bOI"/>
-                                        <constraint firstAttribute="trailing" secondItem="dlH-9Z-5E0" secondAttribute="trailing" id="w1h-lX-MPH"/>
-                                        <constraint firstAttribute="trailing" secondItem="YYQ-vV-Qfw" secondAttribute="trailing" id="w6Y-2h-wG1"/>
-                                    </constraints>
-                                </customView>
-                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="cky-Rj-cPG">
-                                    <rect key="frame" x="21" y="634" width="232" height="32"/>
-                                    <subviews>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="miK-bJ-Wye" customClass="ComponentInput" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="0.0" width="201" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="tTJ-La-RCq"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="rBq-tq-cdo" customClass="ComponentInputAddon" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="200" y="0.0" width="32" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="4eG-GC-VNw"/>
-                                                <constraint firstAttribute="width" constant="32" id="ipa-yI-sXe"/>
-                                            </constraints>
-                                        </customView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="rBq-tq-cdo" firstAttribute="leading" secondItem="miK-bJ-Wye" secondAttribute="trailing" constant="-1" id="1yr-NN-5KT"/>
-                                        <constraint firstAttribute="height" constant="32" id="Cv6-3M-8jQ"/>
-                                        <constraint firstItem="miK-bJ-Wye" firstAttribute="leading" secondItem="cky-Rj-cPG" secondAttribute="leading" id="Ffw-Up-6Ol"/>
-                                        <constraint firstItem="miK-bJ-Wye" firstAttribute="centerY" secondItem="cky-Rj-cPG" secondAttribute="centerY" id="Ix5-yq-ebe"/>
-                                        <constraint firstAttribute="width" constant="232" id="QAy-f0-ErH"/>
-                                        <constraint firstAttribute="trailing" secondItem="rBq-tq-cdo" secondAttribute="trailing" id="gKE-03-eh9"/>
-                                        <constraint firstItem="rBq-tq-cdo" firstAttribute="centerY" secondItem="cky-Rj-cPG" secondAttribute="centerY" id="ife-vH-22r"/>
-                                    </constraints>
-                                </customView>
-                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="N3S-NU-dUK">
-                                    <rect key="frame" x="21" y="242" width="232" height="224"/>
-                                    <subviews>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="5EC-ec-yKw">
-                                            <rect key="frame" x="0.0" y="184" width="232" height="40"/>
-                                            <subviews>
-                                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zph-wi-6i3">
-                                                    <rect key="frame" x="-2" y="12" width="77" height="16"/>
-                                                    <textFieldCell key="cell" lineBreakMode="clipping" title="Appearance" id="34Z-Ne-M34">
-                                                        <font key="font" usesAppearanceFont="YES"/>
-                                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                    </textFieldCell>
-                                                </textField>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="Zph-wi-6i3" firstAttribute="centerY" secondItem="5EC-ec-yKw" secondAttribute="centerY" id="7Ae-ri-ywg"/>
-                                                <constraint firstAttribute="height" constant="40" id="JaF-H4-K1L"/>
-                                                <constraint firstItem="Zph-wi-6i3" firstAttribute="leading" secondItem="5EC-ec-yKw" secondAttribute="leading" id="VNk-9I-2rA"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="8Kw-R6-WKn">
-                                            <rect key="frame" x="0.0" y="152" width="232" height="32"/>
-                                            <subviews>
-                                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="zd3-AF-v6Y">
-                                                    <rect key="frame" x="0.0" y="8" width="16" height="16"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="16" id="gc7-Uk-uhb"/>
-                                                        <constraint firstAttribute="width" constant="16" id="hSK-15-hKf"/>
-                                                    </constraints>
-                                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="edit_rotateRight" id="uNi-b3-wGw"/>
-                                                </imageView>
-                                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="uWb-rG-ugv" customClass="ComponentSelect" customModule="KMComponentLibrary">
-                                                    <rect key="frame" x="20" y="0.0" width="92" height="32"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="92" id="hCV-us-Rru"/>
-                                                        <constraint firstAttribute="height" constant="32" id="pX0-fG-PVs"/>
-                                                    </constraints>
-                                                </customView>
-                                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="ler-kW-KZg">
-                                                    <rect key="frame" x="120" y="8" width="16" height="16"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="16" id="PfS-ma-oBZ"/>
-                                                        <constraint firstAttribute="height" constant="16" id="p1d-zj-sbx"/>
-                                                    </constraints>
-                                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="edit_ocapity" id="j7x-Ee-g05"/>
-                                                </imageView>
-                                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="76y-LT-L3w" customClass="ComponentSelect" customModule="KMComponentLibrary">
-                                                    <rect key="frame" x="140" y="0.0" width="92" height="32"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="32" id="1rN-in-MmY"/>
-                                                        <constraint firstAttribute="width" constant="92" id="Tc1-QW-mEg"/>
-                                                    </constraints>
-                                                </customView>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="uWb-rG-ugv" firstAttribute="leading" secondItem="zd3-AF-v6Y" secondAttribute="trailing" constant="4" id="BNL-If-0AX"/>
-                                                <constraint firstAttribute="height" constant="32" id="BQe-OW-IxT"/>
-                                                <constraint firstItem="ler-kW-KZg" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="BkV-2V-Ruh"/>
-                                                <constraint firstItem="ler-kW-KZg" firstAttribute="leading" secondItem="uWb-rG-ugv" secondAttribute="trailing" constant="8" id="DHd-F1-IHL"/>
-                                                <constraint firstItem="zd3-AF-v6Y" firstAttribute="leading" secondItem="8Kw-R6-WKn" secondAttribute="leading" id="KlW-Ea-P2H"/>
-                                                <constraint firstItem="76y-LT-L3w" firstAttribute="leading" secondItem="ler-kW-KZg" secondAttribute="trailing" constant="4" id="Ni4-WA-tfL"/>
-                                                <constraint firstItem="76y-LT-L3w" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="Ygu-Qz-5Dd"/>
-                                                <constraint firstItem="zd3-AF-v6Y" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="dQN-9q-JfU"/>
-                                                <constraint firstItem="uWb-rG-ugv" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="u5e-M5-WZP"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="Gff-0V-jaD" customClass="ComponentCheckBox" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="112" width="232" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="UZp-kV-We6"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="i03-pW-pQc" customClass="ComponentSelect" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="72" width="232" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="Ibi-lN-wtu"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wOL-XJ-9hB" customClass="ComponentRadio" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="32" width="232" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="iAr-kK-mEi"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="gcz-v6-Is9" customClass="ComponentRadio" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="0.0" width="232" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="5BB-C8-p38"/>
-                                            </constraints>
-                                        </customView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="wOL-XJ-9hB" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="2ab-cR-EnY"/>
-                                        <constraint firstAttribute="trailing" secondItem="i03-pW-pQc" secondAttribute="trailing" id="71U-xs-wpj"/>
-                                        <constraint firstAttribute="bottom" secondItem="gcz-v6-Is9" secondAttribute="bottom" id="CqO-4Q-HLT"/>
-                                        <constraint firstAttribute="width" constant="232" id="EpG-D8-AAV"/>
-                                        <constraint firstAttribute="trailing" secondItem="5EC-ec-yKw" secondAttribute="trailing" id="Gig-Vb-voj"/>
-                                        <constraint firstItem="i03-pW-pQc" firstAttribute="top" secondItem="Gff-0V-jaD" secondAttribute="bottom" constant="8" id="OeY-K2-ls4"/>
-                                        <constraint firstAttribute="trailing" secondItem="Gff-0V-jaD" secondAttribute="trailing" id="R9X-vv-agX"/>
-                                        <constraint firstItem="8Kw-R6-WKn" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="Wje-Xu-o7K"/>
-                                        <constraint firstAttribute="trailing" secondItem="gcz-v6-Is9" secondAttribute="trailing" id="Zxh-b1-6k7"/>
-                                        <constraint firstAttribute="trailing" secondItem="wOL-XJ-9hB" secondAttribute="trailing" id="aqn-O6-MUw"/>
-                                        <constraint firstItem="i03-pW-pQc" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="eMN-PX-WtY"/>
-                                        <constraint firstItem="5EC-ec-yKw" firstAttribute="top" secondItem="N3S-NU-dUK" secondAttribute="top" id="gTn-8S-9v1"/>
-                                        <constraint firstItem="8Kw-R6-WKn" firstAttribute="top" secondItem="5EC-ec-yKw" secondAttribute="bottom" id="kiV-Z4-Owm"/>
-                                        <constraint firstAttribute="height" constant="224" id="llA-R8-DEK"/>
-                                        <constraint firstItem="gcz-v6-Is9" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="ntO-Vw-cuO"/>
-                                        <constraint firstItem="Gff-0V-jaD" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="uBV-vF-1t5"/>
-                                        <constraint firstItem="Gff-0V-jaD" firstAttribute="top" secondItem="8Kw-R6-WKn" secondAttribute="bottom" constant="8" id="vkT-ET-ADy"/>
-                                        <constraint firstItem="wOL-XJ-9hB" firstAttribute="top" secondItem="i03-pW-pQc" secondAttribute="bottom" constant="8" id="xk9-PA-2nc"/>
-                                        <constraint firstAttribute="trailing" secondItem="8Kw-R6-WKn" secondAttribute="trailing" id="ySB-g4-SE5"/>
-                                        <constraint firstItem="5EC-ec-yKw" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="yrF-lF-2hQ"/>
-                                    </constraints>
-                                </customView>
-                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="nTM-xd-HIx">
-                                    <rect key="frame" x="21" y="34" width="232" height="192"/>
-                                    <subviews>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wp3-Sk-MRP">
-                                            <rect key="frame" x="0.0" y="152" width="232" height="40"/>
-                                            <subviews>
-                                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gTg-8Q-bmp">
-                                                    <rect key="frame" x="-2" y="12" width="85" height="16"/>
-                                                    <textFieldCell key="cell" lineBreakMode="clipping" title="Position(mm)" id="oaL-Vx-zTi">
-                                                        <font key="font" usesAppearanceFont="YES"/>
-                                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                    </textFieldCell>
-                                                </textField>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="40" id="IVw-kG-w3F"/>
-                                                <constraint firstItem="gTg-8Q-bmp" firstAttribute="centerY" secondItem="wp3-Sk-MRP" secondAttribute="centerY" id="Utw-3m-SDd"/>
-                                                <constraint firstItem="gTg-8Q-bmp" firstAttribute="leading" secondItem="wp3-Sk-MRP" secondAttribute="leading" id="gQl-ND-qJy"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="vd3-5J-Jcb" customClass="ComponentCPosition" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="80" width="72" height="72"/>
-                                            <constraints>
-                                                <constraint firstAttribute="width" constant="72" id="7CU-Y0-4BT"/>
-                                                <constraint firstAttribute="height" constant="72" id="pLe-tX-JlT"/>
-                                            </constraints>
-                                        </customView>
-                                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qVQ-To-3Au">
-                                            <rect key="frame" x="119" y="128" width="17" height="16"/>
-                                            <textFieldCell key="cell" lineBreakMode="clipping" title="X:" id="zUo-XG-CKN">
-                                                <font key="font" usesAppearanceFont="YES"/>
-                                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                            </textFieldCell>
-                                        </textField>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wjG-88-KWP" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="136" y="120" width="96" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="IGS-fb-ErJ"/>
-                                                <constraint firstAttribute="width" constant="96" id="mzL-IX-KEf"/>
-                                            </constraints>
-                                        </customView>
-                                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="yrr-gh-114">
-                                            <rect key="frame" x="120" y="88" width="16" height="16"/>
-                                            <textFieldCell key="cell" lineBreakMode="clipping" title="Y:" id="kZA-Cu-HgA">
-                                                <font key="font" usesAppearanceFont="YES"/>
-                                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                            </textFieldCell>
-                                        </textField>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="58l-A1-2Kk" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="136" y="80" width="96" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="width" constant="96" id="nvv-EW-mmr"/>
-                                                <constraint firstAttribute="height" constant="32" id="u6I-Zg-ZSP"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="vZz-9f-hir" customClass="ComponentCheckBox" customModule="KMComponentLibrary">
-                                            <rect key="frame" x="0.0" y="40" width="232" height="32"/>
-                                            <constraints>
-                                                <constraint firstAttribute="height" constant="32" id="Rbt-Oc-Dd3"/>
-                                            </constraints>
-                                        </customView>
-                                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="xL5-Rq-Wus">
-                                            <rect key="frame" x="0.0" y="0.0" width="232" height="32"/>
-                                            <subviews>
-                                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Aso-xq-AAE">
-                                                    <rect key="frame" x="0.0" y="8" width="16" height="16"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="16" id="izy-vW-2JK"/>
-                                                        <constraint firstAttribute="width" constant="16" id="oxF-hf-zCo"/>
-                                                    </constraints>
-                                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="tile_spacing_horiz" id="zb1-ji-KzW"/>
-                                                </imageView>
-                                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="X4q-ri-vLx" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
-                                                    <rect key="frame" x="20" y="0.0" width="92" height="32"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="32" id="Khl-jl-0Lh"/>
-                                                        <constraint firstAttribute="width" constant="92" id="rn8-SG-wLD"/>
-                                                    </constraints>
-                                                </customView>
-                                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="OJr-GJ-lkr">
-                                                    <rect key="frame" x="120" y="8" width="16" height="16"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" constant="16" id="66s-tT-ubK"/>
-                                                        <constraint firstAttribute="height" constant="16" id="Q1h-u8-syY"/>
-                                                    </constraints>
-                                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="tile_spacing_vert" id="8S9-4T-Pul"/>
-                                                </imageView>
-                                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="HhP-72-8ZC" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
-                                                    <rect key="frame" x="140" y="0.0" width="92" height="32"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="height" constant="32" id="RpS-tg-F1p"/>
-                                                        <constraint firstAttribute="width" constant="92" id="Yst-0x-Mch"/>
-                                                    </constraints>
-                                                </customView>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="HhP-72-8ZC" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="0Jv-5K-3hB"/>
-                                                <constraint firstItem="HhP-72-8ZC" firstAttribute="leading" secondItem="OJr-GJ-lkr" secondAttribute="trailing" constant="4" id="267-7d-nAP"/>
-                                                <constraint firstItem="OJr-GJ-lkr" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="4iY-0T-rsL"/>
-                                                <constraint firstAttribute="height" constant="32" id="9nd-Js-avU"/>
-                                                <constraint firstItem="X4q-ri-vLx" firstAttribute="leading" secondItem="Aso-xq-AAE" secondAttribute="trailing" constant="4" id="DZ6-rO-H0U"/>
-                                                <constraint firstItem="Aso-xq-AAE" firstAttribute="leading" secondItem="xL5-Rq-Wus" secondAttribute="leading" id="RHE-vz-afr"/>
-                                                <constraint firstAttribute="trailing" secondItem="HhP-72-8ZC" secondAttribute="trailing" id="ZKI-BO-Kc7"/>
-                                                <constraint firstItem="Aso-xq-AAE" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="ska-na-WsL"/>
-                                                <constraint firstItem="X4q-ri-vLx" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="vfp-xN-dix"/>
-                                            </constraints>
-                                        </customView>
-                                    </subviews>
-                                    <constraints>
-                                        <constraint firstItem="vd3-5J-Jcb" firstAttribute="top" secondItem="wp3-Sk-MRP" secondAttribute="bottom" id="1kr-IP-oBN"/>
-                                        <constraint firstItem="wjG-88-KWP" firstAttribute="centerY" secondItem="qVQ-To-3Au" secondAttribute="centerY" id="3lk-08-SmB"/>
-                                        <constraint firstItem="wjG-88-KWP" firstAttribute="top" secondItem="wp3-Sk-MRP" secondAttribute="bottom" id="6bA-cX-R6b"/>
-                                        <constraint firstAttribute="trailing" secondItem="wjG-88-KWP" secondAttribute="trailing" id="DYk-x1-j3q"/>
-                                        <constraint firstItem="wp3-Sk-MRP" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="FML-ci-kI9"/>
-                                        <constraint firstItem="wjG-88-KWP" firstAttribute="leading" secondItem="qVQ-To-3Au" secondAttribute="trailing" constant="2" id="ISD-bJ-qpa"/>
-                                        <constraint firstItem="xL5-Rq-Wus" firstAttribute="top" secondItem="vZz-9f-hir" secondAttribute="bottom" constant="8" id="KNp-IB-nHY"/>
-                                        <constraint firstItem="wp3-Sk-MRP" firstAttribute="top" secondItem="nTM-xd-HIx" secondAttribute="top" id="KwZ-bf-NId"/>
-                                        <constraint firstAttribute="trailing" secondItem="vZz-9f-hir" secondAttribute="trailing" id="Qhd-Eo-GfB"/>
-                                        <constraint firstItem="xL5-Rq-Wus" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="Ra6-b9-Ftw"/>
-                                        <constraint firstAttribute="width" constant="232" id="RzM-lo-xHF"/>
-                                        <constraint firstAttribute="trailing" secondItem="xL5-Rq-Wus" secondAttribute="trailing" id="Vj2-ZJ-3Zx"/>
-                                        <constraint firstItem="vZz-9f-hir" firstAttribute="top" secondItem="vd3-5J-Jcb" secondAttribute="bottom" constant="8" id="ZH9-cK-lgD"/>
-                                        <constraint firstItem="vd3-5J-Jcb" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="fCK-fV-Saf"/>
-                                        <constraint firstItem="58l-A1-2Kk" firstAttribute="top" secondItem="wjG-88-KWP" secondAttribute="bottom" constant="8" id="fjK-0F-dfk"/>
-                                        <constraint firstAttribute="trailing" secondItem="58l-A1-2Kk" secondAttribute="trailing" id="g8x-g3-953"/>
-                                        <constraint firstAttribute="height" constant="192" id="ozY-8I-IPu"/>
-                                        <constraint firstAttribute="trailing" secondItem="wp3-Sk-MRP" secondAttribute="trailing" id="sDF-gG-ccp"/>
-                                        <constraint firstItem="58l-A1-2Kk" firstAttribute="centerY" secondItem="yrr-gh-114" secondAttribute="centerY" id="uK6-XT-G21"/>
-                                        <constraint firstItem="58l-A1-2Kk" firstAttribute="leading" secondItem="yrr-gh-114" secondAttribute="trailing" constant="2" id="vsu-Ql-D8j"/>
-                                        <constraint firstItem="vZz-9f-hir" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="xXz-av-PeW"/>
-                                    </constraints>
-                                </customView>
-                            </subviews>
-                            <constraints>
-                                <constraint firstItem="l8C-Vk-idO" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="F7K-z5-caA"/>
-                                <constraint firstItem="cky-Rj-cPG" firstAttribute="top" secondItem="0BT-YI-uuZ" secondAttribute="top" id="MyY-Nj-q6F"/>
-                                <constraint firstItem="nTM-xd-HIx" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="bvC-pX-cza"/>
-                                <constraint firstItem="N3S-NU-dUK" firstAttribute="top" secondItem="0BT-YI-uuZ" secondAttribute="top" constant="200" id="bvk-BP-OWQ"/>
-                                <constraint firstItem="l8C-Vk-idO" firstAttribute="top" secondItem="0BT-YI-uuZ" secondAttribute="top" id="cl5-ia-LSH"/>
-                                <constraint firstItem="N3S-NU-dUK" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="e6U-iS-g2w"/>
-                                <constraint firstItem="nTM-xd-HIx" firstAttribute="top" secondItem="N3S-NU-dUK" secondAttribute="bottom" constant="16" id="gCW-v1-Bqm"/>
-                                <constraint firstAttribute="height" constant="666" id="hYg-29-sBG"/>
-                                <constraint firstItem="cky-Rj-cPG" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="rwG-C9-o2d"/>
-                            </constraints>
-                        </customView>
+                        <scrollView borderType="none" autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" verticalLineScroll="10" verticalPageScroll="10" hasHorizontalScroller="NO" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ipy-hA-XxM" customClass="KMScrollView" customModule="PDF_Reader_Pro" customModuleProvider="target">
+                            <rect key="frame" x="0.0" y="78" width="265" height="565"/>
+                            <clipView key="contentView" drawsBackground="NO" id="QyE-xQ-z4E">
+                                <rect key="frame" x="0.0" y="0.0" width="265" height="565"/>
+                                <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                                <subviews>
+                                    <view id="qYu-Dk-Dck">
+                                        <rect key="frame" x="0.0" y="0.0" width="250" height="550"/>
+                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                                    </view>
+                                </subviews>
+                            </clipView>
+                            <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="5Il-AO-oas">
+                                <rect key="frame" x="-100" y="-100" width="249" height="15"/>
+                                <autoresizingMask key="autoresizingMask"/>
+                            </scroller>
+                            <scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="Yed-pK-u34">
+                                <rect key="frame" x="249" y="0.0" width="15" height="560"/>
+                                <autoresizingMask key="autoresizingMask"/>
+                            </scroller>
+                        </scrollView>
                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="dTL-It-CfQ">
-                            <rect key="frame" x="0.0" y="0.0" width="273" height="72"/>
+                            <rect key="frame" x="0.0" y="0.0" width="265" height="72"/>
                             <subviews>
                                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="sMo-If-TH4" customClass="ComponentDivider" customModule="KMComponentLibrary">
-                                    <rect key="frame" x="0.0" y="71" width="273" height="1"/>
+                                    <rect key="frame" x="0.0" y="71" width="265" height="1"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="1" id="Yyi-uG-bae"/>
                                     </constraints>
                                 </customView>
                                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="lPB-Zu-EtY" customClass="ComponentButton" customModule="KMComponentLibrary">
-                                    <rect key="frame" x="21" y="16" width="232" height="40"/>
+                                    <rect key="frame" x="17" y="16" width="232" height="40"/>
                                     <constraints>
                                         <constraint firstAttribute="height" constant="40" id="5JF-QD-8KZ"/>
                                         <constraint firstAttribute="width" constant="232" id="Ry4-F2-dYU"/>
@@ -495,18 +170,19 @@
                         </customView>
                     </subviews>
                     <constraints>
-                        <constraint firstItem="0BT-YI-uuZ" firstAttribute="leading" secondItem="WSD-S7-Nbi" secondAttribute="leading" id="2tK-qX-6Zl"/>
                         <constraint firstAttribute="trailing" secondItem="dTL-It-CfQ" secondAttribute="trailing" id="7Oe-Kp-uxr"/>
                         <constraint firstItem="dTL-It-CfQ" firstAttribute="leading" secondItem="WSD-S7-Nbi" secondAttribute="leading" id="9fL-0b-278"/>
                         <constraint firstAttribute="trailing" secondItem="Gk1-Vc-pA7" secondAttribute="trailing" id="CGj-fJ-S98"/>
+                        <constraint firstItem="Ipy-hA-XxM" firstAttribute="leading" secondItem="WSD-S7-Nbi" secondAttribute="leading" id="GcQ-ar-hF2"/>
                         <constraint firstAttribute="trailing" secondItem="4VY-fx-x7j" secondAttribute="trailing" id="Gdb-bT-aG8"/>
                         <constraint firstItem="4VY-fx-x7j" firstAttribute="top" secondItem="WSD-S7-Nbi" secondAttribute="top" id="I9S-qG-bSb"/>
                         <constraint firstAttribute="bottom" secondItem="dTL-It-CfQ" secondAttribute="bottom" id="IXc-2b-Pra"/>
-                        <constraint firstItem="0BT-YI-uuZ" firstAttribute="top" secondItem="4VY-fx-x7j" secondAttribute="bottom" constant="56" id="JQF-We-7un"/>
+                        <constraint firstAttribute="trailing" secondItem="Ipy-hA-XxM" secondAttribute="trailing" id="JcI-nK-VsZ"/>
                         <constraint firstItem="Gk1-Vc-pA7" firstAttribute="leading" secondItem="WSD-S7-Nbi" secondAttribute="leading" id="Jie-Dp-sYt"/>
                         <constraint firstItem="4VY-fx-x7j" firstAttribute="leading" secondItem="WSD-S7-Nbi" secondAttribute="leading" id="N1m-JB-XTh"/>
+                        <constraint firstItem="Ipy-hA-XxM" firstAttribute="top" secondItem="4VY-fx-x7j" secondAttribute="bottom" constant="56" id="Ou7-2T-pKe"/>
+                        <constraint firstItem="dTL-It-CfQ" firstAttribute="top" secondItem="Ipy-hA-XxM" secondAttribute="bottom" constant="6" id="R9W-dz-hNc"/>
                         <constraint firstItem="Gk1-Vc-pA7" firstAttribute="top" secondItem="4VY-fx-x7j" secondAttribute="bottom" id="YCg-Wb-ayK"/>
-                        <constraint firstAttribute="trailing" secondItem="0BT-YI-uuZ" secondAttribute="trailing" id="gqU-2g-Dva"/>
                     </constraints>
                 </customView>
             </subviews>
@@ -516,7 +192,355 @@
                 <constraint firstAttribute="trailing" secondItem="WSD-S7-Nbi" secondAttribute="trailing" id="uOn-3o-d54"/>
                 <constraint firstItem="WSD-S7-Nbi" firstAttribute="top" secondItem="Hz6-mo-xeY" secondAttribute="top" id="ykz-Ec-Ygj"/>
             </constraints>
-            <point key="canvasLocation" x="21.5" y="336"/>
+            <point key="canvasLocation" x="17.5" y="285.5"/>
+        </customView>
+        <customView id="0BT-YI-uuZ">
+            <rect key="frame" x="0.0" y="0.0" width="273" height="666"/>
+            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+            <subviews>
+                <customView translatesAutoresizingMaskIntoConstraints="NO" id="l8C-Vk-idO">
+                    <rect key="frame" x="21" y="482" width="232" height="184"/>
+                    <subviews>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wJd-KI-caZ" customClass="ComponentTextarea" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="120" width="232" height="64"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="64" id="WDx-tX-R5I"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="YYQ-vV-Qfw" customClass="ComponentSelect" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="80" width="232" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="I6V-Cq-opN"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="Wdl-DJ-XxU" customClass="ComponentSelect" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="40" width="112" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="width" constant="112" id="gUW-GN-dYM"/>
+                                <constraint firstAttribute="height" constant="32" id="oA6-a7-sNa"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="dlH-9Z-5E0" customClass="ComponentSelect" customModule="KMComponentLibrary">
+                            <rect key="frame" x="120" y="40" width="112" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="width" constant="112" id="HON-tr-cRI"/>
+                                <constraint firstAttribute="height" constant="32" id="Umj-J9-ELx"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="vsn-3z-gA0" customClass="ComponentCColorGroup" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="0.0" width="232" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="FTo-ag-Opw"/>
+                                <constraint firstAttribute="width" constant="232" id="twJ-dg-8nb"/>
+                            </constraints>
+                        </customView>
+                    </subviews>
+                    <constraints>
+                        <constraint firstItem="wJd-KI-caZ" firstAttribute="top" secondItem="l8C-Vk-idO" secondAttribute="top" id="2Gv-Wv-xSD"/>
+                        <constraint firstItem="vsn-3z-gA0" firstAttribute="centerX" secondItem="l8C-Vk-idO" secondAttribute="centerX" id="AQu-tc-8ek"/>
+                        <constraint firstItem="Wdl-DJ-XxU" firstAttribute="leading" secondItem="l8C-Vk-idO" secondAttribute="leading" id="BnU-xA-xYU"/>
+                        <constraint firstItem="YYQ-vV-Qfw" firstAttribute="top" secondItem="wJd-KI-caZ" secondAttribute="bottom" constant="8" id="CHb-A2-vhi"/>
+                        <constraint firstAttribute="width" constant="232" id="NXo-r0-JPZ"/>
+                        <constraint firstItem="dlH-9Z-5E0" firstAttribute="centerY" secondItem="Wdl-DJ-XxU" secondAttribute="centerY" id="UW7-pX-GrQ"/>
+                        <constraint firstAttribute="height" constant="184" id="XKl-iC-jdT"/>
+                        <constraint firstItem="Wdl-DJ-XxU" firstAttribute="top" secondItem="YYQ-vV-Qfw" secondAttribute="bottom" constant="8" id="euz-yf-ng9"/>
+                        <constraint firstItem="wJd-KI-caZ" firstAttribute="leading" secondItem="l8C-Vk-idO" secondAttribute="leading" id="f67-dG-lMb"/>
+                        <constraint firstAttribute="trailing" secondItem="wJd-KI-caZ" secondAttribute="trailing" id="nqU-ba-NrR"/>
+                        <constraint firstItem="YYQ-vV-Qfw" firstAttribute="leading" secondItem="l8C-Vk-idO" secondAttribute="leading" id="nv5-7e-QrO"/>
+                        <constraint firstItem="vsn-3z-gA0" firstAttribute="top" secondItem="Wdl-DJ-XxU" secondAttribute="bottom" constant="8" id="uig-9L-bOI"/>
+                        <constraint firstAttribute="trailing" secondItem="dlH-9Z-5E0" secondAttribute="trailing" id="w1h-lX-MPH"/>
+                        <constraint firstAttribute="trailing" secondItem="YYQ-vV-Qfw" secondAttribute="trailing" id="w6Y-2h-wG1"/>
+                    </constraints>
+                </customView>
+                <customView translatesAutoresizingMaskIntoConstraints="NO" id="cky-Rj-cPG">
+                    <rect key="frame" x="21" y="634" width="232" height="32"/>
+                    <subviews>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="miK-bJ-Wye" customClass="ComponentInput" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="0.0" width="201" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="tTJ-La-RCq"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="rBq-tq-cdo" customClass="ComponentInputAddon" customModule="KMComponentLibrary">
+                            <rect key="frame" x="200" y="0.0" width="32" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="4eG-GC-VNw"/>
+                                <constraint firstAttribute="width" constant="32" id="ipa-yI-sXe"/>
+                            </constraints>
+                        </customView>
+                    </subviews>
+                    <constraints>
+                        <constraint firstItem="rBq-tq-cdo" firstAttribute="leading" secondItem="miK-bJ-Wye" secondAttribute="trailing" constant="-1" id="1yr-NN-5KT"/>
+                        <constraint firstAttribute="height" constant="32" id="Cv6-3M-8jQ"/>
+                        <constraint firstItem="miK-bJ-Wye" firstAttribute="leading" secondItem="cky-Rj-cPG" secondAttribute="leading" id="Ffw-Up-6Ol"/>
+                        <constraint firstItem="miK-bJ-Wye" firstAttribute="centerY" secondItem="cky-Rj-cPG" secondAttribute="centerY" id="Ix5-yq-ebe"/>
+                        <constraint firstAttribute="width" constant="232" id="QAy-f0-ErH"/>
+                        <constraint firstAttribute="trailing" secondItem="rBq-tq-cdo" secondAttribute="trailing" id="gKE-03-eh9"/>
+                        <constraint firstItem="rBq-tq-cdo" firstAttribute="centerY" secondItem="cky-Rj-cPG" secondAttribute="centerY" id="ife-vH-22r"/>
+                    </constraints>
+                </customView>
+                <customView translatesAutoresizingMaskIntoConstraints="NO" id="N3S-NU-dUK">
+                    <rect key="frame" x="21" y="242" width="232" height="224"/>
+                    <subviews>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="5EC-ec-yKw">
+                            <rect key="frame" x="0.0" y="184" width="232" height="40"/>
+                            <subviews>
+                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zph-wi-6i3">
+                                    <rect key="frame" x="-2" y="12" width="77" height="16"/>
+                                    <textFieldCell key="cell" lineBreakMode="clipping" title="Appearance" id="34Z-Ne-M34">
+                                        <font key="font" usesAppearanceFont="YES"/>
+                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                            </subviews>
+                            <constraints>
+                                <constraint firstItem="Zph-wi-6i3" firstAttribute="centerY" secondItem="5EC-ec-yKw" secondAttribute="centerY" id="7Ae-ri-ywg"/>
+                                <constraint firstAttribute="height" constant="40" id="JaF-H4-K1L"/>
+                                <constraint firstItem="Zph-wi-6i3" firstAttribute="leading" secondItem="5EC-ec-yKw" secondAttribute="leading" id="VNk-9I-2rA"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="8Kw-R6-WKn">
+                            <rect key="frame" x="0.0" y="152" width="232" height="32"/>
+                            <subviews>
+                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="zd3-AF-v6Y">
+                                    <rect key="frame" x="0.0" y="8" width="16" height="16"/>
+                                    <constraints>
+                                        <constraint firstAttribute="height" constant="16" id="gc7-Uk-uhb"/>
+                                        <constraint firstAttribute="width" constant="16" id="hSK-15-hKf"/>
+                                    </constraints>
+                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="edit_rotateRight" id="uNi-b3-wGw"/>
+                                </imageView>
+                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="uWb-rG-ugv" customClass="ComponentSelect" customModule="KMComponentLibrary">
+                                    <rect key="frame" x="20" y="0.0" width="92" height="32"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="92" id="hCV-us-Rru"/>
+                                        <constraint firstAttribute="height" constant="32" id="pX0-fG-PVs"/>
+                                    </constraints>
+                                </customView>
+                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="ler-kW-KZg">
+                                    <rect key="frame" x="120" y="8" width="16" height="16"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="16" id="PfS-ma-oBZ"/>
+                                        <constraint firstAttribute="height" constant="16" id="p1d-zj-sbx"/>
+                                    </constraints>
+                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="edit_ocapity" id="j7x-Ee-g05"/>
+                                </imageView>
+                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="76y-LT-L3w" customClass="ComponentSelect" customModule="KMComponentLibrary">
+                                    <rect key="frame" x="140" y="0.0" width="92" height="32"/>
+                                    <constraints>
+                                        <constraint firstAttribute="height" constant="32" id="1rN-in-MmY"/>
+                                        <constraint firstAttribute="width" constant="92" id="Tc1-QW-mEg"/>
+                                    </constraints>
+                                </customView>
+                            </subviews>
+                            <constraints>
+                                <constraint firstItem="uWb-rG-ugv" firstAttribute="leading" secondItem="zd3-AF-v6Y" secondAttribute="trailing" constant="4" id="BNL-If-0AX"/>
+                                <constraint firstAttribute="height" constant="32" id="BQe-OW-IxT"/>
+                                <constraint firstItem="ler-kW-KZg" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="BkV-2V-Ruh"/>
+                                <constraint firstItem="ler-kW-KZg" firstAttribute="leading" secondItem="uWb-rG-ugv" secondAttribute="trailing" constant="8" id="DHd-F1-IHL"/>
+                                <constraint firstItem="zd3-AF-v6Y" firstAttribute="leading" secondItem="8Kw-R6-WKn" secondAttribute="leading" id="KlW-Ea-P2H"/>
+                                <constraint firstItem="76y-LT-L3w" firstAttribute="leading" secondItem="ler-kW-KZg" secondAttribute="trailing" constant="4" id="Ni4-WA-tfL"/>
+                                <constraint firstItem="76y-LT-L3w" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="Ygu-Qz-5Dd"/>
+                                <constraint firstItem="zd3-AF-v6Y" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="dQN-9q-JfU"/>
+                                <constraint firstItem="uWb-rG-ugv" firstAttribute="centerY" secondItem="8Kw-R6-WKn" secondAttribute="centerY" id="u5e-M5-WZP"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="Gff-0V-jaD" customClass="ComponentCheckBox" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="112" width="232" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="UZp-kV-We6"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="i03-pW-pQc" customClass="ComponentSelect" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="72" width="232" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="Ibi-lN-wtu"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wOL-XJ-9hB" customClass="ComponentRadio" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="32" width="232" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="iAr-kK-mEi"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="gcz-v6-Is9" customClass="ComponentRadio" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="0.0" width="232" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="5BB-C8-p38"/>
+                            </constraints>
+                        </customView>
+                    </subviews>
+                    <constraints>
+                        <constraint firstItem="wOL-XJ-9hB" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="2ab-cR-EnY"/>
+                        <constraint firstAttribute="trailing" secondItem="i03-pW-pQc" secondAttribute="trailing" id="71U-xs-wpj"/>
+                        <constraint firstAttribute="bottom" secondItem="gcz-v6-Is9" secondAttribute="bottom" id="CqO-4Q-HLT"/>
+                        <constraint firstAttribute="width" constant="232" id="EpG-D8-AAV"/>
+                        <constraint firstAttribute="trailing" secondItem="5EC-ec-yKw" secondAttribute="trailing" id="Gig-Vb-voj"/>
+                        <constraint firstItem="i03-pW-pQc" firstAttribute="top" secondItem="Gff-0V-jaD" secondAttribute="bottom" constant="8" id="OeY-K2-ls4"/>
+                        <constraint firstAttribute="trailing" secondItem="Gff-0V-jaD" secondAttribute="trailing" id="R9X-vv-agX"/>
+                        <constraint firstItem="8Kw-R6-WKn" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="Wje-Xu-o7K"/>
+                        <constraint firstAttribute="trailing" secondItem="gcz-v6-Is9" secondAttribute="trailing" id="Zxh-b1-6k7"/>
+                        <constraint firstAttribute="trailing" secondItem="wOL-XJ-9hB" secondAttribute="trailing" id="aqn-O6-MUw"/>
+                        <constraint firstItem="i03-pW-pQc" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="eMN-PX-WtY"/>
+                        <constraint firstItem="5EC-ec-yKw" firstAttribute="top" secondItem="N3S-NU-dUK" secondAttribute="top" id="gTn-8S-9v1"/>
+                        <constraint firstItem="8Kw-R6-WKn" firstAttribute="top" secondItem="5EC-ec-yKw" secondAttribute="bottom" id="kiV-Z4-Owm"/>
+                        <constraint firstAttribute="height" constant="224" id="llA-R8-DEK"/>
+                        <constraint firstItem="gcz-v6-Is9" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="ntO-Vw-cuO"/>
+                        <constraint firstItem="Gff-0V-jaD" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="uBV-vF-1t5"/>
+                        <constraint firstItem="Gff-0V-jaD" firstAttribute="top" secondItem="8Kw-R6-WKn" secondAttribute="bottom" constant="8" id="vkT-ET-ADy"/>
+                        <constraint firstItem="wOL-XJ-9hB" firstAttribute="top" secondItem="i03-pW-pQc" secondAttribute="bottom" constant="8" id="xk9-PA-2nc"/>
+                        <constraint firstAttribute="trailing" secondItem="8Kw-R6-WKn" secondAttribute="trailing" id="ySB-g4-SE5"/>
+                        <constraint firstItem="5EC-ec-yKw" firstAttribute="leading" secondItem="N3S-NU-dUK" secondAttribute="leading" id="yrF-lF-2hQ"/>
+                    </constraints>
+                </customView>
+                <customView translatesAutoresizingMaskIntoConstraints="NO" id="nTM-xd-HIx">
+                    <rect key="frame" x="21" y="34" width="232" height="192"/>
+                    <subviews>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wp3-Sk-MRP">
+                            <rect key="frame" x="0.0" y="152" width="232" height="40"/>
+                            <subviews>
+                                <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gTg-8Q-bmp">
+                                    <rect key="frame" x="-2" y="12" width="85" height="16"/>
+                                    <textFieldCell key="cell" lineBreakMode="clipping" title="Position(mm)" id="oaL-Vx-zTi">
+                                        <font key="font" usesAppearanceFont="YES"/>
+                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                            </subviews>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="40" id="IVw-kG-w3F"/>
+                                <constraint firstItem="gTg-8Q-bmp" firstAttribute="centerY" secondItem="wp3-Sk-MRP" secondAttribute="centerY" id="Utw-3m-SDd"/>
+                                <constraint firstItem="gTg-8Q-bmp" firstAttribute="leading" secondItem="wp3-Sk-MRP" secondAttribute="leading" id="gQl-ND-qJy"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="vd3-5J-Jcb" customClass="ComponentCPosition" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="80" width="72" height="72"/>
+                            <constraints>
+                                <constraint firstAttribute="width" constant="72" id="7CU-Y0-4BT"/>
+                                <constraint firstAttribute="height" constant="72" id="pLe-tX-JlT"/>
+                            </constraints>
+                        </customView>
+                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qVQ-To-3Au">
+                            <rect key="frame" x="119" y="128" width="17" height="16"/>
+                            <textFieldCell key="cell" lineBreakMode="clipping" title="X:" id="zUo-XG-CKN">
+                                <font key="font" usesAppearanceFont="YES"/>
+                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                            </textFieldCell>
+                        </textField>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="wjG-88-KWP" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
+                            <rect key="frame" x="136" y="120" width="96" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="IGS-fb-ErJ"/>
+                                <constraint firstAttribute="width" constant="96" id="mzL-IX-KEf"/>
+                            </constraints>
+                        </customView>
+                        <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="yrr-gh-114">
+                            <rect key="frame" x="120" y="88" width="16" height="16"/>
+                            <textFieldCell key="cell" lineBreakMode="clipping" title="Y:" id="kZA-Cu-HgA">
+                                <font key="font" usesAppearanceFont="YES"/>
+                                <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                                <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                            </textFieldCell>
+                        </textField>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="58l-A1-2Kk" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
+                            <rect key="frame" x="136" y="80" width="96" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="width" constant="96" id="nvv-EW-mmr"/>
+                                <constraint firstAttribute="height" constant="32" id="u6I-Zg-ZSP"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="vZz-9f-hir" customClass="ComponentCheckBox" customModule="KMComponentLibrary">
+                            <rect key="frame" x="0.0" y="40" width="232" height="32"/>
+                            <constraints>
+                                <constraint firstAttribute="height" constant="32" id="Rbt-Oc-Dd3"/>
+                            </constraints>
+                        </customView>
+                        <customView translatesAutoresizingMaskIntoConstraints="NO" id="xL5-Rq-Wus">
+                            <rect key="frame" x="0.0" y="0.0" width="232" height="32"/>
+                            <subviews>
+                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Aso-xq-AAE">
+                                    <rect key="frame" x="0.0" y="8" width="16" height="16"/>
+                                    <constraints>
+                                        <constraint firstAttribute="height" constant="16" id="izy-vW-2JK"/>
+                                        <constraint firstAttribute="width" constant="16" id="oxF-hf-zCo"/>
+                                    </constraints>
+                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="tile_spacing_horiz" id="zb1-ji-KzW"/>
+                                </imageView>
+                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="X4q-ri-vLx" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
+                                    <rect key="frame" x="20" y="0.0" width="92" height="32"/>
+                                    <constraints>
+                                        <constraint firstAttribute="height" constant="32" id="Khl-jl-0Lh"/>
+                                        <constraint firstAttribute="width" constant="92" id="rn8-SG-wLD"/>
+                                    </constraints>
+                                </customView>
+                                <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="OJr-GJ-lkr">
+                                    <rect key="frame" x="120" y="8" width="16" height="16"/>
+                                    <constraints>
+                                        <constraint firstAttribute="width" constant="16" id="66s-tT-ubK"/>
+                                        <constraint firstAttribute="height" constant="16" id="Q1h-u8-syY"/>
+                                    </constraints>
+                                    <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="tile_spacing_vert" id="8S9-4T-Pul"/>
+                                </imageView>
+                                <customView translatesAutoresizingMaskIntoConstraints="NO" id="HhP-72-8ZC" customClass="ComponentInputNumber" customModule="KMComponentLibrary">
+                                    <rect key="frame" x="140" y="0.0" width="92" height="32"/>
+                                    <constraints>
+                                        <constraint firstAttribute="height" constant="32" id="RpS-tg-F1p"/>
+                                        <constraint firstAttribute="width" constant="92" id="Yst-0x-Mch"/>
+                                    </constraints>
+                                </customView>
+                            </subviews>
+                            <constraints>
+                                <constraint firstItem="HhP-72-8ZC" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="0Jv-5K-3hB"/>
+                                <constraint firstItem="HhP-72-8ZC" firstAttribute="leading" secondItem="OJr-GJ-lkr" secondAttribute="trailing" constant="4" id="267-7d-nAP"/>
+                                <constraint firstItem="OJr-GJ-lkr" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="4iY-0T-rsL"/>
+                                <constraint firstAttribute="height" constant="32" id="9nd-Js-avU"/>
+                                <constraint firstItem="X4q-ri-vLx" firstAttribute="leading" secondItem="Aso-xq-AAE" secondAttribute="trailing" constant="4" id="DZ6-rO-H0U"/>
+                                <constraint firstItem="Aso-xq-AAE" firstAttribute="leading" secondItem="xL5-Rq-Wus" secondAttribute="leading" id="RHE-vz-afr"/>
+                                <constraint firstAttribute="trailing" secondItem="HhP-72-8ZC" secondAttribute="trailing" id="ZKI-BO-Kc7"/>
+                                <constraint firstItem="Aso-xq-AAE" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="ska-na-WsL"/>
+                                <constraint firstItem="X4q-ri-vLx" firstAttribute="centerY" secondItem="xL5-Rq-Wus" secondAttribute="centerY" id="vfp-xN-dix"/>
+                            </constraints>
+                        </customView>
+                    </subviews>
+                    <constraints>
+                        <constraint firstItem="vd3-5J-Jcb" firstAttribute="top" secondItem="wp3-Sk-MRP" secondAttribute="bottom" id="1kr-IP-oBN"/>
+                        <constraint firstItem="wjG-88-KWP" firstAttribute="centerY" secondItem="qVQ-To-3Au" secondAttribute="centerY" id="3lk-08-SmB"/>
+                        <constraint firstItem="wjG-88-KWP" firstAttribute="top" secondItem="wp3-Sk-MRP" secondAttribute="bottom" id="6bA-cX-R6b"/>
+                        <constraint firstAttribute="trailing" secondItem="wjG-88-KWP" secondAttribute="trailing" id="DYk-x1-j3q"/>
+                        <constraint firstItem="wp3-Sk-MRP" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="FML-ci-kI9"/>
+                        <constraint firstItem="wjG-88-KWP" firstAttribute="leading" secondItem="qVQ-To-3Au" secondAttribute="trailing" constant="2" id="ISD-bJ-qpa"/>
+                        <constraint firstItem="xL5-Rq-Wus" firstAttribute="top" secondItem="vZz-9f-hir" secondAttribute="bottom" constant="8" id="KNp-IB-nHY"/>
+                        <constraint firstItem="wp3-Sk-MRP" firstAttribute="top" secondItem="nTM-xd-HIx" secondAttribute="top" id="KwZ-bf-NId"/>
+                        <constraint firstAttribute="trailing" secondItem="vZz-9f-hir" secondAttribute="trailing" id="Qhd-Eo-GfB"/>
+                        <constraint firstItem="xL5-Rq-Wus" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="Ra6-b9-Ftw"/>
+                        <constraint firstAttribute="width" constant="232" id="RzM-lo-xHF"/>
+                        <constraint firstAttribute="trailing" secondItem="xL5-Rq-Wus" secondAttribute="trailing" id="Vj2-ZJ-3Zx"/>
+                        <constraint firstItem="vZz-9f-hir" firstAttribute="top" secondItem="vd3-5J-Jcb" secondAttribute="bottom" constant="8" id="ZH9-cK-lgD"/>
+                        <constraint firstItem="vd3-5J-Jcb" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="fCK-fV-Saf"/>
+                        <constraint firstItem="58l-A1-2Kk" firstAttribute="top" secondItem="wjG-88-KWP" secondAttribute="bottom" constant="8" id="fjK-0F-dfk"/>
+                        <constraint firstAttribute="trailing" secondItem="58l-A1-2Kk" secondAttribute="trailing" id="g8x-g3-953"/>
+                        <constraint firstAttribute="height" constant="192" id="ozY-8I-IPu"/>
+                        <constraint firstAttribute="trailing" secondItem="wp3-Sk-MRP" secondAttribute="trailing" id="sDF-gG-ccp"/>
+                        <constraint firstItem="58l-A1-2Kk" firstAttribute="centerY" secondItem="yrr-gh-114" secondAttribute="centerY" id="uK6-XT-G21"/>
+                        <constraint firstItem="58l-A1-2Kk" firstAttribute="leading" secondItem="yrr-gh-114" secondAttribute="trailing" constant="2" id="vsu-Ql-D8j"/>
+                        <constraint firstItem="vZz-9f-hir" firstAttribute="leading" secondItem="nTM-xd-HIx" secondAttribute="leading" id="xXz-av-PeW"/>
+                    </constraints>
+                </customView>
+            </subviews>
+            <constraints>
+                <constraint firstItem="l8C-Vk-idO" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="F7K-z5-caA"/>
+                <constraint firstItem="cky-Rj-cPG" firstAttribute="top" secondItem="0BT-YI-uuZ" secondAttribute="top" id="MyY-Nj-q6F"/>
+                <constraint firstItem="nTM-xd-HIx" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="bvC-pX-cza"/>
+                <constraint firstItem="N3S-NU-dUK" firstAttribute="top" secondItem="0BT-YI-uuZ" secondAttribute="top" constant="200" id="bvk-BP-OWQ"/>
+                <constraint firstItem="l8C-Vk-idO" firstAttribute="top" secondItem="0BT-YI-uuZ" secondAttribute="top" id="cl5-ia-LSH"/>
+                <constraint firstItem="N3S-NU-dUK" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="e6U-iS-g2w"/>
+                <constraint firstItem="nTM-xd-HIx" firstAttribute="top" secondItem="N3S-NU-dUK" secondAttribute="bottom" constant="16" id="gCW-v1-Bqm"/>
+                <constraint firstItem="cky-Rj-cPG" firstAttribute="centerX" secondItem="0BT-YI-uuZ" secondAttribute="centerX" id="rwG-C9-o2d"/>
+            </constraints>
+            <point key="canvasLocation" x="-112" y="-482"/>
         </customView>
     </objects>
     <resources>

+ 6 - 3
PDF Office/PDF Master/KMClass/Tools/CustomViews/KMScrollView/KMScrollView.swift

@@ -19,12 +19,15 @@ class KMScrollView: NSScrollView {
     
     override func layout() {
         super.layout()
-         
-        print(NSDate())
-         
+        
         if let value = contentViewSize {
             self.documentView?.frame = CGRectMake(0, 0, value.width, max(value.height, self.bounds.size.height))
         }
     }
     
+    func scrollToTop() {
+        let rect = documentView?.bounds ?? CGRectZero
+        documentView?.scroll(CGPoint(x: 0, y: rect.size.height))
+    }
+    
 }