Ghostkeeper
0398c404fb
Update tree when material gets deleted
...
Contributes to issue CURA-6600.
2019-08-27 18:01:35 +02:00
Ghostkeeper
f5ca29c7aa
Emit materialsChanged from the variant when a material gets added
...
This allows the material models to update themselves.
Contributes to issue CURA-6600.
2019-08-27 18:01:35 +02:00
Ghostkeeper
9297890d78
Fix typing of approximate diameter and add typing to function for it
...
Seems I forgot to add typing and that's biting my bum right now.
Contributes to issue CURA-6600.
2019-08-27 17:21:22 +02:00
Ghostkeeper
fcab800a8d
Add function to find preferred quality profile
...
Not for global yet, so it doesn't appear as if anything is loaded yet.
Contributes to issue CURA-6600.
2019-08-26 17:50:46 +02:00
Ghostkeeper
9bcf2698d5
Log warning when preferred material can't be found
...
Contributes to issue CURA-6600.
2019-08-22 17:02:09 +02:00
Ghostkeeper
9dca6c0127
Return empty node if preferred node couldn't be found
...
Or any node, really. There must now always be a subnode.
Contributes to issue CURA-6600.
2019-08-22 16:52:38 +02:00
Ghostkeeper
46cf7aafa9
Encode empty containers in container tree if necessary
...
You can now be assured that there is ALWAYS at least one child node, except for child nodes of intent profiles which don't exist.
Contributes to issue CURA-6600.
2019-08-22 16:44:52 +02:00
Ghostkeeper
999e19940e
Also don't add any materials added later if there are no materials
...
Keeps it consistent.
Contributes to issue CURA-6600.
2019-08-22 15:43:16 +02:00
Ghostkeeper
6f77c8735c
Don't load any materials for printers that don't have them
...
For instance the Ultimaker 2 shouldn't display any materials.
Contributes to issue CURA-6600.
2019-08-22 15:37:05 +02:00
Ghostkeeper
295ad564c0
Add function to find preferred material for configuration of printer/nozzle
...
This is supposed to replace the material manager's getDefaultMaterial function.
Contributes to issue CURA-6600.
2019-08-22 15:34:24 +02:00
Ghostkeeper
6c6dd0efad
Add signals to signal that a material got changed or removed
...
The material models need to know this.
Contributes to issue CURA-6600.
2019-08-22 09:25:25 +02:00
Jaime van Kessel
6e5b0bb609
Fix the filtering of materials based on exclude_materials
...
CURA-6600
2019-08-07 17:03:41 +02:00
Ghostkeeper
accc4ccd21
Only remove excluded materials that were added
...
Contributes to issue CURA-6600.
2019-08-07 09:50:53 +02:00
Ghostkeeper
8e49991087
Resolve circular imports
...
Some of these are only used for the type checks.
Contributes to issue CURA-6600.
2019-08-06 17:04:29 +02:00
Ghostkeeper
8ec1c31b58
Don't make parent a common property
...
Instead we use properly-typed and appropriately-named variables in each of the sub classes.
Contributes to issue CURA-6600.
2019-08-06 16:31:57 +02:00
Ghostkeeper
24346fc8e3
Don't add materials forbidden by the printer definition
...
Contributes to issue CURA-6600.
2019-08-06 15:21:52 +02:00
Ghostkeeper
bc3300baa8
Assume that the tree is always constructed after metadata has been loaded
...
Safe assumption, since the tree can only start constructing after the stacks are loaded.
Contributes to issue CURA-6600.
2019-08-06 15:13:29 +02:00
Ghostkeeper
b46d4eb2b5
Have variant nodes build their own children
...
When a variant and a variant love each other...
Contributes to issue CURA-6600.
2019-08-06 15:11:16 +02:00
Ghostkeeper
9fda7bd0b9
Rework container tree structure
...
This sets up a few new classes, subclasses of ContainerNode.
This is intended to simplify the current structure in the QualityManager.
Contributes to issue CURA-6600.
2019-08-05 17:39:19 +02:00