Arjen Hiemstra
0292756ad7
Do not limit containersChanged methods to a single container type
...
This may trigger a few extra updates, but allows us to use signal
compression in the postponesignals context manager, which greatly
improves performance.
2017-02-07 16:28:08 +01:00
Arjen Hiemstra
927055806c
Postpone containersChanged signals when doign setActive* calls
...
This makes sure we do not trigger everything three times when switching
variants.
2017-02-07 16:26:44 +01:00
Simon Edwards
8a4b6adfb3
Flash the window icon instead of trying (and failing) to make it visible directly.
...
CURA-3335 Single instance Cura and model reloading
2017-02-07 15:47:45 +01:00
Simon Edwards
71d2990ca9
Merge branch 'single_instance'
2017-02-07 13:45:11 +01:00
Simon Edwards
412e299f0c
Cleaned up and bug fixed the command loop.
...
CURA-3335 Single instance Cura and model reloading
2017-02-07 13:33:37 +01:00
Jack Ha
1d77864915
Added force layer view compatibility mode. CURA-3273
2017-02-07 09:36:21 +01:00
Ghostkeeper
ee3e0ba6ab
Add material indication to extruder boxes
...
Only if a material is known of course. But the case where it is unknown is not tested.
Contributes to issue CURA-3161.
2017-02-03 14:52:09 +01:00
Simon Edwards
0e306df1bc
Initial basic version of this feature.
...
CURA-3335
2017-02-02 15:59:09 +01:00
Ghostkeeper
425dbf1ad8
Only check for validationState changes if it's not already a value change
...
No need to check the second if-statement in most cases.
Contributes to issue CURA-3291.
2017-02-01 16:29:59 +01:00
Ghostkeeper
3ac9036b4a
Only listen for other container stack errors if multi-extrusion
...
It's not even necessary to check otherwise. Requesting an extruder stack would give None anyway, which would give errors.
Contributes to issue CURA-3291.
2017-02-01 16:28:45 +01:00
Ghostkeeper
a0ba1188a1
Always listen to changes on all extruder stacks of the current machine
...
We need to listen for changes on all extruder stacks because the values might change and therefore the validation states might change. The value of a different extruder stack could change if you change a global value that has impact on a per-extruder value via inheritance, or in this case if a limit-to-extruder property specifies that the setting should be changed on a different stack. It could change on the stack that is not active in either case.
This might have some performance impact, but it is very small. Other than layer_height there aren't many global settings that have impact on multiple extruders via inheritance. And via limit-to-extruder there will typically only be one changed value which you want to update for. Changing layer height will be a bit slower though.
Contributes to issue CURA-3291.
2017-02-01 16:17:12 +01:00
Simon Edwards
4715afdad6
Fixed one new class variable. Updated the script to run mypy.
2017-02-01 14:53:22 +01:00
Ghostkeeper
362c5835ee
Don't use limit_to_extruder if it evaluates to -1
...
The default value for the limit_to_extruder property is -1. So no need to check if the property exists. Just check if it is positive.
Contributes to issue CURA-3291.
2017-02-01 14:42:06 +01:00
Ghostkeeper
ed2b09c975
Fix getting limit to extruder property
...
Apparently it didn't even reach this code up until now. Well, now it does.
Contributes to issue CURA-3291.
2017-02-01 14:26:37 +01:00
Ghostkeeper
039015e3df
Don't unnecessarily copy extruder stacks to list
...
You're just looping over it. No need to actually make a list out of it.
Contributes to issue CURA-3291.
2017-02-01 14:24:03 +01:00
Ghostkeeper
7d536e2f8b
Clarify global container stack checking code in _checkStacksHaveErrors
...
The order of operations was a bit weird. This made the code unclear and also required an extra check in an if-statement. This is simpler and theoretically even a bit faster.
Contributes sorta to issue CURA-3291.
2017-02-01 14:17:23 +01:00
Ghostkeeper
31e88aa5af
Also check for errors via limit_to_extruder settings
...
The error should then not be checked in the active stack but in the stack which has the correct setting value.
Contributes to issue CURA-3291.
2017-02-01 14:14:50 +01:00
Ghostkeeper
307896cb41
Fix converting URL to local path in setDefaultPath
...
It is a method, not a static function.
Contributes to issue CURA-3297.
2017-02-01 09:48:06 +01:00
Ghostkeeper
1a4d71c3f8
Save last-opened file path as local-file format
...
It's stored in the format of '/home/user/Models/Basic' rather than 'file:///home/user/Models/Basic'. The QML FileDialog class expects the latter format though.
Contributes to issue CURA-3297.
2017-01-31 17:42:32 +01:00
Jack Ha
5a2aa8846b
Added extruder count detection to layer view. CURA-3273
2017-01-30 13:29:35 +01:00
Jack Ha
2f9618f2ad
Merge branch 'master' into layer_view3_cleanup
2017-01-30 11:25:55 +01:00
Mark Burton
31c1684066
Merge remote-tracking branch 'upstream/master' into mb-infill-line-angles
2017-01-27 15:55:43 +00:00
Mark Burton
db3cf0c0fb
Add the [int] setting type for settings that are a list of integers.
...
The RegExpValidator (more of a restrictor than a validator) requires the
text to start with a '[' and then have a sequence of integers separated by
commas. A trailing ']' is accepted.
2017-01-27 15:54:19 +00:00
Simon Edwards
eb43806d7a
Merge branch 'master' into python_type_hinting
2017-01-27 15:37:30 +01:00
Jack Ha
4af902671f
Scale large models by default off. CURA-3289
2017-01-26 09:26:32 +01:00
Jaime van Kessel
092f42ef28
Revert "Only emit signal when the active extruder actually changes"
...
This reverts commit 4e8fb254f6 .
2017-01-25 16:20:10 +01:00
Jack Ha
06a42d98ee
Fix PrintInformation if somehow no active material container is found
2017-01-25 16:06:13 +01:00
Jack Ha
3a2438937d
Removed crappy legend
2017-01-25 12:46:07 +01:00
jack
26ad2c8f6e
Merge pull request #1378 from fieldOfView/feature_layerview_legend
...
Layerview Legend
2017-01-25 11:53:41 +01:00
Jack Ha
a52cb2fa63
Compatibility mode scale line type colors
2017-01-25 09:48:36 +01:00
Jack Ha
5fff1f6657
Cleanup
2017-01-25 09:27:22 +01:00
Jack Ha
6625938a2b
Cleanup __color_map in LayerPolygon
2017-01-25 09:24:40 +01:00
fieldOfView
878ccc679c
Add a legend to Layer View
2017-01-24 23:24:52 +01:00
fieldOfView
f0333e2184
Fix typo
2017-01-24 23:18:46 +01:00
Ghostkeeper
a8efde9450
Merge pull request #1243 from fieldOfView/feature_material_cost
...
Implement material cost
2017-01-24 15:54:57 +01:00
Jaime van Kessel
4e8fb254f6
Only emit signal when the active extruder actually changes
2017-01-24 13:14:10 +01:00
fieldOfView
5e121e4039
Use themeable colors for layerdata
2017-01-23 22:11:38 +01:00
fieldOfView
45c8083423
Use themeable colors in Solid, Xray & Layer view
2017-01-23 22:08:27 +01:00
Simon Edwards
d5c96c1aae
Removed a line of debug.
2017-01-18 13:49:18 +01:00
Simon Edwards
4fecf55b3b
Use double quotes instead of singles.
2017-01-17 20:56:50 +01:00
Simon Edwards
1b43e4981e
Fixes for all of the plugins. Added a script to invoke mypy. (I'm stiiiick of .bat files. They are just broken.)
2017-01-17 16:57:37 +01:00
Jack Ha
abe7a8e9a3
Merge branch 'master' into layer_view3_cleanup
2017-01-17 15:16:50 +01:00
Simon Edwards
fb70eb6813
Merge branch 'master' into python_type_hinting
2017-01-17 08:42:55 +01:00
Jack Ha
b2d7b82dd3
Preference Center camera set to default off. CURA-2908
2017-01-13 09:16:04 +01:00
Simon Edwards
16a748e0d6
Merge pull request #1326 from Ultimaker/big_flame_graph
...
Support for the Big Flame Graph profiler
2017-01-12 14:25:18 +01:00
Simon Edwards
8d146d92b3
Merge branch '2.4'
2017-01-12 13:26:25 +01:00
Simon Edwards
98bad05b7b
Take materials which are sub-type into account when looking for quality profiles.
...
CURA-3235 Duplicate profile broken when using Ultimaker materials other than default
2017-01-12 13:25:05 +01:00
awhiemstra
a2e00bd560
Merge pull request #1336 from fieldOfView/fix_center_zero_tower_pos
...
Fix prime disallowed areas when center is zero
2017-01-12 10:28:53 +01:00
fieldOfView
1d308f2042
Fix the disallowed area for the prime tower and prime are when center_is_zero
2017-01-11 18:04:25 +01:00
Simon Edwards
a5181f157e
Applied the profiler's pyqtSlot decorator to all of the code.
2017-01-10 13:35:39 +01:00