Commit graph

5384 commits

Author SHA1 Message Date
Ghostkeeper
f72e6be10e Fix setting the quality_type of imported profile
The metadata entry was renamed a while ago.

Contributes to issue CURA-2785.
2016-10-25 16:36:26 +02:00
Ghostkeeper
623f9cb4fc Abort importing profile if we have no global container stack
You shouldn't be able to trigger it anyway, but if you do, it'll give a proper error that the import failed.

Contributes to issue CURA-2785.
2016-10-25 16:36:17 +02:00
Ghostkeeper
7e5ffe79b6 Cache global container stack
We'll need it multiple times. Could be a bit faster.

Contributes to issue CURA-2785.
2016-10-25 16:36:07 +02:00
Jaime van Kessel
b4339bda0e Fixed logger isuse with importing profile
CURA-2785
2016-10-25 16:26:52 +02:00
Arjen Hiemstra
30e14478af Replace quality profiles with optimised versions of Ruben's script
With the global quality profiles merged this now works properly.

CURA-2645
2016-10-25 15:40:52 +02:00
Arjen Hiemstra
b0d6d7034a Ensure we re-evaluate the inheritance icon binding when it changes
Contributes to CURA-2752
2016-10-25 13:11:04 +02:00
fieldOfView
29b357894d Fix homing UM2/UM2+ when printing with RepRap flavor 2016-10-25 11:57:15 +02:00
Arjen Hiemstra
bef3666a88 Still show the inherit button even when the revert is visible
It was not a bug like I assumed

Contributes to CURA-2752
2016-10-25 11:40:05 +02:00
Ghostkeeper
e6c68bcdc9
Add fallback if no unit is known for layer_height
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.
2016-10-25 11:28:41 +02:00
Jaime van Kessel
844b9729f4 Fixed critical errors when first adding UM3 2016-10-25 11:16:54 +02:00
Jaime van Kessel
ecbe4b264a Added handling for key not found in extruder map 2016-10-25 11:02:41 +02:00
Ghostkeeper
3e3e6e6b1b
Fix call to _configureProfile
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.
2016-10-24 17:39:36 +02:00
Arjen Hiemstra
8ce81fec9f Expand logic for showing the inherit button in SettingItem
Hide it if the revert button is visible and make the overrides check
limit_to_extruder in addition to the active stack.

Contributes to CURA-2752
2016-10-24 17:10:26 +02:00
Arjen Hiemstra
bdaa4a5a6d Add a method to get overrides for a specified (extruder)stack
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
2016-10-24 17:10:26 +02:00
Jaime van Kessel
b718109f72 Merge branch '2.3' of github.com:Ultimaker/Cura into 2.3 2016-10-24 15:33:33 +02:00
Arjen Hiemstra
bfec96f584 Set encoding to utf-8 when writing files
Since we assume utf-8 in a lot of places.

Contributes to CURA-2692
2016-10-24 14:28:20 +02:00
Arjen Hiemstra
be0e48664a Remove manually specified utf-8 encoding
Since SaveFile now defaults to UTF-8
2016-10-24 14:28:20 +02:00
Jaime van Kessel
53f360ca1c Merge branch 'global_quality_profiles' of github.com:Ultimaker/Cura into 2.3 2016-10-24 14:23:50 +02:00
Jaime van Kessel
7b65297a31 Merge branch '2.3' of github.com:Ultimaker/Cura into 2.3 2016-10-24 13:51:37 +02:00
Jaime van Kessel
7f1b060ef9 SettingInstanceManager now also watches containerchanged of extruder stacks
CURA-2674
2016-10-24 13:50:49 +02:00
Arjen Hiemstra
f952b45a62 Use the machine/extruder ID as base for duplicated profile ID
Instead of using the ID of the duplicated container, which would cause
the profile ID to be the old ID with the new ID appended.

Fixes CURA-2782
2016-10-24 13:38:22 +02:00
Arjen Hiemstra
588f49fa5f Add global profiles for UM3 so this can be tested without dependencies
Contributes to CURA-2652
2016-10-24 11:19:49 +02:00
fieldOfView
df78bc47af Fix "critical" error when starting with no active machine 2016-10-24 11:01:14 +02:00
Arjen Hiemstra
2c2bf7823f Account for empty material when switching quality changes
Contributes to CURA-2652
2016-10-24 10:57:18 +02:00
Arjen Hiemstra
78ac4ef999 Set the global variant and material to empty for multi-extrusion machines
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
2016-10-24 10:57:18 +02:00
Arjen Hiemstra
e1dafc8288 Also properly set global profile when changing quality_changes profiles
Contributes to CURA-2652
2016-10-24 10:57:18 +02:00
Arjen Hiemstra
e82b2c0f80 Add support for global quality profiles
Instead of using one of the extruder profiles as global quality, use
proper global qualities.

