47 Commits

Author SHA1 Message Date
Nino van Hooff
c62ff262ed Change SDK version to 7.0.0
CURA-6858
2019-10-21 14:51:34 +02:00
Jaime van Kessel
fba7a6ff33
Fix importing profiles
CURA-6847
2019-10-02 17:01:21 +02:00
Ghostkeeper
9c47fc8e70
Use container tree to get quality definition of printer
Contributes to issue CURA-6600.
2019-09-12 16:15:40 +02:00
Lipu Fei
a07e88125f Fix typing
CURA-6713
2019-09-03 15:58:42 +02:00
Ghostkeeper
2f917c2841
Change definition ID upon reading profile
Implements CURA-6713.
2019-09-03 15:38:41 +02:00
Lipu Fei
33739ea7a8 Fix profile upgrade in profile importing
CURA-6681
2019-07-24 10:55:38 +02:00
Lipu Fei
0dfa7f1f84 Fix typing 2019-07-16 14:56:30 +02:00
Jaime van Kessel
2ca39c8e7f Don't reparse entire file when checking for already extracted version
CURA-6659
2019-07-16 14:31:38 +02:00
Lipu Fei
6bb3e33c9e Use VersionUpgradeManager to update the imported quality
CURA-6659
2019-07-11 14:27:49 +02:00
Jaime van Kessel
9e4f2a441b Revert "Also upgrade profiles if only the setting version is incorrect"
This reverts commit 77d396b9bdbfe52f70548b26adcc18038ff6115d.

The upgrade only needs to be run if it still uses "profile" as type (eg 2.1 profiles). So for a
regular setting version upgrade, this does not need to be run (and breaks importing profiles).

Fixes CURA-6592
2019-06-24 11:59:13 +02:00
Jaime van Kessel
0a0b4821ef Added logging for cases where the upgrade of the profile failed
CURA-6592
2019-06-24 11:32:43 +02:00
Ghostkeeper
77d396b9bd
Also upgrade profiles if only the setting version is incorrect
We need to check both version numbers.
2019-06-18 12:00:23 +02:00
Ghostkeeper
0498d43834
Run upgrader on imported profiles from >2.1
Oops... It should upgrade the old profiles so that they have the correct version and setting version.
2019-06-18 12:00:23 +02:00
Ghostkeeper
7fbdccffdb
Add typing 2019-06-18 12:00:22 +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
4c6744b6fc
Code style: Space around binary operators
I just looked for lines with interpolation = None because I was looking for another possible bug, but fixing this in the meanwhile too.
2018-10-10 14:28:50 +02:00
Aleksei S
fe9cada459 Increase plugin API version to 5
CURA-5627
2018-08-27 13:59:00 +02:00
Lipu Fei
af02dc2758 Only use setMetaDataEntry() 2018-07-11 11:14:57 +02:00
Lipu Fei
9a5fb47a6e Merge master into material marketplace 2018-05-01 11:56:34 +02:00
Ghostkeeper
572721e20d
Catch ContainerFormatError when deserialising containers
Only the deserialize() functions themselves may pass the ContainerFormatError on, because their callers will have to handle those errors anyway.

Contributes to issue CURA-5045.
2018-04-06 13:26:16 +02:00
Lipu Fei
c3fe53123b Create module cura.ReaderWriters
CURA-4644

Move all reader writer classes into cura.ReaderWriters.
2018-04-05 15:14:15 +02:00
Lipu Fei
507b967946 Minor fixes
CURA-4868
2018-01-29 14:50:07 +01:00
Lipu Fei
7dfc1a4aa7 Add encoding='utf-8' for text file reading
CURA-4875

When encoding is not provided, the behaviour is system dependent and it
can break on OS X.
2018-01-29 12:29:20 +01:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Ghostkeeper
cd4bffb380
Set author to Ultimaker B.V. instead of Ultimaker
To be consistent with the rest of the plug-ins and with the material files.

Contributes to issue CURA-3857.
2017-06-28 13:50:37 +02:00
Lipu Fei
4ea8cc448a Use semantic versioning for all plugin.json
CURA-3712
2017-06-22 08:57:47 +02:00
Lipu Fei
73f598ff9f Fix code style
CURA-3712
2017-06-22 08:54:04 +02:00
Jaime van Kessel
e3629cec39 Replaced catalog metadata entry with i18n-catalog
CURA-3712 & Cura-3856
2017-06-21 14:24:00 +02:00
Jaime van Kessel
44125d3275 Moved certain meta data entries to seperate file
CURA-3856 & CURA-3712
2017-06-21 11:22:35 +02:00
Simon Edwards
4ab6b74930 Fixed a bunch of error which were reported by PyCharm's code analysis. 2017-02-26 21:05:09 +01:00
Jaime van Kessel
ac708d54b6 Importing invalid filetypes now gives proper error messages
CURA-2883
2016-11-18 16:46:54 +01:00
Jaime van Kessel
c2341f7cd2 Upgrade profile function now returns empty list if something went wrong.
Fixes CURA-1493
2016-09-09 13:23:22 +02:00
Jaime van Kessel
96a1aafb80 Zipfile is now closed when it's done loading
CURA-2252
2016-09-08 14:23:35 +02:00
Ghostkeeper
b7c2a77277
Code style: Use double quotes for strings
Contributes to issue CURA-2252.
2016-09-07 15:59:14 +02:00
Simon Edwards
86369ce1da Profile import now supports 2.1 profiles and does any needed conversion work.
Contributes to CURA-2252 Import ini profile fails in 2.3
2016-09-07 11:13:25 +02:00
Jaime van Kessel
d7d1804319 Added correct exception handling for .curaprofile importing
CURA-2252
2016-09-02 10:16:11 +02:00
Jaime van Kessel
fcfbf78f9e Implemented importing multiple profiles from .curaprofile file
CURA-2099
2016-08-26 14:37:21 +02:00
Simon Edwards
64ecb114b8 Store the Quality profile for the 'global' and extruders in the gcode. Read in all of the quality profile during import.
Contributes to CURA-1727 GCode Profile reading/writing: Broken and needs update
2016-07-12 12:41:49 +02:00
Simon Edwards
b93137545f Support for importing a profile.
Contributes to CURA-1667 Profile import/export
2016-06-09 14:14:50 +02:00
Simon Edwards
97d64a0749 Move ProfileReader and ProfileWriter over to Cura itself.
Contributes to CURA-1667 Profile import/export
2016-06-09 14:14:49 +02:00
Simon Edwards
c03588c6e5 Profile export now goes via the plugin system, and does the same filename checks as before.
Contributed to CURA-1667 Profile import/export
2016-06-09 14:14:48 +02:00
Jaime van Kessel
9009fb9d3d Codestyle & documentation
CURA-537
2016-04-28 16:01:54 +02:00
Thomas-Karl Pietrowski
8b95865843 Import of Logger missing here 2016-03-15 12:34:43 +01:00
Ghostkeeper
3ec790f963 Add CuraProfileWriter plugin
This plugin writes the default Cura profile format.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
984a8efe1e Allowing profile readers to read multiple file types per plugin
Both of these plugins only read one file type, but it's allowed now.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00
Ghostkeeper
f95bfd8ae3 Add normal Cura profile reader
This re-introduces the old functionality where you can import .curaprofile files. It's just now in the plug-in format.

Contributes to issue CURA-34.
2015-12-17 13:35:16 +01:00