12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- //
- // 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 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 emptySearchResultLabel: 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.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.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.
- }
- }
|