Commit graph

623 commits

Author SHA1 Message Date
johnlewin
f35d4aaf7b
Merge branch 'master' into master 2018-11-16 16:23:06 -08:00
John Lewin
e954344416 CodeFactor cleanup 2018-11-16 16:12:48 -08:00
Lars Brubaker
cfdf796d92 Make sure we still auto connect
issue: MatterHackers/MCCentral#4601
Make AutoConnect work with new multiple open printer tabs
2018-11-16 16:05:16 -08:00
John Lewin
115abf3c4a Revise naming for clarity 2018-11-16 15:59:15 -08:00
John Lewin
8a908136e6 Consolidate duplicate SettingChanged listeners 2018-11-16 15:53:44 -08:00
John Lewin
97dc6aeb4b Make Connection reference readonly 2018-11-16 15:53:44 -08:00
John Lewin
1a4ac719c4 Extract local function event listeners to common format
- Move Disposed listener body to Dispose function
2018-11-16 15:53:44 -08:00
John Lewin
87ba5160bd Move listener registration into constructor 2018-11-16 15:53:44 -08:00
John Lewin
e2c50f166e Use Dispose method for unregister listeners 2018-11-16 15:53:44 -08:00
John Lewin
022a82bb27 Extract local function event listeners to common format 2018-11-16 15:53:44 -08:00
John Lewin
bbcc3018f6 Listen for SettingChanged and update profile name/port as needed
- Move behavior back into ProfileManager
- Issue MatterHackers/MCCentral#4600
Hardware tab not syncing name changes
2018-11-16 15:53:44 -08:00
John Lewin
a15c98ea42 Dispose previous ProfileManager instance before assigning new 2018-11-16 15:53:44 -08:00
John Lewin
65ff632681 Make ProfileManager Disposable 2018-11-16 15:53:44 -08:00
John Lewin
3fc65c18e1 Hook printer tab name updater to AnyPrinterSettingChanged 2018-11-16 15:53:44 -08:00
John Lewin
2873a74ef7 Use standard event listener pattern 2018-11-16 15:53:43 -08:00
Lars Brubaker
3e8b4bde56 Moved the cancel print logic into connection to ensure SD card print not canceled
removed Active Printer from RootSystemWindow and put in multi-printer logic

issue: MatterHackers/MCCentral#4599
RootSystemWindow OnClosing cancel printer logic remove active printer

issue: MatterHackers/MatterControl#3973
Mattercontrol interferes with SD card print
2018-11-16 14:45:22 -08:00
Lars Brubaker
f1786393cf Making sure that export does the right thing on G92
issue: MatterHackers/MCCentral#4596
Retracting filament at end of print
2018-11-16 14:24:36 -08:00
John Lewin
a1dc2cbaa6 CodeFactor cleanup 2018-11-16 05:12:34 -08:00
John Lewin
f49f216363 Clear Disposed listeners after invoking event 2018-11-15 21:22:58 -08:00
John Lewin
812677d178 Close non-child owned widget in OnClosed 2018-11-15 21:13:30 -08:00
John Lewin
06e79394f2 Unregister listeners on Printer.Disposed
- Issue MatterHackers/MCCentral#4589
Ensure all printer.Disposed calls unregister listeners
2018-11-15 21:01:01 -08:00
John Lewin
51b15e053b Unregister listeners on Close
- Issue MatterHackers/MCCentral#4588
Listeners not unregistered on Close
2018-11-15 20:03:53 -08:00
John Lewin
5fe1d0e225 Use naming consistent with return types & behavior
- Issue MatterHackers/MCCentral#4554
Remove Profile nomenclature from ProfileManager
2018-11-15 20:03:49 -08:00
John Lewin
6de4906ee9 Remove dead code 2018-11-15 20:03:49 -08:00
Lars Brubaker
0ddf1dee30 refactoring 2018-11-15 16:48:38 -08:00
Lars Brubaker
b740c2e351 Refactoring some class names and fields 2018-11-15 16:47:28 -08:00
John Lewin
4113a18436 CodeFactor cleanup 2018-11-15 15:06:47 -08:00
John Lewin
7148be8c25 Remove unnecessary closure 2018-11-15 14:51:08 -08:00
John Lewin
8b9f455b43 Release references 2018-11-15 14:51:08 -08:00
John Lewin
df719bee23 Invoke event before listeners are cleared in RemoveTab 2018-11-15 14:51:08 -08:00
John Lewin
8641837dce Close tab and referenced widgets in RemoveTab 2018-11-15 14:51:08 -08:00
John Lewin
0f9e8a9b57 Clear CloseClicked listeners in OnClosed 2018-11-15 14:51:08 -08:00
John Lewin
9463311bf2 Release references and propagate Close to non-children widgets 2018-11-15 14:51:07 -08:00
John Lewin
59a16f53b5 Unregister scoped listeners via Closed event 2018-11-15 14:51:07 -08:00
John Lewin
7cea4f67ba Resolve leak due to lambda, use existing listener 2018-11-15 14:51:06 -08:00
Lars Brubaker
987953e1ef Remove PrintingItemName from application controller
issue: MatterHackers/MCCentral#4582
2018-11-14 16:54:32 -08:00
Lars Brubaker
860fd7dcfd remove active printer from MarlinFirmwareUpdatePlugin and hook for exposing firmware UI
MatterHackers/MCCentral#4579
2018-11-14 15:52:34 -08:00
Lars Brubaker
0eb7b1cb3c remove active printer from PrintItemWrapper
issue: MatterHackers/MCCentral#4574
2018-11-14 14:29:13 -08:00
Lars Brubaker
0babdab806 cleaning up MappedSetting 2018-11-14 13:33:25 -08:00
John Lewin
75571dbe49 Set Fix thumbnails - set blender before scaling/saving image
- Issue MatterHackers/MCCentral#4572
Poor quality item thumbnails due to incorrect alpha/edge blending
2018-11-14 11:17:01 -08:00
John Lewin
0d066881a4 Use UiThread.ClearInterval 2018-11-13 16:54:46 -08:00
John Lewin
febe76e55d Invoke printer.Dispose from ClosePrinter method 2018-11-13 16:54:45 -08:00
John Lewin
a3d2a6bc49 Remove redundant event listener action 2018-11-13 12:38:17 -08:00
John Lewin
306548cc83 Move extracted types to DialogPage area 2018-11-13 12:35:04 -08:00
John Lewin
091ed952cc Support export to any printer profile
- Issue MatterHackers/MCCentral#4565
2018-11-13 12:35:04 -08:00
John Lewin
3ff4cf6d21 Extract embedded type to new file 2018-11-13 12:35:04 -08:00
Lars Brubaker
1c9b105926 finishing up the removal of Rooded SettingsChanged
Added AnyPrinterSettingChanged event
2018-11-13 09:48:10 -08:00
LarsBrubaker
7296aea99f subtract and replace using new booleans 2018-11-13 08:13:34 -08:00
LarsBrubaker
8e347340c4 Added intersection 2018-11-13 08:13:34 -08:00
LarsBrubaker
0ead07f8fd Made Combine use new booleans 2018-11-13 08:13:34 -08:00