12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // KMBatchCompressView.swift
- // PDF Master
- //
- // Created by lizhe on 2023/1/16.
- //
- import Cocoa
- import KMComponentLibrary
- class KMBatchCompressView: KMBatchSettingItemView {
- @IBOutlet weak var titleLabel: NSTextField!
- @IBOutlet weak var titleContentView: NSView!
-
- var data: KMBatchCompressViewModel = KMBatchCompressViewModel()
-
- override func draw(_ dirtyRect: NSRect) {
- super.draw(dirtyRect)
- // Drawing code here.
- }
-
- override func setup() {
- self.titleContentView.border(ComponentLibrary.shared.getComponentColorFromKey("colorBorder/divider"), 0.5, 0)
- }
-
- override func reloadData() {
-
- }
- }
- protocol KMBatchCompressViewAction {}
- extension KMBatchCompressView: KMBatchCompressViewAction {
- @IBAction func compressButtonAction(_ sender: Any) {
- if self.batchExport != nil {
- self.batchExport!(self, self.data)
- }
- }
- }
|