Localization, Export Windows, Extension Test
This commit is contained in:
commit
5465563e82
67 changed files with 1651 additions and 812 deletions
|
|
@ -7,6 +7,7 @@ using MatterHackers.MatterControl.DataStorage;
|
|||
using MatterHackers.MatterControl.PrintQueue;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.GCodeVisualizer;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
|
||||
namespace MatterHackers.MatterControl.PrintQueue
|
||||
{
|
||||
|
|
@ -147,7 +148,7 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
string outputFileName = Path.ChangeExtension(originalFileName, ".gcode");
|
||||
string outputPathAndName = Path.Combine(exportPath, outputFileName);
|
||||
|
||||
if (PrinterCommunication.Instance.DoPrintLeveling)
|
||||
if (ActivePrinterProfile.Instance.DoPrintLeveling)
|
||||
{
|
||||
GCodeFile unleveledGCode = new GCodeFile(savedGcodeFileName);
|
||||
PrintLeveling.Instance.ApplyLeveling(unleveledGCode);
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ using System.IO;
|
|||
|
||||
using MatterHackers.MatterControl.DataStorage;
|
||||
using MatterHackers.MatterControl.PrintQueue;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.GCodeVisualizer;
|
||||
|
||||
|
|
@ -143,7 +144,7 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
throw new NotImplementedException();
|
||||
//string outputPathAndName = Path.Combine(exportPath, outputFileName);
|
||||
|
||||
if (PrinterCommunication.Instance.DoPrintLeveling)
|
||||
if (ActivePrinterProfile.Instance.DoPrintLeveling)
|
||||
{
|
||||
GCodeFile unleveledGCode = new GCodeFile(savedGcodeFileName);
|
||||
PrintLeveling.Instance.ApplyLeveling(unleveledGCode);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ using System.Diagnostics;
|
|||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.Agg;
|
||||
using MatterHackers.MatterControl.DataStorage;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
|
||||
namespace MatterHackers.MatterControl.PrintQueue
|
||||
{
|
||||
|
|
@ -168,10 +169,10 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
}
|
||||
|
||||
// check if there is a known line at the end of the file (this will let us know if slicer finished building the file).
|
||||
switch (PrinterCommunication.Instance.ActiveSliceEngine)
|
||||
switch (ActivePrinterProfile.Instance.ActiveSliceEngineType)
|
||||
{
|
||||
case PrinterCommunication.SlicingEngine.CuraEngine:
|
||||
case PrinterCommunication.SlicingEngine.Slic3r:
|
||||
case ActivePrinterProfile.SlicingEngineTypes.CuraEngine:
|
||||
case ActivePrinterProfile.SlicingEngineTypes.Slic3r:
|
||||
if (gcodeFileContents.Contains("filament used ="))
|
||||
{
|
||||
gCodeFileIsComplete = true;
|
||||
|
|
@ -193,7 +194,7 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
return FileLocation;
|
||||
}
|
||||
|
||||
string engineString = ((int)PrinterCommunication.Instance.ActiveSliceEngine).ToString();
|
||||
string engineString = ((int)ActivePrinterProfile.Instance.ActiveSliceEngineType).ToString();
|
||||
|
||||
string gcodeFileName = this.StlFileHashCode.ToString() + "_" + engineString + "_" + ActiveSliceSettings.Instance.GetHashCode().ToString();
|
||||
string gcodePathAndFileName = Path.Combine(DataStorage.ApplicationDataStorage.Instance.GCodeOutputPath, gcodeFileName + ".gcode");
|
||||
|
|
|
|||
|
|
@ -108,6 +108,22 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
}
|
||||
}
|
||||
|
||||
public void MoveToNext()
|
||||
{
|
||||
if (SelectedIndex >= 0 && SelectedIndex < Count)
|
||||
{
|
||||
if (this.SelectedIndex == Count - 1)
|
||||
{
|
||||
this.SelectedIndex = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SelectedIndex++;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public void MoveSelectedToBottom()
|
||||
{
|
||||
if (SelectedIndex >= 0 && SelectedIndex < Count)
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
|
||||
bool exportGCodeToFolderButton_Click()
|
||||
{
|
||||
if (PrinterCommunication.Instance.ActivePrinter == null)
|
||||
if (ActivePrinterProfile.Instance.ActivePrinter == null)
|
||||
{
|
||||
UiThread.RunOnIdle(MustSelectPrinterMessage);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue