1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // KMSystemWindowMenu.swift
- // PDF Reader Pro
- //
- // Created by tangchao on 2023/12/26.
- //
- import Foundation
- protocol KMSystemWindowMenuRrotocol {
- func menuItemAction_showForwardTagPage(_ sender: Any)
- func menuItemAction_showNextTagPage(_ sender: Any)
- func menuItemAction_newTagPageToNewWindow(_ sender: Any)
- func menuItemAction_mergeAllWindow(_ sender: Any)
- func menuItemAction_currentWindowName(_ sender: Any)
-
- func performFit(_ sender: Any)
- }
- extension KMSystemWindowMenuRrotocol {
- func menuItemAction_currentWindowName(_ sender: Any) {}
- func performFit(_ sender: Any) {}
- }
- extension KMSystemMenu.Window {
- public static let showForwardTagPageSelector = NSSelectorFromString("menuItemAction_showForwardTagPage:")
- public static let showNextTagPageSelector = NSSelectorFromString("menuItemAction_showNextTagPage:")
- public static let newTagPageToNewWindowSelector = NSSelectorFromString("menuItemAction_newTagPageToNewWindow:")
- public static let mergeAllWindowSelector = NSSelectorFromString("menuItemAction_mergeAllWindow:")
- public static let currentWindowNameSelector = NSSelectorFromString("menuItemAction_currentWindowName:")
-
- public static let performFitSelector = NSSelectorFromString("performFit:")
-
- public static func actions() -> [Selector] {
- return [self.showForwardTagPageSelector, self.showNextTagPageSelector,
- self.newTagPageToNewWindowSelector, self.mergeAllWindowSelector, self.performFitSelector,
- self.currentWindowNameSelector]
- }
- }
|