KMPageEditExtractWindowController.swift 1.0 KB

1234567891011121314151617181920212223242526272829
  1. //
  2. // KMPageEditExtractWindowController.swift
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2023/1/12.
  6. //
  7. import Cocoa
  8. class KMPageEditExtractWindowController: KMPageEditSettingBaseWindowController {
  9. override func windowDidLoad() {
  10. super.windowDidLoad()
  11. setWindowSize(NSSize(width: 320, height: 208))
  12. self.titleLabel.stringValue = NSLocalizedString("Extract", comment: "")
  13. funcButton.title = NSLocalizedString("Extract", comment: "")
  14. funcButton.layer?.backgroundColor = NSColor.black.cgColor
  15. funcButton.attributedTitle = NSMutableAttributedString(string: funcButton.title, attributes: [NSAttributedString.Key.foregroundColor : NSColor.white])
  16. let settingView: KMPageEditExtractSettingView = KMPageEditExtractSettingView.createFromNib()!
  17. self.contentBox.contentView?.addSubview(settingView)
  18. settingView.frame = self.contentBox.contentView!.bounds
  19. settingView.autoresizingMask = [.width, .height]
  20. self.settingView = settingView
  21. }
  22. }