Arjen Hiemstra
7175ac0d20
Do not try to perform a setProperty on a definition
...
That is never going to work
2017-03-28 17:50:37 +02:00
Arjen Hiemstra
2a2df31c5b
Set the User container to a writable container in testSetProperty
...
Since empty container (the default) will not allow writes
2017-03-28 17:50:09 +02:00
Arjen Hiemstra
3f1f4a172d
Fix constrainContainerTypes test
...
We do not allow random containers to be assigned to specific properties,
only the containers that specify they are of a certain type.
2017-03-28 17:48:55 +02:00
Arjen Hiemstra
593c6c0c8f
Set and clear ContainerStack's _containerRegistry property
2017-03-28 17:47:10 +02:00
Arjen Hiemstra
75931192f6
Allow setting Definition and setting Definition by ID
...
To match the other properties
2017-03-28 17:46:28 +02:00
Arjen Hiemstra
123c8bae45
Allow setting userChanges container
...
Since that makes it possible to create an external factory method for
creating stacks and makes the properties more consistent.
2017-03-28 17:46:00 +02:00
Arjen Hiemstra
2f6936c961
Fix type checking in GlobalStack
2017-03-28 17:45:15 +02:00
Arjen Hiemstra
4cea1b6d33
Fix error case in addExtruder
...
Error out when the new size is going to be more than extruderCount
instead of whether it currently is more than extruderCount.
2017-03-28 17:44:29 +02:00
Arjen Hiemstra
4005f5082b
Allow setting of properties on GlobalStack
2017-03-28 17:43:11 +02:00
Lipu Fei
208935960f
Add comments for putting open file logic in qml
...
CURA-3495
2017-03-28 15:02:50 +02:00
Lipu Fei
e4af8e36bb
Fix dialog text for opening multiple files with project(s)
...
CURA-3495
2017-03-28 14:38:26 +02:00
Lipu Fei
1fc7120fff
Fix dialog text "file(s)" -> "files"
...
CURA-3495
2017-03-28 14:27:40 +02:00
Lipu Fei
5bec46a29c
Drag-and-drop files behave the same as open file menu
...
CURA-3495
2017-03-28 14:27:40 +02:00
Jack Ha
bf08d30e7d
Added first arrange function and smart placement after loading. CURA-3239
2017-03-28 14:27:22 +02:00
Jaime van Kessel
38a07d75c7
Merge branch 'master' of github.com:Ultimaker/Cura
2017-03-28 13:16:00 +02:00
Jaime van Kessel
db1fb8e692
Moved authentication request state change
2017-03-28 13:14:47 +02:00
Tim Kuipers
7a67ab4e66
Merge branch '2.5'
2017-03-28 12:55:18 +02:00
Tim Kuipers
db2766aba1
fix: move prime positions to the sides (CURA-3605)
2017-03-28 12:53:46 +02:00
Jaime van Kessel
910ff7acea
No longer check printer state when no material lengths are known
...
This fixes issues with g-code from g-code reader not having material lengths set.
CURA-3604
2017-03-28 11:59:07 +02:00
Jack Ha
d8c20b9d6c
First version of multiply object seems to work quite well. CURA-3239
2017-03-28 11:33:07 +02:00
Jaime van Kessel
6367755875
Disabled center_on_select for windows, as pyqt has a bug with it
2017-03-28 10:21:52 +02:00
Arjen Hiemstra
8f36e76588
Make sure to use the right metadata type entry for mock containers
2017-03-27 17:57:07 +02:00
Arjen Hiemstra
60ee1a3f75
We also raise InvalidContainer when setting variant
2017-03-27 17:56:46 +02:00
Arjen Hiemstra
5892f13349
Fix naming of definitionChanges property in test
2017-03-27 17:55:44 +02:00
Arjen Hiemstra
da751fa0ea
We raise InvalidContainerError, not KeyError when a container was not found
2017-03-27 17:55:24 +02:00
Arjen Hiemstra
270cdd08cb
Don't modify ContainerStack._containerRegistry property
...
We do not use it in GlobalStack
2017-03-27 17:54:44 +02:00
Arjen Hiemstra
385d8ac5b5
Properly mock Container and ContainerRegistry objects in Global stack test
2017-03-27 17:53:30 +02:00
Arjen Hiemstra
b6fafb06ed
Ensure we initialize the list of containers for GlobalStack
2017-03-27 17:52:38 +02:00
Arjen Hiemstra
39803cf7dd
Add missing imports to Extruder/GlobalStack
2017-03-27 17:52:16 +02:00
Ghostkeeper
2810054f8e
Fix spelling of maximum skin angle expansion description
2017-03-27 16:00:09 +02:00
Lipu Fei
50266f760b
Revert "Prevent MachineSettings dialog go beyond the top of screen"
...
This reverts commit a0f841e8eb
.
2017-03-27 16:00:08 +02:00
Jack Ha
efa1513e4c
Changed all Not Supported Draft quality profiles to Not Supported Superdraft to prevent double Not Supported entries. CURA-3555
2017-03-27 16:00:08 +02:00
Ghostkeeper
b67b41653f
Fix spelling of maximum skin angle expansion description
2017-03-27 15:59:27 +02:00
Jaime van Kessel
88704051d1
Filter bar is now always visible
...
CURA-3574
2017-03-27 15:47:30 +02:00
Lipu Fei
6644a4d386
Revert "Prevent MachineSettings dialog go beyond the top of screen"
...
This reverts commit a0f841e8eb
.
2017-03-27 11:09:40 +02:00
Jack Ha
088202c366
Changed all Not Supported Draft quality profiles to Not Supported Superdraft to prevent double Not Supported entries. CURA-3555
2017-03-27 10:30:51 +02:00
Arjen Hiemstra
5196ea695c
Add a notify signal to all container properties in GlobalStack
...
Contributes to CURA-3497
2017-03-27 01:35:34 +02:00
Arjen Hiemstra
dd8ea6175c
Add properties for user changes etc. to ExtruderStack
2017-03-27 01:32:36 +02:00
fieldOfView
67d66905ba
Fix crash when editing material diameter
...
While editing the diameter value in the materials pane, it can happen that the radius evaluates to 0. This led to a division by zero.
Fixes https://github.com/Ultimaker/Cura/issues/1582
2017-03-26 14:08:07 +02:00
fieldOfView
2b761b87ac
Fail gracefully when libSavitar is not found
...
By catching the ImportError, this prevents the logs being clogged with exceptions in start and when the plugins preference page is touched.
2017-03-25 09:56:02 +01:00
Ghostkeeper
ccd22ef36d
Add tests for setting property on other parts of extruder stack
...
It then asks the property back and sees if it was changed.
Contributes to issue CURA-3497.
2017-03-24 17:55:21 +01:00
Ghostkeeper
129f01aa24
Add tests for setting property on user changes of extruder stack
...
Setting a property directly should put it in the user changes.
Contributes to issue CURA-3497.
2017-03-24 17:52:53 +01:00
Ghostkeeper
fe95755f75
Add tests for setVariantById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:50:14 +01:00
Ghostkeeper
a5d91139ef
Add tests for setQualityChangesById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:49:14 +01:00
Ghostkeeper
393ee7838a
Add tests for setQualityById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:48:27 +01:00
Ghostkeeper
eb7035db45
Add tests for setMaterialById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:46:59 +01:00
Ghostkeeper
e4952ac8c5
Add tests for setDefinitionById
...
One for when the ID exists, and one for when it doesn't.
Contributes to issue CURA-3497.
2017-03-24 17:44:22 +01:00
Ghostkeeper
78e78ac147
Add test for settings behaving like a stack
...
The stack order is very fixed here. Is that bad?
Contributes to issue CURA-3497.
2017-03-24 17:40:41 +01:00
Ghostkeeper
2936b9bf24
Fail deserialize test if missing container doesn't raise an exception
...
If it raised an exception, we were checking whether it was the proper exception. But if it wasn't raising an exception we weren't checking anything. That's fixed now (and the header of the function is improved a bit too).
Contributes to issue CURA-3497.
2017-03-24 17:37:23 +01:00
Ghostkeeper
7913ff9bf2
Add test for deserializing with a missing container
...
A container is missing in the registry, so it should raise an exception.
Contributes to issue CURA-3497.
2017-03-24 17:35:31 +01:00