Made ComTester understand commands while printing.
Made it possible to creat HUGE test gcode files. Made a massage when trying to load huge gcode.
This commit is contained in:
parent
11707589e6
commit
b5f8c9fc37
5 changed files with 72 additions and 34 deletions
|
|
@ -78,6 +78,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
static string slicingErrorMessage = "Slicing Error.\nPlease review your slice settings.".Localize();
|
||||
static string pressGenerateMessage = "Press 'generate' to view layers".Localize();
|
||||
static string fileNotFoundMessage = "File not found on disk.".Localize();
|
||||
static string fileTooBigToLoad = "File too big to load.".Localize();
|
||||
|
||||
Vector2 bedCenter;
|
||||
Vector3 viewerVolume;
|
||||
|
|
@ -837,9 +838,32 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
}
|
||||
}
|
||||
|
||||
void DoneLoadingGCode(object sender, EventArgs e)
|
||||
static bool RunningIn32Bit()
|
||||
{
|
||||
if (IntPtr.Size == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void DoneLoadingGCode(object sender, EventArgs e)
|
||||
{
|
||||
SetProcessingMessage("");
|
||||
if (gcodeViewWidget != null
|
||||
&& gcodeViewWidget.LoadedGCode == null)
|
||||
{
|
||||
if (GCodeFile.FileTooBigToLoad(printItem.FileLocation))
|
||||
{
|
||||
SetProcessingMessage(string.Format("{0}\n'{1}'", fileTooBigToLoad, Path.GetFileName(printItem.FileLocation)));
|
||||
}
|
||||
else
|
||||
{
|
||||
SetProcessingMessage(string.Format("{0}\n'{1}'", fileNotFoundMessage, Path.GetFileName(printItem.FileLocation)));
|
||||
}
|
||||
}
|
||||
|
||||
if (gcodeViewWidget != null
|
||||
&& gcodeViewWidget.LoadedGCode != null
|
||||
&& gcodeViewWidget.LoadedGCode.Count > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue