diff --git a/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.Designer.cs b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.Designer.cs new file mode 100644 index 00000000..7e6b8913 --- /dev/null +++ b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.Designer.cs @@ -0,0 +1,105 @@ +namespace UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms.Editors.ThemePack +{ + partial class ThemePackEditor + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.tv = new global::AwesomeControls.ListView.ListViewControl(); + this.lv = new global::AwesomeControls.ListView.ListViewControl(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.SuspendLayout(); + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1; + this.splitContainer1.Location = new System.Drawing.Point(0, 0); + this.splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.tv); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.lv); + this.splitContainer1.Size = new System.Drawing.Size(441, 264); + this.splitContainer1.SplitterDistance = 147; + this.splitContainer1.TabIndex = 0; + // + // tv + // + this.tv.Dock = System.Windows.Forms.DockStyle.Fill; + this.tv.Location = new System.Drawing.Point(0, 0); + this.tv.Name = "tv"; + this.tv.Size = new System.Drawing.Size(147, 264); + this.tv.TabIndex = 0; + // + // lv + // + this.lv.AllowSorting = true; + this.lv.BackColor = System.Drawing.SystemColors.Window; + this.lv.DefaultItemHeight = 24; + this.lv.Dock = System.Windows.Forms.DockStyle.Fill; + this.lv.EnableAutomaticInlineRenaming = true; + this.lv.ForeColor = System.Drawing.SystemColors.WindowText; + this.lv.LargeImageList = null; + this.lv.Location = new System.Drawing.Point(0, 0); + this.lv.Mode = global::AwesomeControls.ListView.ListViewMode.Tiles; + this.lv.Name = "lv"; + this.lv.ShadeColor = System.Drawing.Color.WhiteSmoke; + this.lv.Size = new System.Drawing.Size(290, 264); + this.lv.SmallImageList = null; + this.lv.SortColumn = null; + this.lv.TabIndex = 0; + // + // ThemePackEditor + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.splitContainer1); + this.Name = "ThemePackEditor"; + this.Size = new System.Drawing.Size(441, 264); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private global::AwesomeControls.ListView.ListViewControl tv; + private global::AwesomeControls.ListView.ListViewControl lv; + } +} diff --git a/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.cs b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.cs new file mode 100644 index 00000000..9525c69e --- /dev/null +++ b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Text; + +using UniversalEditor.UserInterface; +using UniversalEditor.UserInterface.WindowsForms; + +using AwesomeControls.ObjectModels.Theming; +using AwesomeControls.ListView; + +namespace UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms.Editors.ThemePack +{ + public partial class ThemePackEditor : Editor + { + public ThemePackEditor() + { + InitializeComponent(); + } + + private static EditorReference _er = null; + public override EditorReference MakeReference() + { + if (_er == null) + { + _er = base.MakeReference(); + _er.SupportedObjectModels.Add(typeof(ThemeObjectModel)); + } + return _er; + } + + protected override void OnObjectModelChanged(EventArgs e) + { + base.OnObjectModelChanged(e); + + tv.Items.Clear(); + lv.Items.Clear(); + + ThemeObjectModel themePack = (ObjectModel as ThemeObjectModel); + if (themePack == null) return; + + foreach (Theme theme in themePack.Themes) + { + ListViewItem lvi = new ListViewItem(); + lvi.Text = theme.Title; + tv.Items.Add(lvi); + } + } + } +} diff --git a/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.resx b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.resx new file mode 100644 index 00000000..1af7de15 --- /dev/null +++ b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Editors/ThemePack/ThemePackEditor.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Properties/AssemblyInfo.cs b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..c43ddd5e --- /dev/null +++ b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("UniversalEditor.Plugins.AwesomeControls.UserInterface")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("City of Orlando")] +[assembly: AssemblyProduct("UniversalEditor.Plugins.AwesomeControls.UserInterface")] +[assembly: AssemblyCopyright("Copyright © City of Orlando 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("04fa471a-690a-4fe2-bc89-23e8004142a6")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms.csproj b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms.csproj new file mode 100644 index 00000000..b65c49c5 --- /dev/null +++ b/CSharp/V5/Engines/WindowsForms/Plugins/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms/UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms.csproj @@ -0,0 +1,82 @@ + + + + + Debug + AnyCPU + {AFA66FC1-471D-4F7F-85B9-B636379FE569} + Library + Properties + UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms + UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms + v4.0 + 512 + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\..\..\..\..\AwesomeControls\AwesomeControls\obj\Debug\AwesomeControls.dll + + + + + + + + + UserControl + + + ThemePackEditor.cs + + + + + + ThemePackEditor.cs + + + + + {2d4737e6-6d95-408a-90db-8dff38147e85} + UniversalEditor.Core + + + {30467e5c-05bc-4856-aadc-13906ef4cadd} + UniversalEditor.Essential + + + {8622ebc4-8e20-476e-b284-33d472081f5c} + UniversalEditor.UserInterface + + + {bcbb72bd-0ecb-4ff2-8d91-e466361fb6f9} + UniversalEditor.UserInterface.WindowsForms + + + + + \ No newline at end of file diff --git a/CSharp/V5/UniversalEditor.sln b/CSharp/V5/UniversalEditor.sln index 122fcf69..7ef72c10 100644 --- a/CSharp/V5/UniversalEditor.sln +++ b/CSharp/V5/UniversalEditor.sln @@ -53,6 +53,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Content.Pla EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AwesomeControls.Content.PlatformIndependent", "..\..\..\AwesomeControls\AwesomeControls.Content.PlatformIndependent\AwesomeControls.Content.PlatformIndependent.csproj", "{FAE48F29-DB35-4CD6-8A55-6C1FDDFBE6AF}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms", "Engines\WindowsForms\Plugins\UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms\UniversalEditor.Plugins.AwesomeControls.UserInterface.WindowsForms.csproj", "{AFA66FC1-471D-4F7F-85B9-B636379FE569}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -153,6 +155,12 @@ Global {FAE48F29-DB35-4CD6-8A55-6C1FDDFBE6AF}.Release|Any CPU.ActiveCfg = Release|Any CPU {FAE48F29-DB35-4CD6-8A55-6C1FDDFBE6AF}.Release|Any CPU.Build.0 = Release|Any CPU {FAE48F29-DB35-4CD6-8A55-6C1FDDFBE6AF}.Release|x86.ActiveCfg = Release|Any CPU + {AFA66FC1-471D-4F7F-85B9-B636379FE569}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {AFA66FC1-471D-4F7F-85B9-B636379FE569}.Debug|Any CPU.Build.0 = Debug|Any CPU + {AFA66FC1-471D-4F7F-85B9-B636379FE569}.Debug|x86.ActiveCfg = Debug|Any CPU + {AFA66FC1-471D-4F7F-85B9-B636379FE569}.Release|Any CPU.ActiveCfg = Release|Any CPU + {AFA66FC1-471D-4F7F-85B9-B636379FE569}.Release|Any CPU.Build.0 = Release|Any CPU + {AFA66FC1-471D-4F7F-85B9-B636379FE569}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -178,5 +186,6 @@ Global {369CFD53-3E65-4A9E-8BDD-4CCD78BF3E33} = {10FB1DF5-3985-47FC-93AA-39EFA257EB88} {A5A14A71-5DB3-4495-92F6-8D27C98FF0F4} = {4BC75679-085E-45DA-B00A-D9BA89D8748A} {FAE48F29-DB35-4CD6-8A55-6C1FDDFBE6AF} = {F23649CB-5743-4862-9F29-411A08925D8B} + {AFA66FC1-471D-4F7F-85B9-B636379FE569} = {10FB1DF5-3985-47FC-93AA-39EFA257EB88} EndGlobalSection EndGlobal