123456789101112131415161718192021222324252627282930313233 |
- //
- // 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)
- }
- extension KMSystemWindowMenuRrotocol {
- func menuItemAction_currentWindowName(_ 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 func actions() -> [Selector] {
- return [self.showForwardTagPageSelector, self.showNextTagPageSelector,
- self.newTagPageToNewWindowSelector, self.mergeAllWindowSelector,
- self.currentWindowNameSelector]
- }
- }
|