Browse Source

【注释】KMAnnotationFromSignature属性面板补充,多选效果补充

wanjun 1 year ago
parent
commit
dc724bdf7e

+ 7 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/AnnotationProperty/KMAnnotationPropertiesViewController.m

@@ -240,6 +240,13 @@
                 [self fromContentButtonAction:_formOptionsButton];
             }
         }
+    } else if ([annotation isKindOfClass:[KMAnnotationFromSignature class]]) {
+        KMAnnotationGeneralViewController *vc = [[KMAnnotationGeneralViewController alloc] init];
+        vc.pdfview = self.pdfView;
+        vc.annotationModel = annotationModel;
+        vc.view.frame = [self viewControllerRect];
+        [self.view addSubview:vc.view];
+        self.contentViewController = vc;
     } else if ([annotation isKindOfClass:[CPDFSignatureWidgetAnnotation class]]) {
         KMFillSignShapePanel *vc = [[KMFillSignShapePanel alloc] init];
         vc.pdfView = self.pdfView;

+ 4 - 0
PDF Office/PDF Master/Class/PDFWindowController/Side/RightSide/KMRightSideViewController.swift

@@ -85,6 +85,10 @@ class KMRightSideViewController: NSViewController,CipherTextViewDelegate {
                 self.annotationProperties.isEmptyAnnotation = true
                 return
             }
+        } else if (selectedAnnotation is KMAnnotationFromSignature) && (activeAnnotations.count > 1) {
+            self.annotationProperties.annotations = []
+            self.annotationProperties.isEmptyAnnotation = true
+            return
         }
        
         let annotationType = pdfView.annotationType