PrefUI // Bind enableMouseScrollingForTDKCandidatesCocoa.

This commit is contained in:
ShikiSuen 2023-02-27 19:52:49 +08:00
parent 35124352ed
commit 7b8ac4ccda
6 changed files with 17 additions and 0 deletions

View File

@ -32,6 +32,8 @@ struct VwrPrefPaneCandidates: View {
forKey: UserDef.kConsolidateContextOnCandidateSelection.rawValue)
@State private var selUseIMKCandidateWindow: Bool = UserDefaults.standard.bool(
forKey: UserDef.kUseIMKCandidateWindow.rawValue)
@State private var selEnableMouseScrollingForTDKCandidatesCocoa: Bool = UserDefaults.standard.bool(
forKey: UserDef.kEnableMouseScrollingForTDKCandidatesCocoa.rawValue)
@State private var selEnableSwiftUIForTDKCandidates: Bool = UserDefaults.standard.bool(
forKey: UserDef.kEnableSwiftUIForTDKCandidates.rawValue)
@State private var selAllowBoostingSingleKanjiAsUserPhrase: Bool = UserDefaults.standard.bool(
@ -188,6 +190,16 @@ struct VwrPrefPaneCandidates: View {
)
)
.preferenceDescription().prefDescriptionWidthLimited()
Toggle(
LocalizedStringKey("Enable mouse wheel support for Tadokoro Candidate Window"),
isOn: $selEnableMouseScrollingForTDKCandidatesCocoa.onChange {
PrefMgr.shared.enableMouseScrollingForTDKCandidatesCocoa =
selEnableMouseScrollingForTDKCandidatesCocoa
}
)
.disabled(
PrefMgr.shared.useIMKCandidateWindow || PrefMgr.shared.enableSwiftUIForTDKCandidates
)
Toggle(
LocalizedStringKey("Enable experimental Swift UI typesetting method"),
isOn: $selEnableSwiftUIForTDKCandidates.onChange {

View File

@ -249,6 +249,7 @@
"Enable cassette mode, suppressing phonabet input" = "Enable cassette mode, suppressing phonabet input";
"Enable CNS11643 Support (2023-01-06)" = "Enable CNS11643 Support (2023-01-06)";
"Enable experimental Swift UI typesetting method" = "Enable experimental Swift UI typesetting method";
"Enable mouse wheel support for Tadokoro Candidate Window" = "Enable mouse wheel support for Tadokoro Candidate Window";
"Enable phrase replacement table" = "Enable phrase replacement table";
"Enable Space key for calling candidate window" = "Enable Space key for calling candidate window";
"Enable symbol input support (incl. certain emoji symbols)" = "Enable symbol input support (incl. certain emoji symbols)";

View File

@ -249,6 +249,7 @@
"Enable cassette mode, suppressing phonabet input" = "Enable cassette mode, suppressing phonabet input";
"Enable CNS11643 Support (2023-01-06)" = "Enable CNS11643 Support (2023-01-06)";
"Enable experimental Swift UI typesetting method" = "Enable experimental Swift UI typesetting method";
"Enable mouse wheel support for Tadokoro Candidate Window" = "Enable mouse wheel support for Tadokoro Candidate Window";
"Enable phrase replacement table" = "Enable phrase replacement table";
"Enable Space key for calling candidate window" = "Enable Space key for calling candidate window";
"Enable symbol input support (incl. certain emoji symbols)" = "Enable symbol input support (incl. certain emoji symbols)";

View File

@ -250,6 +250,7 @@
"Enable cassette mode, suppressing phonabet input" = "カセットモードを起用(注音入力はこのモードで使えぬ)";
"Enable CNS11643 Support (2023-01-06)" = "全字庫モード // 入力可能な漢字数を倍増す (2023-01-06)";
"Enable experimental Swift UI typesetting method" = "Swift UI 組版方法を起用する";
"Enable mouse wheel support for Tadokoro Candidate Window" = "田所候補陳列ウィンドウのマウススクロール機能を起用";
"Enable phrase replacement table" = "言葉置換表を起用";
"Enable Space key for calling candidate window" = "Space キーで入力候補を呼び出す";
"Enable symbol input support (incl. certain emoji symbols)" = "僅かなる絵文字も含む符号入力サポートを起用";

View File

@ -249,6 +249,7 @@
"Enable cassette mode, suppressing phonabet input" = "启用磁带模式,会停用注音输入";
"Enable CNS11643 Support (2023-01-06)" = "启用 CNS11643 全字库支援 (2023-01-06)";
"Enable experimental Swift UI typesetting method" = "使用 Swift UI 介面排版方法";
"Enable mouse wheel support for Tadokoro Candidate Window" = "启用田所选字窗的滑鼠滚动支援";
"Enable phrase replacement table" = "启用语汇置换表";
"Enable Space key for calling candidate window" = "敲空格键以呼出候选字窗";
"Enable symbol input support (incl. certain emoji symbols)" = "启用包括少许绘文字在内的符号输入支援";

View File

@ -249,6 +249,7 @@
"Enable cassette mode, suppressing phonabet input" = "啟用磁帶模式,會停用注音輸入";
"Enable CNS11643 Support (2023-01-06)" = "啟用 CNS11643 全字庫支援 (2023-01-06)";
"Enable experimental Swift UI typesetting method" = "使用 Swift UI 介面排版方法";
"Enable mouse wheel support for Tadokoro Candidate Window" = "啟用田所選字窗的滑鼠滾動支援";
"Enable phrase replacement table" = "啟用語彙置換表";
"Enable Space key for calling candidate window" = "敲空格鍵以呼出候選字窗";
"Enable symbol input support (incl. certain emoji symbols)" = "啟用包括少許繪文字在內的符號輸入支援";