KMPageEditExtractWindowController.swift 958 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // KMPageEditExtractWindowController.swift
  3. // PDF Reader Pro
  4. //
  5. // Created by tangchao on 2023/1/12.
  6. //
  7. // 页面编辑 [提取窗口]
  8. class KMPageEditExtractWindowController: KMPageEditSettingBaseWindowController {
  9. var canDeleteAll = true
  10. override func initSubViews() {
  11. super.initSubViews()
  12. if let settingView = KMPageEditExtractSettingView.createFromNib() {
  13. settingView.extractAfterDeletePageVC?.enabled = self.canDeleteAll
  14. self.contentBox.contentView = settingView
  15. self.settingView = settingView
  16. }
  17. }
  18. override func initDefaultValue() {
  19. super.initDefaultValue()
  20. self.setWindowSize(NSSize(width: 432, height: 174))
  21. self.titleLabel.stringValue = NSLocalizedString("Extract", comment: "")
  22. self.funcVC?.stringValue = NSLocalizedString("Extract", comment: "")
  23. self.funcVC?.updateUI()
  24. }
  25. }