214 Commits

Author SHA1 Message Date
Nino van Hooff
c8c4fe65cf Fix two if statements which caused POS settings to be unselectable 2020-03-06 11:00:56 +01:00
Ghostkeeper
a776f54e7f
Fix making settings visible if the default was 0
If the default was 0, then the if statement would evaluate as False and it would not make them visible until you closed and re-opened the panel.

Contributes to issue CURA-7211.
2020-02-13 13:09:57 +01:00
Ghostkeeper
3b235d5536
Make settings visible too after adding them
Contributes to issue CURA-7211.
2020-02-13 13:08:32 +01:00
Ghostkeeper
53e1742d27
Merge branch 'master' into infill_mesh_shell_defaults 2020-02-11 17:21:19 +01:00
Ghostkeeper
6f707f3149
Bump SDK version number of Cura 4.5 to 7.1
We've added new things to our API. This allows plug-in developers to use them.

Contributes to issue CURA-7205.
2020-02-10 10:45:07 +01:00
Tim Kuipers
9c2fd1c9d4 automatically add shell thickness to stack and set to zero for infill meshes
and remove when unmodified and we change to another mesh type
2020-01-03 15:57:20 +01:00
Nino van Hooff
5c83ba0129 Rename SettingsDefinitionModel.collapse to -Recursive for consistency
CURA-6959
2019-12-30 15:05:52 +01:00
Jaime van Kessel
f983990ac1
Fix some codestyle issues 2019-12-23 11:13:59 +01:00
Jaime van Kessel
5061a36aba
Fix mesh_type being reset when adding a setting 2019-12-23 11:11:09 +01:00
Jaime van Kessel
00078fd659
Remove a bunch of unused imports 2019-11-08 13:38:42 +01:00
Nino van Hooff
c62ff262ed Change SDK version to 7.0.0
CURA-6858
2019-10-21 14:51:34 +02:00
Nino van Hooff
53ea6ce1a7 POS: Fix: currentMeshType reference
CURA-6683
2019-09-18 11:39:58 +02:00
Nino van Hooff
7d66409494 POS: Refactor settings dialog into its own file
CURA-6683
2019-09-18 11:23:10 +02:00
Nino van Hooff
fbba39cb63 POS: Correct label text
CURA-6683
2019-09-18 11:21:12 +02:00
Nino van Hooff
be7bd59e30 Code Style: camelCase for qnl properties, brackets, commas
CURA-6683
2019-09-18 11:21:12 +02:00
Nino van Hooff
c3bbd884b5 Use Cura.SecondaryButton for POS select settings button per design
CURA-6683
2019-09-18 11:07:18 +02:00
Diego Prado Gesto
0b9052b068 Clean up and code style fixing
Contributes to CURA-6683.
2019-09-17 15:12:46 +02:00
Nino van Hooff
dbb9e55bc8 Fix MyPy warning in PerObjectSettingsTool
CURA-6683
2019-09-16 15:05:02 +02:00
Nino van Hooff
d6872a65bd Fix infillOnlyCheckbox not representing mesh type
Not a bug but a feature: When the overlays button is clicked, the infill
mesh type is set and the checkbox checked

CURA-6683
2019-09-13 13:36:30 +02:00
Nino van Hooff
44fbcaeb3a Fix Settings lines positioning for Per Object Settings
CURA-6683
2019-09-13 13:26:00 +02:00
Nino van Hooff
667e5f8e18 Fix reference error in POS
CURA-6683
2019-09-13 13:26:00 +02:00
Nino van Hooff
606faf54c2 Remove unnecessary component initialization
CURA-6683
2019-09-13 13:26:00 +02:00
Nino van Hooff
fe0e1e5aba Remove unnecessary ; line endings in QML
CURA-6683
2019-09-13 13:26:00 +02:00
Nino van Hooff
90fefac37f Remove redundant rows from POS QML
CuRA-6683
2019-09-13 13:26:00 +02:00
Nino van Hooff
184a72f7ab Bind current_mesh_type to UM.ActiveTool.properties.getValue("MeshType")
CURA-6683
2019-09-13 13:26:00 +02:00
Nino van Hooff
42a3e1227a Use explicit types for mesh_type qml properties
CURA-6683
2019-09-10 13:37:05 +02:00
Nino van Hooff
0ba1bfbe4f Enable Per Object Settings when extruder is in Recommended mode 2019-09-10 13:37:05 +02:00
Nino van Hooff
6101afa68b Remove redundant namespace usages 2019-09-10 13:37:05 +02:00
Nino van Hooff
812eeab07a Show infill checkbox only for overhang mesh types 2019-09-10 13:37:05 +02:00
Nino van Hooff
760234f69b Per Object Settings qml for icon buttons 2019-09-10 13:37:05 +02:00
Nino van Hooff
87c81055e3 Update the per-object-settings icon 2019-09-10 13:37:05 +02:00
Diego Prado Gesto
69f92ff311 Update when a setting is removed from the list
Add a connection to check when a setting was or not removed from the list of the added settings in the PerObjectSettings panel.
2019-08-02 14:34:14 +02:00
Jaime van Kessel
ff0a18603b Remove a few more usages of deprecated functions 2019-05-16 15:20:38 +02:00
Lipu Fei
6992fd2991 Update plugin versions to match package versions
CURA-6019
2018-12-17 13:03:21 +01:00
Ghostkeeper
c235f339ae
Increment API version to 6
All plug-ins now have to re-check whether they are still compatible with the current version of Cura.

