|
@@ -272,7 +272,7 @@
|
|
|
|
|
|
_propertiesBtn = [[UIButton alloc] initWithFrame:CGRectMake(offset, topOffset, buttonSize, buttonSize)];
|
|
|
[_propertiesBtn setImage:[UIImage imageNamed:@"CPDFAnnotationBarImageProperties" inBundle:[NSBundle bundleForClass:self.class] compatibleWithTraitCollection:nil] forState:UIControlStateNormal];
|
|
|
- [_propertiesBtn addTarget:self action:@selector(buttonItemClicked_open:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
+ [_propertiesBtn addTarget:self action:@selector(buttonItemClicked_openModel:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
[self.propertiesBar addSubview:self.propertiesBtn];
|
|
|
offset += self.propertiesBtn.frame.size.width;
|
|
|
|
|
@@ -329,7 +329,8 @@
|
|
|
|
|
|
self.pdfListView.annotationMode = self.selectedIndex;
|
|
|
|
|
|
- [self.annotManage setAnnotStyleFromMode:self.selectedIndex];
|
|
|
+// [self.annotManage setAnnotStyleFromMode:self.selectedIndex];
|
|
|
+// self.isModelProperties = YES;
|
|
|
isSelect = YES;
|
|
|
|
|
|
} else {
|
|
@@ -352,6 +353,16 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+- (void)buttonItemClicked_openModel:(id)button {
|
|
|
+ [self.annotManage setAnnotStyleFromMode:self.pdfListView.annotationMode];
|
|
|
+ [self buttonItemClicked_open:button];
|
|
|
+}
|
|
|
+
|
|
|
+- (void)buttonItemClicked_openAnnotation:(id)button {
|
|
|
+ [self.annotManage setAnnotStyleFromAnnotations:self.pdfListView.activeAnnotations];
|
|
|
+ [self buttonItemClicked_open:button];
|
|
|
+}
|
|
|
+
|
|
|
- (void)buttonItemClicked_open:(id)button {
|
|
|
CAnnotStyle *annotStytle = self.annotManage.annotStyle;
|
|
|
AAPLCustomPresentationController *presentationController NS_VALID_UNTIL_END_OF_SCOPE;
|
|
@@ -906,12 +917,16 @@
|
|
|
}
|
|
|
|
|
|
- (void)annotationChangedNotification:(NSNotification *)notification {
|
|
|
- if (self.pdfListView.annotationMode == CPDFViewAnnotationModeNone) {
|
|
|
- [self.annotManage setAnnotStyleFromAnnotations:self.pdfListView.activeAnnotations];
|
|
|
- } else {
|
|
|
- [self.annotManage setAnnotStyleFromMode:self.pdfListView.annotationMode];
|
|
|
-
|
|
|
- }
|
|
|
+// if (self.pdfListView.annotationMode == CPDFViewAnnotationModeNone) {
|
|
|
+// [self.annotManage setAnnotStyleFromAnnotations:self.pdfListView.activeAnnotations];
|
|
|
+// } else {
|
|
|
+// [self.annotManage setAnnotStyleFromMode:self.pdfListView.annotationMode];
|
|
|
+//
|
|
|
+// }
|
|
|
+// if (self.pdfListView.annotationMode == CPDFViewAnnotationModeNone) {
|
|
|
+// [self.annotManage setAnnotStyleFromMode:self.pdfListView.annotationMode];
|
|
|
+// }
|
|
|
+// self.isModelProperties = YES;
|
|
|
[self updatePropertiesButtonState];
|
|
|
}
|
|
|
|