Commit graph

4854 commits

Author SHA1 Message Date
Lipu Fei
86e12fc437 Add getDefaultVariantNode() in VariantManager 2018-03-03 15:21:29 +01:00
Lipu Fei
5d5932547c Cleanup imports for ContainerManager 2018-03-03 15:07:42 +01:00
Lipu Fei
41b7468460 Add comments for quality search priorities 2018-03-03 15:03:54 +01:00
Lipu Fei
aa49b0131e Remove outdated doc in QualityManager 2018-03-03 14:54:21 +01:00
Lipu Fei
e3e470cb96 Simplify set update 2018-03-03 14:48:08 +01:00
Lipu Fei
c93643bc2f Move createMaterial() to MaterialManager 2018-03-02 17:30:19 +01:00
Lipu Fei
cf2252f4f9 Simplify for loop in duplicateMaterial() 2018-03-02 17:22:19 +01:00
Lipu Fei
5f0bb3a283 Move removeMaterial() to MaterialManager 2018-03-02 17:20:26 +01:00
Lipu Fei
7642afb9fe Move duplicateMaterial() to MaterialManager 2018-03-02 17:16:35 +01:00
Lipu Fei
ca785c9df3 Move duplicateQualityChanges() to QualityManager 2018-03-02 17:08:58 +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
Lipu Fei
355b8cbac3 Move renameQualityChangesGroup() into QualityManager 2018-03-02 16:58:50 +01:00
Lipu Fei
8324f4f44e Move removeQualityChangesGroup() into QualityManager 2018-03-02 16:47:25 +01:00
Lipu Fei
6cae82a64e Fix comments for createQualityChanges() 2018-03-02 16:42:10 +01:00
Lipu Fei
0944653412 Change VariantType to an Enum 2018-03-02 16:41:19 +01:00
Lipu Fei
fc36df2bea Remove unnecessary comments in getQualityGroupsForMachineDefinition() 2018-03-02 16:37:23 +01:00
Lipu Fei
e340f8e534 Add documentation for getQualityGroups() 2018-03-02 16:34:42 +01:00
Lipu Fei
27f4574223 Remove some superfluous comments in QualityManager 2018-03-02 16:31:57 +01:00
Lipu Fei
29631fa8eb Fix QualityManager doc 2018-03-02 16:25:16 +01:00
Lipu Fei
c6128ef5ba Move setMaterialName() into MaterialManager 2018-03-02 16:22:22 +01:00
Lipu Fei
f7377e6321 Fix extruder_stacks.items() 2018-03-02 16:20:03 +01:00
Lipu Fei
d372fc75e7 Fix type hinting for getFallbackMaterialIdByMaterialType() 2018-03-02 16:16:51 +01:00
Lipu Fei
a6f22fd9cc Remove unnecessary comments 2018-03-02 16:10:59 +01:00
Lipu Fei
2135e30aad Simplify for loop in _calculateInformation() 2018-03-02 16:10:06 +01:00
Lipu Fei
844a597e08 Fix materials models 2018-03-02 09:28:25 +01:00
Jack Ha
53ec846436 CURA-4400 introduced value -1 for extruder number setting (not optional_extruder); this one takes the defaultExtruderPosition in MachineManager 2018-03-01 17:21:35 +01:00
Lipu Fei
97059daf6a Separate quality manager related classes into separate files 2018-03-01 16:37:01 +01:00
Lipu Fei
31d1a3b5db Code style fix 2018-03-01 16:31:00 +01:00
Lipu Fei
59f31c9fe0 Add doc for quality settings model grouping 2018-03-01 16:29:56 +01:00
Lipu Fei
71e8478419 Rename to selected_position 2018-03-01 16:26:12 +01:00
Jack Ha
2538c689f1 CURA-4400 make extruder combobox disabled items grey 2018-03-01 16:22:40 +01:00
Lipu Fei
afae550b5a Store layer_height as float 2018-03-01 16:00:46 +01:00
Lipu Fei
e87077802f Change to layer_height and layer_height_unit 2018-03-01 15:55:44 +01:00
Lipu Fei
b74e2553e7 Use more descriptive variable names 2018-03-01 15:47:52 +01:00
Lipu Fei
d1c518f6d7 Fix the usage of protected variables in quality models 2018-03-01 15:44:06 +01:00
Lipu Fei
06ec16d627 Rename quality drop down menu models 2018-03-01 15:37:48 +01:00
Lipu Fei
a395f93706 Add docs for quality models 2018-03-01 15:28:58 +01:00
Lipu Fei
52da140833 Add doc and copyright headers for MultiBuildPlateModel 2018-03-01 15:27:13 +01:00
Lipu Fei
c0604e5c75 Move MultiBuildPlateModel into Models folder 2018-03-01 15:25:11 +01:00
Lipu Fei
72b42113b3 Add doc for BrandMaterialsModel 2018-03-01 15:19:01 +01:00
Lipu Fei
d6f6dbe45e Rename to available_material_dict 2018-03-01 15:12:34 +01:00
Lipu Fei
4b7c8a8a80 Add doc for BaseMaterialsModel 2018-03-01 15:09:58 +01:00
Lipu Fei
b4c3536999 Move getAvailableMaterials() into MaterialManager 2018-03-01 15:02:57 +01:00
Jack Ha
ba7b18a88b CURA-4400 corrected getProperty in correctExtruderSettings 2018-03-01 15:02:35 +01:00
Jack Ha
ac76d6ea52 Merge branch 'refactoring_machine_manager' into feature_enable_disable_extruder 2018-03-01 13:14:10 +01:00
Lipu Fei
c21174eea8 Fix the usage of protected variables in material models 2018-03-01 11:55:29 +01:00
Jack Ha
657a52a5e7 CURA-4400 add checking for enabled extruder in setting _outside_buildarea, cleaned up a bit and factored some functions out BuildVolume 2018-03-01 11:54:31 +01:00
Lipu Fei
580244a546 Split material models into separate files 2018-03-01 11:50:55 +01:00
Lipu Fei
f485702e58 Add doc for CustomQualityProfilesModel 2018-03-01 11:41:41 +01:00
Lipu Fei
154d104f95 Fix the using of protected property in CustomQualityProfilesModel 2018-03-01 11:40:22 +01:00