|
@@ -220,6 +220,7 @@ extension KMMainViewController {
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Highlight", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 0)
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Underline", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 1)
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Strikethrough", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 2)
|
|
|
+ _ = stypeMenu.addItem(withTitle: NSLocalizedString("Wavy Line", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 2)
|
|
|
stypeMenu.addItem(NSMenuItem.separator())
|
|
|
}
|
|
|
// stypeMenu.addItem(withTitle: NSLocalizedString("Freehand", comment: ""), action: #selector(menuItemAnnotationClick_addStype), target: self, tag: 0)
|
|
@@ -279,6 +280,7 @@ extension KMMainViewController {
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Highlight", comment: ""), action: #selector(changeAnnotationMode_itemAction), target: self, tag: CAnnotationType.highlight.rawValue)
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Underline", comment: ""), action: #selector(changeAnnotationMode_itemAction), target: self, tag: CAnnotationType.underline.rawValue)
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Strikethrough", comment: ""), action: #selector(changeAnnotationMode_itemAction), target: self, tag: CAnnotationType.strikeOut.rawValue)
|
|
|
+ _ = stypeMenu.addItem(withTitle: NSLocalizedString("Wavy Line", comment: ""), action: #selector(changeAnnotationMode_itemAction), target: self, tag: CAnnotationType.squiggly.rawValue)
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Freehand", comment: ""), action: #selector(changeAnnotationMode_itemAction), target: self, tag: CAnnotationType.ink.rawValue)
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Text Note", comment: ""), action: #selector(changeAnnotationMode_itemAction), target: self, tag: CAnnotationType.freeText.rawValue)
|
|
|
_ = stypeMenu.addItem(withTitle: NSLocalizedString("Anchored Note", comment: ""), action: #selector(changeAnnotationMode_itemAction), target: self, tag: CAnnotationType.anchored.rawValue)
|
|
@@ -556,6 +558,7 @@ extension KMMainViewController {
|
|
|
let height = NSMenuItem(title: NSLocalizedString("Highlight", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 0)
|
|
|
let underline = NSMenuItem(title: NSLocalizedString("Underline", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 1)
|
|
|
let strickout = NSMenuItem(title: NSLocalizedString("Strikethrough", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 2)
|
|
|
+ let wavyLine = NSMenuItem(title: NSLocalizedString("Wavy Line", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 2)
|
|
|
let text = NSMenuItem(title: NSLocalizedString("Text", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 3)
|
|
|
let note = NSMenuItem(title: NSLocalizedString("Note", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 4)
|
|
|
let rectangle = NSMenuItem(title: NSLocalizedString("Rectangle", comment: ""), action: #selector(menuItemAnnotationClick_add), target: self, tag: 5)
|
|
@@ -570,6 +573,7 @@ extension KMMainViewController {
|
|
|
menu.insertItem(height, at: menu.items.count)
|
|
|
menu.insertItem(underline, at: menu.items.count)
|
|
|
menu.insertItem(strickout, at: menu.items.count)
|
|
|
+ menu.insertItem(wavyLine, at: menu.items.count)
|
|
|
menu.insertItem(NSMenuItem.separator(), at: menu.items.count)
|
|
|
}
|
|
|
|
|
@@ -1073,6 +1077,8 @@ extension KMMainViewController {
|
|
|
itemId = KMToolbarUnderlineAnnotationItemIdentifier
|
|
|
} else if sender.tag == CAnnotationType.strikeOut.rawValue {
|
|
|
itemId = KMToolbarStrikeOutAnnotationItemIdentifier
|
|
|
+ } else if sender.tag == CAnnotationType.squiggly.rawValue {
|
|
|
+ itemId = KMToolbarSquigglyAnnotationItemIdentifier
|
|
|
} else if sender.tag == CAnnotationType.ink.rawValue {
|
|
|
itemId = KMToolbarInkAnnotationItemIdentifier
|
|
|
} else if sender.tag == CAnnotationType.freeText.rawValue {
|
|
@@ -1103,7 +1109,11 @@ extension KMMainViewController {
|
|
|
case 1:
|
|
|
annotationType = .underline
|
|
|
case 2:
|
|
|
- annotationType = .strikeOut
|
|
|
+ if sender.title == NSLocalizedString("Wavy Line", comment: "") {
|
|
|
+ annotationType = .squiggly
|
|
|
+ } else {
|
|
|
+ annotationType = .strikeOut
|
|
|
+ }
|
|
|
case 3:
|
|
|
annotationType = .freeText
|
|
|
case 4:
|