|
@@ -639,10 +639,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
|
|
|
KMTools.openFAQWebsite()
|
|
|
}
|
|
|
|
|
|
- @IBAction func menuItemAction_morePudact(_ sender: NSMenuItem) -> Void {
|
|
|
- KMTools.openMoreProductWebsite()
|
|
|
- }
|
|
|
-
|
|
|
@IBAction func menuItemAction_freePDFTemplate(_ sender: NSMenuItem) -> Void {
|
|
|
KMTools.openFreePDFTemplatesWebsite()
|
|
|
}
|
|
@@ -651,18 +647,10 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
|
|
|
KMEmailSubWindowController().showWindow(nil)
|
|
|
}
|
|
|
|
|
|
- @IBAction func menuItemAction_poweredByComPDFKit(_ sender: NSMenuItem) -> Void {
|
|
|
- KMTools.openComPDFKitPowerWebsite()
|
|
|
- }
|
|
|
-
|
|
|
@IBAction func menuItemAction_feekback(_ sender: NSMenuItem) -> Void {
|
|
|
KMTools.proposeNewFeature()
|
|
|
}
|
|
|
|
|
|
- @IBAction func menuItemAction_giveFiveStar(_ sender: NSMenuItem) -> Void {
|
|
|
- KMTools.rateUs()
|
|
|
- }
|
|
|
-
|
|
|
@objc func restoreSubscriptions(_ sender: NSMenuItem) {
|
|
|
#if VERSION_FREE
|
|
|
KMPrint("restoreSubscriptions ...")
|
|
@@ -714,60 +702,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- @IBAction func volumeDiscount(_ sender: NSMenuItem) {
|
|
|
- var tStrHttpUrl = "https://www.pdfreaderpro.com/vpp-purchase-program"
|
|
|
- #if VERSION_DMG
|
|
|
- tStrHttpUrl = "https://www.pdfreaderpro.com/vpp-purchase-program?utm_source=pdfdmg&utm_campaign=menubar_vpp"
|
|
|
- if SKInspectPublicTool.currentisLanguageHans() {
|
|
|
- tStrHttpUrl = "https://www.pdfreaderpro.com/vpp-purchase-program?utm_source=pdfdmg&utm_campaign=menubar_vpp_zh"
|
|
|
- }
|
|
|
- #else
|
|
|
- tStrHttpUrl = "https://www.pdfreaderpro.com/vpp-purchase-program?utm_source=pdfmacstore&utm_campaign=menubar_vpp"
|
|
|
- if SKInspectPublicTool.currentisLanguageHans() {
|
|
|
- tStrHttpUrl = "https://www.pdfreaderpro.com/vpp-purchase-program?utm_source=pdfmacstore&utm_campaign=menubar_vpp_zh"
|
|
|
- }
|
|
|
- #endif
|
|
|
- guard let url = URL(string: tStrHttpUrl) else {
|
|
|
- NSSound.beep()
|
|
|
- return
|
|
|
- }
|
|
|
- let tWorkSpace = NSWorkspace.shared
|
|
|
- if tWorkSpace.open(url) == false {
|
|
|
- tWorkSpace.open(url)
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- @IBAction func crossPlatformAction(_ sender: NSMenuItem) {
|
|
|
- var tStrHttpUrl = "https://www.pdfreaderpro.com/store/pdf-pro-permanent-cross-platform-package?utm_source=pdf_pro_dmgs&utm_medium=toptbr_help&utm_campaign=cross_platform"
|
|
|
- if SKInspectPublicTool.currentisLanguageHans() {
|
|
|
- tStrHttpUrl = "https://www.pdfreaderpro.com/zh-cn/store/pdf-pro-permanent-cross-platform-package?utm_source=pdf_pro_dmg&utm_medium=toptbr_help_cn&utm_campaign=cross_platform"
|
|
|
- }
|
|
|
- guard let url = URL(string: tStrHttpUrl) else {
|
|
|
- return
|
|
|
- }
|
|
|
- let tWorkSpace = NSWorkspace.shared
|
|
|
- if tWorkSpace.open(url) == false {
|
|
|
- tWorkSpace.open(url)
|
|
|
- }
|
|
|
- #if VERSION_DMG
|
|
|
- FMTrackEventManager.defaultManager.trackEvent(event: "Menubar", withProperties: ["Menubar_Btn" : "Menubar_Btn_Help_CrossPlatform"])
|
|
|
- #endif
|
|
|
- }
|
|
|
-
|
|
|
- @IBAction func EducationDiscountAction(_ sender: NSMenuItem) {
|
|
|
- let tStrHttpUrl = KMLocalizedString("https://www.pdfreaderpro.com/store?mode=edu#utm_source=mac_app&utm_medium=pdf_pro_dmg&utm_content=menu_bar_click", nil)
|
|
|
- guard let url = URL(string: tStrHttpUrl) else {
|
|
|
- return
|
|
|
- }
|
|
|
- let tWorkSpace = NSWorkspace.shared
|
|
|
- if tWorkSpace.open(url) == false {
|
|
|
- tWorkSpace.open(url)
|
|
|
- }
|
|
|
- #if VERSION_DMG
|
|
|
- FMTrackEventManager.defaultManager.trackEvent(event: "Menubar", withProperties: ["Menubar_Btn" : "Menubar_Btn_Help_EduDiscount"])
|
|
|
- #endif
|
|
|
- }
|
|
|
-
|
|
|
@IBAction func aiToolsAction(_ sender: NSMenuItem) {
|
|
|
#if VERSION_DMG
|
|
|
KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|