Explorar el Código

【fix】【填写与签名】更改页面上的填写与签名注释属性,左侧注释面板未自动刷新

tangchao hace 5 meses
padre
commit
843c735e50

+ 10 - 0
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFKitExtensions/CPDFAnnotationExtensions/SelfSign/CSelfSignAnnotation.m

@@ -23,6 +23,16 @@
     return self;
 }
 
+//- (NSSet *)keysForValuesToObserveForUndo {
+//    static NSSet *setKeys = nil;
+//    if (setKeys == nil) {
+//        NSMutableSet *mutableKeys = [[super keysForValuesToObserveForUndo] mutableCopy];
+//        [mutableKeys addObject:@"lineAnnotationWidth"];
+//        setKeys = [mutableKeys copy];
+//    }
+//    return setKeys;
+//}
+
 - (NSArray *)getBezierPathsArray {
     CGRect bounds = self.bounds;
     NSMutableArray * lines = [NSMutableArray array];

+ 9 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/ViewController/KMAnnotationSelfSignViewController.swift

@@ -226,6 +226,7 @@ typealias KMAnnotationSelfSignViewControllerCallBack = (CAnnotationType) -> Void
         opacitySlider.toolTip = "\(Int(opacity * 100))%"
         updateAnnotation()
 
+        callBack?(self.selfSignType)
     }
     
     @IBAction func colorPickViewAction(_ sender: Any) {
@@ -247,6 +248,8 @@ typealias KMAnnotationSelfSignViewControllerCallBack = (CAnnotationType) -> Void
             opacitySlider.floatValue = Float(opacity)
         }
         updateAnnotation()
+        
+        callBack?(self.selfSignType)
     }
     
     @IBAction func opacitySliderAction(_ sender: Any) {
@@ -257,6 +260,8 @@ typealias KMAnnotationSelfSignViewControllerCallBack = (CAnnotationType) -> Void
         annotationModel?.setOpacity(opcity)
         opacityComboBox.stringValue = "\(Int(opcity * 100))%"
         updateAnnotation()
+        
+        callBack?(self.selfSignType)
     }
     
     @IBAction func lineWidthSliderAction(_ sender: NSSlider) {        
@@ -264,6 +269,8 @@ typealias KMAnnotationSelfSignViewControllerCallBack = (CAnnotationType) -> Void
         lineWidthComboBox.stringValue = String(format: "%0.1f pt", (annotationModel?.lineWidth())!)
         
         updateAnnotation()
+        
+        callBack?(self.selfSignType)
     }
 
     @IBAction func lineWidthComboboxAction(_ sender: NSComboBox) {
@@ -277,6 +284,8 @@ typealias KMAnnotationSelfSignViewControllerCallBack = (CAnnotationType) -> Void
         lineWidthSlider.floatValue = Float((annotationModel?.lineWidth())!)
         
         updateAnnotation()
+        
+        callBack?(self.selfSignType)
     }
     
     @IBAction func buttonClicked_TypeAwitch(_ sender: NSButton) {

+ 3 - 0
PDF Office/PDF Master/Class/README.md

@@ -164,6 +164,7 @@
 
 - 填写与签名
 * 日期 KMFillSignTextPanel
+* KMAnnotationSelfSignViewController
 
 - 编辑PDF
 * 文本 KMEditPDFTextPropertyViewController
@@ -190,7 +191,9 @@
 
 ## 填写与签名
 
+* ✅、叉、矩形、线段、圆点注释 CSelfSignAnnotation
 * 日期注释 CSelfSignAnnotationFreeText
+* 签名注释:CPDFListSignatureAnnotation
 
 ## 数字签名