I've made sure that the behaviour of getAllExtruderValues remains the same, so that this function may still be used by other pieces of code. It is now just a special case of getAllExtruderSettings. Please suggest a better naming scheme, if you like.
Contributes to issue CURA-2823.
The carot indicates start of string, the dollar the end of string. So it must match on the entire string, not a piece of it.
Contributes to issue CURA-2692.
There is also a more advanced attempt that allows more, but I've commented it out because it doesn't quite work yet. Special characters now always count for 12.
Contributes to issue CURA-2652.
Currently this validator can't be used in QML due to a PyQt bug. I plan to call the validator manually upon receiving a signal that the text changed in a text box.
Contributes to issue CURA-2692.
If there is no unit known, it is interpreted as there being no unit. There is currently mm, but if we changed that it is probably on purpose so we write no unit.
Contributes to issue CURA-2723.
The footprint of the function changed, but the call wasn't updated, apparently. I pulled new_name up from one of the if-statements since they need to be computed for both branches now (and they are the same).
Contributes to issue CURA-2785.
* 2.3:
Expand logic for showing the inherit button in SettingItem
Add a method to get overrides for a specified (extruder)stack
Add global profiles for UM3 so this can be tested without dependencies
Account for empty material when switching quality changes
Set the global variant and material to empty for multi-extrusion machines
Also properly set global profile when changing quality_changes profiles
Add support for global quality profiles
Since the main getOverrides method only accounts for the active extruder
and we sometimes need to check other extruders in case of
limit_to_extruder.
Contributes to CURA-2752
* 2.3:
Set encoding to utf-8 when writing files
Remove manually specified utf-8 encoding
SettingInstanceManager now also watches containerchanged of extruder stacks
For multi-extrusion machines, we do not want variant or material
profiles in the stack, because these are extruder specific and may cause
wrong values to be used for extruders that did not specify a value in
the extruder.
Contributes to CURA-2652
This layer height computation is rather complex, but because the items are now computed in a separate function, we can safely overwrite that and the update is made only once in the UI.
Contributes to issue CURA-2737.
It is needed to get the quality belonging to a certain quality changes ID that is not on the global stack. We already had this function that does just that.
Contributes to issue CURA-2737.
If the quality profile doesn't define a layer height (which it currently always has) then this should still get the proper layer height. It proceeds properly down the stack now.
Contributes to issue CURA-2737.