|
@@ -930,6 +930,21 @@ let KMPDFDynamicStampNeedAuthorKey1 = "km_pdfview_dynamic_stamp_need_author"
|
|
|
}
|
|
|
|
|
|
@objc func tableCellCloseButton_Click(_ button: NSButton) {
|
|
|
+ let alert = NSAlert()
|
|
|
+ alert.alertStyle = .warning
|
|
|
+ alert.messageText = ""
|
|
|
+ alert.informativeText = NSLocalizedString("Are you sure to delete?", comment: "")
|
|
|
+ alert.addButton(withTitle: NSLocalizedString("Delete", comment: ""))
|
|
|
+ alert.addButton(withTitle: NSLocalizedString("Cancel", comment: ""))
|
|
|
+ alert.beginSheetModal(for: NSApp.mainWindow!) { (response) in
|
|
|
+ if response == .alertFirstButtonReturn {
|
|
|
+ self.deleteTableCell(button)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ func deleteTableCell(_ button: NSButton) {
|
|
|
+
|
|
|
let index = button.tag
|
|
|
|
|
|
if annotationStampType == .type_default {
|