2020-05-17 18:52:37 +00:00
|
|
|
|
using System.Collections.Generic;
|
2020-11-14 15:36:46 +00:00
|
|
|
|
using System.Drawing;
|
2020-05-17 18:52:37 +00:00
|
|
|
|
|
|
|
|
|
namespace AppLauncher.Models
|
|
|
|
|
{
|
|
|
|
|
public class LauncherSession
|
|
|
|
|
{
|
2020-05-19 23:49:47 +00:00
|
|
|
|
public class HotKeyOptions
|
|
|
|
|
{
|
|
|
|
|
public bool IsCtrl { get; set; } = false;
|
|
|
|
|
public bool IsAlt { get; set; } = false;
|
|
|
|
|
public bool IsShift { get; set; } = false;
|
|
|
|
|
public int Key { get; set; } = (int)System.Windows.Forms.Keys.None;
|
|
|
|
|
|
|
|
|
|
public int ModifierCode => ((this.IsAlt ? 1 : 0) + (this.IsCtrl ? 2 : 0) + (this.IsShift ? 4 : 0));
|
|
|
|
|
|
|
|
|
|
public System.Windows.Forms.Keys KeyCode => (System.Windows.Forms.Keys)this.Key;
|
2020-05-20 22:46:36 +00:00
|
|
|
|
}
|
2020-05-19 23:49:47 +00:00
|
|
|
|
|
2020-05-20 22:46:36 +00:00
|
|
|
|
public enum AutoSaveOption
|
|
|
|
|
{
|
|
|
|
|
Prompt = 0,
|
|
|
|
|
Yes,
|
|
|
|
|
No
|
2020-05-19 23:49:47 +00:00
|
|
|
|
}
|
|
|
|
|
|
2020-05-17 18:52:37 +00:00
|
|
|
|
public int DefaultHeight { get; set; } = 280;
|
2020-05-19 23:49:47 +00:00
|
|
|
|
public HotKeyOptions HotKey { get; set; } = null;
|
2020-11-14 15:36:46 +00:00
|
|
|
|
|
2020-05-18 23:17:22 +00:00
|
|
|
|
public bool AlwaysOnTop { get; set; } = false;
|
2020-11-14 15:36:46 +00:00
|
|
|
|
public bool EnableAnimation { get; set; } = false;
|
2020-11-14 16:47:52 +00:00
|
|
|
|
public bool EnableBigIconInFolder { get; set; } = false;
|
2020-11-14 15:36:46 +00:00
|
|
|
|
|
2020-05-20 00:42:51 +00:00
|
|
|
|
public bool HideOnClose { get; set; } = false;
|
2020-05-20 01:03:12 +00:00
|
|
|
|
public bool HideOnClick { get; set; } = false;
|
2020-05-20 22:46:36 +00:00
|
|
|
|
public AutoSaveOption AutoSave { get; set; } = AutoSaveOption.Prompt;
|
2020-05-17 18:52:37 +00:00
|
|
|
|
public List<TileGroupModel> Groups { get; set; } = new List<TileGroupModel>();
|
2020-11-14 15:36:46 +00:00
|
|
|
|
public Point StartPosition { get; set; } = Point.Empty;
|
2020-05-19 23:49:47 +00:00
|
|
|
|
|
2020-05-17 18:52:37 +00:00
|
|
|
|
}
|
|
|
|
|
}
|