1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // KMCloudEmptyCollectionViewItem.swift
- // PDF Reader Pro
- //
- // Created by wanjun on 2022/11/23.
- //
- import Cocoa
- class KMCloudEmptyCollectionViewItem: NSCollectionViewItem {
-
- @IBOutlet weak var cloudImageView: NSImageView!
- @IBOutlet weak var cloudLabel: NSTextField!
-
- override func viewDidLoad() {
- super.viewDidLoad()
-
- initializeUI()
- }
-
- // MARK: Init
- func initializeUI() -> Void {
-
- }
-
- // MARK: private
-
- func refreshUI(item: Int) -> Void {
- switch item {
- case KMCloudDocumentState.Box.rawValue:
- cloudImageView.image = NSImage(named: "ceshi")
- cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.Box.string(), comment: "")
- case KMCloudDocumentState.DropBox.rawValue:
- cloudImageView.image = NSImage(named: "ceshi")
- cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.DropBox.string(), comment: "")
- case KMCloudDocumentState.GoogleDrive.rawValue:
- cloudImageView.image = NSImage(named: "ceshi")
- cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.GoogleDrive.string(), comment: "")
- case KMCloudDocumentState.OneDrive.rawValue:
- cloudImageView.image = NSImage(named: "ceshi")
- cloudLabel.stringValue = NSLocalizedString(KMCloudDocumentState.OneDrive.string(), comment: "")
- default:
- break
- }
- }
- }
|