Shifted a number of classes to DataBinding folder/namespace

This commit is contained in:
Michael Smith 2016-03-17 23:51:38 -07:00
parent cbd59b48bd
commit 78990782b9
38 changed files with 62 additions and 34 deletions

View File

@ -1,4 +1,5 @@
 
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using OSCADSharp.Utility; using OSCADSharp.Utility;

View File

@ -1,6 +1,7 @@
using System; using System;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Linq; using System.Linq;
using OSCADSharp.DataBinding;
namespace OSCADSharp.UnitTests namespace OSCADSharp.UnitTests
{ {

View File

@ -1,5 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using OSCADSharp.DataBinding;
using OSCADSharp.IO; using OSCADSharp.IO;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using System; using System;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -25,7 +26,7 @@ namespace OSCADSharp.UnitTests.Scripting
var compound = new Variable("x", 5) / 12; var compound = new Variable("x", 5) / 12;
string type = compound.GetType().ToString(); string type = compound.GetType().ToString();
Assert.AreEqual("OSCADSharp.CompoundVariable", type); Assert.AreEqual("OSCADSharp.DataBinding.CompoundVariable", type);
} }
} }
} }

View File

@ -1,5 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq; using Moq;
using OSCADSharp.DataBinding;
using OSCADSharp.IO; using OSCADSharp.IO;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using System; using System;

View File

