Added layer properties to core and hooked it up with the UI

Implemented timeline caret scrolling logic
Added special treeview style for the layer properties tree
This commit is contained in:
Robert committed 2020-01-06 22:50:51 +01:00
1 parent 8f438abe49
commit a2efeb887a
48 files changed
+618 -381

No files matched your search

@@ -7,6 +7,7 @@ namespace Artemis.Core.Models.Profile.LayerShapes
public Fill(Layer layer) : base(layer)
{
}
internal Fill(Layer layer, ShapeEntity shapeEntity) : base(layer, shapeEntity)
{
}
@@ -1,5 +1,4 @@
using System;
using System.Linq;
using System.Linq;
using Artemis.Storage.Entities.Profile;
using SkiaSharp;
@@ -61,12 +60,12 @@ namespace Artemis.Core.Models.Profile.LayerShapes
}
/// <summary>
/// A render rectangle relative to the layer
/// A render rectangle relative to the layer
/// </summary>
public SKRect RenderRectangle { get; protected set; }
/// <summary>
/// A path relative to the layer
/// A path relative to the layer
/// </summary>
public SKPath RenderPath { get; protected set; }
@@ -84,7 +83,7 @@ namespace Artemis.Core.Models.Profile.LayerShapes
}
/// <summary>
/// Updates Position and Size using the provided unscaled rectangle
/// Updates Position and Size using the provided unscaled rectangle
/// </summary>
/// <param name="rect">An unscaled rectangle where 1px = 1mm</param>
public void SetFromUnscaledRectangle(SKRect rect)
@@ -7,7 +7,6 @@ namespace Artemis.Core.Models.Profile.LayerShapes
{
public class Polygon : LayerShape
{
public Polygon(Layer layer) : base(layer)
{
}
@@ -39,7 +38,7 @@ namespace Artemis.Core.Models.Profile.LayerShapes
{
base.ApplyToEntity();
Layer.LayerEntity.ShapeEntity.Type = ShapeEntityType.Polygon;
Layer.LayerEntity.ShapeEntity.Points = Points.Select(p => new ShapePointEntity { X = p.X, Y = p.Y }).ToList();
Layer.LayerEntity.ShapeEntity.Points = Points.Select(p => new ShapePointEntity {X = p.X, Y = p.Y}).ToList();
}
}
}