|
@@ -88,6 +88,7 @@ enum KMLineChangeAction: Int {
|
|
if (newValue != self._style) {
|
|
if (newValue != self._style) {
|
|
self._style = newValue
|
|
self._style = newValue
|
|
self.lineWell?.style = CPDFBorderStyle(rawValue: newValue) ?? .solid
|
|
self.lineWell?.style = CPDFBorderStyle(rawValue: newValue) ?? .solid
|
|
|
|
+ self.styleButton.selectedSegment = self.style
|
|
|
|
|
|
self._notifyChangeAction(.style)
|
|
self._notifyChangeAction(.style)
|
|
}
|
|
}
|
|
@@ -133,6 +134,14 @@ enum KMLineChangeAction: Int {
|
|
self._dashPattern = newValue
|
|
self._dashPattern = newValue
|
|
|
|
|
|
self.lineWell?.dashPattern = newValue as NSArray
|
|
self.lineWell?.dashPattern = newValue as NSArray
|
|
|
|
+ self.dashPatternField.stringValue = "\(self.dashPattern.count)"
|
|
|
|
+
|
|
|
|
+ self._notifyChangeAction(.dashPattern)
|
|
|
|
+ } else {
|
|
|
|
+ self._dashPattern = []
|
|
|
|
+ self.lineWell?.dashPattern = newValue as NSArray
|
|
|
|
+ self.dashPatternField.stringValue = "\(self.dashPattern.count)"
|
|
|
|
+
|
|
self._notifyChangeAction(.dashPattern)
|
|
self._notifyChangeAction(.dashPattern)
|
|
}
|
|
}
|
|
}
|
|
}
|