Files
community/Ink Canvas/Resources/Settings.cs
T

782 lines
33 KiB
C#
Raw Normal View History

2025-08-31 11:43:52 +08:00
using Newtonsoft.Json;
using System;
2025-07-15 20:30:10 +08:00
using System.Collections.Generic;
2025-07-28 14:40:44 +08:00
using System.IO;
2025-05-25 09:29:48 +08:00
namespace Ink_Canvas
{
public class Settings
{
[JsonProperty("advanced")]
public Advanced Advanced { get; set; } = new Advanced();
[JsonProperty("appearance")]
public Appearance Appearance { get; set; } = new Appearance();
[JsonProperty("automation")]
public Automation Automation { get; set; } = new Automation();
[JsonProperty("behavior")]
public PowerPointSettings PowerPointSettings { get; set; } = new PowerPointSettings();
[JsonProperty("canvas")]
public Canvas Canvas { get; set; } = new Canvas();
[JsonProperty("gesture")]
public Gesture Gesture { get; set; } = new Gesture();
[JsonProperty("inkToShape")]
public InkToShape InkToShape { get; set; } = new InkToShape();
[JsonProperty("startup")]
public Startup Startup { get; set; } = new Startup();
[JsonProperty("randSettings")]
public RandSettings RandSettings { get; set; } = new RandSettings();
2025-09-06 21:26:46 +08:00
[JsonProperty("modeSettings")]
public ModeSettings ModeSettings { get; set; } = new ModeSettings();
2025-10-02 02:11:54 +08:00
[JsonProperty("camera")]
public CameraSettings Camera { get; set; } = new CameraSettings();
2025-11-02 09:29:06 +08:00
[JsonProperty("dlass")]
public DlassSettings Dlass { get; set; } = new DlassSettings();
2025-05-25 09:29:48 +08:00
}
public class Canvas
{
[JsonProperty("inkWidth")]
public double InkWidth { get; set; } = 2.5;
[JsonProperty("highlighterWidth")]
public double HighlighterWidth { get; set; } = 20;
[JsonProperty("inkAlpha")]
public double InkAlpha { get; set; } = 255;
[JsonProperty("isShowCursor")]
2025-07-28 14:40:44 +08:00
public bool IsShowCursor { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("inkStyle")]
2025-07-28 14:40:44 +08:00
public int InkStyle { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("eraserSize")]
public int EraserSize { get; set; } = 2;
2025-08-03 16:46:33 +08:00
[JsonProperty("eraserType")]
2025-07-28 14:40:44 +08:00
public int EraserType { get; set; } // 0 - 图标切换模式 1 - 面积擦 2 - 线条擦
2025-05-25 09:29:48 +08:00
[JsonProperty("eraserShapeType")]
2025-07-28 14:40:44 +08:00
public int EraserShapeType { get; set; } // 0 - 圆形擦 1 - 黑板擦
2025-05-25 09:29:48 +08:00
[JsonProperty("hideStrokeWhenSelecting")]
public bool HideStrokeWhenSelecting { get; set; } = true;
[JsonProperty("fitToCurve")]
2025-07-28 14:40:44 +08:00
public bool FitToCurve { get; set; } // 默认关闭原来的贝塞尔平滑
2025-07-20 15:21:59 +08:00
[JsonProperty("useAdvancedBezierSmoothing")]
public bool UseAdvancedBezierSmoothing { get; set; } = true; // 默认启用高级贝塞尔曲线平滑
2025-07-26 19:03:07 +08:00
[JsonProperty("useAsyncInkSmoothing")]
public bool UseAsyncInkSmoothing { get; set; } = true; // 默认启用异步墨迹平滑
[JsonProperty("useHardwareAcceleration")]
public bool UseHardwareAcceleration { get; set; } = true; // 默认启用硬件加速
[JsonProperty("inkSmoothingQuality")]
2025-07-29 09:02:03 +08:00
public int InkSmoothingQuality { get; set; } = 2; // 0-低质量高性能, 1-平衡, 2-高质量低性能,默认为高质量
2025-07-26 19:03:07 +08:00
[JsonProperty("maxConcurrentSmoothingTasks")]
2025-07-28 14:40:44 +08:00
public int MaxConcurrentSmoothingTasks { get; set; } // 0表示自动检测CPU核心数
2025-05-25 09:29:48 +08:00
[JsonProperty("clearCanvasAndClearTimeMachine")]
2025-07-28 14:40:44 +08:00
public bool ClearCanvasAndClearTimeMachine { get; set; }
2025-06-17 22:05:22 +08:00
[JsonProperty("enablePressureTouchMode")]
2025-07-28 14:40:44 +08:00
public bool EnablePressureTouchMode { get; set; } // 是否启用压感触屏模式
2025-06-17 22:05:22 +08:00
[JsonProperty("disablePressure")]
2025-07-28 14:40:44 +08:00
public bool DisablePressure { get; set; } // 是否屏蔽压感
2025-06-17 22:37:37 +08:00
[JsonProperty("autoStraightenLine")]
public bool AutoStraightenLine { get; set; } = true; // 是否启用直线自动拉直
[JsonProperty("autoStraightenLineThreshold")]
2025-07-24 20:59:21 +08:00
public int AutoStraightenLineThreshold { get; set; } = 80; // 直线自动拉直的长度阈值(像素)
2025-06-29 14:15:20 +08:00
[JsonProperty("highPrecisionLineStraighten")]
public bool HighPrecisionLineStraighten { get; set; } = true; // 是否启用高精度直线拉直
2025-06-17 22:37:37 +08:00
[JsonProperty("lineEndpointSnapping")]
public bool LineEndpointSnapping { get; set; } = true; // 是否启用直线端点吸附
[JsonProperty("lineEndpointSnappingThreshold")]
public int LineEndpointSnappingThreshold { get; set; } = 15; // 直线端点吸附的距离阈值(像素)
2025-05-25 09:29:48 +08:00
[JsonProperty("usingWhiteboard")]
2025-07-28 14:40:44 +08:00
public bool UsingWhiteboard { get; set; }
2025-07-16 09:16:36 +08:00
[JsonProperty("customBackgroundColor")]
public string CustomBackgroundColor { get; set; } = "#162924";
2025-05-25 09:29:48 +08:00
[JsonProperty("hyperbolaAsymptoteOption")]
public OptionalOperation HyperbolaAsymptoteOption { get; set; } = OptionalOperation.Ask;
2025-07-21 12:15:56 +08:00
[JsonProperty("isCompressPicturesUploaded")]
2025-07-28 14:40:44 +08:00
public bool IsCompressPicturesUploaded { get; set; }
2025-07-23 23:05:28 +08:00
[JsonProperty("enablePalmEraser")]
2025-07-23 23:10:10 +08:00
public bool EnablePalmEraser { get; set; } = true;
2025-08-30 14:53:50 +08:00
[JsonProperty("palmEraserSensitivity")]
2025-10-01 00:53:22 +08:00
public int PalmEraserSensitivity { get; set; } = 0; // 0-低敏感度, 1-中敏感度, 2-高敏感度
2025-07-27 22:52:04 +08:00
[JsonProperty("clearCanvasAlsoClearImages")]
2025-07-28 00:48:50 +08:00
public bool ClearCanvasAlsoClearImages { get; set; } = true;
2025-08-12 15:45:33 +08:00
[JsonProperty("showCircleCenter")]
2025-08-31 11:43:52 +08:00
public bool ShowCircleCenter { get; set; }
2025-08-23 23:13:39 +08:00
// 墨迹渐隐功能设置
[JsonProperty("enableInkFade")]
2025-10-03 17:08:46 +08:00
public bool EnableInkFade { get; set; } = false;
2025-08-23 23:13:39 +08:00
[JsonProperty("inkFadeTime")]
public int InkFadeTime { get; set; } = 3000; // 墨迹渐隐时间(毫秒)
[JsonProperty("hideInkFadeControlInPenMenu")]
public bool HideInkFadeControlInPenMenu { get; set; } = false; // 是否在笔工具菜单中隐藏墨迹渐隐控制开关
2025-08-31 11:43:52 +08:00
2025-05-25 09:29:48 +08:00
}
public enum OptionalOperation
{
Yes,
No,
Ask
}
public class Gesture
{
[JsonIgnore]
public bool IsEnableTwoFingerGesture => IsEnableTwoFingerZoom || IsEnableTwoFingerTranslate || IsEnableTwoFingerRotation;
[JsonIgnore]
public bool IsEnableTwoFingerGestureTranslateOrRotation => IsEnableTwoFingerTranslate || IsEnableTwoFingerRotation;
[JsonProperty("isEnableMultiTouchMode")]
2025-11-08 20:17:51 +08:00
public bool IsEnableMultiTouchMode { get; set; } = false;
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableTwoFingerZoom")]
public bool IsEnableTwoFingerZoom { get; set; } = true;
[JsonProperty("isEnableTwoFingerTranslate")]
public bool IsEnableTwoFingerTranslate { get; set; } = true;
[JsonProperty("AutoSwitchTwoFingerGesture")]
public bool AutoSwitchTwoFingerGesture { get; set; } = true;
[JsonProperty("isEnableTwoFingerRotation")]
2025-07-28 14:40:44 +08:00
public bool IsEnableTwoFingerRotation { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableTwoFingerRotationOnSelection")]
2025-07-28 14:40:44 +08:00
public bool IsEnableTwoFingerRotationOnSelection { get; set; }
2025-05-25 09:29:48 +08:00
}
2025-06-29 11:56:38 +08:00
// 更新通道枚举
public enum UpdateChannel
{
Release,
2026-01-17 17:05:55 +08:00
Preview,
2025-06-29 11:56:38 +08:00
Beta
}
2025-05-25 09:29:48 +08:00
public class Startup
{
[JsonProperty("isAutoUpdate")]
public bool IsAutoUpdate { get; set; } = true;
[JsonProperty("isAutoUpdateWithSilence")]
2025-07-28 14:40:44 +08:00
public bool IsAutoUpdateWithSilence { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoUpdateWithSilenceStartTime")]
2025-06-29 11:56:38 +08:00
public string AutoUpdateWithSilenceStartTime { get; set; } = "06:00";
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoUpdateWithSilenceEndTime")]
2025-06-29 11:56:38 +08:00
public string AutoUpdateWithSilenceEndTime { get; set; } = "22:00";
[JsonProperty("updateChannel")]
public UpdateChannel UpdateChannel { get; set; } = UpdateChannel.Release;
[JsonProperty("skippedVersion")]
public string SkippedVersion { get; set; } = "";
2025-12-20 17:45:35 +08:00
[JsonProperty("autoUpdatePauseUntilDate")]
public string AutoUpdatePauseUntilDate { get; set; } = "";
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableNibMode")]
2025-08-31 11:43:52 +08:00
public bool IsEnableNibMode { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isFoldAtStartup")]
2025-07-28 14:40:44 +08:00
public bool IsFoldAtStartup { get; set; }
[JsonProperty("crashAction")]
2025-07-28 14:40:44 +08:00
public int CrashAction { get; set; }
2025-05-25 09:29:48 +08:00
}
public class Appearance
{
[JsonProperty("isEnableDisPlayNibModeToggler")]
public bool IsEnableDisPlayNibModeToggler { get; set; } = true;
[JsonProperty("isColorfulViewboxFloatingBar")]
2025-07-28 14:40:44 +08:00
public bool IsColorfulViewboxFloatingBar { get; set; }
2025-05-25 09:29:48 +08:00
// [JsonProperty("enableViewboxFloatingBarScaleTransform")]
// public bool EnableViewboxFloatingBarScaleTransform { get; set; } = false;
[JsonProperty("viewboxFloatingBarScaleTransformValue")]
public double ViewboxFloatingBarScaleTransformValue { get; set; } = 1.0;
2025-08-03 16:46:33 +08:00
[JsonProperty("floatingBarImg")]
2025-07-28 14:40:44 +08:00
public int FloatingBarImg { get; set; }
2025-07-15 20:30:10 +08:00
[JsonProperty("customFloatingBarImgs")]
public List<CustomFloatingBarIcon> CustomFloatingBarImgs { get; set; } = new List<CustomFloatingBarIcon>();
2025-05-25 09:29:48 +08:00
[JsonProperty("viewboxFloatingBarOpacityValue")]
public double ViewboxFloatingBarOpacityValue { get; set; } = 1.0;
[JsonProperty("enableTrayIcon")]
public bool EnableTrayIcon { get; set; } = true;
[JsonProperty("viewboxFloatingBarOpacityInPPTValue")]
public double ViewboxFloatingBarOpacityInPPTValue { get; set; } = 0.5;
[JsonProperty("enableViewboxBlackBoardScaleTransform")]
2025-07-28 14:40:44 +08:00
public bool EnableViewboxBlackBoardScaleTransform { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isTransparentButtonBackground")]
public bool IsTransparentButtonBackground { get; set; } = true;
[JsonProperty("isShowExitButton")]
public bool IsShowExitButton { get; set; } = true;
[JsonProperty("isShowEraserButton")]
public bool IsShowEraserButton { get; set; } = true;
[JsonProperty("enableTimeDisplayInWhiteboardMode")]
public bool EnableTimeDisplayInWhiteboardMode { get; set; } = true;
[JsonProperty("enableChickenSoupInWhiteboardMode")]
public bool EnableChickenSoupInWhiteboardMode { get; set; } = true;
[JsonProperty("isShowHideControlButton")]
2025-07-28 14:40:44 +08:00
public bool IsShowHideControlButton { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("unFoldButtonImageType")]
2025-07-28 14:40:44 +08:00
public int UnFoldButtonImageType { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isShowLRSwitchButton")]
2025-07-28 14:40:44 +08:00
public bool IsShowLRSwitchButton { get; set; }
2025-10-01 18:38:01 +08:00
[JsonProperty("enableSplashScreen")]
2025-10-01 22:38:40 +08:00
public bool EnableSplashScreen { get; set; } = false;
[JsonProperty("splashScreenStyle")]
public int SplashScreenStyle { get; set; } = 1; // 0-随机, 1-跟随四季, 2-春季, 3-夏季, 4-秋季, 5-冬季, 6-马年限定
2025-05-25 09:29:48 +08:00
[JsonProperty("isShowQuickPanel")]
public bool IsShowQuickPanel { get; set; } = true;
[JsonProperty("chickenSoupSource")]
public int ChickenSoupSource { get; set; } = 1;
[JsonProperty("isShowModeFingerToggleSwitch")]
public bool IsShowModeFingerToggleSwitch { get; set; } = true;
[JsonProperty("theme")]
2025-08-03 16:46:33 +08:00
public int Theme { get; set; }
2025-08-31 11:43:52 +08:00
2025-08-11 19:08:05 +08:00
// 浮动栏按钮显示控制
2025-10-01 09:48:44 +08:00
[JsonProperty("useLegacyFloatingBarUI")]
public bool UseLegacyFloatingBarUI { get; set; } = false;
2025-08-11 19:08:05 +08:00
[JsonProperty("isShowShapeButton")]
public bool IsShowShapeButton { get; set; } = true;
[JsonProperty("isShowUndoButton")]
public bool IsShowUndoButton { get; set; } = true;
[JsonProperty("isShowRedoButton")]
public bool IsShowRedoButton { get; set; } = true;
[JsonProperty("isShowClearButton")]
public bool IsShowClearButton { get; set; } = true;
[JsonProperty("isShowWhiteboardButton")]
public bool IsShowWhiteboardButton { get; set; } = true;
[JsonProperty("isShowHideButton")]
2025-08-31 11:43:52 +08:00
public bool IsShowHideButton { get; set; } = true;
2025-08-11 22:42:36 +08:00
[JsonProperty("isShowLassoSelectButton")]
public bool IsShowLassoSelectButton { get; set; } = true;
[JsonProperty("isShowClearAndMouseButton")]
public bool IsShowClearAndMouseButton { get; set; } = true;
2025-08-11 19:18:21 +08:00
[JsonProperty("eraserDisplayOption")]
2025-08-31 09:54:13 +08:00
public int EraserDisplayOption { get; set; }
2025-08-11 20:19:01 +08:00
[JsonProperty("isShowQuickColorPalette")]
2025-08-31 09:54:13 +08:00
public bool IsShowQuickColorPalette { get; set; }
2025-08-12 12:19:55 +08:00
[JsonProperty("quickColorPaletteDisplayMode")]
2025-08-31 11:43:52 +08:00
public int QuickColorPaletteDisplayMode { get; set; } = 1;
2025-09-06 14:48:36 +08:00
[JsonProperty("enableHotkeysInMouseMode")]
2025-10-01 00:53:22 +08:00
public bool EnableHotkeysInMouseMode { get; set; } = false;
2025-09-06 14:48:36 +08:00
2025-05-25 09:29:48 +08:00
}
public class PowerPointSettings
{
[JsonProperty("showPPTButton")]
public bool ShowPPTButton { get; set; } = true;
// 每一个数位代表一个选项,2就是开启,1就是关闭
[JsonProperty("pptButtonsDisplayOption")]
public int PPTButtonsDisplayOption { get; set; } = 2222;
// 0居中,+就是往上,-就是往下
[JsonProperty("pptLSButtonPosition")]
2025-07-28 14:40:44 +08:00
public int PPTLSButtonPosition { get; set; }
2025-05-25 09:29:48 +08:00
// 0居中,+就是往上,-就是往下
[JsonProperty("pptRSButtonPosition")]
2025-07-28 14:40:44 +08:00
public int PPTRSButtonPosition { get; set; }
2025-05-25 09:29:48 +08:00
2025-08-23 19:27:30 +08:00
// 0居中,+就是往右,-就是往左
[JsonProperty("pptLBButtonPosition")]
public int PPTLBButtonPosition { get; set; }
// 0居中,+就是往右,-就是往左
[JsonProperty("pptRBButtonPosition")]
public int PPTRBButtonPosition { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("pptSButtonsOption")]
public int PPTSButtonsOption { get; set; } = 221;
[JsonProperty("pptBButtonsOption")]
public int PPTBButtonsOption { get; set; } = 121;
[JsonProperty("enablePPTButtonPageClickable")]
public bool EnablePPTButtonPageClickable { get; set; } = true;
2025-08-23 19:43:09 +08:00
[JsonProperty("enablePPTButtonLongPressPageTurn")]
public bool EnablePPTButtonLongPressPageTurn { get; set; } = true;
2025-12-20 22:56:13 +08:00
[JsonProperty("pptLSButtonOpacity")]
public double PPTLSButtonOpacity { get; set; } = 0.5;
[JsonProperty("pptRSButtonOpacity")]
public double PPTRSButtonOpacity { get; set; } = 0.5;
[JsonProperty("pptLBButtonOpacity")]
public double PPTLBButtonOpacity { get; set; } = 0.5;
[JsonProperty("pptRBButtonOpacity")]
public double PPTRBButtonOpacity { get; set; } = 0.5;
2025-05-25 09:29:48 +08:00
// -- new --
[JsonProperty("powerPointSupport")]
public bool PowerPointSupport { get; set; } = true;
[JsonProperty("isShowCanvasAtNewSlideShow")]
public bool IsShowCanvasAtNewSlideShow { get; set; } = true;
[JsonProperty("isNoClearStrokeOnSelectWhenInPowerPoint")]
public bool IsNoClearStrokeOnSelectWhenInPowerPoint { get; set; } = true;
[JsonProperty("isShowStrokeOnSelectInPowerPoint")]
2025-07-28 14:40:44 +08:00
public bool IsShowStrokeOnSelectInPowerPoint { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoSaveStrokesInPowerPoint")]
public bool IsAutoSaveStrokesInPowerPoint { get; set; } = true;
[JsonProperty("isAutoSaveScreenShotInPowerPoint")]
2025-07-28 14:40:44 +08:00
public bool IsAutoSaveScreenShotInPowerPoint { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isNotifyPreviousPage")]
2025-07-28 14:40:44 +08:00
public bool IsNotifyPreviousPage { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isNotifyHiddenPage")]
public bool IsNotifyHiddenPage { get; set; } = true;
[JsonProperty("isNotifyAutoPlayPresentation")]
public bool IsNotifyAutoPlayPresentation { get; set; } = true;
[JsonProperty("isEnableTwoFingerGestureInPresentationMode")]
2025-07-28 14:40:44 +08:00
public bool IsEnableTwoFingerGestureInPresentationMode { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableFingerGestureSlideShowControl")]
public bool IsEnableFingerGestureSlideShowControl { get; set; } = true;
[JsonProperty("isSupportWPS")]
2025-07-28 14:40:44 +08:00
public bool IsSupportWPS { get; set; }
2025-07-20 21:14:59 +08:00
[JsonProperty("enableWppProcessKill")]
public bool EnableWppProcessKill { get; set; } = true;
2025-07-21 17:19:27 +08:00
[JsonProperty("isAlwaysGoToFirstPageOnReenter")]
2025-07-28 14:40:44 +08:00
public bool IsAlwaysGoToFirstPageOnReenter { get; set; }
2025-09-06 12:09:06 +08:00
[JsonProperty("enablePowerPointEnhancement")]
2025-10-01 00:53:22 +08:00
public bool EnablePowerPointEnhancement { get; set; } = false;
2025-09-06 19:27:17 +08:00
[JsonProperty("showGestureButtonInSlideShow")]
2025-10-01 00:53:22 +08:00
public bool ShowGestureButtonInSlideShow { get; set; } = false;
2025-12-20 18:37:57 +08:00
[JsonProperty("skipAnimationsWhenGoNext")]
public bool SkipAnimationsWhenGoNext { get; set; } = false;
2025-12-27 22:41:24 +08:00
[JsonProperty("enablePPTTimeCapsule")]
public bool EnablePPTTimeCapsule { get; set; } = true;
[JsonProperty("pptTimeCapsulePosition")]
public int PPTTimeCapsulePosition { get; set; } = 1;
2025-05-25 09:29:48 +08:00
}
public class Automation
{
[JsonIgnore]
2025-08-03 16:46:33 +08:00
public bool IsEnableAutoFold =>
2025-05-25 09:29:48 +08:00
IsAutoFoldInEasiNote
|| IsAutoFoldInEasiCamera
|| IsAutoFoldInEasiNote3C
|| IsAutoFoldInEasiNote5C
|| IsAutoFoldInSeewoPincoTeacher
|| IsAutoFoldInHiteTouchPro
|| IsAutoFoldInHiteCamera
|| IsAutoFoldInWxBoardMain
|| IsAutoFoldInOldZyBoard
|| IsAutoFoldInPPTSlideShow
|| IsAutoFoldInMSWhiteboard
|| IsAutoFoldInAdmoxWhiteboard
|| IsAutoFoldInAdmoxBooth
|| IsAutoFoldInQPoint
|| IsAutoFoldInYiYunVisualPresenter
|| IsAutoFoldInMaxHubWhiteboard;
[JsonProperty("isAutoEnterAnnotationModeWhenExitFoldMode")]
2025-07-28 14:40:44 +08:00
public bool IsAutoEnterAnnotationModeWhenExitFoldMode { get; set; }
2025-09-20 11:22:09 +08:00
[JsonProperty("isAutoFoldWhenExitWhiteboard")]
public bool IsAutoFoldWhenExitWhiteboard { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInEasiNote")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInEasiNote { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInEasiNoteIgnoreDesktopAnno")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInEasiNoteIgnoreDesktopAnno { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInEasiCamera")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInEasiCamera { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInEasiNote3")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInEasiNote3 { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInEasiNote3C")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInEasiNote3C { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInEasiNote5C")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInEasiNote5C { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInSeewoPincoTeacher")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInSeewoPincoTeacher { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInHiteTouchPro")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInHiteTouchPro { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInHiteLightBoard")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInHiteLightBoard { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInHiteCamera")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInHiteCamera { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInWxBoardMain")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInWxBoardMain { get; set; }
2025-05-25 09:29:48 +08:00
/*
[JsonProperty("isAutoFoldInZySmartBoard")]
public bool IsAutoFoldInZySmartBoard { get; set; } = false;
*/
[JsonProperty("isAutoFoldInOldZyBoard")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInOldZyBoard { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInMSWhiteboard")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInMSWhiteboard { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInAdmoxWhiteboard")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInAdmoxWhiteboard { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInAdmoxBooth")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInAdmoxBooth { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInQPoint")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInQPoint { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInYiYunVisualPresenter")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInYiYunVisualPresenter { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInMaxHubWhiteboard")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInMaxHubWhiteboard { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldInPPTSlideShow")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldInPPTSlideShow { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoFoldAfterPPTSlideShow")]
2025-07-28 14:40:44 +08:00
public bool IsAutoFoldAfterPPTSlideShow { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillPptService")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillPptService { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillEasiNote")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillEasiNote { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillHiteAnnotation")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillHiteAnnotation { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillVComYouJiao")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillVComYouJiao { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillSeewoLauncher2DesktopAnnotation")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillSeewoLauncher2DesktopAnnotation { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillInkCanvas")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillInkCanvas { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillICA")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillICA { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoKillIDT")]
2025-07-28 14:40:44 +08:00
public bool IsAutoKillIDT { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isSaveScreenshotsInDateFolders")]
2025-07-28 14:40:44 +08:00
public bool IsSaveScreenshotsInDateFolders { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoSaveStrokesAtScreenshot")]
2025-07-28 14:40:44 +08:00
public bool IsAutoSaveStrokesAtScreenshot { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoSaveStrokesAtClear")]
2025-07-28 14:40:44 +08:00
public bool IsAutoSaveStrokesAtClear { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isAutoClearWhenExitingWritingMode")]
2025-07-28 14:40:44 +08:00
public bool IsAutoClearWhenExitingWritingMode { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("minimumAutomationStrokeNumber")]
2025-07-28 14:40:44 +08:00
public int MinimumAutomationStrokeNumber { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("autoSavedStrokesLocation")]
2025-09-13 21:10:36 +08:00
public string AutoSavedStrokesLocation = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Saves");
2025-05-25 09:29:48 +08:00
[JsonProperty("autoDelSavedFiles")]
2025-07-28 14:40:44 +08:00
public bool AutoDelSavedFiles;
2025-05-25 09:29:48 +08:00
[JsonProperty("autoDelSavedFilesDaysThreshold")]
public int AutoDelSavedFilesDaysThreshold = 15;
2025-08-03 16:46:33 +08:00
[JsonProperty("keepFoldAfterSoftwareExit")]
2025-10-01 00:53:22 +08:00
public bool KeepFoldAfterSoftwareExit { get; set; } = false;
2025-07-16 09:49:41 +08:00
[JsonProperty("isSaveFullPageStrokes")]
2025-07-28 14:40:44 +08:00
public bool IsSaveFullPageStrokes;
2025-12-28 00:08:08 +08:00
[JsonProperty("isSaveStrokesAsXML")]
public bool IsSaveStrokesAsXML { get; set; } = false;
[JsonProperty("isAutoEnterAnnotationAfterKillHite")]
2025-07-28 14:40:44 +08:00
public bool IsAutoEnterAnnotationAfterKillHite { get; set; }
2025-09-13 15:34:50 +08:00
2025-11-01 20:42:18 +08:00
[JsonProperty("isEnableAutoSaveStrokes")]
public bool IsEnableAutoSaveStrokes { get; set; } = true;
[JsonProperty("autoSaveStrokesIntervalMinutes")]
public int AutoSaveStrokesIntervalMinutes { get; set; } = 5;
2025-09-13 15:34:50 +08:00
[JsonProperty("floatingWindowInterceptor")]
public FloatingWindowInterceptorSettings FloatingWindowInterceptor { get; set; } = new FloatingWindowInterceptorSettings();
}
public class FloatingWindowInterceptorSettings
{
[JsonProperty("isEnabled")]
2025-10-01 00:53:22 +08:00
public bool IsEnabled { get; set; } = false;
2025-09-13 15:34:50 +08:00
[JsonProperty("scanIntervalMs")]
2025-10-03 17:08:46 +08:00
public int ScanIntervalMs { get; set; } = 5000;
2025-09-30 16:55:44 +08:00
[JsonProperty("autoStart")]
2025-10-01 00:53:22 +08:00
public bool AutoStart { get; set; } = false;
2025-09-30 16:55:44 +08:00
[JsonProperty("showNotifications")]
public bool ShowNotifications { get; set; } = true;
2025-09-13 15:34:50 +08:00
[JsonProperty("interceptRules")]
public Dictionary<string, bool> InterceptRules { get; set; } = new Dictionary<string, bool>
{
{ "SeewoWhiteboard3Floating", true },
{ "SeewoWhiteboard5Floating", true },
{ "SeewoWhiteboard5CFloating", true },
{ "SeewoPincoSideBarFloating", true },
{ "SeewoPincoDrawingFloating", true },
2025-09-20 17:06:11 +08:00
{ "SeewoPincoBoardService", true },
2025-09-13 15:34:50 +08:00
{ "SeewoPPTFloating", true },
{ "AiClassFloating", true },
{ "HiteAnnotationFloating", true },
{ "ChangYanFloating", true },
2025-09-20 17:06:11 +08:00
{ "ChangYanBrushSettings", true },
{ "ChangYanSwipeClear", true },
{ "ChangYanInteraction", true },
{ "ChangYanSubjectApp", true },
{ "ChangYanControl", true },
{ "ChangYanCommonTools", true },
{ "ChangYanSceneToolbar", true },
{ "ChangYanDrawWindow", true },
2025-09-13 15:34:50 +08:00
{ "ChangYanPptFloating", true },
2025-09-20 17:06:11 +08:00
{ "ChangYanPptPageControl", true },
{ "ChangYanPptGoBack", true },
{ "ChangYanPptPreview", true },
2025-09-13 15:34:50 +08:00
{ "IntelligentClassFloating", true },
2025-09-20 17:06:11 +08:00
{ "IntelligentClassPptFloating", true },
2025-09-13 15:34:50 +08:00
{ "SeewoDesktopAnnotationFloating", true },
{ "SeewoDesktopSideBarFloating", true }
};
2025-05-25 09:29:48 +08:00
}
public class Advanced
{
[JsonProperty("isSpecialScreen")]
2025-07-28 14:40:44 +08:00
public bool IsSpecialScreen { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isQuadIR")]
2025-07-28 14:40:44 +08:00
public bool IsQuadIR { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("touchMultiplier")]
public double TouchMultiplier { get; set; } = 0.25;
[JsonProperty("nibModeBoundsWidth")]
public int NibModeBoundsWidth { get; set; } = 10;
[JsonProperty("fingerModeBoundsWidth")]
public int FingerModeBoundsWidth { get; set; } = 30;
2025-09-20 14:02:29 +08:00
[JsonProperty("nibModeBoundsWidthThresholdValue")]
public double NibModeBoundsWidthThresholdValue { get; set; } = 2.5;
[JsonProperty("fingerModeBoundsWidthThresholdValue")]
public double FingerModeBoundsWidthThresholdValue { get; set; } = 2.5;
[JsonProperty("nibModeBoundsWidthEraserSize")]
public double NibModeBoundsWidthEraserSize { get; set; } = 0.8;
[JsonProperty("fingerModeBoundsWidthEraserSize")]
public double FingerModeBoundsWidthEraserSize { get; set; } = 0.8;
2025-05-25 09:29:48 +08:00
[JsonProperty("eraserBindTouchMultiplier")]
2025-07-28 14:40:44 +08:00
public bool EraserBindTouchMultiplier { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isLogEnabled")]
public bool IsLogEnabled { get; set; } = true;
2025-08-03 16:46:33 +08:00
2025-06-29 12:40:15 +08:00
[JsonProperty("isSaveLogByDate")]
public bool IsSaveLogByDate { get; set; } = true;
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableFullScreenHelper")]
2025-07-28 14:40:44 +08:00
public bool IsEnableFullScreenHelper { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableEdgeGestureUtil")]
2025-07-28 14:40:44 +08:00
public bool IsEnableEdgeGestureUtil { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("edgeGestureUtilOnlyAffectBlackboardMode")]
2025-07-28 14:40:44 +08:00
public bool EdgeGestureUtilOnlyAffectBlackboardMode { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableForceFullScreen")]
2025-07-28 14:40:44 +08:00
public bool IsEnableForceFullScreen { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableResolutionChangeDetection")]
2025-07-28 14:40:44 +08:00
public bool IsEnableResolutionChangeDetection { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isEnableDPIChangeDetection")]
2025-07-28 14:40:44 +08:00
public bool IsEnableDPIChangeDetection { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isSecondConfirmWhenShutdownApp")]
2025-07-28 14:40:44 +08:00
public bool IsSecondConfirmWhenShutdownApp { get; set; }
2025-06-06 11:39:40 +08:00
[JsonProperty("isEnableAvoidFullScreenHelper")]
2025-07-28 14:40:44 +08:00
public bool IsEnableAvoidFullScreenHelper { get; set; }
2025-08-03 16:46:33 +08:00
2025-07-16 15:28:36 +08:00
[JsonProperty("isAutoBackupBeforeUpdate")]
public bool IsAutoBackupBeforeUpdate { get; set; } = true;
2025-07-25 18:21:16 +08:00
2025-10-01 00:01:35 +08:00
[JsonProperty("isAutoBackupEnabled")]
public bool IsAutoBackupEnabled { get; set; } = true;
[JsonProperty("autoBackupIntervalDays")]
public int AutoBackupIntervalDays { get; set; } = 7;
[JsonProperty("lastAutoBackupTime")]
public DateTime LastAutoBackupTime { get; set; } = DateTime.MinValue;
2025-07-25 18:21:16 +08:00
[JsonProperty("isNoFocusMode")]
public bool IsNoFocusMode { get; set; } = true;
[JsonProperty("isAlwaysOnTop")]
public bool IsAlwaysOnTop { get; set; } = true;
2025-10-18 18:26:13 +08:00
[JsonProperty("enableUIAccessTopMost")]
public bool EnableUIAccessTopMost { get; set; } = false;
2025-12-13 17:03:58 +08:00
[JsonProperty("windowMode")]
2025-12-20 13:56:46 +08:00
public bool WindowMode { get; set; } = true;
2025-05-25 09:29:48 +08:00
}
public class InkToShape
{
[JsonProperty("isInkToShapeEnabled")]
public bool IsInkToShapeEnabled { get; set; } = true;
[JsonProperty("isInkToShapeNoFakePressureRectangle")]
2025-07-28 14:40:44 +08:00
public bool IsInkToShapeNoFakePressureRectangle { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isInkToShapeNoFakePressureTriangle")]
2025-07-28 14:40:44 +08:00
public bool IsInkToShapeNoFakePressureTriangle { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("isInkToShapeTriangle")]
public bool IsInkToShapeTriangle { get; set; } = true;
[JsonProperty("isInkToShapeRectangle")]
public bool IsInkToShapeRectangle { get; set; } = true;
[JsonProperty("isInkToShapeRounded")]
public bool IsInkToShapeRounded { get; set; } = true;
2025-06-18 15:10:33 +08:00
[JsonProperty("lineStraightenSensitivity")]
2025-11-29 22:20:13 +08:00
public double LineStraightenSensitivity { get; set; } = 0.20;
[JsonProperty("lineNormalizationThreshold")]
2025-12-20 13:56:46 +08:00
public double LineNormalizationThreshold { get; set; } = 0.5;
2025-05-25 09:29:48 +08:00
}
2025-08-03 16:46:33 +08:00
public class RandSettings
{
2025-05-25 09:29:48 +08:00
[JsonProperty("displayRandWindowNamesInputBtn")]
2025-07-28 14:40:44 +08:00
public bool DisplayRandWindowNamesInputBtn { get; set; }
2025-05-25 09:29:48 +08:00
[JsonProperty("randWindowOnceCloseLatency")]
public double RandWindowOnceCloseLatency { get; set; } = 2.5;
[JsonProperty("randWindowOnceMaxStudents")]
public int RandWindowOnceMaxStudents { get; set; } = 10;
[JsonProperty("showRandomAndSingleDraw")]
public bool ShowRandomAndSingleDraw { get; set; } = true;
2025-06-29 13:01:33 +08:00
[JsonProperty("directCallCiRand")]
2025-07-28 14:40:44 +08:00
public bool DirectCallCiRand { get; set; }
2025-09-13 12:08:45 +08:00
[JsonProperty("externalCallerType")]
2025-10-03 17:08:46 +08:00
public int ExternalCallerType { get; set; } = 0;
2025-07-15 20:50:12 +08:00
[JsonProperty("selectedBackgroundIndex")]
2025-07-28 14:40:44 +08:00
public int SelectedBackgroundIndex { get; set; }
2025-07-15 20:50:12 +08:00
[JsonProperty("customPickNameBackgrounds")]
public List<CustomPickNameBackground> CustomPickNameBackgrounds { get; set; } = new List<CustomPickNameBackground>();
2025-10-01 00:54:03 +08:00
[JsonProperty("useLegacyTimerUI")]
public bool UseLegacyTimerUI { get; set; } = false;
2025-10-12 17:17:51 +08:00
[JsonProperty("useNewStyleUI")]
public bool UseNewStyleUI { get; set; } = true;
2025-10-01 00:54:03 +08:00
[JsonProperty("timerVolume")]
public double TimerVolume { get; set; } = 1.0;
[JsonProperty("customTimerSoundPath")]
public string CustomTimerSoundPath { get; set; } = "";
2025-10-12 17:17:51 +08:00
[JsonProperty("enableOvertimeCountUp")]
public bool EnableOvertimeCountUp { get; set; } = false;
[JsonProperty("enableOvertimeRedText")]
public bool EnableOvertimeRedText { get; set; } = false;
2025-10-12 17:44:44 +08:00
[JsonProperty("enableProgressiveReminder")]
public bool EnableProgressiveReminder { get; set; } = false;
[JsonProperty("progressiveReminderVolume")]
public double ProgressiveReminderVolume { get; set; } = 1.0;
[JsonProperty("progressiveReminderSoundPath")]
public string ProgressiveReminderSoundPath { get; set; } = "";
2025-10-26 00:00:13 +08:00
[JsonProperty("useNewRollCallUI")]
public bool UseNewRollCallUI { get; set; } = true;
[JsonProperty("enableMLAvoidance")]
public bool EnableMLAvoidance { get; set; } = true;
[JsonProperty("mlAvoidanceHistoryCount")]
2025-11-29 16:58:40 +08:00
public int MLAvoidanceHistoryCount { get; set; } = 50;
2025-10-26 00:00:13 +08:00
[JsonProperty("mlAvoidanceWeight")]
2025-11-29 16:58:40 +08:00
public double MLAvoidanceWeight { get; set; } = 1.0;
2025-10-26 00:21:10 +08:00
[JsonProperty("enableQuickDraw")]
public bool EnableQuickDraw { get; set; } = true;
2025-07-15 20:50:12 +08:00
}
2025-08-03 16:46:33 +08:00
2025-07-15 20:50:12 +08:00
public class CustomPickNameBackground
{
[JsonProperty("name")]
public string Name { get; set; }
2025-08-03 16:46:33 +08:00
2025-07-15 20:50:12 +08:00
[JsonProperty("filePath")]
public string FilePath { get; set; }
2025-08-03 16:46:33 +08:00
2025-07-15 20:50:12 +08:00
public CustomPickNameBackground(string name, string filePath)
{
Name = name;
FilePath = filePath;
}
2025-08-03 16:46:33 +08:00
2025-07-15 20:50:12 +08:00
// 用于JSON序列化
public CustomPickNameBackground() { }
2025-05-25 09:29:48 +08:00
}
2025-08-03 16:46:33 +08:00
2025-07-15 20:30:10 +08:00
public class CustomFloatingBarIcon
{
[JsonProperty("name")]
public string Name { get; set; }
2025-08-03 16:46:33 +08:00
2025-07-15 20:30:10 +08:00
[JsonProperty("filePath")]
public string FilePath { get; set; }
2025-08-03 16:46:33 +08:00
2025-07-15 20:30:10 +08:00
public CustomFloatingBarIcon(string name, string filePath)
{
Name = name;
FilePath = filePath;
}
2025-08-03 16:46:33 +08:00
2025-07-15 20:30:10 +08:00
// 用于JSON序列化
public CustomFloatingBarIcon() { }
}
2025-09-06 21:26:46 +08:00
public class ModeSettings
{
[JsonProperty("isPPTOnlyMode")]
2025-10-01 00:53:22 +08:00
public bool IsPPTOnlyMode { get; set; } = false; // 是否为仅PPT模式,默认为false(正常模式)
2025-09-06 21:26:46 +08:00
}
2025-10-02 02:11:54 +08:00
public class CameraSettings
{
[JsonProperty("rotationAngle")]
2025-10-03 17:08:46 +08:00
public int RotationAngle { get; set; } = 0;
2025-10-02 02:11:54 +08:00
[JsonProperty("resolutionWidth")]
2025-10-03 17:08:46 +08:00
public int ResolutionWidth { get; set; } = 1920;
2025-10-02 02:11:54 +08:00
[JsonProperty("resolutionHeight")]
2025-10-03 17:08:46 +08:00
public int ResolutionHeight { get; set; } = 1080;
2025-10-02 02:11:54 +08:00
[JsonProperty("selectedCameraIndex")]
2025-10-03 17:08:46 +08:00
public int SelectedCameraIndex { get; set; } = 0;
2025-10-02 02:11:54 +08:00
}
2025-11-02 09:29:06 +08:00
public class DlassSettings
{
[JsonProperty("userToken")]
public string UserToken { get; set; } = string.Empty;
[JsonProperty("savedTokens")]
public List<string> SavedTokens { get; set; } = new List<string>();
2025-11-02 09:41:53 +08:00
[JsonProperty("selectedClassName")]
public string SelectedClassName { get; set; } = string.Empty;
2025-11-02 09:29:06 +08:00
[JsonProperty("apiBaseUrl")]
public string ApiBaseUrl { get; set; } = "https://dlass.tech";
2025-11-02 10:11:15 +08:00
[JsonProperty("isAutoUploadNotes")]
public bool IsAutoUploadNotes { get; set; } = false;
[JsonProperty("autoUploadDelayMinutes")]
public int AutoUploadDelayMinutes { get; set; } = 0;
2025-11-02 09:29:06 +08:00
}
2025-07-12 15:59:09 +08:00
}