2021-09-30 02:17:20 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2021-10-17 16:18:45 +00:00
|
|
|
|
using Newtonsoft.Json;
|
2021-09-30 02:17:20 +00:00
|
|
|
|
|
|
|
|
|
namespace MSFSPopoutPanelManager
|
|
|
|
|
{
|
|
|
|
|
public class UserData
|
|
|
|
|
{
|
|
|
|
|
public UserData()
|
|
|
|
|
{
|
|
|
|
|
Profiles = new List<UserPlaneProfile>();
|
|
|
|
|
DefaultProfileId = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<UserPlaneProfile> Profiles { get; set; }
|
|
|
|
|
|
|
|
|
|
public int DefaultProfileId { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class UserPlaneProfile
|
|
|
|
|
{
|
|
|
|
|
public UserPlaneProfile()
|
|
|
|
|
{
|
|
|
|
|
PanelSourceCoordinates = new List<PanelSourceCoordinate>();
|
|
|
|
|
PanelSettings = new PanelSettings();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int ProfileId { get; set; }
|
|
|
|
|
|
|
|
|
|
public PanelSettings PanelSettings { get; set; }
|
|
|
|
|
|
|
|
|
|
public List<PanelSourceCoordinate> PanelSourceCoordinates;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PanelSourceCoordinate
|
|
|
|
|
{
|
|
|
|
|
public int PanelIndex { get; set; }
|
|
|
|
|
|
|
|
|
|
public int X { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Y { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PanelSettings
|
|
|
|
|
{
|
|
|
|
|
public PanelSettings()
|
|
|
|
|
{
|
|
|
|
|
PanelDestinationList = new List<PanelDestinationInfo>();
|
|
|
|
|
AlwaysOnTop = false;
|
|
|
|
|
HidePanelTitleBar = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<PanelDestinationInfo> PanelDestinationList { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool AlwaysOnTop { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool HidePanelTitleBar { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class PanelDestinationInfo
|
|
|
|
|
{
|
|
|
|
|
public string PanelName { get; set; }
|
2021-10-17 16:18:45 +00:00
|
|
|
|
|
2021-09-30 02:17:20 +00:00
|
|
|
|
public int Top { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Left { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Width { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Height { get; set; }
|
2021-10-17 16:18:45 +00:00
|
|
|
|
|
|
|
|
|
public WindowType PanelType { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public IntPtr PanelHandle { get; set; }
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public bool IsOpened { get; set; }
|
2021-09-30 02:17:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|