KMConvertPPTsSettingView.swift 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // KMConvertPPTsSettingView.swift
  3. // PDF Master
  4. //
  5. // Created by tangchao on 2022/12/6.
  6. //
  7. class KMConvertPPTsSettingView: KMConvertSettingView {
  8. @IBOutlet weak var ocrBox: NSBox!
  9. @IBOutlet weak var pageRangeBox: NSBox!
  10. override func initSubViews() {
  11. super.initSubViews()
  12. self.tipView?.km_add_left_constraint(constant: 8)
  13. self.tipView?.km_add_top_constraint(equalTo: self.pageRangeBox, attribute: .bottom, constant: -5)
  14. self.tipView?.km_add_right_constraint()
  15. self.tipView?.km_add_height_constraint(constant: 16+20+16)
  16. }
  17. override func viewDidMoveToWindow() {
  18. super.viewDidMoveToWindow()
  19. if (self.ocrItemView == nil) {
  20. self.ocrItemView = KMConvertOCRSettingItemView.createFromNib()
  21. self.ocrBox.contentView = self.ocrItemView
  22. }
  23. self.ocrItemView?.languageIndex = self.ocrLanuguageIndex
  24. if (self.pageRangeItemView == nil) {
  25. self.pageRangeItemView = KMConvertPageRangeSettingItemView.createFromNib()
  26. self.pageRangeBox.contentView = self.pageRangeItemView
  27. // self.tipView?.km_add_left_constraint(constant: 8)
  28. // self.tipView?.km_add_top_constraint(equalTo: self.pageRangeBox, attribute: .bottom, constant: -5)
  29. // self.tipView?.km_add_right_constraint()
  30. // self.tipView?.km_add_height_constraint(constant: 16+20+16)
  31. }
  32. }
  33. }