Repo // Remove useless headers.
This commit is contained in:
parent
30c370c471
commit
f58b4d37c5
|
@ -2,9 +2,7 @@
|
||||||
// ====================
|
// ====================
|
||||||
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
|
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
|
||||||
|
|
||||||
import Carbon
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
import Foundation
|
|
||||||
|
|
||||||
extension Date {
|
extension Date {
|
||||||
static func - (lhs: Date, rhs: Date) -> TimeInterval {
|
static func - (lhs: Date, rhs: Date) -> TimeInterval {
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
|
||||||
|
|
||||||
enum AppleKeyboardConverter {
|
enum AppleKeyboardConverter {
|
||||||
static let arrDynamicBasicKeyLayout: [String] = [
|
static let arrDynamicBasicKeyLayout: [String] = [
|
||||||
"com.apple.keylayout.ZhuyinBopomofo",
|
"com.apple.keylayout.ZhuyinBopomofo",
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
import Foundation
|
||||||
|
|
||||||
// 註:所有 InputState 型別均不適合使用 Struct,因為 Struct 無法相互繼承派生。
|
// 註:所有 InputState 型別均不適合使用 Struct,因為 Struct 無法相互繼承派生。
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
/// 被封裝的「與 Megrez 組字引擎和 Tekkon 注拼引擎對接的」各種工具函式。
|
/// 被封裝的「與 Megrez 組字引擎和 Tekkon 注拼引擎對接的」各種工具函式。
|
||||||
/// 注意:不要把 composer 注拼槽與 compositor 組字器這兩個概念搞混。
|
/// 注意:不要把 composer 注拼槽與 compositor 組字器這兩個概念搞混。
|
||||||
|
|
||||||
import Cocoa
|
import Foundation
|
||||||
|
|
||||||
// MARK: - 委任協定 (Delegate).
|
// MARK: - 委任協定 (Delegate).
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
/// 該檔案乃按鍵調度模組當中「用來規定在選字窗出現時的按鍵行為」的部分。
|
/// 該檔案乃按鍵調度模組當中「用來規定在選字窗出現時的按鍵行為」的部分。
|
||||||
|
|
||||||
import Cocoa
|
import Foundation
|
||||||
|
|
||||||
// MARK: - § 對選字狀態進行調度 (Handle Candidate State).
|
// MARK: - § 對選字狀態進行調度 (Handle Candidate State).
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
/// 該檔案乃按鍵調度模組當中「用來規定當 IMK 接受按鍵訊號時且首次交給按鍵調度模組處理時、
|
/// 該檔案乃按鍵調度模組當中「用來規定當 IMK 接受按鍵訊號時且首次交給按鍵調度模組處理時、
|
||||||
/// 按鍵調度模組要率先處理」的部分。據此判斷是否需要將按鍵處理委派給其它成員函式。
|
/// 按鍵調度模組要率先處理」的部分。據此判斷是否需要將按鍵處理委派給其它成員函式。
|
||||||
|
|
||||||
import Cocoa
|
import Foundation
|
||||||
|
|
||||||
// MARK: - § 根據狀態調度按鍵輸入 (Handle Input with States)
|
// MARK: - § 根據狀態調度按鍵輸入 (Handle Input with States)
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
/// 該檔案乃按鍵調度模組的用以承載「根據按鍵行為來調控模式」的各種成員函式的部分。
|
/// 該檔案乃按鍵調度模組的用以承載「根據按鍵行為來調控模式」的各種成員函式的部分。
|
||||||
|
|
||||||
import Cocoa
|
import Foundation
|
||||||
|
|
||||||
// MARK: - § 根據按鍵行為來調控模式的函式 (Functions Interact With States).
|
// MARK: - § 根據按鍵行為來調控模式的函式 (Functions Interact With States).
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
import Foundation
|
||||||
|
|
||||||
/// Shiki's Notes: The cursor index in the IMK inline composition buffer
|
/// Shiki's Notes: The cursor index in the IMK inline composition buffer
|
||||||
/// still uses UTF16 index measurements. This means that any attempt of
|
/// still uses UTF16 index measurements. This means that any attempt of
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
|
||||||
import InputMethodKit
|
import InputMethodKit
|
||||||
|
|
||||||
/// 輸入法控制模組,乃在輸入法端用以控制輸入行為的基礎型別。
|
/// 輸入法控制模組,乃在輸入法端用以控制輸入行為的基礎型別。
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
import Foundation
|
|
||||||
|
|
||||||
// MARK: - Tooltip Display and Candidate Display Methods
|
// MARK: - Tooltip Display and Candidate Display Methods
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Carbon
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
|
import InputMethodKit
|
||||||
|
|
||||||
// The namespace of this input method.
|
// The namespace of this input method.
|
||||||
public enum vChewing {}
|
public enum vChewing {}
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Carbon
|
|
||||||
import Cocoa
|
import Cocoa
|
||||||
|
import InputMethodKit
|
||||||
|
|
||||||
public class InputSourceHelper: NSObject {
|
public class InputSourceHelper: NSObject {
|
||||||
@available(*, unavailable)
|
@available(*, unavailable)
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
import Foundation
|
||||||
|
|
||||||
/// 我們不能讓 mgrLangModel 這個靜態管理器來承載下面這些副本變數。
|
/// 我們不能讓 mgrLangModel 這個靜態管理器來承載下面這些副本變數。
|
||||||
/// 所以,這些副本變數只能放在 mgrLangModel 的外部。
|
/// 所以,這些副本變數只能放在 mgrLangModel 的外部。
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
extension NSImage {
|
extension NSImage {
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
@available(macOS 10.15, *)
|
@available(macOS 10.15, *)
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
// marks, or product names of Contributor, except as required to fulfill notice
|
// marks, or product names of Contributor, except as required to fulfill notice
|
||||||
// requirements defined in MIT License.
|
// requirements defined in MIT License.
|
||||||
|
|
||||||
import Cocoa
|
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
@available(macOS 10.15, *)
|
@available(macOS 10.15, *)
|
||||||
|
|
Loading…
Reference in New Issue