InkCanvasForClass/Ink Canvas/Settings.cs

119 lines
4.4 KiB
C#
Raw Normal View History

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
{
[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();
[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();
[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;
}
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;
[JsonProperty("eraserSize")]
public int EraserSize { get; set; } = 2;
}
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;
[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")]
public bool IsShowHideControlButton { get; set; } = false;
2021-09-12 18:28:26 +08:00
[JsonProperty("isShowLRSwitchButton")]
public bool IsShowLRSwitchButton { get; set; } = false;
[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;
[JsonProperty("isAutoSaveStrokesAtScreenshot")]
public bool IsAutoSaveStrokesAtScreenshot { get; set; } = false;
2022-03-08 23:43:25 +08:00
[JsonProperty("isAutoSaveStrokesAtClear")]
public bool IsAutoSaveStrokesAtClear { get; set; } = false;
[JsonProperty("isAutoSaveStrokesInPowerPoint")]
public bool IsAutoSaveStrokesInPowerPoint { get; set; } = true;
[JsonProperty("isAutoClearWhenExitingWritingMode")]
public bool IsAutoClearWhenExitingWritingMode { get; set; } = false;
2021-10-14 01:22:37 +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;
}
public class InkToShape
{
[JsonProperty("isInkToShapeEnabled")]
public bool IsInkToShapeEnabled { get; set; } = true;
}
2021-09-12 18:28:26 +08:00
}