2021-09-12 18:28:26 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace Ink_Canvas
|
|
|
|
|
{
|
|
|
|
|
public class Settings
|
|
|
|
|
{
|
2021-10-30 01:02:51 +08:00
|
|
|
|
[JsonProperty("advanced")]
|
|
|
|
|
public Advanced Advanced { get; set; } = new Advanced();
|
2021-10-14 01:22:37 +08:00
|
|
|
|
[JsonProperty("appearance")]
|
|
|
|
|
public Appearance Appearance { get; set; } = new Appearance();
|
|
|
|
|
[JsonProperty("automation")]
|
|
|
|
|
public Automation Automation { get; set; } = new Automation();
|
2023-04-23 16:07:01 +08:00
|
|
|
|
[JsonProperty("behavior")]
|
2023-04-21 19:22:29 +08:00
|
|
|
|
public PowerPointSettings PowerPointSettings { get; set; } = new PowerPointSettings();
|
2021-09-25 11:36:17 +08:00
|
|
|
|
[JsonProperty("canvas")]
|
|
|
|
|
public Canvas Canvas { get; set; } = new Canvas();
|
2021-09-25 22:58:50 +08:00
|
|
|
|
[JsonProperty("gesture")]
|
|
|
|
|
public Gesture Gesture { get; set; } = new Gesture();
|
2021-10-30 01:02:51 +08:00
|
|
|
|
[JsonProperty("inkToShape")]
|
|
|
|
|
public InkToShape InkToShape { get; set; } = new InkToShape();
|
2021-09-12 18:28:26 +08:00
|
|
|
|
[JsonProperty("startup")]
|
|
|
|
|
public Startup Startup { get; set; } = new Startup();
|
|
|
|
|
}
|
2023-05-08 19:58:14 +08:00
|
|
|
|
|
2021-09-25 11:36:17 +08:00
|
|
|
|
public class Canvas
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("inkWidth")]
|
|
|
|
|
public double InkWidth { get; set; } = 2.5;
|
2021-09-25 13:38:27 +08:00
|
|
|
|
[JsonProperty("isShowCursor")]
|
|
|
|
|
public bool IsShowCursor { get; set; } = false;
|
2021-10-14 01:22:37 +08:00
|
|
|
|
[JsonProperty("inkStyle")]
|
|
|
|
|
public int InkStyle { get; set; } = 0;
|
2021-12-12 22:53:13 +08:00
|
|
|
|
[JsonProperty("eraserSize")]
|
|
|
|
|
public int EraserSize { get; set; } = 2;
|
2023-07-15 15:28:10 +08:00
|
|
|
|
[JsonProperty("eraserType")]
|
|
|
|
|
public int EraserType { get; set; } = 0; // 0 - 图标切换模式 1 - 面积擦 2 - 线条擦
|
2023-04-05 15:41:33 +08:00
|
|
|
|
[JsonProperty("hideStrokeWhenSelecting")]
|
|
|
|
|
public bool HideStrokeWhenSelecting { get; set; } = true;
|
2023-04-05 16:05:03 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("usingWhiteboard")]
|
|
|
|
|
public bool UsingWhiteboard { get; set; }
|
2023-05-08 20:37:55 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("hyperbolaAsymptoteOption")]
|
|
|
|
|
public OptionalOperation HyperbolaAsymptoteOption { get; set; } = OptionalOperation.Ask;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum OptionalOperation
|
|
|
|
|
{
|
|
|
|
|
Yes,
|
|
|
|
|
No,
|
|
|
|
|
Ask
|
2021-09-25 11:36:17 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-25 22:58:50 +08:00
|
|
|
|
public class Gesture
|
|
|
|
|
{
|
2022-07-11 08:50:22 +08:00
|
|
|
|
[JsonProperty("isEnableTwoFingerZoom")]
|
|
|
|
|
public bool IsEnableTwoFingerZoom { get; set; } = true;
|
2021-09-25 22:58:50 +08:00
|
|
|
|
[JsonProperty("isEnableTwoFingerRotation")]
|
|
|
|
|
public bool IsEnableTwoFingerRotation { get; set; } = false;
|
2021-12-12 00:32:33 +08:00
|
|
|
|
[JsonProperty("isEnableTwoFingerRotationOnSelection")]
|
|
|
|
|
public bool IsEnableTwoFingerRotationOnSelection { get; set; } = false;
|
2023-05-08 19:58:14 +08:00
|
|
|
|
|
2021-09-25 22:58:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-09-12 18:28:26 +08:00
|
|
|
|
public class Startup
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("isAutoHideCanvas")]
|
2021-11-21 12:48:21 +08:00
|
|
|
|
public bool IsAutoHideCanvas { get; set; } = true;
|
2021-09-12 18:28:26 +08:00
|
|
|
|
[JsonProperty("isAutoEnterModeFinger")]
|
|
|
|
|
public bool IsAutoEnterModeFinger { get; set; } = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Appearance
|
|
|
|
|
{
|
2021-09-25 13:38:27 +08:00
|
|
|
|
[JsonProperty("isTransparentButtonBackground")]
|
|
|
|
|
public bool IsTransparentButtonBackground { get; set; } = true;
|
2021-09-12 18:28:26 +08:00
|
|
|
|
[JsonProperty("isShowExitButton")]
|
|
|
|
|
public bool IsShowExitButton { get; set; } = true;
|
|
|
|
|
[JsonProperty("isShowEraserButton")]
|
|
|
|
|
public bool IsShowEraserButton { get; set; } = true;
|
|
|
|
|
[JsonProperty("isShowHideControlButton")]
|
2021-09-27 01:20:14 +08:00
|
|
|
|
public bool IsShowHideControlButton { get; set; } = false;
|
2021-09-12 18:28:26 +08:00
|
|
|
|
[JsonProperty("isShowLRSwitchButton")]
|
2021-09-27 01:20:14 +08:00
|
|
|
|
public bool IsShowLRSwitchButton { get; set; } = false;
|
2021-09-15 00:38:39 +08:00
|
|
|
|
[JsonProperty("isShowModeFingerToggleSwitch")]
|
2021-09-12 18:28:26 +08:00
|
|
|
|
public bool IsShowModeFingerToggleSwitch { get; set; } = true;
|
2023-05-27 21:56:25 +08:00
|
|
|
|
[JsonProperty("theme")]
|
|
|
|
|
public int Theme { get; set; } = 0;
|
2023-04-21 19:22:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PowerPointSettings
|
|
|
|
|
{
|
2023-02-12 13:21:54 +08:00
|
|
|
|
[JsonProperty("isShowPPTNavigation")]
|
|
|
|
|
public bool IsShowPPTNavigation { get; set; } = true;
|
2023-04-21 19:22:29 +08:00
|
|
|
|
[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")]
|
|
|
|
|
public bool IsShowStrokeOnSelectInPowerPoint { get; set; } = false;
|
|
|
|
|
[JsonProperty("isAutoSaveStrokesInPowerPoint")]
|
|
|
|
|
public bool IsAutoSaveStrokesInPowerPoint { get; set; } = true;
|
|
|
|
|
[JsonProperty("isAutoSaveScreenShotInPowerPoint")]
|
|
|
|
|
public bool IsAutoSaveScreenShotInPowerPoint { get; set; } = false;
|
|
|
|
|
[JsonProperty("isNotifyPreviousPage")]
|
2023-04-23 16:07:01 +08:00
|
|
|
|
public bool IsNotifyPreviousPage { get; set; } = false;
|
2023-04-21 19:22:29 +08:00
|
|
|
|
[JsonProperty("isNotifyHiddenPage")]
|
|
|
|
|
public bool IsNotifyHiddenPage { get; set; } = true;
|
|
|
|
|
[JsonProperty("isEnableTwoFingerGestureInPresentationMode")]
|
|
|
|
|
public bool IsEnableTwoFingerGestureInPresentationMode { get; set; } = false;
|
|
|
|
|
[JsonProperty("isEnableFingerGestureSlideShowControl")]
|
|
|
|
|
public bool IsEnableFingerGestureSlideShowControl { get; set; } = true;
|
2023-06-05 19:42:23 +08:00
|
|
|
|
[JsonProperty("isSupportWPS")]
|
|
|
|
|
public bool IsSupportWPS { get; set; } = true;
|
2021-09-12 18:28:26 +08:00
|
|
|
|
}
|
2023-05-08 19:58:14 +08:00
|
|
|
|
|
2021-10-14 01:22:37 +08:00
|
|
|
|
public class Automation
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("isAutoKillPptService")]
|
|
|
|
|
public bool IsAutoKillPptService { get; set; } = false;
|
2023-05-19 20:15:38 +08:00
|
|
|
|
|
2021-10-14 01:22:37 +08:00
|
|
|
|
[JsonProperty("isAutoKillEasiNote")]
|
|
|
|
|
public bool IsAutoKillEasiNote { get; set; } = false;
|
2023-05-19 20:15:38 +08:00
|
|
|
|
|
|
|
|
|
[JsonProperty("isSaveScreenshotsInDateFolders")]
|
|
|
|
|
public bool IsSaveScreenshotsInDateFolders { get; set; } = false;
|
|
|
|
|
|
2021-12-12 18:46:04 +08:00
|
|
|
|
[JsonProperty("isAutoSaveStrokesAtScreenshot")]
|
|
|
|
|
public bool IsAutoSaveStrokesAtScreenshot { get; set; } = false;
|
2023-05-19 20:15:38 +08:00
|
|
|
|
|
2022-03-08 23:43:25 +08:00
|
|
|
|
[JsonProperty("isAutoSaveStrokesAtClear")]
|
|
|
|
|
public bool IsAutoSaveStrokesAtClear { get; set; } = false;
|
2023-05-08 19:58:14 +08:00
|
|
|
|
|
2023-02-04 23:45:08 +08:00
|
|
|
|
[JsonProperty("isAutoClearWhenExitingWritingMode")]
|
|
|
|
|
public bool IsAutoClearWhenExitingWritingMode { get; set; } = false;
|
2023-02-12 22:50:17 +08:00
|
|
|
|
|
2023-04-05 16:19:09 +08:00
|
|
|
|
[JsonProperty("minimumAutomationStrokeNumber")]
|
|
|
|
|
public int MinimumAutomationStrokeNumber { get; set; } = 0;
|
|
|
|
|
|
2021-10-14 01:22:37 +08:00
|
|
|
|
}
|
2021-10-30 01:02:51 +08:00
|
|
|
|
|
|
|
|
|
public class Advanced
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("isSpecialScreen")]
|
|
|
|
|
public bool IsSpecialScreen { get; set; } = false;
|
2023-04-14 14:09:07 +08:00
|
|
|
|
[JsonProperty("touchMultiplier")]
|
2023-04-17 17:23:17 +08:00
|
|
|
|
public double TouchMultiplier { get; set; } = 0.25;
|
2023-04-14 14:09:07 +08:00
|
|
|
|
[JsonProperty("eraserBindTouchMultiplier")]
|
2023-09-22 14:06:50 +08:00
|
|
|
|
public bool EraserBindTouchMultiplier { get; set; } = false;
|
2021-12-16 01:21:41 +08:00
|
|
|
|
[JsonProperty("isLogEnabled")]
|
|
|
|
|
public bool IsLogEnabled { get; set; } = true;
|
2021-10-30 01:02:51 +08:00
|
|
|
|
}
|
2023-02-12 22:50:17 +08:00
|
|
|
|
|
2021-10-30 01:02:51 +08:00
|
|
|
|
public class InkToShape
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("isInkToShapeEnabled")]
|
|
|
|
|
public bool IsInkToShapeEnabled { get; set; } = true;
|
|
|
|
|
}
|
2021-09-12 18:28:26 +08:00
|
|
|
|
}
|