|
@@ -181,6 +181,9 @@ class KMToolbarController: NSViewController {
|
|
toolbarType = .None
|
|
toolbarType = .None
|
|
mainToolBarView?.toolbarType = .Main
|
|
mainToolBarView?.toolbarType = .Main
|
|
mainToolBarView?.reloadateToolbar()
|
|
mainToolBarView?.reloadateToolbar()
|
|
|
|
+ mainToolBarView?.toolbar?.allowsUserCustomization = true
|
|
|
|
+
|
|
|
|
+ self.findSearchView.isHidden = true
|
|
|
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(selectedShapAnnotationChangeNotification(_:)), name: NSNotification.Name.init(rawValue: "KMSelectedShapAnnotationChangeNotification"), object: nil)
|
|
NotificationCenter.default.addObserver(self, selector: #selector(selectedShapAnnotationChangeNotification(_:)), name: NSNotification.Name.init(rawValue: "KMSelectedShapAnnotationChangeNotification"), object: nil)
|
|
NotificationCenter.default.addObserver(self, selector: #selector(PDFChangedNotification(_:)), name: NSNotification.Name.init(rawValue: "PDFChangedNotification"), object: nil)
|
|
NotificationCenter.default.addObserver(self, selector: #selector(PDFChangedNotification(_:)), name: NSNotification.Name.init(rawValue: "PDFChangedNotification"), object: nil)
|
|
@@ -587,6 +590,7 @@ class KMToolbarController: NSViewController {
|
|
//MARK: Find Search
|
|
//MARK: Find Search
|
|
extension KMToolbarController {
|
|
extension KMToolbarController {
|
|
func showFindBar() {
|
|
func showFindBar() {
|
|
|
|
+ self.findSearchView.isHidden = false
|
|
let height: Float = self.fetchHeight(type: _toolbarType)
|
|
let height: Float = self.fetchHeight(type: _toolbarType)
|
|
self.delegate?.toolbarController?(self, heightOffsetChange: height, animated: false)
|
|
self.delegate?.toolbarController?(self, heightOffsetChange: height, animated: false)
|
|
|
|
|
|
@@ -623,6 +627,7 @@ extension KMToolbarController {
|
|
}
|
|
}
|
|
|
|
|
|
func exitFindBar() {
|
|
func exitFindBar() {
|
|
|
|
+ self.findSearchView.isHidden = true
|
|
let height: Float = self.fetchHeight(type: _toolbarType, isShow: false)
|
|
let height: Float = self.fetchHeight(type: _toolbarType, isShow: false)
|
|
self.delegate?.toolbarController?(self, heightOffsetChange: height, animated: false)
|
|
self.delegate?.toolbarController?(self, heightOffsetChange: height, animated: false)
|
|
}
|
|
}
|