|
@@ -4531,6 +4531,8 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
|
|
|
|
_ = CustomAlertView.alertView(message: "ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
_ = CustomAlertView.alertView(message: "ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
|
|
+
|
|
|
|
+ self.trackEvent(toolMode: .measureToolMode)
|
|
} else if index == 2 {
|
|
} else if index == 2 {
|
|
self.listView.annotationType = .polyLine
|
|
self.listView.annotationType = .polyLine
|
|
|
|
|
|
@@ -4546,6 +4548,8 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
|
|
|
|
_ = CustomAlertView.alertView(message: "Double-click to finish drawing. Press ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
_ = CustomAlertView.alertView(message: "Double-click to finish drawing. Press ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
|
|
+
|
|
|
|
+ self.trackEvent(toolMode: .measureToolMode)
|
|
} else if index == 3 {
|
|
} else if index == 3 {
|
|
self.listView.annotationType = .polyGon
|
|
self.listView.annotationType = .polyGon
|
|
|
|
|
|
@@ -4561,6 +4565,8 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
|
|
|
|
_ = CustomAlertView.alertView(message: "Double-click to finish drawing. Press ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
_ = CustomAlertView.alertView(message: "Double-click to finish drawing. Press ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
|
|
+
|
|
|
|
+ self.trackEvent(toolMode: .measureToolMode)
|
|
} else if index == 4 {
|
|
} else if index == 4 {
|
|
self.listView.annotationType = .square
|
|
self.listView.annotationType = .square
|
|
|
|
|
|
@@ -4576,6 +4582,8 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
self.toolbarController.findItem(KMToolbarMeasureItemIdentifier)?.isSelected = true
|
|
|
|
|
|
_ = CustomAlertView.alertView(message: "ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
_ = CustomAlertView.alertView(message: "ESC to exit continuous measuring mode.", fromView: self.view, withStyle: .black)
|
|
|
|
+
|
|
|
|
+ self.trackEvent(toolMode: .measureToolMode)
|
|
} else {
|
|
} else {
|
|
if let isVisible = distanceMeasureInfoWindowController!.window?.isVisible, isVisible {
|
|
if let isVisible = distanceMeasureInfoWindowController!.window?.isVisible, isVisible {
|
|
distanceMeasureInfoWindowController?.hideFloatingWindow()
|
|
distanceMeasureInfoWindowController?.hideFloatingWindow()
|
|
@@ -4950,6 +4958,7 @@ extension KMMainViewController : KMMainToolbarControllerDelegate {
|
|
self.toolbarController.clickItem(KMDocumentEditToolbarItemIdentifier)
|
|
self.toolbarController.clickItem(KMDocumentEditToolbarItemIdentifier)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ self.trackEvent_replace()
|
|
let winC = KMSearchReplaceWindowController(with: self.listView, type: .replace)
|
|
let winC = KMSearchReplaceWindowController(with: self.listView, type: .replace)
|
|
self.currentWindowController = winC
|
|
self.currentWindowController = winC
|
|
winC.replaceCallback = { [weak self] in
|
|
winC.replaceCallback = { [weak self] in
|
|
@@ -5540,8 +5549,10 @@ extension KMMainViewController {
|
|
FMTrackEventManager.defaultManager.trackEvent(event: "SubTbr_Form", withProperties: ["SubTbr_Btn" : "Btn_SubTbr_Form_Button"])
|
|
FMTrackEventManager.defaultManager.trackEvent(event: "SubTbr_Form", withProperties: ["SubTbr_Btn" : "Btn_SubTbr_Form_Button"])
|
|
} else if (type == .signature) {
|
|
} else if (type == .signature) {
|
|
FMTrackEventManager.defaultManager.trackEvent(event: "SubTbr_Form", withProperties: ["SubTbr_Btn" : "Btn_SubTbr_Form_Signature"])
|
|
FMTrackEventManager.defaultManager.trackEvent(event: "SubTbr_Form", withProperties: ["SubTbr_Btn" : "Btn_SubTbr_Form_Signature"])
|
|
- } else {
|
|
|
|
-
|
|
|
|
|
|
+ } else if (type == .squiggly) {
|
|
|
|
+ FMTrackEventManager.defaultManager.trackEvent(event: "SubTbr_Tools", withProperties: ["SubTbr_Btn" : "Btn_SubTbr_Tools_Squiglly"])
|
|
|
|
+ } else if (type == .eraser) {
|
|
|
|
+ FMTrackEventManager.defaultManager.trackEvent(event: "SubTbr_Tools", withProperties: ["SubTbr_Btn" : "Btn_SubTbr_Tools_Erasder"])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5554,6 +5565,8 @@ extension KMMainViewController {
|
|
KMAnalytics.trackEvent(eventName: "Btn_SubTbr_Scroll", parameters: [
|
|
KMAnalytics.trackEvent(eventName: "Btn_SubTbr_Scroll", parameters: [
|
|
KMAnalytics.Parameter.categoryKey : KMAnalytics.Category.subTbr_annotation,
|
|
KMAnalytics.Parameter.categoryKey : KMAnalytics.Category.subTbr_annotation,
|
|
KMAnalytics.Parameter.labelKey : KMAnalytics.Label.subTbr_Btn], platform: .AppCenter, appTarget: .all)
|
|
KMAnalytics.Parameter.labelKey : KMAnalytics.Label.subTbr_Btn], platform: .AppCenter, appTarget: .all)
|
|
|
|
+ } else if mode == .measureToolMode {
|
|
|
|
+ FMTrackEventManager.defaultManager.trackEvent(event: "SubTbr_Editor", withProperties: ["SubTbr_Btn" : "Btn_SubTbr_Editor_Measure"])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -5596,6 +5609,12 @@ extension KMMainViewController {
|
|
KMAnalytics.Parameter.categoryKey : KMAnalytics.Category.subTbr_Tools,
|
|
KMAnalytics.Parameter.categoryKey : KMAnalytics.Category.subTbr_Tools,
|
|
KMAnalytics.Parameter.labelKey : KMAnalytics.Label.subTbr_Btn], platform: .AppCenter, appTarget: .all)
|
|
KMAnalytics.Parameter.labelKey : KMAnalytics.Label.subTbr_Btn], platform: .AppCenter, appTarget: .all)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ func trackEvent_replace() -> Void {
|
|
|
|
+ KMAnalytics.trackEvent(eventName: "Btn_Tbr_ReplaceText", parameters: [
|
|
|
|
+ KMAnalytics.Parameter.categoryKey : KMAnalytics.Category.tbr,
|
|
|
|
+ KMAnalytics.Parameter.labelKey : KMAnalytics.Label.tbr_Btn], platform: .AppCenter, appTarget: .all)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
extension KMMainViewController {
|
|
extension KMMainViewController {
|