2021-09-12 18:28:26 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
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();
|
2021-09-12 18:28:26 +08:00
|
|
|
|
[JsonProperty("behavior")]
|
|
|
|
|
public Behavior Behavior { get; set; } = new Behavior();
|
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();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Behavior
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("powerPointSupport")]
|
|
|
|
|
public bool PowerPointSupport { get; set; } = true;
|
|
|
|
|
[JsonProperty("isShowCanvasAtNewSlideShow")]
|
|
|
|
|
public bool IsShowCanvasAtNewSlideShow { get; set; } = true;
|
|
|
|
|
}
|
|
|
|
|
|
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;
|
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;
|
2021-09-25 22:58:50 +08:00
|
|
|
|
[JsonProperty("isEnableTwoFingerGestureInPresentationMode")]
|
|
|
|
|
public bool IsEnableTwoFingerGestureInPresentationMode { get; set; } = false;
|
2021-12-01 00:43:37 +08:00
|
|
|
|
[JsonProperty("isEnableFingerGestureSlideShowControl")]
|
|
|
|
|
public bool IsEnableFingerGestureSlideShowControl { get; set; } = true;
|
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;
|
|
|
|
|
}
|
2021-10-14 01:22:37 +08:00
|
|
|
|
|
|
|
|
|
public class Automation
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("isAutoKillPptService")]
|
|
|
|
|
public bool IsAutoKillPptService { get; set; } = false;
|
|
|
|
|
[JsonProperty("isAutoKillEasiNote")]
|
|
|
|
|
public bool IsAutoKillEasiNote { get; set; } = false;
|
2021-12-12 18:46:04 +08:00
|
|
|
|
[JsonProperty("isAutoSaveStrokesAtScreenshot")]
|
|
|
|
|
public bool IsAutoSaveStrokesAtScreenshot { get; set; } = false;
|
2022-03-08 23:43:25 +08:00
|
|
|
|
[JsonProperty("isAutoSaveStrokesAtClear")]
|
|
|
|
|
public bool IsAutoSaveStrokesAtClear { get; set; } = false;
|
2021-12-12 18:46:04 +08:00
|
|
|
|
[JsonProperty("isAutoSaveStrokesInPowerPoint")]
|
|
|
|
|
public bool IsAutoSaveStrokesInPowerPoint { get; set; } = true;
|
2023-02-04 23:45:08 +08:00
|
|
|
|
[JsonProperty("isAutoClearWhenExitingWritingMode")]
|
|
|
|
|
public bool IsAutoClearWhenExitingWritingMode { get; set; } = false;
|
|
|
|
|
|
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;
|
2021-12-16 01:21:41 +08:00
|
|
|
|
[JsonProperty("isLogEnabled")]
|
|
|
|
|
public bool IsLogEnabled { get; set; } = true;
|
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
|
|
|
|
}
|