|
@@ -228,11 +228,6 @@
|
|
|
|
|
|
- (void)buttonItemClicked_back:(id)sender {
|
|
|
|
|
|
- NSString * fontName = [self constructionFontname:self.baseName isBold:self.isBold isItalic:self.isItalic];
|
|
|
- self.comboxChoiceWidget.font = [UIFont fontWithName:fontName size:self.fontSize];
|
|
|
- CPDFPage *page = self.comboxChoiceWidget.page;
|
|
|
- [self.annotManage.pdfListView setNeedsDisplayForPage:page];
|
|
|
-
|
|
|
[self dismissViewControllerAnimated:YES completion:nil];
|
|
|
}
|
|
|
|
|
@@ -284,6 +279,7 @@
|
|
|
|
|
|
- (void)SetCPDFFormTextFiledView:(CPDFFormTextFieldView *)view text:(NSString *)completedText {
|
|
|
self.comboxChoiceWidget.fieldName = completedText;
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
|
|
@@ -301,6 +297,7 @@
|
|
|
}else if(select == self.textColorView) {
|
|
|
self.comboxChoiceWidget.fontColor = color;
|
|
|
}
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
- (void)selectColorView:(CPDFColorSelectView *)select {
|
|
@@ -316,6 +313,7 @@
|
|
|
self.colorPicker.backgroundColor = [CPDFColorUtils CAnnotationPropertyViewControllerBackgoundColor];
|
|
|
[self.view addSubview:self.colorPicker];
|
|
|
}
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
|
|
@@ -333,6 +331,7 @@
|
|
|
}else if(self.currentSelectColorView == self.textColorView) {
|
|
|
self.comboxChoiceWidget.fontColor = color;
|
|
|
}
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
#pragma mark - UIColorPickerViewControllerDelegate
|
|
@@ -349,26 +348,31 @@
|
|
|
}else if(self.currentSelectColorView == self.textColorView) {
|
|
|
self.comboxChoiceWidget.fontColor = viewController.selectedColor;
|
|
|
}
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
#pragma mark - CPDFFormSwitchViewDelegate
|
|
|
- (void)SwitchActionInView:(CPDFFormSwitchView *)view switcher:(UISwitch *)switcher {
|
|
|
[self.comboxChoiceWidget setHidden:switcher.on];
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
#pragma mark - CPDFThicknessSliderViewDelegate
|
|
|
- (void)thicknessSliderView:(CPDFThicknessSliderView *)thicknessSliderView thickness:(CGFloat)thickness {
|
|
|
self.fontSize = thickness * 10;
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
|
|
|
#pragma mark - CPDFFontSettingViewDelegate
|
|
|
- (void)CPDFFontSettingView:(CPDFFontSettingView *)view isBold:(BOOL)isBold {
|
|
|
self.isBold = isBold;
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
- (void)CPDFFontSettingView:(CPDFFontSettingView *)view isItalic:(BOOL)isItalic {
|
|
|
self.isItalic = isItalic;
|
|
|
+ [self refreshUI];
|
|
|
}
|
|
|
|
|
|
- (void)CPDFFontSettingView:(CPDFFontSettingView *)view text:(NSString *)text {
|
|
@@ -390,6 +394,14 @@
|
|
|
- (void)fontStyleTableView:(CPDFFontStyleTableView *)fontStyleTableView fontName:(NSString *)fontName {
|
|
|
self.baseName = fontName;
|
|
|
self.fontSettingView.fontNameSelectLabel.text = fontName;
|
|
|
+ [self refreshUI];
|
|
|
+}
|
|
|
+
|
|
|
+- (void)refreshUI {
|
|
|
+ NSString * fontName = [self constructionFontname:self.baseName isBold:self.isBold isItalic:self.isItalic];
|
|
|
+ self.comboxChoiceWidget.font = [UIFont fontWithName:fontName size:self.fontSize];
|
|
|
+ CPDFPage *page = self.comboxChoiceWidget.page;
|
|
|
+ [self.annotManage.pdfListView setNeedsDisplayForPage:page];
|
|
|
}
|
|
|
|
|
|
@end
|