123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- //
- // KMLeftSideEmptyFileViewController.swift
- // PDF Reader Pro
- //
- // Created by tangchao on 2023/11/20.
- //
- import Cocoa
- class KMLeftSideEmptyFileViewController: NSViewController {
- @IBOutlet weak var emptyOutlineView: NSView!
- @IBOutlet weak var emptyAnnotationView: NSView!
- @IBOutlet weak var emptySnapView: NSView!
- @IBOutlet weak var addOutlineBox: NSBox!
-
- @IBOutlet weak var annotationBox: NSBox!
- @IBOutlet weak var leftSnapBox: NSBox!
- @IBOutlet weak var exportAnnotationBtn: NSButton!
- @IBOutlet weak var deleteAnnotationBtn: NSButton!
- @IBOutlet weak var filterAnnotationBtn: NSButton!
- @IBOutlet weak var addOutlineBtn: NSButton!
- @IBOutlet weak var deleteOutlineBtn: NSButton!
- @IBOutlet weak var printSnapBtn: NSButton!
-
- @IBOutlet weak var exportSnapBtn: NSButton!
- @IBOutlet weak var deleteSnapBtn: NSButton!
- @IBOutlet weak var searchOutlineSearchField: NSSearchField!
- @IBOutlet weak var outlineSearchView: NSView!
-
- @IBOutlet weak var notCreateOutLine: NSTextField!
- @IBOutlet weak var emptyOutlineLabel: NSTextField!
- @IBOutlet weak var emptyAnnotationLabel: NSTextField!
- @IBOutlet weak var emptySnapLabel: NSTextField!
- @IBOutlet weak var emptySearchResultLabel: NSTextField!
- @IBOutlet weak var snapshotNotCreatedLabel: NSTextField!
-
- override func loadView() {
- super.loadView()
-
- self.emptyOutlineLabel.stringValue = KMLocalizedString("To create outline item select header in contents, right click it and select \"Add Outline Item\" or click \"+\" above.",nil)
- self.emptyOutlineLabel.textColor = KMAppearance.Layout.h2Color()
- self.notCreateOutLine.stringValue = KMLocalizedString("No outlines", nil)
- self.notCreateOutLine.textColor = KMAppearance.Layout.h0Color()
- self.emptyAnnotationLabel.stringValue = KMLocalizedString("No Annotations",nil)
- // self.emptyAnnotationLabel.textColor = KMAppearance.Layout.h0Color()
- self.emptyAnnotationLabel.textColor = NSColor.km_init(hex: "#94989C")
- self.emptySnapLabel.stringValue = KMLocalizedString("To create snapshot select an area in contents, right click it and select \"Snapshot\" .",nil)
- self.emptySnapLabel.textColor = KMAppearance.Layout.h2Color()
- self.snapshotNotCreatedLabel.stringValue = KMLocalizedString("No Snapshots", nil)
- self.snapshotNotCreatedLabel.textColor = KMAppearance.Layout.h0Color()
- self.searchOutlineSearchField.placeholderString = KMLocalizedString("Search Outline", nil)
-
- self.exportAnnotationBtn.toolTip = NSLocalizedString("Export Annotations…", tableName: "MainMenu", comment: "")
- self.deleteAnnotationBtn.toolTip = NSLocalizedString("Remove All Annotations", tableName: "MainMenu", comment: "")
- self.filterAnnotationBtn.toolTip = KMLocalizedString("Note Type", nil)
-
- self.addOutlineBox.toolTip = KMLocalizedString("Add Outline Item", nil)
- self.deleteOutlineBtn.toolTip = KMLocalizedString("Delete", nil)
- self.deleteSnapBtn.toolTip = KMLocalizedString("Delete", nil)
- self.exportSnapBtn.toolTip = KMLocalizedString("Export", nil)
- self.printSnapBtn.toolTip = KMLocalizedString("Print", nil)
-
- self.emptySearchResultLabel.stringValue = KMLocalizedString("No Results", nil)
- self.emptySearchResultLabel.textColor = KMAppearance.Layout.h0Color()
-
- self.emptySnapView.wantsLayer = true
- self.emptySnapView.layer?.backgroundColor = .clear
- self.outlineSearchView.wantsLayer = true
- self.outlineSearchView.layer?.backgroundColor = .clear
- self.emptyAnnotationView.wantsLayer = true
- self.emptyAnnotationView.layer?.backgroundColor = .clear
- self.emptyOutlineView.wantsLayer = true
- self.emptyOutlineView.layer?.backgroundColor = .clear
- }
- override func viewDidLoad() {
- super.viewDidLoad()
- // Do view setup here.
- }
- }
|