108 Commits

Author SHA1 Message Date
Dmitry Gribenchuk
8116df6c21
cleanup unused import and fix comment space 2023-12-13 20:10:28 +02:00
Erwan MATHIEU
281e543255 Remove exported file after fail
CURA-10180
2023-08-25 11:27:54 +02:00
Ghostkeeper
20607b219a
Merge branch 'split-removable-output-write-function' of https://github.com/zxc8027/Cura into zxc8027-split-removable-output-write-function 2022-06-15 14:37:39 +02:00
Remco Burema
854921c002 Fix typo in property. Not sure why this didn't crash tbh.
done while investigating CURA-9196
2022-04-26 16:52:23 +02:00
Remco Burema
0232b4f639 Upgrade SDK version to 8.0.0 for Cura 5.0 2022-04-20 10:57:38 +02:00
c.lamboo
337e2aa4bb Update set deamon logic
`setDaemon(True)` has been deprecated

CURA-8640
2022-03-30 15:12:44 +02:00
zxc8027
d7c24f8bea Split requestWrite to allow intercepting writes. 2022-02-03 15:33:07 -05:00
luz paz
d68f375e38 Fix various typos
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
2021-09-07 11:33:54 -04:00
Jelle Spijker
2263969d5f
Updated message with message types
Contributes to CURA-8418
2021-07-28 08:45:42 +02:00
Jaime van Kessel
900db57f0f
Update messages to use the message_types
CURA-8418
2021-07-27 11:54:43 +02:00
Remco Burema
8aa071056b
Now unused API field only took integers originally.
We want to keep it this way so people can still make plugins work for older versions of Cura, like 3.6, where the 'api' field with just a single major version, instead of the 'supported_sdk_versions', which can be either a version-string like '7.6.0' or a list of version strings.
2021-06-17 11:15:33 +02:00
Remco Burema
04002056ae
Update SDK/API from 7.5.0 to 7.6.0 for 4.10
CURA-8320
2021-06-15 16:08:07 +02:00
Ghostkeeper
08be77adad
Increment SDK version to 7.5.0
The Cura 4.9 release will have expanded functionality. If you have a plug-in that uses this functionality, marking it as using SDK 7.5.0 will notify older Cura releases that they can't use that plug-in.
2021-04-06 13:28:08 +02:00
Kostas Karmas
0c28ad3223 Merge branch 'master' into fix_filtering_output_mimetypes 2020-10-30 15:31:04 +01:00
Kostas Karmas
03dc8d00fe Up the SDK version to 7.4.0
In preparation for release of the 4.8.

CURA-7795
2020-10-22 11:29:25 +02:00
Ghostkeeper
a747ca0661
Fix filtering of output MIME types removable drive
The RemovableDriveOutputDevice was selecting the preferred format to save the slice output in automatically. To select this, it was taking the intersection between the available output formats (for which there is a Writer plug-in) and the file formats that the printer supports. However if the printer supports a file format that is not supported by Cura, it would crash here because it was looking up the plug-in for a MIME type it doesn't know about. Stupid mistake. But not half as stupid as the bug I'm about to fix in the next commit.

Fixes #4827.
2020-09-28 11:44:19 +02:00
Kostas Karmas
bd54ef8d5a Update the SDK version to 7.3.0 for 4.7
CURA-7641
2020-08-07 11:12:27 +02:00
Remco Burema
1d55befbe2
Fix missing part of filename w. dots for removable dr.
Project names are no longer stored with their extension internally, so the removal of an extra extension wasn't necesary. Fixes #8123
2020-07-30 13:23:46 +02:00
Nino van Hooff
89f0970a88 Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Nino van Hooff
a09cd0e63e Convert doxygen to rst for Prepare, Preview, RemovableOutputDevice 2020-05-08 17:37:49 +02:00
Nino van Hooff
7302e8ba7f Update missed sdk versions from 7.1 to 7.2.0 for Cura 4.6
CURA-7383
2020-04-21 11:46:12 +02:00
Jaime van Kessel
fe27da5e8a
Remove a number of unused variables 2020-04-10 13:46:19 +02:00
Kostas Karmas
c54c79d2db Fix the "save to removable drive" not appearing
CURA-7203
2020-02-11 09:46:15 +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
Ghostkeeper
b34c0e8eb7
Don't check A: and B: drives for USB sticks
Fixes #2438.
2019-11-04 16:35:49 +01:00
Nino van Hooff
c62ff262ed Change SDK version to 7.0.0
CURA-6858
2019-10-21 14:51:34 +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
fieldOfView
9ac744b9ba Remove unnecessary import and declaration of i18n in plugins 2018-10-03 22:00:24 +02:00
Aleksei S
fe9cada459 Increase plugin API version to 5
CURA-5627
2018-08-27 13:59:00 +02:00
Ian Paschal
d0c68f8e94 Fixes for WindowsRemovableDrivePlugin 2018-07-05 15:46:16 +02:00
Ghostkeeper
5a5766f11a
Choose correct stream depending on output mode
We need a binary stream if we're writing in a binary format.

Contributes to issue CURA-5097.
2018-03-16 14:54:56 +01:00
Ghostkeeper
e74191f2db
Cache preferred format
I think that makes the code a bit easier to read. This is not really done to make it faster, just more semantic.

Contributes to issue CURA-5097.
2018-03-16 14:54:48 +01:00
Ghostkeeper
32cee75e47
Respect order of preference of output formats
Contributes to issue CURA-5097.
2018-03-16 11:49:51 +01:00
Ghostkeeper
b0f7a5b358
Fix translation of there being no file formats available
This entry said that it had a context, but it had none. As a result, the whole string was seen as a context.
2018-03-15 16:53:26 +01:00
Mark
913bcf45b1 Add stderr to send errors to 2017-11-14 11:53:24 +01:00
Ghostkeeper
b142a15266
Remove unused import
And fixed the header and documentation spelling.
2017-10-04 14:59:39 +02:00
Ghostkeeper
0fab6fcc21
Merge branch 'thopiekar-RemovableDrivePlugin-cleanup' 2017-10-04 14:55:36 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Thomas Karl Pietrowski
fc8cbedc82 Sorting imports and removing superfluous import
.. Logger has been imported twice..
2017-09-26 09:39:18 +02:00
Ghostkeeper
e092b908a0
Add message content for WriteRequestFailedErrors
The content of the exception is directly put inside a message, so we should give the exception a message.
2017-09-15 11:06:32 +02:00
alekseisasin
204019702d Added Title for messages
CURA-4203
2017-09-13 13:58:08 +02:00
Jaime van Kessel
be1b5cd83a Cura no longer crashes when writing to full SD drive.
It instead tells warns the user and logs the event. CURA-3909
2017-09-01 14:43:12 +02:00
Ghostkeeper
7ab6a551c1
Clarify that XML material tags don't get translated
Some of the translators got this wrong last time. Let's see how good they read this next time...

Contributes to issue CURA-4113.
2017-08-14 13:54:11 +02:00
Jaime van Kessel
ef51897b71 Fixed removable drive error spam on Windows 2017-07-05 14:48:02 +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
5900bb8622 Use "Ultimaker" as the author for ultimaker plugins
CURA-3712
2017-06-22 08:58:54 +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