InkCanvasForClass/Ink Canvas/Settings.cs

72 lines
2.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("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();
2021-09-12 18:28:26 +08:00
[JsonProperty("startup")]
public Startup Startup { get; set; } = new Startup();
[JsonProperty("appearance")]
public Appearance Appearance { get; set; } = new Appearance();
}
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-09-25 22:58:50 +08:00
public class Gesture
{
[JsonProperty("isEnableTwoFingerRotation")]
public bool IsEnableTwoFingerRotation { get; set; } = false;
[JsonProperty("isEnableTwoFingerGestureInPresentationMode")]
public bool IsEnableTwoFingerGestureInPresentationMode { get; set; } = false;
}
2021-09-12 18:28:26 +08:00
public class Startup
{
[JsonProperty("isAutoHideCanvas")]
public bool IsAutoHideCanvas { get; set; } = false;
[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; } = true;
[JsonProperty("isShowLRSwitchButton")]
public bool IsShowLRSwitchButton { get; set; } = true;
[JsonProperty("isShowModeFingerToggleSwitch")]
2021-09-12 18:28:26 +08:00
public bool IsShowModeFingerToggleSwitch { get; set; } = true;
}
}