|
@@ -139,6 +139,8 @@ struct KMNMWCFlags {
|
|
|
|
|
|
var removeAllAnnotationsStore = KMPDFViewRemoveAllAnnotationsStore()
|
|
|
|
|
|
+ var componentMessageView: ComponentMessage = ComponentMessage()
|
|
|
+
|
|
|
private var _needSave = false
|
|
|
var needSave: Bool {
|
|
|
set {
|
|
@@ -1129,14 +1131,13 @@ struct KMNMWCFlags {
|
|
|
|
|
|
view.window?.makeFirstResponder(listView)
|
|
|
|
|
|
- let readModeMessage: ComponentMessage = ComponentMessage()
|
|
|
- readModeMessage.properties = ComponentMessageProperty(messageType: .normal_custom, title: KMLocalizedString("Read Mode On"))
|
|
|
- readModeMessage.frame = CGRectMake((CGRectGetWidth(self.view.frame) - readModeMessage.properties.propertyInfo.viewWidth)/2,
|
|
|
- CGRectGetHeight(self.view.frame) - readModeMessage.properties.propertyInfo.viewHeight - 8,
|
|
|
- readModeMessage.properties.propertyInfo.viewWidth,
|
|
|
- readModeMessage.properties.propertyInfo.viewHeight)
|
|
|
- readModeMessage.reloadData()
|
|
|
- readModeMessage.show(inView: self.view, autoHideSeconde: 2)
|
|
|
+ self.componentMessageView.properties = ComponentMessageProperty(messageType: .normal_custom, title: KMLocalizedString("Read Mode On"))
|
|
|
+ self.componentMessageView.frame = CGRectMake((CGRectGetWidth(self.view.frame) - self.componentMessageView.properties.propertyInfo.viewWidth)/2,
|
|
|
+ CGRectGetHeight(self.view.frame) - self.componentMessageView.properties.propertyInfo.viewHeight - 8,
|
|
|
+ self.componentMessageView.properties.propertyInfo.viewWidth,
|
|
|
+ self.componentMessageView.properties.propertyInfo.viewHeight)
|
|
|
+ self.componentMessageView.reloadData()
|
|
|
+ self.componentMessageView.show(inView: self.view, autoHideSeconde: 2)
|
|
|
|
|
|
setUpPDFPageNumberToolbar()
|
|
|
|
|
@@ -1168,14 +1169,13 @@ struct KMNMWCFlags {
|
|
|
reloadPDFPageNumberToolbar()
|
|
|
|
|
|
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.1) {
|
|
|
- let readModeMessage: ComponentMessage = ComponentMessage()
|
|
|
- readModeMessage.properties = ComponentMessageProperty(messageType: .normal_custom, title: KMLocalizedString("Read Mode Off"))
|
|
|
- readModeMessage.frame = CGRectMake((CGRectGetWidth(self.infoSplitCenterView.frame) - readModeMessage.properties.propertyInfo.viewWidth)/2,
|
|
|
- CGRectGetHeight(self.infoSplitCenterView.frame) - readModeMessage.properties.propertyInfo.viewHeight - 8,
|
|
|
- readModeMessage.properties.propertyInfo.viewWidth,
|
|
|
- readModeMessage.properties.propertyInfo.viewHeight)
|
|
|
- readModeMessage.reloadData()
|
|
|
- readModeMessage.show(inView: self.infoSplitCenterView, autoHideSeconde: 2)
|
|
|
+ self.componentMessageView.properties = ComponentMessageProperty(messageType: .normal_custom, title: KMLocalizedString("Read Mode Off"))
|
|
|
+ self.componentMessageView.frame = CGRectMake((CGRectGetWidth(self.infoSplitCenterView.frame) - self.componentMessageView.properties.propertyInfo.viewWidth)/2,
|
|
|
+ CGRectGetHeight(self.infoSplitCenterView.frame) - self.componentMessageView.properties.propertyInfo.viewHeight - 8,
|
|
|
+ self.componentMessageView.properties.propertyInfo.viewWidth,
|
|
|
+ self.componentMessageView.properties.propertyInfo.viewHeight)
|
|
|
+ self.componentMessageView.reloadData()
|
|
|
+ self.componentMessageView.show(inView: self.infoSplitCenterView, autoHideSeconde: 2)
|
|
|
}
|
|
|
}
|
|
|
|