Skip to content

Commit

Permalink
Merge ebrady1's Lipsync work. Untested, not compiled -- squashed merg…
Browse files Browse the repository at this point in the history
…e point only.

Conflicts:
	Modules/Editor/TimedSequenceEditor/TimedSequenceEditorForm.Designer.cs
	Modules/Editor/TimedSequenceEditor/TimedSequenceEditorForm.cs
  • Loading branch information
sall committed Jun 23, 2014
1 parent c687705 commit f6e983a
Show file tree
Hide file tree
Showing 114 changed files with 145,465 additions and 912 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

80 changes: 80 additions & 0 deletions Application/VixenApplication/Setup/ElementTemplates/LipSync.cs
@@ -0,0 +1,80 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NLog;
using Vixen.Rule;
using Vixen.Services;
using Vixen.Sys;
using Vixen.Module.App;

namespace VixenApplication.Setup.ElementTemplates
{
public partial class LipSync : Form, IElementTemplate
{
private static Logger Logging = LogManager.GetCurrentClassLogger();
private static string[] templateStrings = { "Outline", "Eyes Open", "Eyes Closed", "Mouth Top", "Mouth Middle", "Mouth Bottom", "Mouth Narrow", "Mouth O" };

private string treename;

public LipSync()
{
InitializeComponent();
treename = "LipSync";
}

public string TemplateName
{
get { return "LipSync"; }
}

public bool SetupTemplate(IEnumerable<ElementNode> selectedNodes = null)
{
DialogResult result = ShowDialog();

if (result == DialogResult.OK)
return true;

return false;
}

public IEnumerable<ElementNode> GenerateElements(IEnumerable<ElementNode> selectedNodes = null)
{
List<ElementNode> result = new List<ElementNode>();

if (treename.Length == 0)
{
Logging.Error("LipSync name is null");
return result;
}

ElementNode head = ElementNodeService.Instance.CreateSingle(null, treename);
result.Add(head);

List<string> stringNames = new List<string>();

foreach(string stringName in templateStrings)
{
ElementNode stringnode = ElementNodeService.Instance.CreateSingle(head, treename + " " + stringName);
result.Add(stringnode);
stringNames.Add(stringName);
}

return result;
}

private void LipSync_Load(object sender, EventArgs e)
{
textBoxTreeName.Text = treename;
}

private void LipSync_FormClosed(object sender, FormClosedEventArgs e)
{
treename = textBoxTreeName.Text;
}
}
}
120 changes: 120 additions & 0 deletions Application/VixenApplication/Setup/ElementTemplates/LipSync.resx
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
17 changes: 14 additions & 3 deletions Application/VixenApplication/VixenApplication.csproj
Expand Up @@ -38,7 +38,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>$(SolutionDir)\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;AUTOBUILD</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
Expand All @@ -47,7 +47,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>$(SolutionDir)\Release64\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>TRACE;AUTOBUILD</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
Expand Down Expand Up @@ -80,8 +80,10 @@
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Web.Extensions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand Down Expand Up @@ -187,6 +189,12 @@
<Compile Include="SelectProfile.Designer.cs">
<DependentUpon>SelectProfile.cs</DependentUpon>
</Compile>
<Compile Include="Setup\ElementTemplates\LipSync.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Setup\ElementTemplates\LipSync.Designer.cs">
<DependentUpon>LipSync.cs</DependentUpon>
</Compile>
<Compile Include="Setup\ElementTemplates\StarBurst.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -311,6 +319,9 @@
<EmbeddedResource Include="SelectProfile.resx">
<DependentUpon>SelectProfile.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Setup\ElementTemplates\LipSync.resx">
<DependentUpon>LipSync.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Setup\ElementTemplates\StarBurst.resx">
<DependentUpon>StarBurst.cs</DependentUpon>
</EmbeddedResource>
Expand Down Expand Up @@ -405,7 +416,7 @@
</ProjectReference>
<ProjectReference Include="..\..\Common\NShape\Core\NShape.csproj">
<Project>{9EFE1059-E2DC-4576-B9E3-4AE3F998CB28}</Project>
<Name>NShape %28VixenModules\Common\NShape\NShape%29</Name>
<Name>NShape</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\..\Common\NShape\GeneralShapes\NShapeGeneralShapes.csproj">
Expand Down
2 changes: 1 addition & 1 deletion Common/NShape/GeneralShapes/NShapeGeneralShapes.csproj
Expand Up @@ -100,7 +100,7 @@
<ItemGroup>
<ProjectReference Include="..\Core\NShape.csproj">
<Project>{9EFE1059-E2DC-4576-B9E3-4AE3F998CB28}</Project>
<Name>NShape %28VixenModules\Common\NShape\NShape%29</Name>
<Name>NShape</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Expand Down
2 changes: 1 addition & 1 deletion Common/NShape/WinFormsUI/NShapeWinFormsUI.csproj
Expand Up @@ -330,7 +330,7 @@
<ItemGroup>
<ProjectReference Include="..\Core\NShape.csproj">
<Project>{9EFE1059-E2DC-4576-B9E3-4AE3F998CB28}</Project>
<Name>NShape %28VixenModules\Common\NShape\NShape%29</Name>
<Name>NShape</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit f6e983a

Please sign in to comment.