|
@@ -1766,18 +1766,20 @@ extension KMToolbarViewController {
|
|
let identifier = item?.itemIdentifier
|
|
let identifier = item?.itemIdentifier
|
|
if identifier == KMToolbarAddTextEditPDFItemIdentifier {
|
|
if identifier == KMToolbarAddTextEditPDFItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameButtonEidtPDFText")
|
|
item?.image = NSImage(named: "KMImageNameButtonEidtPDFText")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameButtonEidtPDFTextHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameButtonEidtPDFTextHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.addText.rawValue
|
|
item?.btnTag = CAnnotationType.addText.rawValue
|
|
item?.toolTip = NSLocalizedString("Add Text", comment: "")
|
|
item?.toolTip = NSLocalizedString("Add Text", comment: "")
|
|
-// item?.normalTextColor = NSColor.white
|
|
|
|
item?.titleName = NSLocalizedString("Add Text", comment: "")
|
|
item?.titleName = NSLocalizedString("Add Text", comment: "")
|
|
item?.boxImagePosition = .imageLeft
|
|
item?.boxImagePosition = .imageLeft
|
|
item?.btnAction = #selector(changeAnnotationMode)
|
|
item?.btnAction = #selector(changeAnnotationMode)
|
|
} else if identifier == KMToolbarAddImageEditPDFItemIdentifier {
|
|
} else if identifier == KMToolbarAddImageEditPDFItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameButtonEidtPDFImage")
|
|
item?.image = NSImage(named: "KMImageNameButtonEidtPDFImage")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameButtonEidtPDFImageHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameButtonEidtPDFImageHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.addImage.rawValue
|
|
item?.btnTag = CAnnotationType.addImage.rawValue
|
|
-// item?.normalTextColor = NSColor.white
|
|
|
|
item?.toolTip = NSLocalizedString("Add Image", comment: "")
|
|
item?.toolTip = NSLocalizedString("Add Image", comment: "")
|
|
item?.titleName = NSLocalizedString("Add Image", comment: "")
|
|
item?.titleName = NSLocalizedString("Add Image", comment: "")
|
|
item?.boxImagePosition = .imageLeft
|
|
item?.boxImagePosition = .imageLeft
|
|
@@ -1789,6 +1791,8 @@ extension KMToolbarViewController {
|
|
let identifier = item?.itemIdentifier
|
|
let identifier = item?.itemIdentifier
|
|
if identifier == KMToolbarConversionWordItemIdentifier {
|
|
if identifier == KMToolbarConversionWordItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertWord)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertWord)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertWordHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertWordHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.word.rawValue
|
|
item?.btnTag = KMToolbarType.word.rawValue
|
|
item?.toolTip = NSLocalizedString("Convert all the great work stored in your PDF to a Word document that’s easy to update. Keep the fonts and layouts intact — including bullets and tables.", comment: "")
|
|
item?.toolTip = NSLocalizedString("Convert all the great work stored in your PDF to a Word document that’s easy to update. Keep the fonts and layouts intact — including bullets and tables.", comment: "")
|
|
@@ -1798,6 +1802,8 @@ extension KMToolbarViewController {
|
|
item?.promptIdentifier = identifier
|
|
item?.promptIdentifier = identifier
|
|
} else if identifier == KMToolbarConversionExcelItemIdentifier {
|
|
} else if identifier == KMToolbarConversionExcelItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertExcel)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertExcel)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertExcelHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertExcelHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.excel.rawValue
|
|
item?.btnTag = KMToolbarType.excel.rawValue
|
|
item?.toolTip = NSLocalizedString("Skip the data entry steps and tedious reformatting tasks, too. When you convert to Excel, your data is preserved along with your columns, layouts, and formatting.", comment: "")
|
|
item?.toolTip = NSLocalizedString("Skip the data entry steps and tedious reformatting tasks, too. When you convert to Excel, your data is preserved along with your columns, layouts, and formatting.", comment: "")
|
|
@@ -1807,6 +1813,8 @@ extension KMToolbarViewController {
|
|
item?.promptIdentifier = identifier
|
|
item?.promptIdentifier = identifier
|
|
} else if identifier == KMToolbarConversionPPTItemIdentifier {
|
|
} else if identifier == KMToolbarConversionPPTItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertPPT)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertPPT)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertPPTHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertPPTHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.ppt.rawValue
|
|
item?.btnTag = KMToolbarType.ppt.rawValue
|
|
item?.toolTip = NSLocalizedString("When you use PDFull to convert PDFs to PowerPoint, you know your formats will be saved, too. So you don’t have to bother redoing bullets, tables, objects, or master layouts.", comment: "")
|
|
item?.toolTip = NSLocalizedString("When you use PDFull to convert PDFs to PowerPoint, you know your formats will be saved, too. So you don’t have to bother redoing bullets, tables, objects, or master layouts.", comment: "")
|
|
@@ -1816,6 +1824,8 @@ extension KMToolbarViewController {
|
|
item?.promptIdentifier = identifier
|
|
item?.promptIdentifier = identifier
|
|
} else if identifier == KMToolbarConversionRTFItemIdentifier {
|
|
} else if identifier == KMToolbarConversionRTFItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertRTF)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertRTF)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertRTFHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertRTFHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.rtf.rawValue
|
|
item?.btnTag = KMToolbarType.rtf.rawValue
|
|
item?.toolTip = NSLocalizedString("Turn PDF documents into Rich Text Format (RTF) files that can be opened in virtually any word processor.", comment: "")
|
|
item?.toolTip = NSLocalizedString("Turn PDF documents into Rich Text Format (RTF) files that can be opened in virtually any word processor.", comment: "")
|
|
@@ -1825,6 +1835,8 @@ extension KMToolbarViewController {
|
|
item?.promptIdentifier = identifier
|
|
item?.promptIdentifier = identifier
|
|
} else if identifier == KMToolbarConversionCSVItemIdentifier {
|
|
} else if identifier == KMToolbarConversionCSVItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertCSV)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertCSV)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertCSVHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertCSVHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.csv.rawValue
|
|
item?.btnTag = KMToolbarType.csv.rawValue
|
|
item?.toolTip = NSLocalizedString("PDF To CSV", comment: "")
|
|
item?.toolTip = NSLocalizedString("PDF To CSV", comment: "")
|
|
@@ -1834,6 +1846,8 @@ extension KMToolbarViewController {
|
|
item?.promptIdentifier = identifier
|
|
item?.promptIdentifier = identifier
|
|
} else if identifier == KMToolbarConversionHTMLItemIdentifier {
|
|
} else if identifier == KMToolbarConversionHTMLItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertHtml)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertHtml)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertHtmlHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertHtmlHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.html.rawValue
|
|
item?.btnTag = KMToolbarType.html.rawValue
|
|
item?.toolTip = NSLocalizedString("PDF To HTML", comment: "")
|
|
item?.toolTip = NSLocalizedString("PDF To HTML", comment: "")
|
|
@@ -1842,6 +1856,8 @@ extension KMToolbarViewController {
|
|
item?.btnAction = #selector(conversionMenuItemAction)
|
|
item?.btnAction = #selector(conversionMenuItemAction)
|
|
} else if identifier == KMToolbarConversionTextItemIdentifier {
|
|
} else if identifier == KMToolbarConversionTextItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertText)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertText)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertTextHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertTextHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.conversion_text.rawValue
|
|
item?.btnTag = KMToolbarType.conversion_text.rawValue
|
|
item?.toolTip = NSLocalizedString("PDF To Text", comment: "")
|
|
item?.toolTip = NSLocalizedString("PDF To Text", comment: "")
|
|
@@ -1850,6 +1866,8 @@ extension KMToolbarViewController {
|
|
item?.btnAction = #selector(conversionMenuItemAction)
|
|
item?.btnAction = #selector(conversionMenuItemAction)
|
|
} else if identifier == KMToolbarConversionImageItemIdentifier {
|
|
} else if identifier == KMToolbarConversionImageItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertPDFToIMG)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertPDFToIMG)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertPDFToIMGHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertPDFToIMGHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.conversion_image.rawValue
|
|
item?.btnTag = KMToolbarType.conversion_image.rawValue
|
|
// item?.toolTip = NSLocalizedString("Convert PDF to JPEG, PNG, TIFF, BMP, GIF or TGA files", comment: "")
|
|
// item?.toolTip = NSLocalizedString("Convert PDF to JPEG, PNG, TIFF, BMP, GIF or TGA files", comment: "")
|
|
@@ -1873,8 +1891,9 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if item?.itemIdentifier == KMToolbarConversionExportImageItemIdentifier {
|
|
} else if item?.itemIdentifier == KMToolbarConversionExportImageItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertExportImage)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertExportImage)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertExportImageHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertExportImageHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
-// item?.toolTip = NSLocalizedString("The range you can extract images includes current page, odd page, even page, custom page, and all pages.", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("Extract Images", comment: "")
|
|
item?.titleName = NSLocalizedString("Extract Images", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
@@ -1891,6 +1910,8 @@ extension KMToolbarViewController {
|
|
item?.titleName = NSLocalizedString("OCR", comment: "")
|
|
item?.titleName = NSLocalizedString("OCR", comment: "")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.image = NSImage(named: "KMImageNameToolbarOCRNorSec")
|
|
item?.image = NSImage(named: "KMImageNameToolbarOCRNorSec")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertOCRHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertOCRHighlight")
|
|
item?.boxImagePosition = .imageLeft
|
|
item?.boxImagePosition = .imageLeft
|
|
item?.toolTip = NSLocalizedString("Recognize text from Image-based or Scanned PDF with OCR", comment: "")
|
|
item?.toolTip = NSLocalizedString("Recognize text from Image-based or Scanned PDF with OCR", comment: "")
|
|
item?.btnAction = #selector(OCRbtnAction2)
|
|
item?.btnAction = #selector(OCRbtnAction2)
|
|
@@ -1900,8 +1921,9 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if item?.itemIdentifier == KMToolbarConversionCreatePDFItemIdentifier {
|
|
} else if item?.itemIdentifier == KMToolbarConversionCreatePDFItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertCreatPDF)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarConvertCreatPDF)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertCreatpdfHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarConvertCreatpdfHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
-// item?.toolTip = NSLocalizedString("Convert JPEG, JPG, PNG, TIFF, BMP or PSD files to PDFs", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("New PDF Document", comment: "")
|
|
item?.titleName = NSLocalizedString("New PDF Document", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
@@ -2001,6 +2023,8 @@ extension KMToolbarViewController {
|
|
let identifier = item?.itemIdentifier
|
|
let identifier = item?.itemIdentifier
|
|
if identifier == KMToolbarToolTextFieldItemIdentifier {
|
|
if identifier == KMToolbarToolTextFieldItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormTextfield)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormTextfield)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormTextfieldHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormTextfieldHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.textField.rawValue
|
|
item?.btnTag = CAnnotationType.textField.rawValue
|
|
item?.toolTip = NSLocalizedString("Text Field", comment: "")
|
|
item?.toolTip = NSLocalizedString("Text Field", comment: "")
|
|
@@ -2013,6 +2037,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolCheckBoxItemIdentifier {
|
|
} else if identifier == KMToolbarToolCheckBoxItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormCheckbox)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormCheckbox)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormCheckboxHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormCheckboxHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.checkBox.rawValue
|
|
item?.btnTag = CAnnotationType.checkBox.rawValue
|
|
item?.toolTip = NSLocalizedString("Check Box", comment: "")
|
|
item?.toolTip = NSLocalizedString("Check Box", comment: "")
|
|
@@ -2021,6 +2047,8 @@ extension KMToolbarViewController {
|
|
item?.btnAction = #selector(changeAnnotationMode)
|
|
item?.btnAction = #selector(changeAnnotationMode)
|
|
} else if identifier == KMToolbarToolRadioButtonItemIdentifier {
|
|
} else if identifier == KMToolbarToolRadioButtonItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormRadiobutton)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormRadiobutton)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormRadiobuttonHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormRadiobuttonHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.radioButton.rawValue
|
|
item?.btnTag = CAnnotationType.radioButton.rawValue
|
|
item?.toolTip = NSLocalizedString("Radio Button", comment: "")
|
|
item?.toolTip = NSLocalizedString("Radio Button", comment: "")
|
|
@@ -2033,6 +2061,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolListBoxItemIdentifier {
|
|
} else if identifier == KMToolbarToolListBoxItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormListbox)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormListbox)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormListboxHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormListboxHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.listMenu.rawValue
|
|
item?.btnTag = CAnnotationType.listMenu.rawValue
|
|
item?.toolTip = NSLocalizedString("List Box", comment: "")
|
|
item?.toolTip = NSLocalizedString("List Box", comment: "")
|
|
@@ -2045,6 +2075,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolPullDownmenuItemIdentifier {
|
|
} else if identifier == KMToolbarToolPullDownmenuItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormPulldownmenu)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormPulldownmenu)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormPulldownmenuHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormPulldownmenuHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.comboBox.rawValue
|
|
item?.btnTag = CAnnotationType.comboBox.rawValue
|
|
item?.toolTip = NSLocalizedString("Combo Box", comment: "")
|
|
item?.toolTip = NSLocalizedString("Combo Box", comment: "")
|
|
@@ -2057,6 +2089,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolButtonIdentifier {
|
|
} else if identifier == KMToolbarToolButtonIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormButton)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormButton)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormButtonHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormButtonHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.actionButton.rawValue
|
|
item?.btnTag = CAnnotationType.actionButton.rawValue
|
|
item?.toolTip = NSLocalizedString("Button", comment: "")
|
|
item?.toolTip = NSLocalizedString("Button", comment: "")
|
|
@@ -2069,6 +2103,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolSignBoxIdentifier {
|
|
} else if identifier == KMToolbarToolSignBoxIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormSign)
|
|
item?.image = NSImage(named: KMImageNameUXIconSubtoolbarFormSign)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormSignHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconSubtoolbarFormSignHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = CAnnotationType.signature.rawValue
|
|
item?.btnTag = CAnnotationType.signature.rawValue
|
|
item?.toolTip = NSLocalizedString("Signature", comment: "")
|
|
item?.toolTip = NSLocalizedString("Signature", comment: "")
|
|
@@ -2081,6 +2117,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolFormAlignIdentifier {
|
|
} else if identifier == KMToolbarToolFormAlignIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconPropertybarAlignLeftToor)
|
|
item?.image = NSImage(named: KMImageNameUXIconPropertybarAlignLeftToor)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconPropertybarAlignLeftToorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconPropertybarAlignLeftToorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
// item?.toolTip = NSLocalizedString("Alignment", comment: "")
|
|
// item?.toolTip = NSLocalizedString("Alignment", comment: "")
|
|
item?.titleName = NSLocalizedString("", comment: "")
|
|
item?.titleName = NSLocalizedString("", comment: "")
|
|
@@ -2107,6 +2145,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolFormMoreIdentifier {
|
|
} else if identifier == KMToolbarToolFormMoreIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameMainToolFormMore")
|
|
item?.image = NSImage(named: "KMImageNameMainToolFormMore")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameMainToolFormMoreHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameMainToolFormMoreHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.toolTip = NSLocalizedString("More", comment: "")
|
|
item?.toolTip = NSLocalizedString("More", comment: "")
|
|
item?.titleName = NSLocalizedString("More", comment: "")
|
|
item?.titleName = NSLocalizedString("More", comment: "")
|
|
@@ -2181,14 +2221,13 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarComparisonItemIdentifier {
|
|
} else if identifier == KMToolbarComparisonItemIdentifier {
|
|
item?.image = NSImage(named: KMImageNameUXIconBatchComparison)
|
|
item?.image = NSImage(named: KMImageNameUXIconBatchComparison)
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchComparisonHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchComparisonHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.comparison.rawValue
|
|
item?.btnTag = KMToolbarType.comparison.rawValue
|
|
-// item?.toolTip = NSLocalizedString("Compare", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("Compare", comment: "")
|
|
item?.titleName = NSLocalizedString("Compare", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
-// item?.btnAction = #selector(_itemAction)
|
|
|
|
-
|
|
|
|
let menuItem = NSMenuItem.init(title: "Bates Number", action: #selector(_menuItemAction), target: self)
|
|
let menuItem = NSMenuItem.init(title: "Bates Number", action: #selector(_menuItemAction), target: self)
|
|
let subMenu = NSMenu()
|
|
let subMenu = NSMenu()
|
|
subMenu.addItem(title: NSLocalizedString("Side-by-Side View", comment: ""), action: #selector(_comparisonAction), target: self, tag: 1)
|
|
subMenu.addItem(title: NSLocalizedString("Side-by-Side View", comment: ""), action: #selector(_comparisonAction), target: self, tag: 1)
|
|
@@ -2197,13 +2236,13 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolBatesItemIdentifier {
|
|
} else if identifier == KMToolbarToolBatesItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchBatesNor")
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchBatesNor")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchBatesNorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchBatesNorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.bates.rawValue
|
|
item?.btnTag = KMToolbarType.bates.rawValue
|
|
-// item?.toolTip = NSLocalizedString("Add PDF Bates numbering to your legal, medical, or business documents", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("Bates Numbers", comment: "")
|
|
item?.titleName = NSLocalizedString("Bates Numbers", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
-// item?.btnAction = #selector(batesMenuAction)
|
|
|
|
|
|
|
|
let menuItem = NSMenuItem.init(title: "Bates Numbers", action: #selector(batesMenuAction), target: self)
|
|
let menuItem = NSMenuItem.init(title: "Bates Numbers", action: #selector(batesMenuAction), target: self)
|
|
let subMenu = NSMenu()
|
|
let subMenu = NSMenu()
|
|
@@ -2233,13 +2272,13 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolHeaderFooterItemIdentifier {
|
|
} else if identifier == KMToolbarToolHeaderFooterItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchHeaderandfooterNor")
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchHeaderandfooterNor")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchHeaderandfooterNorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchHeaderandfooterNorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.headerAndFooter.rawValue
|
|
item?.btnTag = KMToolbarType.headerAndFooter.rawValue
|
|
-// item?.toolTip = NSLocalizedString("Insert header, footer, and page numbers to PDF", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("Header & Footer", comment: "")
|
|
item?.titleName = NSLocalizedString("Header & Footer", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
-// item?.btnAction = #selector(headerfooterMenuAction)
|
|
|
|
|
|
|
|
let menuItem = NSMenuItem.init(title: "Header & Footer", action: #selector(headerfooterMenuAction), target: self)
|
|
let menuItem = NSMenuItem.init(title: "Header & Footer", action: #selector(headerfooterMenuAction), target: self)
|
|
let subMenu = NSMenu()
|
|
let subMenu = NSMenu()
|
|
@@ -2252,14 +2291,14 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolBackgroundItemIdentifier {
|
|
} else if identifier == KMToolbarToolBackgroundItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchBackgroundNor")
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchBackgroundNor")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchBackgroundNorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchBackgroundNorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.background.rawValue
|
|
item?.btnTag = KMToolbarType.background.rawValue
|
|
-// item?.toolTip = NSLocalizedString("Insert PDF page background by color or image", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("Background", comment: "")
|
|
item?.titleName = NSLocalizedString("Background", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
-// item?.btnAction = #selector(backgroundMenuAction)
|
|
|
|
-
|
|
|
|
|
|
+
|
|
let menuItem = NSMenuItem.init(title: "Background", action: #selector(backgroundMenuAction), target: self)
|
|
let menuItem = NSMenuItem.init(title: "Background", action: #selector(backgroundMenuAction), target: self)
|
|
let subMenu = NSMenu()
|
|
let subMenu = NSMenu()
|
|
subMenu.addItem(title: NSLocalizedString("Add Background", comment: ""), action: #selector(_backgroundAction), target: self, tag: 1)
|
|
subMenu.addItem(title: NSLocalizedString("Add Background", comment: ""), action: #selector(_backgroundAction), target: self, tag: 1)
|
|
@@ -2271,13 +2310,13 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolWatermarkItemIdentifier {
|
|
} else if identifier == KMToolbarToolWatermarkItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchWatermarkNor")
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchWatermarkNor")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchWatermarkNorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchWatermarkNorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.watermark.rawValue
|
|
item?.btnTag = KMToolbarType.watermark.rawValue
|
|
-// item?.toolTip = NSLocalizedString("Watermark", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("Watermark", comment: "")
|
|
item?.titleName = NSLocalizedString("Watermark", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
-// item?.btnAction = #selector(watermarkMenuAction)
|
|
|
|
|
|
|
|
let menuItem = NSMenuItem.init(title: "Watermark", action: #selector(watermarkMenuAction), target: self)
|
|
let menuItem = NSMenuItem.init(title: "Watermark", action: #selector(watermarkMenuAction), target: self)
|
|
let subMenu = NSMenu()
|
|
let subMenu = NSMenu()
|
|
@@ -2290,6 +2329,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
} else if identifier == KMToolbarToolCompressItemIdentifier {
|
|
} else if identifier == KMToolbarToolCompressItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchOptimizeNor")
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchOptimizeNor")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchOptimizeNorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchOptimizeNorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.compress.rawValue
|
|
item?.btnTag = KMToolbarType.compress.rawValue
|
|
item?.boxImagePosition = .imageLeft
|
|
item?.boxImagePosition = .imageLeft
|
|
@@ -2298,12 +2339,12 @@ extension KMToolbarViewController {
|
|
item?.btnAction = #selector(compressMenuAction)
|
|
item?.btnAction = #selector(compressMenuAction)
|
|
} else if identifier == KMToolbarToolSecureItemIdentifier {
|
|
} else if identifier == KMToolbarToolSecureItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchSafeNor")
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchSafeNor")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchSafeNorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchSafeNorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
-// item?.toolTip = NSLocalizedString("Batch encrypting PDF documents", comment: "")
|
|
|
|
item?.titleName = NSLocalizedString("Security", comment: "")
|
|
item?.titleName = NSLocalizedString("Security", comment: "")
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.boxImagePosition = .imageExpandLeft
|
|
item?.needExpandAction = true
|
|
item?.needExpandAction = true
|
|
-// item?.btnAction = #selector(secureMenuAction)
|
|
|
|
|
|
|
|
let menuItem = NSMenuItem.init(title: NSLocalizedString("Security", comment: ""), action: #selector(secureMenuAction), target: self)
|
|
let menuItem = NSMenuItem.init(title: NSLocalizedString("Security", comment: ""), action: #selector(secureMenuAction), target: self)
|
|
let subMenu = NSMenu()
|
|
let subMenu = NSMenu()
|
|
@@ -2313,6 +2354,8 @@ extension KMToolbarViewController {
|
|
item?.menuFormRepresentation = menuItem
|
|
item?.menuFormRepresentation = menuItem
|
|
}else if identifier == KMToolbarToolMergeItemIdentifier {
|
|
}else if identifier == KMToolbarToolMergeItemIdentifier {
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchMergeNor")
|
|
item?.image = NSImage(named: "KMImageNameUXIconBatchMergeNor")
|
|
|
|
+ item?.selectedImage = NSImage(named: "KMImageNameUXIconBatchMergeNorHighlight")
|
|
|
|
+ item?.alternateImage = NSImage(named: "KMImageNameUXIconBatchMergeNorHighlight")
|
|
item?.target = self
|
|
item?.target = self
|
|
item?.btnTag = KMToolbarType.merge.rawValue
|
|
item?.btnTag = KMToolbarType.merge.rawValue
|
|
item?.toolTip = NSLocalizedString("Combine multiple documents into a new PDF, or borrow individual pages", comment: "")
|
|
item?.toolTip = NSLocalizedString("Combine multiple documents into a new PDF, or borrow individual pages", comment: "")
|