|
@@ -60,7 +60,6 @@
|
|
|
|
|
|
UIMenuItem * opacityItem = [[UIMenuItem alloc] initWithTitle:NSLocalizedString(@"Opacity", nil) action:@selector(opacityEditingItemAction:)];
|
|
|
|
|
|
- UIMenuItem * rotateItem = [[UIMenuItem alloc] initWithTitle:NSLocalizedString(@"Rotate", nil) action:@selector(rotateActionClick:)];
|
|
|
UIMenuItem * hMirrorItem = [[UIMenuItem alloc] initWithTitle:NSLocalizedString(@"HMirror", nil) action:@selector(horizontalMirrorClick:)];
|
|
|
UIMenuItem * vMirrorItem = [[UIMenuItem alloc] initWithTitle:NSLocalizedString(@"VMirror", nil) action:@selector(verticalMirrorClick:)];
|
|
|
|
|
@@ -71,7 +70,6 @@
|
|
|
[menuItems addObject:leftRotateItem];
|
|
|
[menuItems addObject:rightRotateItem];
|
|
|
[menuItems addObject:rPlaceItem];
|
|
|
- [menuItems addObject:rotateItem];
|
|
|
[menuItems addObject:cropItem];
|
|
|
[menuItems addObject:opacityItem];
|
|
|
|
|
@@ -126,12 +124,12 @@
|
|
|
|
|
|
- (void)doneActionClick:(UIMenuItem*)menuItem{
|
|
|
CPDFEditImageArea * editArea = (CPDFEditImageArea *)self.editingArea;
|
|
|
- [self cropEditArea:self.editingArea WithRect:editArea.cropRect];
|
|
|
- [self endCropEditArea:self.editingArea];
|
|
|
+ [self cropEditArea:editArea withRect:editArea.cropRect];
|
|
|
+ [self endCropEditArea:editArea];
|
|
|
}
|
|
|
|
|
|
- (void)cancelActionClick:(UIMenuItem*)menuItem{
|
|
|
- [self endCropEditArea:self.editingArea];
|
|
|
+ [self endCropEditArea:(CPDFEditImageArea*)self.editingArea];
|
|
|
}
|
|
|
|
|
|
- (void)deleteActionClick:(UIMenuItem*)menuItem{
|
|
@@ -146,8 +144,9 @@
|
|
|
}
|
|
|
|
|
|
- (void)propertyEditingItemAction:(UIMenuItem*)menuItem {
|
|
|
- if(self.performDelegate && [self.performDelegate respondsToSelector:@selector(PDFViewCustomMenuClick:identifier:)]){
|
|
|
- [self.performDelegate PDFViewCustomMenuClick:self identifier:@"PropertyItem"];
|
|
|
+
|
|
|
+ if(self.performDelegate && [self.performDelegate respondsToSelector:@selector(PDFListViewCustomMenuClick:identifier:)]) {
|
|
|
+ [self.performDelegate PDFListViewCustomMenuClick:self identifier:@"PropertyItem"];
|
|
|
}
|
|
|
}
|
|
|
|