|
@@ -7194,16 +7194,43 @@ extension KMMainViewController: ComponentGroupDelegate {
|
|
|
UserDefaults.standard.setValue(true, forKey: settingsShowQuickActionBarKey)
|
|
|
SettingsManager.sharedInstance.showQuickActionBar = true
|
|
|
reloadPopUIWindow()
|
|
|
- } else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Normal_LinkReade) {
|
|
|
-
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Normal_SortFirstAnnotation) {
|
|
|
- listView.menuItemClick_BringFront(nil)
|
|
|
+ let activeAnnotations = listView.activeAnnotations
|
|
|
+ for i in 0 ..< (activeAnnotations?.count ?? 0){
|
|
|
+ let object = activeAnnotations?[i]
|
|
|
+ if let an = object as? CPDFAnnotation {
|
|
|
+ listView.bringAnnotationFront(an, page: an.page)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ listView.setNeedsDisplayAnnotationViewForVisiblePages()
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Normal_SortTopAnnotation) {
|
|
|
- listView.menuItemClick_BringForward(nil)
|
|
|
+ let activeAnnotations = listView.activeAnnotations
|
|
|
+ for i in 0 ..< (activeAnnotations?.count ?? 0){
|
|
|
+ let object = activeAnnotations?[i]
|
|
|
+ if let an = object as? CPDFAnnotation {
|
|
|
+ listView.bringAnnotationForward(an, page: an.page)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ listView.setNeedsDisplayAnnotationViewForVisiblePages()
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Normal_SortBottomAnnotation) {
|
|
|
- listView.menuItemClick_SendBackward(nil)
|
|
|
+ let activeAnnotations = listView.activeAnnotations
|
|
|
+ for i in 0 ..< (activeAnnotations?.count ?? 0){
|
|
|
+ let object = activeAnnotations?[i]
|
|
|
+ if let an = object as? CPDFAnnotation {
|
|
|
+ listView.sendAnnotationBackward(an, page: an.page)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ listView.setNeedsDisplayAnnotationViewForVisiblePages()
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Normal_SortLastAnnotation) {
|
|
|
- listView.menuItemClick_SendBack(nil)
|
|
|
+ let activeAnnotations = listView.activeAnnotations
|
|
|
+ for i in 0 ..< (activeAnnotations?.count ?? 0){
|
|
|
+ let object = activeAnnotations?[i]
|
|
|
+ if let an = object as? CPDFAnnotation {
|
|
|
+ listView.sendAnnotationBack(an, page: an.page)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ listView.setNeedsDisplayAnnotationViewForVisiblePages()
|
|
|
} else if(menuItemProperty?.identifier == PDFViewMenuIdentifier_Normal_Content) {
|
|
|
if let activeAnnotation = listView.activeAnnotation {
|
|
|
listView.edit(activeAnnotation)
|