@ -4,6 +4,7 @@ using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using OSCADSharp.DataBinding;
namespace OSCADSharp.UnitTests namespace OSCADSharp.UnitTests
{ {

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using System; using System;

View File

@ -2,6 +2,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using OSCADSharp.DataBinding;
namespace OSCADSharp.UnitTests namespace OSCADSharp.UnitTests
{ {

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,5 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using OSCADSharp.DataBinding;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using System; using System;

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
internal class BindableBoolean : IBindable internal class BindableBoolean : IBindable
{ {
@ -46,7 +46,7 @@ namespace OSCADSharp
return this.bindings.Get(this.boundProperty).BoundVariable.Text; return this.bindings.Get(this.boundProperty).BoundVariable.Text;
} }
public BindableBoolean Clone() internal BindableBoolean Clone()
{ {
var clone = new BindableBoolean(this.boundProperty); var clone = new BindableBoolean(this.boundProperty);
clone.bindings = this.bindings; clone.bindings = this.bindings;

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
internal class BindableVector : Vector3, IBindable internal class BindableVector : Vector3, IBindable
{ {

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
internal class Binding internal class Binding
{ {

View File

@ -5,7 +5,7 @@ using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
internal class Bindings internal class Bindings
{ {

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
internal class CompoundVariable : Variable internal class CompoundVariable : Variable
{ {

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
/// <summary> /// <summary>
/// An object whose properties can be bound to variables /// An object whose properties can be bound to variables

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
/// <summary> /// <summary>
/// A value for setting object properties in script output to /// A value for setting object properties in script output to

View File

@ -6,7 +6,7 @@ using System.Linq.Expressions;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
internal static class VariableCalculator internal static class VariableCalculator
{ {

View File

@ -5,7 +5,7 @@ using System.Linq;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace OSCADSharp namespace OSCADSharp.DataBinding
{ {
/// <summary> /// <summary>
/// A collection of names/values for variables /// A collection of names/values for variables

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,5 @@
using OSCADSharp.IO; using OSCADSharp.DataBinding;
using OSCADSharp.IO;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using OSCADSharp.Utility; using OSCADSharp.Utility;
using System; using System;

View File

@ -42,9 +42,9 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="BindableBoolean.cs" /> <Compile Include="DataBinding\BindableBoolean.cs" />
<Compile Include="VariableCalculator.cs" /> <Compile Include="DataBinding\VariableCalculator.cs" />
<Compile Include="CompoundVariable.cs" /> <Compile Include="DataBinding\CompoundVariable.cs" />
<Compile Include="Dependencies.cs" /> <Compile Include="Dependencies.cs" />
<Compile Include="IO\DefaultFileInvoker.cs" /> <Compile Include="IO\DefaultFileInvoker.cs" />
<Compile Include="IO\DefaultFileWriter.cs" /> <Compile Include="IO\DefaultFileWriter.cs" />
@ -52,15 +52,15 @@
<Compile Include="IO\IFileWriter.cs" /> <Compile Include="IO\IFileWriter.cs" />
<Compile Include="Utility\Ids.cs" /> <Compile Include="Utility\Ids.cs" />
<Compile Include="IO\OpenSCADPathFinder.cs" /> <Compile Include="IO\OpenSCADPathFinder.cs" />
<Compile Include="Binding.cs" /> <Compile Include="DataBinding\Binding.cs" />
<Compile Include="Bindings.cs" /> <Compile Include="DataBinding\Bindings.cs" />
<Compile Include="IBindable.cs" /> <Compile Include="DataBinding\IBindable.cs" />
<Compile Include="SingleStatementObject.cs" /> <Compile Include="SingleStatementObject.cs" />
<Compile Include="StatementBuilder.cs" /> <Compile Include="StatementBuilder.cs" />
<Compile Include="Variable.cs" /> <Compile Include="DataBinding\Variable.cs" />
<Compile Include="IO\OutputSettings.cs" /> <Compile Include="IO\OutputSettings.cs" />
<Compile Include="Utility\Inches.cs" /> <Compile Include="Utility\Inches.cs" />
<Compile Include="BindableVector.cs" /> <Compile Include="DataBinding\BindableVector.cs" />
<Compile Include="Spatial\Bounds.cs" /> <Compile Include="Spatial\Bounds.cs" />
<Compile Include="Spatial\Matrix.cs" /> <Compile Include="Spatial\Matrix.cs" />
<Compile Include="HulledObject.cs" /> <Compile Include="HulledObject.cs" />
@ -83,7 +83,7 @@
<Compile Include="ScaledObject.cs" /> <Compile Include="ScaledObject.cs" />
<Compile Include="TranslatedObject.cs" /> <Compile Include="TranslatedObject.cs" />
<Compile Include="Spatial\Vector3.cs" /> <Compile Include="Spatial\Vector3.cs" />
<Compile Include="Variables.cs" /> <Compile Include="DataBinding\Variables.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -6,6 +6,7 @@ using System.Threading.Tasks;
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Reflection; using System.Reflection;
using OSCADSharp.Spatial; using OSCADSharp.Spatial;
using OSCADSharp.DataBinding;
namespace OSCADSharp namespace OSCADSharp
{ {

View File

@ -1,4 +1,5 @@
using System; using OSCADSharp.DataBinding;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@ -26,7 +27,7 @@ namespace OSCADSharp
/// <param name="name">The Name of the value-pair</param> /// <param name="name">The Name of the value-pair</param>
/// <param name="value">The value - if null this method does nothing</param> /// <param name="value">The value - if null this method does nothing</param>
/// <param name="prefixWithComma">(optional) Flag indicating whether a comma should be added before the value-pair</param> /// <param name="prefixWithComma">(optional) Flag indicating whether a comma should be added before the value-pair</param>
public void AppendValuePairIfExists(string name, object value, bool prefixWithComma = false) internal void AppendValuePairIfExists(string name, object value, bool prefixWithComma = false)
{ {
bool useBinding = this.shouldUseBinding(name); bool useBinding = this.shouldUseBinding(name);
@ -60,7 +61,7 @@ namespace OSCADSharp
/// Pass-through for StringBuilder.Append /// Pass-through for StringBuilder.Append
/// </summary> /// </summary>
/// <param name="text"></param> /// <param name="text"></param>
public void Append(string text) internal void Append(string text)
{ {
SB.Append(text); SB.Append(text);
} }

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;

View File

@ -1,4 +1,5 @@
using OSCADSharp.Spatial; using OSCADSharp.DataBinding;
using OSCADSharp.Spatial;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;