Rename SawCut library to CutList.Core
Rename the core library project from SawCut to CutList.Core for consistent branding across the solution. This includes: - Rename project folder and .csproj file - Update namespace from SawCut to CutList.Core - Update all using statements and project references Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
public static class ArchUnits
|
public static class ArchUnits
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
public static class BestCombination
|
public static class BestCombination
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
public class Bin
|
public class Bin
|
||||||
{
|
{
|
||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Compares bins to determine if they are identical (same items in same order).
|
/// Compares bins to determine if they are identical (same items in same order).
|
||||||
@@ -2,7 +2,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a group of identical bins (bins with the same items in the same order).
|
/// Represents a group of identical bins (bins with the same items in the same order).
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents an item to be placed in a bin.
|
/// Represents an item to be placed in a bin.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides formatting utilities for displaying measurements and values.
|
/// Provides formatting utilities for displaying measurements and values.
|
||||||
@@ -3,7 +3,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
public static class Fraction
|
public static class Fraction
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a type of bin with quantity and priority.
|
/// Represents a type of bin with quantity and priority.
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
using SawCut.Nesting;
|
using CutList.Core.Nesting;
|
||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace SawCut.Nesting
|
namespace CutList.Core.Nesting
|
||||||
{
|
{
|
||||||
public class AdvancedFitEngine : IEngine
|
public class AdvancedFitEngine : IEngine
|
||||||
{
|
{
|
||||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace SawCut.Nesting
|
namespace CutList.Core.Nesting
|
||||||
{
|
{
|
||||||
public class BestFitEngine : IEngine
|
public class BestFitEngine : IEngine
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace SawCut.Nesting
|
namespace CutList.Core.Nesting
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default implementation of IEngineFactory that creates AdvancedFitEngine instances.
|
/// Default implementation of IEngineFactory that creates AdvancedFitEngine instances.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace SawCut.Nesting
|
namespace CutList.Core.Nesting
|
||||||
{
|
{
|
||||||
public interface IEngine
|
public interface IEngine
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace SawCut.Nesting
|
namespace CutList.Core.Nesting
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Factory interface for creating bin packing engines.
|
/// Factory interface for creating bin packing engines.
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace SawCut.Nesting
|
namespace CutList.Core.Nesting
|
||||||
{
|
{
|
||||||
public class MultiBinEngine : IEngine
|
public class MultiBinEngine : IEngine
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace SawCut.Nesting
|
namespace CutList.Core.Nesting
|
||||||
{
|
{
|
||||||
public class Result
|
public class Result
|
||||||
{
|
{
|
||||||
@@ -4,11 +4,11 @@ using System.Runtime.InteropServices;
|
|||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("SawCut")]
|
[assembly: AssemblyTitle("CutList.Core")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany("")]
|
||||||
[assembly: AssemblyProduct("SawCut")]
|
[assembly: AssemblyProduct("CutList.Core")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2021")]
|
[assembly: AssemblyCopyright("Copyright © 2021")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SawCut
|
namespace CutList.Core
|
||||||
{
|
{
|
||||||
public static class Tolerance
|
public static class Tolerance
|
||||||
{
|
{
|
||||||
@@ -5,7 +5,7 @@ VisualStudioVersion = 16.0.31402.337
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CutList", "CutList\CutList.csproj", "{3E82A1E3-07A8-40C4-ABC4-DF24C5120073}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CutList", "CutList\CutList.csproj", "{3E82A1E3-07A8-40C4-ABC4-DF24C5120073}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SawCut", "SawCut\SawCut.csproj", "{3D873FF0-6930-4BCE-A5A9-DA5C20354DEE}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CutList.Core", "CutList.Core\CutList.Core.csproj", "{3D873FF0-6930-4BCE-A5A9-DA5C20354DEE}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Drawing2D;
|
using System.Drawing.Drawing2D;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\SawCut\SawCut.csproj" />
|
<ProjectReference Include="..\CutList.Core\CutList.Core.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using CutList.Models;
|
using CutList.Models;
|
||||||
using CutList.Presenters;
|
using CutList.Presenters;
|
||||||
using CutList.Services;
|
using CutList.Services;
|
||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|||||||
2
CutList/Forms/ResultsForm.Designer.cs
generated
2
CutList/Forms/ResultsForm.Designer.cs
generated
@@ -131,7 +131,7 @@
|
|||||||
//
|
//
|
||||||
// binBindingSource
|
// binBindingSource
|
||||||
//
|
//
|
||||||
this.binBindingSource.DataSource = typeof(SawCut.BinGroup);
|
this.binBindingSource.DataSource = typeof(CutList.Core.BinGroup);
|
||||||
//
|
//
|
||||||
// splitContainer1
|
// splitContainer1
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace CutList.Models
|
namespace CutList.Models
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using CutList.Models;
|
using CutList.Models;
|
||||||
using SawCut;
|
using CutList.Core;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace CutList.Presenters
|
namespace CutList.Presenters
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using CutList.Common;
|
using CutList.Common;
|
||||||
using CutList.Models;
|
using CutList.Models;
|
||||||
using SawCut;
|
using CutList.Core;
|
||||||
using SawCut.Nesting;
|
using CutList.Core.Nesting;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ namespace CutList.Services
|
|||||||
/// <param name="stockBins">The available stock bins</param>
|
/// <param name="stockBins">The available stock bins</param>
|
||||||
/// <param name="cuttingTool">The cutting tool to use (determines kerf/spacing)</param>
|
/// <param name="cuttingTool">The cutting tool to use (determines kerf/spacing)</param>
|
||||||
/// <returns>Result containing the packing result with optimized bins and unused items, or error message</returns>
|
/// <returns>Result containing the packing result with optimized bins and unused items, or error message</returns>
|
||||||
public Result<SawCut.Nesting.Result> Pack(List<PartInputItem> parts, List<BinInputItem> stockBins, Tool cuttingTool)
|
public Result<CutList.Core.Nesting.Result> Pack(List<PartInputItem> parts, List<BinInputItem> stockBins, Tool cuttingTool)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -32,11 +32,11 @@ namespace CutList.Services
|
|||||||
engine.Spacing = cuttingTool.Kerf;
|
engine.Spacing = cuttingTool.Kerf;
|
||||||
|
|
||||||
var packResult = engine.Pack(binItems);
|
var packResult = engine.Pack(binItems);
|
||||||
return Result<SawCut.Nesting.Result>.Success(packResult);
|
return Result<CutList.Core.Nesting.Result>.Success(packResult);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return Result<SawCut.Nesting.Result>.Failure($"Packing failed: {ex.Message}");
|
return Result<CutList.Core.Nesting.Result>.Failure($"Packing failed: {ex.Message}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user