|
@@ -522,7 +522,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
override func deleteAction() {
|
|
override func deleteAction() {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Delete_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -583,7 +585,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
override func rightRotateAction() {
|
|
override func rightRotateAction() {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Rotate_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -655,7 +659,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
override func extractAction() {
|
|
override func extractAction() {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Extract_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -675,7 +681,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
override func replaceAction() {
|
|
override func replaceAction() {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Replace_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -711,7 +719,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
override func splitAction() {
|
|
override func splitAction() {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Split_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -757,7 +767,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
// return;
|
|
// return;
|
|
// }
|
|
// }
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Split_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -836,7 +848,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
override func reverseAction() {
|
|
override func reverseAction() {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Reverse_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1125,7 +1139,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
@objc func item_insertCustomPage(sender: NSMenuItem?) {
|
|
@objc func item_insertCustomPage(sender: NSMenuItem?) {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_InsertBlankPage_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1180,7 +1196,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
@objc func item_insertFromImage(sender: NSMenuItem?) {
|
|
@objc func item_insertFromImage(sender: NSMenuItem?) {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_InsertImage_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1233,7 +1251,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
@objc func item_insertFromClipboard(sender: NSMenuItem?) {
|
|
@objc func item_insertFromClipboard(sender: NSMenuItem?) {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_InsertClipboard_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
// self.choosePositionWindow {[weak self] index in
|
|
// self.choosePositionWindow {[weak self] index in
|
|
@@ -1253,7 +1273,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
@objc func item_insertFromScanner(sender: NSMenuItem?) {
|
|
@objc func item_insertFromScanner(sender: NSMenuItem?) {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_InsertSacnner_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1325,7 +1347,9 @@ class KMPDFEditViewController: KMPDFThumbViewBaseController {
|
|
|
|
|
|
func extractSelectPageItemAction() {
|
|
func extractSelectPageItemAction() {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
if IAPProductsManager.default().isAvailableAllFunction() == false {
|
|
- KMPurchaseCompareWindowController.sharedInstance().showWindow(nil)
|
|
|
|
|
|
+ let winC = KMPurchaseCompareWindowController.sharedInstance()
|
|
|
|
+ winC?.saveEventName("Reading_Extract_BuyNow")
|
|
|
|
+ winC?.showWindow(nil)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|