KMFileSearchView.swift 812 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // KMFileSearchView.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by wanjun on 2022/12/7.
  6. //
  7. import Cocoa
  8. @objc protocol KMManagementFilesSearch {
  9. @objc optional func searchStringChange(_ keyword: String)
  10. @objc optional func searchTypeChange(_ tpye: Int)
  11. }
  12. @objcMembers class KMFileSearchView: NSView {
  13. open var delete: KMManagementFilesSearch?
  14. @IBOutlet weak var searchField: NSTextField!
  15. @IBOutlet weak var typeSelectBtn: NSPopUpButton!
  16. @IBOutlet weak var cancelBtn: NSButton!
  17. override func draw(_ dirtyRect: NSRect) {
  18. super.draw(dirtyRect)
  19. // Drawing code here.
  20. }
  21. override func awakeFromNib() {
  22. super.awakeFromNib()
  23. }
  24. // MARK: Action
  25. @IBAction func typeMenuClicked(_ sender: Any) {
  26. }
  27. }