Commit graph

71 commits

Author SHA1 Message Date
John Lewin
0a074e7bcd Possible workaround for stackoverflow exception
- Issue MatterHackers/MCCentral#2543
StackOverflowException during tests brings down NUnit
2017-12-31 14:21:12 -08:00
John Lewin
65f27e7267 Revise accessibility for touchscreen 2017-12-31 11:36:55 -08:00
John Lewin
aad001a634 Rename AbortConnectionAttempt to ReleaseAndReportFailedConnection
- Set failed connections to CommunicationStates.Disconnected
- Add ConnectionFailure.ConnectonLost enum value
- Issue MatterHackers/MCCentral#2539
WriteRawToPrinter should not use AbortConnectionAttempt
2017-12-31 06:15:17 -08:00
John Lewin
e529fc2cff Reduce localization in PrinterConnection, move to application layer
- MatterHackers/MCCentral#2535
Remove localization from PrinterConnection
2017-12-31 06:15:16 -08:00
John Lewin
2dfb8dea10 Add notes around concerns 2017-12-31 06:14:19 -08:00
John Lewin
5809c51d39 Wait to set CommunicationStates.Connect until after ReadThread spinup 2017-12-31 06:14:19 -08:00
John Lewin
743b2ff0d7 Extract partial connection logic from loop, group with other steps 2017-12-31 06:14:19 -08:00
John Lewin
e02731207a Remove dead code 2017-12-31 06:14:19 -08:00
John Lewin
0a1d0e2cfb First functioning pass at consolidated connection logic 2017-12-31 06:14:19 -08:00
John Lewin
25cf68ee7a Move connection validation logic from ReadFromPrinter to Connect 2017-12-31 06:14:19 -08:00
John Lewin
8d54e297e2 Collapse AttemptToConnect into Connect 2017-12-31 06:14:19 -08:00
John Lewin
65f29d82d8 Collapse Connect_Thread method into Connect 2017-12-31 06:14:19 -08:00
John Lewin
d0053fcbf2 Remove parallel connectThread logic, collapse into single call 2017-12-31 06:14:19 -08:00
John Lewin
940160042b Remove null test for printer.Settings 2017-12-31 06:14:19 -08:00
John Lewin
e939dd0d8d Move PrinterConnectionStatus from PrinterConnection to printer model
- Issue MatterHackers/MCCentral#2535
Remove localization from PrinterConnection
2017-12-31 06:14:19 -08:00
Lars Brubaker
cae45d4726 Make read regex able to return multiple lines 2017-12-15 16:21:45 -08:00
John Lewin
bd79414c34 Enable pause/resume on task, remove pause/resume/cancel from bar
- Issue MatterHackers/MCCentral#2407
Extend Tasks.Execute to support custom pause/stop implementations
2017-12-12 17:53:32 -08:00
Lars Brubaker
fb455b0353 Reset any time we think we see a g28 etc 2017-12-05 16:18:05 -08:00
Lars Brubaker
e70d1c780a Don't send empty lines 2017-12-04 15:37:00 -08:00
LarsBrubaker
0353aab30c Made it configurable if the motors are released automatically at the end of a print 2017-12-03 14:46:05 -08:00
Lars Brubaker
c43914861b Don't ever set our index to less than 0 2017-11-30 16:52:52 -08:00
Lars Brubaker
cee88e16db added ability to turn off send with checksum
made print_center setting show up
2017-11-30 13:59:25 -08:00
Lars Brubaker
cb94beb343 Make sure we process every line through write filters
Make regex stream connected to printer
2017-11-29 09:20:55 -08:00
John Lewin
f88e53b05c Add explicit access modifiers, move statics to heading 2017-11-21 12:16:20 -08:00
John Lewin
fe72f0d2e4 Revise string variable names 2017-11-21 12:16:20 -08:00
Lars Brubaker
e9a88dd37a Same fix as write buffer. Regex split needs a string. 2017-11-20 14:14:00 -08:00
John Lewin
46188d1eea Reduce Print/Slice helper method couplings to PrintItemWrapper 2017-11-15 07:41:36 -08:00
John Lewin
23d7dedee7 Remove coupling to PrintItemWrapper, revise naming to follow suite 2017-11-14 14:02:56 -08:00
John Lewin
c1b2aeb7d8 Rename Wizard Window/Page -> Dialog Window/Page 2017-11-08 15:56:37 -08:00
Lars Brubaker
96f0977010 Made FanControls values go from 0-100
Made all values round trip without changing
Made sure we can't get into an update fan loop
Made printer connection hold the speed as a double but send as an int
Made sure the starting display value of EditableNumberDisplay is correct
2017-11-02 12:29:10 -07:00
Lars Brubaker
c02d2ca60f Made an automation test for print recovery (made it pass)
Fixed the DoUndoTests
2017-11-01 13:57:45 -07:00
Lars Brubaker
359784877f Unify Vector2 3 and 4 to have upper case field members 2017-10-31 12:53:46 -07:00
John Lewin
8ff0db18cd Remove specialized PrinterSetup helpers from WizardWindow 2017-10-18 14:59:39 -07:00
John Lewin
fe6e93acef Revise slicing to run as async tasks
- MatterHackers/MCCentral#1308
Change slicing thread system to run as async method
- MatterHackers/MCCentral#1941
Selecting 'Print' then viewing gcode does not show any gcode
2017-10-16 17:09:00 -07:00
Lars Brubaker
e737466184 Call the event correctly 2017-10-10 16:48:27 -07:00
Lars Brubaker
c1aed47756 Hook up error message 2017-10-10 16:40:59 -07:00
Lars Brubaker
5e01c82125 Make sure we cancel the macro stream on canceling the macro window 2017-09-26 13:10:33 -07:00
John Lewin
c9e37d1db5 Fix CloseShouldNotStopSDPrint test 2017-09-23 09:19:32 -07:00
John Lewin
eb4560cc8c Take dependency as constructor parameter, make private 2017-09-20 15:40:27 -07:00
John Lewin
9721f93266 Rename instance method to Connect 2017-09-18 12:14:58 -07:00
John Lewin
76e7af0436 Eliminate PrinterConnection.Instance 2017-09-17 21:08:16 -07:00
John Lewin
de922d8a2e Convert PrinterConnection usage from static to local references 2017-09-17 13:31:32 -07:00
John Lewin
d258b60bb1 Extract embedded types to new file 2017-09-17 13:31:32 -07:00
John Lewin
b77d9db15a Remove activePrintItem reference from PrinterConnection, use Bed ref 2017-09-16 21:25:31 -07:00
John Lewin
55ac2571fa Remove static ActivePrintItem 2017-09-15 18:45:21 -07:00
John Lewin
e1f3dec6b1 Make PrinterConnection.PrinterSettings private, use PrinterConfig 2017-09-15 12:09:56 -07:00
Lars Brubaker
9479c2a061 Finished the temperature widget tests and implementation
Refactoring extruder to hotend where true
2017-09-08 10:23:28 -07:00
Lars Brubaker
0a54cd266b Wrote test for Hotend drop down
Theme  the folders check box
Make sure we reset the macros when we start them (made clear by unload -> cancel -> unload)
Made fan controls more consistent with actual data model of printer
improved edit number display to be more consistent with 3d number edits
2017-09-07 16:24:31 -07:00
Lars Brubaker
b39666634a More making printerConnection passed to classes.
Made the speeds for movement controls be extensions methods on PrinterSettings
TODO: Why on ExportPrintItemPage was that if the leveling turned on or off we would show the check box by rebuilding that window.
2017-09-05 10:33:46 -07:00
Lars Brubaker
1f58e6c987 More making printerConnection passed to classes. 2017-09-03 15:51:14 -07:00