Contributes to CURA-2646
2016-10-24 10:57:18 +02:00
Tim Kuipers
2bff94ba9f Revert "JSON feat: carve_multiple_volumes (CURA-2712)"
This reverts commit 8ee22738bc.
2016-10-21 16:20:39 +02:00
Tim Kuipers
8ee22738bc JSON feat: carve_multiple_volumes (CURA-2712) 2016-10-21 16:07:03 +02:00
Ghostkeeper
9c4f8ab8fb
Update change log
This is what we have for 2.3.1 so far.

Contributes to issue CURA-2755.
2016-10-21 14:59:41 +02:00
Ghostkeeper
58dba9bcb3
Dynamically get unit of layer height
If the unit of layer height would become something else than mm eventually, it'll still be correct here.

Contributes to issue CURA-2737.
2016-10-21 14:03:28 +02:00
Ghostkeeper
19678c1126
Display layer height after profile name in drop-down
There is no styling in this drop-down, as it is provided by the OS. Just a dash and the layer height will do.

Contributes to issue CURA-2737.
2016-10-21 14:00:43 +02:00
Ghostkeeper
c92ccee1e4
Add layer height role to profiles model
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.
2016-10-21 13:59:23 +02:00
Ghostkeeper
e02284b1f0
Expose determineQualityAndQualityChangesForQualityType
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.
2016-10-21 13:11:08 +02:00
Ghostkeeper
afd3dd6eec
Make separate theme colour for detail text
I would use the normal font colour with a lower alpha value here, but it seems that rendering text with transparency doesn't work in Qt.

Contributes to issue CURA-2737.
2016-10-21 13:06:49 +02:00
Ghostkeeper
16491d8d23
Robustly get layer height even if quality has none
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.
2016-10-21 11:51:10 +02:00
Ghostkeeper
57b0275384
Show layer height in profile selection menu
It's shown in the 'inactive' font colour, which isn't entirely semantically correct but has the behaviour we want regardless of how the theme changes in the future.

Contributes to issue CURA-2723.
2016-10-20 17:16:06 +02:00
Ghostkeeper
021023a932
Add property to get the current profile's layer height
This will then be displayed in the profile selection menu.

Contributes to issue CURA-2723.
2016-10-20 17:14:45 +02:00
Ghostkeeper
de45d25f0b
Update material profiles for ABS
This is a weekly update from Tom.
2016-10-20 14:01:30 +02:00
Simon Edwards
d228f6ce9f CURA-2751 Change settings label "Simple" to "Recommended" 2016-10-20 12:51:19 +02:00
Ghostkeeper
aa9516451d Merge branch '2.3.1' into 2.3 2016-10-20 11:04:28 +02:00
Ghostkeeper
f799f40fee
Ignore materials folder
We should not add any new materials here.

Contributes to issue CURA-2737.
2016-10-19 15:02:36 +02:00
Ghostkeeper
35430a5e9e
Add missing Ultimaker 3 platform mesh
Forgot to commit that one.

Contributes to issue CURA-2737.
2016-10-19 14:53:09 +02:00
Ghostkeeper
1eab172f7c
Remove duplicate materials from Cura
These should get installed from the fdm_materials repository now, so it shouldn't be complaining about any missing files... Let's see what the build server thinks of that.

Contributes to issue CURA-2737.
2016-10-19 14:50:41 +02:00
Ghostkeeper
06ff2a9da6
Publish Ultimaker 3 definitions and profiles
The Ultimaker 3 is now released, so we can make this data public. These are the Ultimaker 3 definition files (with their physical properties as Cura requires them, such as build volume) as well as its extruders, print cores, quality profiles and build plate mesh. And also for the Ultimaker 3 Extended. Modifications to the material profiles will be published in the fdm_materials repository.

Contributes to issue CURA-2737.
2016-10-19 13:35:00 +02:00
Ghostkeeper
d79a3add40 Update warning for material change on printer again
It's been changed 7 times since the last update in Cura. I hope that our new UX makes up his mind.

Contributes to issue CURA-2634.
2016-10-19 13:15:52 +02:00
Ghostkeeper
6b7ecfb4e0 Update warning for material change on printer
When the material changed on the printer, this dialogue is shown. It needed to have new text.

Contributes to issue CURA-2634.
2016-10-19 13:15:52 +02:00
Ghostkeeper
2dda58a951 Update terminology of PrintCore to print core
Contributes to issue CURA-2632.
2016-10-19 13:15:52 +02:00
Ghostkeeper
f277b24290 Fix typo in English translation
Can't fix the actual typo in code due to the string freeze though.

Contributes to issue CURA-570.
2016-10-19 13:15:52 +02:00
Ghostkeeper
6434948bfd Make Dutch translation consistent
Capitalisation issues abound. Also a few translations itself.

Contributes to issue CURA-570.
2016-10-19 13:15:52 +02:00