Prepare PartsTree for DI
Actually start doing some DI
Unused constructor.
This was only needed to construct partsTree.
prepare for dependency injection
construct the set list using DI
improve the error handling.
Another object converted to DI, so now mainwindow doesn't know directly about the library interfaces.
Now all usages of the library are obtained via DI.
unnecessar constant.
mark up the interface properly.