Prechádzať zdrojové kódy

【编辑工具】压缩基础界面高保真

lizhe 4 dní pred
rodič
commit
7dc6ba2539

+ 6 - 0
PDF Office/PDF Master/Class/Batch/WindowController/VC/Compress/SettingView/Model/KMCompressSettingModel.swift

@@ -7,6 +7,12 @@
 
 import Cocoa
 
+enum KMCompressModelsType: Int {
+    case standard = 0
+    case mobile
+    case custom
+}
+
 enum KMCompressSettingPanelType: Int {
     case modes = 0
     case images

+ 95 - 3
PDF Office/PDF Master/Class/Batch/WindowController/VC/Compress/View/KMBatchOperateCompressView.swift

@@ -7,6 +7,7 @@
 
 import Cocoa
 
+typealias KMBatchOperateCompressViewSelectTypeBlcok = (_ view: KMBatchOperateCompressView, _ type: KMCompressModelsType) -> Void
 class KMBatchOperateCompressView: KMBaseXibView {
 
     @IBOutlet weak var standardButton: NSButton!
@@ -15,16 +16,109 @@ class KMBatchOperateCompressView: KMBaseXibView {
     @IBOutlet weak var tipButton: KMButton!
     @IBOutlet weak var settingButton: NSButton!
     
+    var popOver: NSPopover!
+    
+    var selectTypeAction: KMBatchOperateCompressViewSelectTypeBlcok?
+    var type: KMCompressModelsType = .standard {
+        didSet {
+            self.updateType(type: type)
+        }
+    }
+    
     override func draw(_ dirtyRect: NSRect) {
         super.draw(dirtyRect)
 
         // Drawing code here.
     }
+    
+    override func setup() {
+        self.standardButton.stringValue = NSLocalizedString("Standard (Recommend)", comment: "")
+        self.mobileButton.stringValue = NSLocalizedString("Mobile", comment: "")
+        self.customButton.stringValue = NSLocalizedString("Custom", comment: "")
+        self.settingButton.stringValue = NSLocalizedString("Setting", comment: "")
+        
+        self.standardButton.setTitleColor(KMAppearance.Layout.h1Color())
+        self.mobileButton.setTitleColor(KMAppearance.Layout.h1Color())
+        self.customButton.setTitleColor(KMAppearance.Layout.h1Color())
+    }
+    
+    override func updateUI() {
+        let customAttributes: [NSAttributedString.Key: Any] = [
+            .underlineStyle: NSUnderlineStyle.single.rawValue,
+            .foregroundColor: NSColor(hex: "#4982E6"),
+            .font: NSFont.systemFont(ofSize: 13)
+        ]
+
+        let customTitle = NSAttributedString(string: "Setting", attributes: customAttributes)
+        self.settingButton.attributedTitle = customTitle
+        
+        
+        self.tipButton.mouseMoveCallback = {[unowned self] mouseEntered in
+            if mouseEntered {
+                let tipString = NSLocalizedString("This mode is specially adapted for mobile to improve the quality of compression, ensuring greater clarity when viewed on mobile devices.", comment: "")
+          
+                let popViewController = KMToolbarItemPopViewController.init()
+                if self.popOver == nil {
+                    self.popOver = NSPopover.init()
+                }
+                self.popOver.contentViewController = popViewController
+                self.popOver.animates = false
+                self.popOver.behavior = .semitransient
+                self.popOver.contentSize = (popViewController.view.frame.size)
+                popViewController.updateWithHelpTip(helpTip: tipString)
+                self.popOver.show(relativeTo: self.tipButton.frame, of: self.tipButton.superview!, preferredEdge: .maxY)
+            } else {
+                self.popOver.close()
+            }
+        }
+    }
+    
+    override func reloadData() {
+        self.updateType(type: type)
+    }
+    
+    func updateType(type: KMCompressModelsType) {
+        self.standardButton.state = .off
+        self.mobileButton.state = .off
+        self.customButton.state = .off
+        
+        switch type {
+        case .standard:
+            self.standardButton.state = .on
+        case .custom:
+            self.customButton.state = .on
+        case .mobile:
+            self.mobileButton.state = .on
+        }
+    }
 }
 
 extension KMBatchOperateCompressView {
-    @IBAction func settingButtonAction(_ sender: Any) {
+    @IBAction func standardButtonAction(_ sender: Any) {
+        self.updateType(type: .standard)
         
+        guard let callBack = selectTypeAction else { return }
+        
+        callBack(self, .standard)
+    }
+    
+    @IBAction func mobileButtonAction(_ sender: Any) {
+        self.updateType(type: .mobile)
+        
+        guard let callBack = selectTypeAction else { return }
+        
+        callBack(self, .mobile)
+    }
+    
+    @IBAction func customButtonAction(_ sender: Any) {
+        self.updateType(type: .custom)
+        
+        guard let callBack = selectTypeAction else { return }
+        
+        callBack(self, .custom)
+    }
+    
+    @IBAction func settingButtonAction(_ sender: Any) {
         let controller: KMBatchOperateCompressSettingViewController = KMBatchOperateCompressSettingViewController(nibName: "KMBatchOperateCompressSettingViewController", bundle: nil)
         let window = NSWindow(contentViewController: controller)
         let currentWindow = NSWindow.currentWindow()
@@ -33,7 +127,5 @@ extension KMBatchOperateCompressView {
         controller.cancelAction = { resultControler in
             currentWindow.endSheet(window)
         }
-        
-        
     }
 }

+ 12 - 3
PDF Office/PDF Master/Class/Batch/WindowController/VC/Compress/View/KMBatchOperateCompressView.xib

@@ -30,6 +30,9 @@
                                 <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                                 <font key="font" metaFont="cellTitle"/>
                             </buttonCell>
+                            <connections>
+                                <action selector="standardButtonAction:" target="-2" id="mWE-gx-cYG"/>
+                            </connections>
                         </button>
                         <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ygY-fe-yeM">
                             <rect key="frame" x="-2" y="216.5" width="64" height="18"/>
@@ -37,6 +40,9 @@
                                 <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                                 <font key="font" metaFont="cellTitle"/>
                             </buttonCell>
+                            <connections>
+                                <action selector="mobileButtonAction:" target="-2" id="qJm-zD-M7V"/>
+                            </connections>
                         </button>
                         <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6x0-ch-VkE">
                             <rect key="frame" x="-2" y="185.5" width="70" height="18"/>
@@ -44,6 +50,9 @@
                                 <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
                                 <font key="font" metaFont="cellTitle"/>
                             </buttonCell>
+                            <connections>
+                                <action selector="customButtonAction:" target="-2" id="mBn-CM-UVx"/>
+                            </connections>
                         </button>
                         <button translatesAutoresizingMaskIntoConstraints="NO" id="1Bh-FK-sZg">
                             <rect key="frame" x="72" y="187" width="46" height="16"/>
@@ -55,9 +64,9 @@
                                 <action selector="settingButtonAction:" target="-2" id="isb-xG-gwJ"/>
                             </connections>
                         </button>
-                        <button translatesAutoresizingMaskIntoConstraints="NO" id="dJy-8r-7hO" customClass="KMButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                            <rect key="frame" x="66" y="218" width="31" height="16"/>
-                            <buttonCell key="cell" type="square" title="提示" bezelStyle="shadowlessSquare" alignment="center" imageScaling="proportionallyDown" inset="2" id="ktQ-hV-aX6">
+                        <button horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="dJy-8r-7hO" customClass="KMButton" customModule="PDF_Reader_Pro" customModuleProvider="target">
+                            <rect key="frame" x="60" y="208" width="30" height="30"/>
+                            <buttonCell key="cell" type="help" bezelStyle="helpButton" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="ktQ-hV-aX6">
                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                 <font key="font" metaFont="system"/>
                             </buttonCell>

+ 2 - 2
PDF Office/PDF Master/Class/Batch/WindowController/VC/KMToolbarItemPopViewController.xib

@@ -1,8 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22155" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
     <dependencies>
         <deployment identifier="macosx"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22155"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>

+ 6 - 0
PDF Office/PDF Master/Class/Batch/resouce/BatchImage.xcassets/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 21 - 0
PDF Office/PDF Master/Class/Batch/resouce/BatchImage.xcassets/KMBatchOperateCompressHelp.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "filename" : "help.png",
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
PDF Office/PDF Master/Class/Batch/resouce/BatchImage.xcassets/KMBatchOperateCompressHelp.imageset/help.png


+ 3 - 3
PDF Office/PDF Master/Class/PDFTools/Compress/Controller/KMCompressWIndowControllerNew.xib

@@ -17,14 +17,14 @@
         <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" releasedWhenClosed="NO" animationBehavior="default" id="F0z-JX-Cv5">
             <windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
             <windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
-            <rect key="contentRect" x="196" y="240" width="616" height="474"/>
+            <rect key="contentRect" x="196" y="240" width="530" height="451"/>
             <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1415"/>
             <view key="contentView" id="se5-gp-TjO">
-                <rect key="frame" x="0.0" y="0.0" width="616" height="474"/>
+                <rect key="frame" x="0.0" y="0.0" width="530" height="451"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
                     <customView translatesAutoresizingMaskIntoConstraints="NO" id="Xp8-iA-nRn" customClass="KMCompressView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                        <rect key="frame" x="0.0" y="0.0" width="616" height="474"/>
+                        <rect key="frame" x="0.0" y="0.0" width="530" height="451"/>
                     </customView>
                 </subviews>
                 <constraints>

+ 9 - 63
PDF Office/PDF Master/Class/PDFTools/Compress/View/KMCompressView.swift

@@ -20,17 +20,11 @@ class KMCompressView: KMBaseXibView {
     @IBOutlet weak var fileImageView: NSImageView!
     @IBOutlet weak var progressSizeLabel: NSTextField!
     @IBOutlet weak var progress: NSProgressIndicator!
-    
-//    @IBOutlet weak var selectLabel: NSTextField!
-//    @IBOutlet weak var qulityMatrix: NSMatrix!
-//    
-//    @IBOutlet weak var lowLabel: NSTextField!
-//    @IBOutlet weak var hightLabel: NSTextField!
-//    @IBOutlet weak var qualitySlider: KMSlider!
-    
+
     @IBOutlet weak var cancelButton: NSButton!
     @IBOutlet weak var compressButton: NSButton!
     @IBOutlet weak var batchButton: NSButton!
+    @IBOutlet weak var modelsLabel: NSTextField!
     
     var cancelAction: KMCompressViewCancelAction?
     var batchAction: KMCompressViewBatchAction?
@@ -42,10 +36,6 @@ class KMCompressView: KMBaseXibView {
         }
     }
     var password: String = ""
-//    private var datas: [String] = []
-//    var selectIndex = 2
-//    
-//    var limit = true
     var oriDocumentUrl: URL?
     
     override func draw(_ dirtyRect: NSRect) {
@@ -55,10 +45,14 @@ class KMCompressView: KMBaseXibView {
     }
 
     override func setup() {
-//        qulityMatrix.selectCell(atRow: 2, column: 0)
+        self.modelsLabel.textColor = KMAppearance.Layout.h1Color()
+        self.titleLabel.textColor = KMAppearance.Layout.h1Color()
+        self.sizeLabel.textColor = KMAppearance.Layout.h2Color()
+        
+        self.compressButton.setTitleColor(KMAppearance.Layout.h1Color())
+        self.cancelButton.setTitleColor(KMAppearance.Layout.h1Color())
+        self.batchButton.setTitleColor(KMAppearance.Layout.h1Color())
         
-//        lowLabel.textColor = KMAppearance.Layout.h0Color()
-//        hightLabel.textColor = KMAppearance.Layout.h0Color()
         
         previewBox.fillColor = NSColor.black.withAlphaComponent(0.04)
         previewBox.cornerRadius = 4.0
@@ -69,20 +63,9 @@ class KMCompressView: KMBaseXibView {
     }
     
     override func updateLanguage() {
-//        selectLabel.stringValue = NSLocalizedString("Optimization Options", comment: "")
-//        lowLabel.stringValue = NSLocalizedString("Low Quality", comment: "")
-//        hightLabel.stringValue = NSLocalizedString("High Quality", comment: "")
         cancelButton.title = NSLocalizedString("Cancel", comment: "")
         compressButton.title = NSLocalizedString("Compress", comment: "")
         batchButton.title = NSLocalizedString("Batch", comment: "")
-        
-//        for cell in qulityMatrix.cells {
-//            var title = cell.title
-//            if title == "Other" {
-//                title = "Customize"
-//            }
-//            cell.title = NSLocalizedString(title, comment: "")
-//        }
     }
     
     override func reloadData() {
@@ -101,30 +84,9 @@ class KMCompressView: KMBaseXibView {
                 pdfDocument?.unlock(withPassword: self.password)
                 let page = pdfDocument?.page(at: 0) ?? CPDFPage()
                 let image = page.thumbnail(of: page.size)
-//                let image: NSImage = NSImage.previewForFile(path: url!, ofSize: fileImageView.bounds.size, asIcon: true) ?? NSImage()
                 fileImageView.image = image;
             }
         }
-    
-        self.updateQulityMatrixState()
-    }
-    
-    func updateQulityMatrixState() {
-//        if qulityMatrix.selectedRow == 4 {
-//            hightLabel.isEnabled = true
-//            lowLabel.isEnabled = true
-//            qualitySlider.isEnabled = true
-//            lowLabel.alphaValue = 1
-//            hightLabel.alphaValue = 1
-//            qualitySlider.tipEnabled = true
-//        } else {
-//            hightLabel.isEnabled = false
-//            lowLabel.isEnabled = false
-//            qualitySlider.isEnabled = false
-//            lowLabel.alphaValue = 0.4
-//            hightLabel.alphaValue = 0.4
-//            qualitySlider.tipEnabled = false
-//        }
     }
     
     func fileSizeString(_ fSize: Float) -> String {
@@ -153,22 +115,6 @@ extension KMCompressView {
         guard let callBack = compressAction else { return }
         
         var compressVale = 60
-//        if (qulityMatrix.selectedRow == 0) {
-//            compressVale = 120
-//        } else if (qulityMatrix.selectedRow == 1) {
-//            compressVale = 90
-//        } else if (qulityMatrix.selectedRow == 2) {
-//            compressVale = 60
-//        } else if (qulityMatrix.selectedRow == 3) {
-//            compressVale = 30
-//        } else {
-//            compressVale = qualitySlider.integerValue
-//        }
-//        
         callBack(self, compressVale)
     }
-    
-    @IBAction func qulityMatrixAction(_ sender: Any) {
-        self.updateQulityMatrixState()
-    }
 }

+ 31 - 30
PDF Office/PDF Master/Class/PDFTools/Compress/View/KMCompressView.xib

@@ -13,6 +13,7 @@
                 <outlet property="compressButton" destination="IHF-en-Dqi" id="PwN-g7-RFb"/>
                 <outlet property="fileImageView" destination="got-mA-Esq" id="Zls-7k-XND"/>
                 <outlet property="finalSizeLabel" destination="AVp-B0-LcQ" id="syN-mv-nSW"/>
+                <outlet property="modelsLabel" destination="lrq-Ko-3OF" id="FOP-Gc-0DC"/>
                 <outlet property="previewBox" destination="JoQ-Bg-A7A" id="IFH-92-kmH"/>
                 <outlet property="progress" destination="rI6-3z-z33" id="EnV-KA-efW"/>
                 <outlet property="progressSizeLabel" destination="qSB-Az-aee" id="nUn-C4-CiF"/>
@@ -23,14 +24,14 @@
         <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
         <customObject id="-3" userLabel="Application" customClass="NSObject"/>
         <customView id="c22-O7-iKe">
-            <rect key="frame" x="0.0" y="0.0" width="531" height="424"/>
+            <rect key="frame" x="0.0" y="0.0" width="530" height="451"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
             <subviews>
                 <view translatesAutoresizingMaskIntoConstraints="NO" id="7D3-FA-RtT">
-                    <rect key="frame" x="0.0" y="0.0" width="531" height="424"/>
+                    <rect key="frame" x="0.0" y="0.0" width="530" height="451"/>
                     <subviews>
                         <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="M8m-46-Uhb">
-                            <rect key="frame" x="332" y="11" width="76" height="32"/>
+                            <rect key="frame" x="351" y="13" width="76" height="32"/>
                             <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="jGJ-6V-t57">
                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                 <font key="font" metaFont="system"/>
@@ -43,7 +44,7 @@ Gw
                             </connections>
                         </button>
                         <button horizontalHuggingPriority="249" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="IHF-en-Dqi">
-                            <rect key="frame" x="409" y="11" width="96" height="32"/>
+                            <rect key="frame" x="421" y="13" width="96" height="32"/>
                             <buttonCell key="cell" type="push" title="Compress" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="ZKC-Ne-tUY">
                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                 <font key="font" metaFont="system"/>
@@ -56,7 +57,7 @@ DQ
                             </connections>
                         </button>
                         <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="oK4-qZ-nsZ">
-                            <rect key="frame" x="8" y="11" width="69" height="32"/>
+                            <rect key="frame" x="13" y="13" width="69" height="32"/>
                             <buttonCell key="cell" type="push" title="Batch" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="d4I-h4-20k">
                                 <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                                 <font key="font" metaFont="system"/>
@@ -66,13 +67,13 @@ DQ
                             </connections>
                         </button>
                         <box autoresizesSubviews="NO" borderType="line" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="JoQ-Bg-A7A" customClass="KMBox" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                            <rect key="frame" x="37" y="260" width="457" height="146"/>
+                            <rect key="frame" x="17" y="287" width="496" height="146"/>
                             <view key="contentView" id="qgD-bf-gnS">
-                                <rect key="frame" x="4" y="5" width="449" height="138"/>
+                                <rect key="frame" x="4" y="5" width="488" height="138"/>
                                 <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                 <subviews>
                                     <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="JF7-f4-ihM">
-                                        <rect key="frame" x="128" y="81" width="4" height="16"/>
+                                        <rect key="frame" x="126" y="72" width="4" height="16"/>
                                         <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" id="whk-Hu-7q8">
                                             <font key="font" metaFont="system"/>
                                             <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -80,13 +81,13 @@ DQ
                                         </textFieldCell>
                                     </textField>
                                     <progressIndicator wantsLayer="YES" maxValue="100" style="bar" translatesAutoresizingMaskIntoConstraints="NO" id="rI6-3z-z33">
-                                        <rect key="frame" x="130" y="47" width="240" height="20"/>
+                                        <rect key="frame" x="128" y="38" width="240" height="20"/>
                                         <constraints>
                                             <constraint firstAttribute="width" constant="240" id="r9M-rs-3WM"/>
                                         </constraints>
                                     </progressIndicator>
                                     <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="feZ-ij-cjM">
-                                        <rect key="frame" x="128" y="102" width="303" height="16"/>
+                                        <rect key="frame" x="126" y="96" width="344" height="16"/>
                                         <textFieldCell key="cell" truncatesLastVisibleLine="YES" sendsActionOnEndEditing="YES" id="He2-H0-3Up">
                                             <font key="font" metaFont="system"/>
                                             <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -94,15 +95,15 @@ DQ
                                         </textFieldCell>
                                     </textField>
                                     <imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="got-mA-Esq">
-                                        <rect key="frame" x="10" y="14" width="110" height="110"/>
+                                        <rect key="frame" x="20" y="13" width="88" height="112"/>
                                         <constraints>
-                                            <constraint firstAttribute="height" constant="110" id="Guy-Ta-rMV"/>
-                                            <constraint firstAttribute="width" constant="110" id="TbS-1n-M8o"/>
+                                            <constraint firstAttribute="height" constant="112" id="Guy-Ta-rMV"/>
+                                            <constraint firstAttribute="width" constant="88" id="TbS-1n-M8o"/>
                                         </constraints>
                                         <imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="Uy4-7y-Qeb"/>
                                     </imageView>
                                     <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="AVp-B0-LcQ">
-                                        <rect key="frame" x="143" y="81" width="4" height="16"/>
+                                        <rect key="frame" x="141" y="72" width="4" height="16"/>
                                         <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" id="XEA-VF-Y0d">
                                             <font key="font" metaFont="system"/>
                                             <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -110,7 +111,7 @@ DQ
                                         </textFieldCell>
                                     </textField>
                                     <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qSB-Az-aee">
-                                        <rect key="frame" x="383" y="49" width="4" height="16"/>
+                                        <rect key="frame" x="381" y="40" width="4" height="16"/>
                                         <textFieldCell key="cell" lineBreakMode="clipping" id="jbV-Qh-AnI">
                                             <font key="font" metaFont="system"/>
                                             <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -119,13 +120,13 @@ DQ
                                     </textField>
                                 </subviews>
                                 <constraints>
-                                    <constraint firstItem="JF7-f4-ihM" firstAttribute="top" secondItem="feZ-ij-cjM" secondAttribute="bottom" constant="5" id="0Te-Rh-Zal"/>
+                                    <constraint firstItem="JF7-f4-ihM" firstAttribute="top" secondItem="feZ-ij-cjM" secondAttribute="bottom" constant="8" id="0Te-Rh-Zal"/>
                                     <constraint firstItem="rI6-3z-z33" firstAttribute="leading" secondItem="JF7-f4-ihM" secondAttribute="leading" id="0fG-ad-ixq"/>
-                                    <constraint firstItem="got-mA-Esq" firstAttribute="leading" secondItem="qgD-bf-gnS" secondAttribute="leading" constant="10" id="8el-Fe-esX"/>
-                                    <constraint firstItem="feZ-ij-cjM" firstAttribute="top" secondItem="qgD-bf-gnS" secondAttribute="top" constant="20" id="Iog-kr-jgF"/>
+                                    <constraint firstItem="got-mA-Esq" firstAttribute="leading" secondItem="qgD-bf-gnS" secondAttribute="leading" constant="20" id="8el-Fe-esX"/>
+                                    <constraint firstItem="feZ-ij-cjM" firstAttribute="top" secondItem="qgD-bf-gnS" secondAttribute="top" constant="26" id="Iog-kr-jgF"/>
                                     <constraint firstItem="qSB-Az-aee" firstAttribute="centerY" secondItem="rI6-3z-z33" secondAttribute="centerY" id="L6b-vM-oZp"/>
                                     <constraint firstItem="JF7-f4-ihM" firstAttribute="leading" secondItem="feZ-ij-cjM" secondAttribute="leading" id="RT3-Xi-ANr"/>
-                                    <constraint firstItem="feZ-ij-cjM" firstAttribute="leading" secondItem="got-mA-Esq" secondAttribute="trailing" constant="10" id="ToQ-y4-mKG"/>
+                                    <constraint firstItem="feZ-ij-cjM" firstAttribute="leading" secondItem="got-mA-Esq" secondAttribute="trailing" constant="20" id="ToQ-y4-mKG"/>
                                     <constraint firstItem="qSB-Az-aee" firstAttribute="leading" secondItem="rI6-3z-z33" secondAttribute="trailing" constant="15" id="YGm-Im-bDy"/>
                                     <constraint firstItem="rI6-3z-z33" firstAttribute="top" secondItem="JF7-f4-ihM" secondAttribute="bottom" constant="15" id="Ysp-bX-Tau"/>
                                     <constraint firstItem="AVp-B0-LcQ" firstAttribute="centerY" secondItem="JF7-f4-ihM" secondAttribute="centerY" id="cHu-mi-1qN"/>
@@ -140,13 +141,13 @@ DQ
                             </constraints>
                         </box>
                         <customView translatesAutoresizingMaskIntoConstraints="NO" id="SgF-oL-wWE">
-                            <rect key="frame" x="40" y="60" width="451" height="184"/>
+                            <rect key="frame" x="20" y="60" width="490" height="211"/>
                             <subviews>
                                 <customView translatesAutoresizingMaskIntoConstraints="NO" id="plO-in-6i0" customClass="KMBatchOperateCompressView" customModule="PDF_Reader_Pro" customModuleProvider="target">
-                                    <rect key="frame" x="0.0" y="0.0" width="451" height="158"/>
+                                    <rect key="frame" x="0.0" y="0.0" width="490" height="185"/>
                                 </customView>
                                 <textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="lrq-Ko-3OF">
-                                    <rect key="frame" x="-2" y="164" width="49" height="16"/>
+                                    <rect key="frame" x="-2" y="191" width="49" height="16"/>
                                     <textFieldCell key="cell" lineBreakMode="clipping" title="Models" id="Sy1-Df-BRB">
                                         <font key="font" usesAppearanceFont="YES"/>
                                         <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -165,19 +166,19 @@ DQ
                         </customView>
                     </subviews>
                     <constraints>
-                        <constraint firstAttribute="trailing" secondItem="JoQ-Bg-A7A" secondAttribute="trailing" constant="40" id="0BD-V6-QH5"/>
+                        <constraint firstAttribute="trailing" secondItem="JoQ-Bg-A7A" secondAttribute="trailing" constant="20" id="0BD-V6-QH5"/>
                         <constraint firstItem="SgF-oL-wWE" firstAttribute="top" secondItem="JoQ-Bg-A7A" secondAttribute="bottom" constant="20" id="9NG-mB-ztG"/>
-                        <constraint firstItem="SgF-oL-wWE" firstAttribute="leading" secondItem="7D3-FA-RtT" secondAttribute="leading" constant="40" id="9a9-39-bSK"/>
+                        <constraint firstItem="SgF-oL-wWE" firstAttribute="leading" secondItem="7D3-FA-RtT" secondAttribute="leading" constant="20" id="9a9-39-bSK"/>
                         <constraint firstItem="M8m-46-Uhb" firstAttribute="centerY" secondItem="oK4-qZ-nsZ" secondAttribute="centerY" id="BNo-z7-3aF"/>
-                        <constraint firstItem="oK4-qZ-nsZ" firstAttribute="leading" secondItem="7D3-FA-RtT" secondAttribute="leading" constant="15" id="Cpb-jC-cBb"/>
+                        <constraint firstItem="oK4-qZ-nsZ" firstAttribute="leading" secondItem="7D3-FA-RtT" secondAttribute="leading" constant="20" id="Cpb-jC-cBb"/>
                         <constraint firstItem="IHF-en-Dqi" firstAttribute="centerY" secondItem="oK4-qZ-nsZ" secondAttribute="centerY" id="Hd6-wV-p14"/>
-                        <constraint firstAttribute="trailing" secondItem="IHF-en-Dqi" secondAttribute="trailing" constant="33" id="PnY-ds-mE9"/>
-                        <constraint firstAttribute="bottom" secondItem="oK4-qZ-nsZ" secondAttribute="bottom" constant="18" id="S50-eb-Jw5"/>
-                        <constraint firstItem="JoQ-Bg-A7A" firstAttribute="leading" secondItem="7D3-FA-RtT" secondAttribute="leading" constant="40" id="SIf-DG-vtq"/>
+                        <constraint firstAttribute="trailing" secondItem="IHF-en-Dqi" secondAttribute="trailing" constant="20" id="PnY-ds-mE9"/>
+                        <constraint firstAttribute="bottom" secondItem="oK4-qZ-nsZ" secondAttribute="bottom" constant="20" id="S50-eb-Jw5"/>
+                        <constraint firstItem="JoQ-Bg-A7A" firstAttribute="leading" secondItem="7D3-FA-RtT" secondAttribute="leading" constant="20" id="SIf-DG-vtq"/>
                         <constraint firstAttribute="bottom" secondItem="SgF-oL-wWE" secondAttribute="bottom" constant="60" id="UUd-Wo-FET"/>
                         <constraint firstItem="JoQ-Bg-A7A" firstAttribute="top" secondItem="7D3-FA-RtT" secondAttribute="top" constant="20" id="cN3-Xc-cuz"/>
-                        <constraint firstItem="IHF-en-Dqi" firstAttribute="leading" secondItem="M8m-46-Uhb" secondAttribute="trailing" constant="15" id="qhx-jh-Biu"/>
-                        <constraint firstAttribute="trailing" secondItem="SgF-oL-wWE" secondAttribute="trailing" constant="40" id="wK4-ew-dnc"/>
+                        <constraint firstItem="IHF-en-Dqi" firstAttribute="leading" secondItem="M8m-46-Uhb" secondAttribute="trailing" constant="8" id="qhx-jh-Biu"/>
+                        <constraint firstAttribute="trailing" secondItem="SgF-oL-wWE" secondAttribute="trailing" constant="20" id="wK4-ew-dnc"/>
                     </constraints>
                 </view>
             </subviews>