PerClientZoomAnchor option
This commit is contained in:
@@ -47,6 +47,12 @@ namespace EveOPreview.Configuration.Implementation
|
||||
{"EVE - Example Toon 2", new Size(200, 200)}
|
||||
};
|
||||
|
||||
this.PerClientZoomAnchor = new Dictionary<string, ZoomAnchor>
|
||||
{
|
||||
{"EVE - Example Toon 1", ZoomAnchor.N },
|
||||
{"EVE - Example Toon 2", ZoomAnchor.S}
|
||||
};
|
||||
|
||||
this.PerClientLayout = new Dictionary<string, Dictionary<string, Point>>();
|
||||
this.FlatLayout = new Dictionary<string, Point>();
|
||||
this.ClientLayout = new Dictionary<string, ClientLayout>();
|
||||
@@ -129,6 +135,8 @@ namespace EveOPreview.Configuration.Implementation
|
||||
[JsonProperty("PerClientThumbnailSize")]
|
||||
public Dictionary<string, Size> PerClientThumbnailSize { get; set; }
|
||||
|
||||
[JsonProperty("PerClientZoomAnchor")]
|
||||
public Dictionary<string, ZoomAnchor> PerClientZoomAnchor{ get; set; }
|
||||
public bool MinimizeToTray { get; set; }
|
||||
public int ThumbnailRefreshPeriod { get; set; }
|
||||
public int ThumbnailResizeTimeoutPeriod { get; set; }
|
||||
@@ -246,6 +254,11 @@ namespace EveOPreview.Configuration.Implementation
|
||||
Size sizeOfThumbnail;
|
||||
return this.PerClientThumbnailSize.TryGetValue(currentClient, out sizeOfThumbnail) ? sizeOfThumbnail : defaultSize;
|
||||
}
|
||||
public ZoomAnchor GetZoomAnchor(string currentClient, ZoomAnchor defaultZoomAnchor)
|
||||
{
|
||||
ZoomAnchor zoomAnchor;
|
||||
return this.PerClientZoomAnchor.TryGetValue(currentClient, out zoomAnchor) ? zoomAnchor : defaultZoomAnchor;
|
||||
}
|
||||
|
||||
public void SetThumbnailLocation(string currentClient, string activeClient, Point location)
|
||||
{
|
||||
|
Reference in New Issue
Block a user