Lipu Fei
40c4e9c5df
Fix KeyError color_code in BaseMaterialsModel
2018-08-28 09:56:00 +02:00
Ian Paschal
d097b06479
Merge pull request #4284 from Ultimaker/CURA-5668_fix_quality_fallback
...
CURA-5668 Fix quality lookup fallback mechanism
2018-08-27 11:58:18 +02:00
Lipu Fei
9d1b115f2a
Merge pull request #4244 from Ultimaker/feature_favorite_materials
...
Feature favorite materials
2018-08-27 11:12:08 +02:00
Lipu Fei
33f495442a
Remove unneeded code
...
CURA-5162
2018-08-27 10:44:41 +02:00
Ghostkeeper
eac70dc06d
Change default print job name to 'Untitled'
...
This is more common for documents that don't yet have a title in many applications.
2018-08-27 09:41:19 +02:00
Lipu Fei
8daf02063d
Fix quality lookup fallback mechanism
...
CURA-5668
The last fallback is the global qualities, either machine-specific or
generic, but not using both. Because if a machine defines its own global
qualities, it is intended to override the existing ones, so do not
fallback again in this case.
2018-08-24 15:35:03 +02:00
Ghostkeeper
aa03fabc57
Remove trailing whitespace
2018-08-24 15:24:00 +02:00
Ian Paschal
2304aeaceb
Expanded states preserved when updating models
...
Did this so that models can be updated more often fixing bugs where when a material is set as "not favorite" in the favorites section, its updated accordingly in its "normal" section.
It's also the ground work for saving material section expansion to preferences.
Contributes to CURA-5378
2018-08-24 12:10:32 +02:00
Ian Paschal
f6b43bd9ab
Merge branch 'master' into feature_favorite_materials
...
Contributes to CURA-5162, CURA-5378
2018-08-23 17:24:39 +02:00
Ian Paschal
6be9b5e27f
Consolidate models some more
...
Contributes to CURA-5162, CURA-5378
2018-08-23 16:58:23 +02:00
Ian Paschal
56a5f59964
Cleaner code
...
I was hoping to completely nix the generic materials model (since it's basically just a brand "Generic", but then in the QML it has to be have the same in terms of sub-menus or fold-outs and that looked stupid (Generic -> ABS -> ABS)). So we keep that one for now. It is cleaner though.
Contributes to CURA-5162, CURA-5378
2018-08-23 16:39:40 +02:00
Ian Paschal
8da7773600
Remove unused code
...
Contributes to CURA-5162, CURA-5378
2018-08-23 16:04:51 +02:00
Ian Paschal
6225fff1f8
Re-added material detail view
...
Contributes to CURA-5378
2018-08-22 15:58:58 +02:00
alekseisasin
ff38ee2bed
Merge pull request #4245 from Ultimaker/CURA-5649_hide_gcodegz_in_save_dialog
...
CURA-5649 Do not show gcode.gz as an option in save file dialog
2018-08-22 14:12:08 +02:00
Ian Paschal
cb713eea6a
Improve models
...
Contributes to CURA-5162, CURA-5378
2018-08-22 12:33:29 +02:00
Ian Paschal
08b325ee04
Correctly load material favorites from preferences
...
Contributes to CURA-5378, CURA-5162
2018-08-22 12:31:48 +02:00
Ian Paschal
6d1fd8281c
Add favorites funcitonality to MaterialManager.py
...
Contributes to CURA-5378
2018-08-20 17:17:14 +02:00
Ian Paschal
68bccd8bf7
Improve the Favorites, Base, and Brand materials models (WIP)
...
Contribuetes to CURA-5378
2018-08-20 17:16:54 +02:00
Lipu Fei
1468ac1d59
Check if dict has key before accessing in BuildVolume
2018-08-20 13:20:52 +02:00
Lipu Fei
edc4e2824d
Merge pull request #4237 from Ultimaker/fix_unit_tests
...
Fix unit tests
2018-08-20 10:32:38 +02:00
Ghostkeeper
9f190590b1
Only change camera range if camera range is valid
...
This was a debugging test to see if this fixed an issue. It turned out to not be the issue in question, but this is still a defensive coding thing that would be good to have.
2018-08-17 10:56:46 +02:00
Ghostkeeper
284f90f3ff
Fix camera position before adding a printer
...
Don't use the diagonal size then, because that returns 0.
2018-08-17 10:56:46 +02:00
Lipu Fei
013032279d
Better handling of no quality group in CuraStackBuilder
2018-08-17 10:00:28 +02:00
Ghostkeeper
31e283110f
Check first if preferred quality exists
...
Fixes #3784 .
2018-08-17 09:31:33 +02:00
Lipu Fei
f42dc24d95
Do not show gcode.gz as an option in save file dialog
...
CURA-5649
2018-08-16 15:16:32 +02:00
Ian Paschal
e8cda90021
Add favorites to materials menu
...
Contributes to CURA-5162
2018-08-16 13:04:58 +02:00
Ian Paschal
57d41216e1
Remove dummy favorites
...
Contributes to CURA-5162
2018-08-16 13:04:17 +02:00
Ian Paschal
8493948ba1
Add a favorite materials model
...
Contributes to CURA-5162
2018-08-15 14:06:07 +02:00
Diego Prado Gesto
3d9c7f7eb5
Merge pull request #4216 from Ultimaker/feature_adjust_zoom_to_printer_size
...
Adjust maximum zoom to printer size
2018-08-15 13:19:46 +02:00
Lipu Fei
c20274e356
Move constant instance containers to a separate file
...
This way we separate the class/type definitions and the actual
constants.
2018-08-15 11:04:09 +02:00
Ghostkeeper
f1a7b23a5c
Adjust default position of camera based on diagonal size
2018-08-15 09:52:39 +02:00
Ghostkeeper
da39e842f1
Move getting diagonal size out to separate function
2018-08-15 09:25:24 +02:00
Diego Prado Gesto
3a7fff42b5
Fix code style.
...
Contributes to CURA-5628.
2018-08-15 09:14:37 +02:00
Diego Prado Gesto
ebb0317276
Merge branch 'master' into fix_unit_tests
2018-08-14 17:23:23 +02:00
Diego Prado Gesto
e1fd9b03a4
Remove all dependencies of the CuraContainerStack with the
...
ContainerRegistry.
That will be very helpful for creating unit tests. Also this is not
needed because the next stack is always set in the machine or extruder
manager when switching printers.
Contributes to CURA-5628.
2018-08-14 15:35:00 +02:00
Diego Prado Gesto
ce9782b3af
Initialize the empty_container in CuraApplication.
...
Contributes to CURA-5628.
2018-08-14 15:32:04 +02:00
Diego Prado Gesto
c8af4f45ce
Decouple the creation of the stack containers from the process that add
...
them to the container registry, that is done in CuraApplication.
That allow us to have access to the empty containers and so we can unit
test easily without mocking up stuff.
Contributes to CURA-5628.
2018-08-14 13:25:56 +02:00
Lipu Fei
5869644b0b
Fix typo
2018-08-14 12:02:11 +02:00
Ian Paschal
f91254c7c0
Fix typo in comment
2018-08-13 15:27:01 +02:00
Lipu Fei
e0ad7a9fb4
Add answer commments to some puzzling code
2018-08-13 14:24:25 +02:00
Lipu Fei
8e891b69b0
Move type hinting imports into TYPE_CHECKING block
2018-08-13 13:48:00 +02:00
Lipu Fei
25e6fd8bec
Fix incorrect type hinting
2018-08-13 13:47:26 +02:00
Lipu Fei
42b509cd4a
Fix a wrong type hinting
2018-08-13 13:44:07 +02:00
Ian Paschal
5ede82eddc
Merge pull request #4233 from Ultimaker/CURA-5538-fix-on-at-a-time
...
CURA-5538 Fix one at a time
2018-08-13 13:14:30 +02:00
Lipu Fei
d45d6add40
Add collision detection in on-at-a-time iterator
2018-08-13 12:56:41 +02:00
Diego Prado Gesto
152005ab14
Merge pull request #4184 from Ultimaker/CURA-5570_beyond_comprehension
...
CURA-5570 More decision points in material and quality lookup!
2018-08-13 12:06:29 +02:00
Diego Prado Gesto
b1c073aab6
CURA-5570 Expose the CuraSDKVersion to qml and show the buildplate
...
selector only when "dev" version is selected.
2018-08-13 11:50:50 +02:00
Lipu Fei
bd47dfef75
Revert "Revert "Merge pull request #4203 from Ultimaker/CURA-5538-fix-one-at-a-time-order-2""
...
This reverts commit 89ed2bcff8 .
2018-08-13 11:23:10 +02:00
Diego Prado Gesto
98a0bb5002
CURA-5570 Remove a check that caused empty list of profiles.
2018-08-13 11:15:32 +02:00
Ian Paschal
3fad11e07f
Code style fixes
...
Contributes to CURA-5595
2018-08-13 10:45:03 +02:00