Contributes to issue CURA-6019.
2018-12-14 17:29:02 +01:00
Ghostkeeper
4d87c46423
Remove sourceSize.width: width from all RecolorImages
It is now the default in Uranium.

Contributes to issue CURA-5876.
2018-12-04 15:04:51 +01:00
Remco Burema
24f9804f03 Disable per-meshgroup settings in the per-mesh settings when in one-at-a-time mode.
[CURA-5767]

The backend can't handle per mesh-group settings (as opposed to per mesh settings)
when sequence was in one-at-a-time mode. The problem is that the extruder train is
in between the per-meshgroup-settings (child-of) and per-mesh-settings (parent-of).
For any per-mesh-group settings, the possibility exists that they'll be overridden
by settings we always set (and that need to be set) per extruder. Changing this
would require the engine-architecture to change, and _all_ settings would need to
be thouroughly retested. As this was a too extensive change, it was decied just to
disable the per-meshgroup settings when printing one-at-a-time (too).

The issue was originally reported as:
'"Printing Temperature Initial layer" setting per mode does not work'
2018-10-26 11:01:46 +02:00
alekseisasin
2a201cef23 Prevent cura crash after setting Print as Support in per object setting
menu
CURA-5766
2018-09-26 17:06:24 +02:00
Jaime van Kessel
4cde6c05ae Switch most usages of containerStackId to containerStack for settingPropertyProvider
This mostly makes the code a bit more logic and also decreases the number of searches in the registry
2018-09-07 15:23:09 +02:00
Aleksei S
fe9cada459 Increase plugin API version to 5
CURA-5627
2018-08-27 13:59:00 +02:00
Diego Prado Gesto
43657010ba CURA-5164 The Preferences is not a singleton class anymore since in some point
several instances need to be created.

- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.

- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.

- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
Ghostkeeper
60a217fc84
Rename expandAll to expandRecursive
Because it doesn't expand all settings, just a category.
2018-03-30 15:07:42 +02:00
fieldOfView
dee70f35f4 Fix setting visibility when searching 2018-03-15 11:03:27 +01:00
fieldOfView
8fe2077413 Merge branch 'master' into fix_per_meshgroup_settings 2018-03-15 10:40:18 +01:00
Aleksei S
6bb42da056 Removed related commits to Settins per Object validation and
added short validation in StartScliceJob
CURA-4972
2018-03-06 15:40:26 +01:00
Ian Paschal
8d5a643c9b Removed print() statement 2018-03-06 10:51:39 +01:00
Lipu Fei
a29a6122f1 Merge remote-tracking branch 'origin/master' into refactoring_machine_manager 2018-03-05 11:29:21 +01:00
Aleksei S
6781627672 Fix: Flat model and reset all rotation did not work
CURA-5039
2018-03-05 10:42:09 +01:00
Ian Paschal
1f403f815d CURA-4972 Moved validation to SettingOverrideDecorator.py
**The diagnosis:**
The issue arrises from the fact that while the original object is subscribed to be validated, that subscription is only created by setting it as a settings override object. A clone of that object, while still a settings-override object, never gets subscribed because it's not explicitly set with the tool.

**The solution (?):**
I moved all the validation stuff over to SettingOverrideDecorator.py, and use its onSettingChanged() function to trigger the validation. Unfortunately, I can't use the timer because of some limitation with QTTimer and threads. So it's _a bit laggy in some places, and I'd be open to tips about how to fix this. It does work reliably though.
2018-03-02 17:05:58 +01:00
Ian Paschal
62e7cb9a2d CURA-4972 Allow reslice after setting is removed
The issue Andreea found was caused by the fact that the object was unsubscribed from setting validation while still having the illegal value, because the setting (and its illegal value) was removed AFTER unsubscribing. Thus the illegal value got "saved" until the next time you added that setting and set the correct value.
2018-02-27 16:05:07 +01:00