Skip to content
This repository was archived by the owner on Nov 25, 2023. It is now read-only.

Commit 267da95

Browse files
committed
Reshape models
1 parent 554d21d commit 267da95

File tree

18 files changed

+98
-93
lines changed

18 files changed

+98
-93
lines changed

src/InvvardDev.EZLayoutDisplay.Desktop/InvvardDev.EZLayoutDisplay.Desktop.csproj

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,12 @@
8484
<Compile Include="Helper\KeyContentTemplateSelector.cs" />
8585
<Compile Include="Helper\LoggerHelper.cs" />
8686
<Compile Include="Model\Enum\KeyDisplayType.cs" />
87-
<Compile Include="Model\ErgodoxTag.cs" />
88-
<Compile Include="Model\ErgodoxKeyFeature.cs" />
87+
<Compile Include="Model\Ez\Content\BaseContent.cs" />
88+
<Compile Include="Model\Ez\Content\ColorPicker.cs" />
89+
<Compile Include="Model\Ez\Content\Glyph.cs" />
90+
<Compile Include="Model\Ez\Content\Layer.cs" />
91+
<Compile Include="Model\ZsaModels\ErgodoxTag.cs" />
92+
<Compile Include="Model\ZsaModels\ErgodoxKeyFeature.cs" />
8993
<Compile Include="Model\KeyTemplate.cs" />
9094
<Compile Include="Model\Messenger\UpdatedLayoutMessage.cs" />
9195
<Compile Include="Properties\Resources.Designer.cs">
@@ -102,19 +106,19 @@
102106
<Compile Include="Helper\EZLayoutMaker.cs" />
103107
<Compile Include="Model\Dictionary\KeyModifierDictionary.cs" />
104108
<Compile Include="Model\Enum\KeyModifier.cs" />
105-
<Compile Include="Model\EZKey.cs" />
109+
<Compile Include="Model\Ez\Key.cs" />
106110
<Compile Include="Model\EZLayout.cs" />
107111
<Compile Include="Model\EZModifier.cs" />
108112
<Compile Include="Model\Enum\KeyCategory.cs" />
109113
<Compile Include="Model\Dictionary\KeyDefinitionDictionary.cs" />
110114
<Compile Include="Model\Enum\SettingsName.cs" />
111115
<Compile Include="Model\EZLayer.cs" />
112116
<Compile Include="Model\Hotkey.cs" />
113-
<Compile Include="Model\ErgodoxKey.cs" />
117+
<Compile Include="Model\ZsaModels\ErgodoxKey.cs" />
114118
<Compile Include="Model\KeyDefinition.cs" />
115-
<Compile Include="Model\ErgodoxLayer.cs" />
116-
<Compile Include="Model\ErgodoxLayout.cs" />
117-
<Compile Include="Model\ErgodoxModifiers.cs" />
119+
<Compile Include="Model\ZsaModels\ErgodoxLayer.cs" />
120+
<Compile Include="Model\ZsaModels\ErgodoxLayout.cs" />
121+
<Compile Include="Model\ZsaModels\ErgodoxModifiers.cs" />
118122
<Compile Include="Model\Revision.cs" />
119123
<Compile Include="Service\Implementation\ApplicationService.cs" />
120124
<Compile Include="Service\Implementation\KeyboardHookService.cs" />
@@ -277,6 +281,7 @@
277281
<Version>1.4.0</Version>
278282
</PackageReference>
279283
</ItemGroup>
284+
<ItemGroup />
280285
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
281286
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
282287
Other similar extension points exist, see Microsoft.Common.targets.

src/InvvardDev.EZLayoutDisplay.Desktop/Model/EZKey.cs

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/InvvardDev.EZLayoutDisplay.Desktop/Model/EZLayer.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Collections.Generic;
1+
using InvvardDev.EZLayoutDisplay.Desktop.Model.Ez;
2+
using System.Collections.Generic;
23

34
namespace InvvardDev.EZLayoutDisplay.Desktop.Model
45
{
@@ -17,7 +18,7 @@ public class EZLayer
1718
/// <summary>
1819
/// Gets or sets the layer list of keys.
1920
/// </summary>
20-
public List<EZKey> EZKeys { get; set; }
21+
public List<Key> Keys { get; set; }
2122

2223
/// <summary>
2324
/// Gets or sets the layer color.
@@ -26,7 +27,7 @@ public class EZLayer
2627

2728
public EZLayer()
2829
{
29-
EZKeys = new List<EZKey>();
30+
Keys = new List<Key>();
3031
}
3132
}
3233
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace InvvardDev.EZLayoutDisplay.Desktop.Model.Ez.Content
2+
{
3+
public class BaseContent
4+
{
5+
/// <summary>
6+
/// Gets or sets the key main label.
7+
/// </summary>
8+
public string Label { get; set; }
9+
10+
/// <summary>
11+
/// Gets or sets the key tag.
12+
/// </summary>
13+
public string Tag { get; set; }
14+
}
15+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace InvvardDev.EZLayoutDisplay.Desktop.Model.Ez.Content
2+
{
3+
public class ColorPicker : BaseContent
4+
{
5+
public string ColorCode { get; set; }
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace InvvardDev.EZLayoutDisplay.Desktop.Model.Ez.Content
2+
{
3+
public class Glyph : BaseContent
4+
{
5+
public string Modifier { get; set; }
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace InvvardDev.EZLayoutDisplay.Desktop.Model.Ez.Content
2+
{
3+
internal class Layer : BaseContent
4+
{
5+
public int Id { get; set; }
6+
}
7+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using InvvardDev.EZLayoutDisplay.Desktop.Model.Enum;
2+
using InvvardDev.EZLayoutDisplay.Desktop.Model.Ez.Content;
3+
4+
namespace InvvardDev.EZLayoutDisplay.Desktop.Model.Ez
5+
{
6+
public class Key
7+
{
8+
public BaseContent Primary { get; set; }
9+
10+
public BaseContent Secondary { get; set;}
11+
12+
/// <summary>
13+
/// Gets or sets the key glowing color.
14+
/// </summary>
15+
public string GlowColor { get; set; }
16+
17+
/// <summary>
18+
/// Gets or sets the key category.
19+
/// </summary>
20+
public KeyCategory Category { get; set; }
21+
}
22+
}

src/InvvardDev.EZLayoutDisplay.Desktop/Model/KeyTemplate.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.ComponentModel;
2+
using InvvardDev.EZLayoutDisplay.Desktop.Model.Ez;
23
using Newtonsoft.Json;
34

45
namespace InvvardDev.EZLayoutDisplay.Desktop.Model
@@ -82,7 +83,7 @@ public class KeyTemplate
8283
// ReSharper restore MemberCanBePrivate.Global
8384
// ReSharper restore UnusedMember.Global
8485

85-
public EZKey EZKey { get; set; }
86+
public Key Key { get; set; }
8687

8788
public KeyTemplate()
8889
{

src/InvvardDev.EZLayoutDisplay.Desktop/Model/Revision.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using InvvardDev.EZLayoutDisplay.Desktop.Model.ZsaModels;
23
using Newtonsoft.Json;
34

45
namespace InvvardDev.EZLayoutDisplay.Desktop.Model

0 commit comments

Comments
 (0)