1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // KMLinkAnnotationPropertyEmptyController.swift
- // PDF Reader Pro
- //
- // Created by tangchao on 2023/4/23.
- //
- import Cocoa
- // Link 注释 [属性面板] [空状态]
- class KMLinkAnnotationPropertyEmptyController: KMRightSideEmptyVC {
-
- private lazy var titleLabel: NSTextField = {
- let label = NSTextField(labelWithString: "")
- return label
- }()
-
- convenience init() {
- self.init(nibName: "KMRightSideEmptyVC", bundle: nil)
- }
- override func viewDidLoad() {
- super.viewDidLoad()
- // Do view setup here.
- }
-
- override func updateUI() {
- super.updateUI()
-
- self.view.addSubview(self.titleLabel)
-
- let titleLabelX: CGFloat = 8
- let titleLabelH: CGFloat = 20
- let titleLabelY: CGFloat = 12
- self.titleLabel.frame = NSMakeRect(titleLabelX, NSHeight(self.view.bounds)-titleLabelH-titleLabelY, NSWidth(self.view.bounds)-titleLabelX, titleLabelH)
- self.titleLabel.autoresizingMask = [.width, .minYMargin]
- self.titleLabel.stringValue = NSLocalizedString("Link", comment: "")
-
- self.emptyImageView.image = NSImage(named: "KMImageNameEmptyLink")
- }
-
- override func initLocalization() {
- super.initLocalization()
-
- self.emptyLabel.stringValue = NSLocalizedString("Select an area or text on a page for a link to be inserted.", comment: "")
- }
-
- }
|