|
@@ -396,6 +396,7 @@ class KMThumbnailViewController: NSViewController {
|
|
|
|
|
|
@IBAction func rotatePageItemAction(menu:NSMenuItem) {
|
|
@IBAction func rotatePageItemAction(menu:NSMenuItem) {
|
|
let indexs = self.thumbnailView.collectionView.selectionIndexes
|
|
let indexs = self.thumbnailView.collectionView.selectionIndexes
|
|
|
|
+ let indexPaths = self.thumbnailView.collectionView.selectionIndexPaths
|
|
if indexs.count >= 0 {
|
|
if indexs.count >= 0 {
|
|
let newDocument = self.thumbnailView.document
|
|
let newDocument = self.thumbnailView.document
|
|
for index in indexs {
|
|
for index in indexs {
|
|
@@ -412,11 +413,13 @@ class KMThumbnailViewController: NSViewController {
|
|
}
|
|
}
|
|
self.listView.layoutDocumentView()
|
|
self.listView.layoutDocumentView()
|
|
self.thumbnailView.reloadData()
|
|
self.thumbnailView.reloadData()
|
|
|
|
+ self.thumbnailView.collectionView.selectItems(at: indexPaths, scrollPosition: .top)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@IBAction func leftRotatePageItemAction(menu:NSMenuItem) {
|
|
@IBAction func leftRotatePageItemAction(menu:NSMenuItem) {
|
|
let indexs = self.thumbnailView.collectionView.selectionIndexes
|
|
let indexs = self.thumbnailView.collectionView.selectionIndexes
|
|
|
|
+ let indexPaths = self.thumbnailView.collectionView.selectionIndexPaths
|
|
if indexs.count >= 0 {
|
|
if indexs.count >= 0 {
|
|
let newDocument = self.thumbnailView.document
|
|
let newDocument = self.thumbnailView.document
|
|
for index in indexs {
|
|
for index in indexs {
|
|
@@ -433,6 +436,7 @@ class KMThumbnailViewController: NSViewController {
|
|
}
|
|
}
|
|
self.listView.layoutDocumentView()
|
|
self.listView.layoutDocumentView()
|
|
self.thumbnailView.reloadData()
|
|
self.thumbnailView.reloadData()
|
|
|
|
+ self.thumbnailView.collectionView.selectItems(at: indexPaths, scrollPosition: .top)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|