Commit graph

109 commits

Author SHA1 Message Date
Lars Brubaker
04211ec613 Removing PrinterCommunication from ActiveMaterialKey
issue: MatterHackers/MCCentral#4631
Remove PrinterConnection dependency in PrinterSettings.SetMaterialPreset
2018-11-26 14:23:03 -08:00
John Lewin
d7e243fd19 Extract embedded types to new files 2018-11-25 09:07:44 -08:00
John Lewin
da3bccb601 Move UI behavior into application layer 2018-11-25 09:07:44 -08:00
John Lewin
ac7d56ecdb Remove unused constructor and dependencies 2018-11-25 09:07:44 -08:00
John Lewin
18d4f3e193 Extract embedded type to new file 2018-11-25 09:07:44 -08:00
John Lewin
3113235ab6 Extract GCodeMacro.Run to extension method 2018-11-25 09:07:44 -08:00
John Lewin
2a2e052b53 Remove PrinterConfig reference from PrinterSettings 2018-11-25 09:07:44 -08:00
John Lewin
0b92b094eb Extract leveling validation from PrintLevelingData 2018-11-25 09:07:44 -08:00
John Lewin
3a3061978b Move SHA1 helpers into Agg, remove DataConverters3D dependency 2018-11-25 09:07:44 -08:00
John Lewin
91a9c33af7 Move LevelingSystem near PrinterSettings 2018-11-25 09:07:44 -08:00
John Lewin
c152da0228 Remove Localization dependency 2018-11-25 09:07:44 -08:00
John Lewin
cfeb515224 Move BedShape near PrinterSettings 2018-11-25 09:07:43 -08:00
John Lewin
2abdf9484b Extract settings validation from PrinterSettings
- Validation currently coupled to UI and MatterControl data
- Extracting to isolate dependencies
2018-11-25 09:07:43 -08:00
John Lewin
34c0c8cd30 Move settings recovery methods into ProfileManager 2018-11-25 09:07:43 -08:00
John Lewin
a0cd7eee52 Skip fields during merge that already equal target value
- Issue MatterHackers/MCCentral#4627
PrinterSettings merge pushes every imported value into target layer
2018-11-25 07:01:59 -08:00
John Lewin
ab82ad7a75 Use HoverImageWidget
- Issue MatterHackers/MCCentral#4585
Memory leak in ImageWidget when source image is static
2018-11-21 19:24:53 -08:00
John Lewin
0789160653 Only Save if changed
- Reduce file in use exceptions
2018-11-21 12:22:36 -08:00
John Lewin
d57620bc00 CodeFactor fixes 2018-11-21 11:18:14 -08:00
John Lewin
9923e13ac6 Clean up state after Delete Printer action
- Ensure OpenPrinters lists are up-to-date
- Ensure ID changes get synced
- Notify listeners when UserChanged due to sign in/out
- Clear ActivePrinters on UserChanged
- Eliminate WaitForReloadAll in non-reload scenario
2018-11-21 11:12:50 -08:00
John Lewin
ba862715c7 Revise naming to clarify behavior 2018-11-21 11:12:50 -08:00
John Lewin
466431b7e9 Remove UserChanged method, collapse into ProfileManger.Load(userID) 2018-11-21 11:12:50 -08:00
John Lewin
0137413966 Ensure _activeProfileIDs initialized before use 2018-11-21 11:12:50 -08:00
John Lewin
c30eb13688 Fire ActiveProfileModifed on Save if printer is open, pass Settings 2018-11-19 17:43:23 -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
2873a74ef7 Use standard event listener pattern 2018-11-16 15:53:43 -08:00
John Lewin
a1dc2cbaa6 CodeFactor cleanup 2018-11-16 05:12:34 -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
0babdab806 cleaning up MappedSetting 2018-11-14 13:33:25 -08:00
Lars Brubaker
1c9b105926 finishing up the removal of Rooded SettingsChanged
Added AnyPrinterSettingChanged event
2018-11-13 09:48:10 -08:00
Lars Brubaker
6405dad7ac Convert static SettingChanged event to instance based
issue: MatterHackers/MCCentral#4551
2018-11-12 17:45:13 -08:00
John Lewin
6e9d7b4b63 Remove ActivePrinter reference 2018-11-12 09:44:59 -08:00
John Lewin
1e7ac7f885 Remove LoadPrinter 2018-11-12 09:44:59 -08:00
John Lewin
39308e5b79 Restore open printers on load 2018-11-12 09:44:59 -08:00
John Lewin
0d9e6aadf2 Experimental multi-printer support 2018-11-12 09:44:59 -08:00
John Lewin
e2a6c761a4 Require and use printer reference rather than static ActivePrinter 2018-11-11 13:22:32 -08:00
Lars Brubaker
4bb93fcc19 changed CommunicationStateChanged to EventHandler 2018-11-09 13:19:29 -08:00
John Lewin
83b2b7851a Improve handling of cancelled slicing operations
- Issue MatterHackers/MCCentral#4532
We should not load incomplete gcode when a slice is canceled
2018-11-08 05:38:46 -08:00
John Lewin
b7ae930450 Allow caller to suppress PrinterChanged from LoadPrinter(profileID) 2018-11-07 13:28:52 -08:00
John Lewin
4908cbb807 Remove dead code 2018-11-07 13:23:35 -08:00
John Lewin
1bf988ddb6 Add LoadPrinter(profileID) overload 2018-11-07 09:08:54 -08:00
Lars Brubaker
c70b752850 Fixed button name for tests
deleting dead code
2018-11-06 15:17:46 -08:00
Lars Brubaker
234ab03072 Improving default loading markdown text
improving layout of progress bar in loading and unloading
2018-11-06 09:33:44 -08:00
John Lewin
6f36eb7ab0 Use theme border colors
- Issue MatterHackers/MCCentral#4507
2018-11-06 09:06:06 -08:00
Lars Brubaker
734bd88c86 Made the unloading wizard code rather than macro
Took out the macro processing stream
2018-11-05 11:08:21 -08:00
John Lewin
b1053b8198 Revert accessibility of contentRow
- Add public PrinterSetupWizardPage proxy to private .contentRow
- Use PrinterSetupWizardPage.ContentRow in LoadFilamentWizard
2018-11-03 10:12:49 -07:00