352 Commits

Author SHA1 Message Date
Saumya Jain
e90cbcfa01 not clearing the current machinein case of UCP
because we don't want to write again the same thing.
CURA-11701
2024-03-13 13:38:46 +01:00
Saumya Jain
831a1d4876 Reset openAsUcp at the start of preread
CURA-11403
2024-03-06 12:32:05 +01:00
Saumya Jain
8ef7b65710 removing update existing/ create new in case of UCP
also, making sure post processing scripts are not loaded.

CURA-11403
2024-03-05 16:37:17 +01:00
Saumya Jain
c879809836 selected printer is active printer in UCP
CURA-11403
2024-03-04 16:47:09 +01:00
Saumya Jain
b1b9660651 removing select same profile checkbox
CURA-11403
2024-03-01 15:43:37 +01:00
Saumya Jain
f67d2ed5fe Remove setting visibility for Ucp
show settings expanded by default

CURA-11403
2024-03-01 15:25:24 +01:00
Saumya Jain
f3c49e494e adding option of opening model as UCP or normal project file
CURA-11403
2024-02-29 15:45:13 +01:00
c.lamboo
62aff0be12 Determine ucp based on included file
CURA-11403
2024-02-21 11:40:51 +01:00
Saumya Jain
ec871782c7 PAP adding save dialog before filesave window
CURA-11403
2024-02-20 10:47:27 +01:00
saumya.jain
b641741e49 Added preference to show UFP saving dialog
Changes saving to .ucp to .3mf
2024-02-16 14:11:07 +01:00
Erwan MATHIEU
345ddc40bb Fix file opening failure
CURA-11561
2024-02-09 11:54:49 +01:00
Erwan MATHIEU
93cb358599 Add FIXMEs where big changes are required
CURA-11561
2024-02-09 07:43:48 +01:00
Erwan MATHIEU
63c1eb8990 Rename to Universal Cura Project
CURA-11561
2024-02-05 14:15:43 +01:00
Erwan MATHIEU
2ae9908334 Fix crash
CURA-11561
2024-02-05 12:58:02 +01:00
Erwan MATHIEU
9afe5b46db We now display the global and extruder settings in the dialog
CURA-11561
2024-02-05 12:39:56 +01:00
Erwan MATHIEU
2d79479a26 Avoid displaying the discard changed dialog
CURA-11561
2024-02-02 16:17:27 +01:00
Erwan MATHIEU
ab0a52063d Now loading user settings
CURA-11561
2024-02-02 16:05:36 +01:00
Erwan MATHIEU
733ef4d3d8 UI now displays an option to select the same profile
CURA-11561
2024-02-02 12:17:34 +01:00
saumya.jain
b5c47ae8f3 Intent type translated while reading 3mf
CURA-11221
2023-11-07 10:54:59 +01:00
c.lamboo
fa1f5a7c89 Boyscouting
CURA-11189
2023-10-20 15:10:39 +02:00
saumya.jain
f3829c3ebe comments fix and clean code
CURA-18869
2023-09-15 10:56:48 +02:00
saumya.jain
43fddcf012 Opening the value of setting only if they are not in missing packages
CURA-10915
2023-09-11 13:37:08 +02:00
c.lamboo
b19b229752 Boyscouting
CURA-10406
2023-03-17 17:02:42 +01:00
Jaime van Kessel
14ec6560e4
Fix lookup for upgraded intents
CURA-10406
2023-03-17 16:20:11 +01:00
Jaime van Kessel
884ec911e7
Convert to new style type hint annotation
Boyscouting

CURA-10406
2023-03-15 10:30:27 +01:00
Jaime van Kessel
336906deb5
Add missing typing to the container info objects
Boyscouting

CURA-10406
2023-03-15 10:28:13 +01:00
Jaime van Kessel
6a9f1f519d
Don't upgrade during pre-read
This doesn't seem to be needed and it breaks when profiles have been
renamed.

CURA-10406
2023-03-15 10:23:31 +01:00
jspijker
ea1a6d1a6e capitalize M
Contribute to CURA-10208
2023-03-07 07:57:59 +01:00
Joey de l'Arago
1d1800e440 Remove print statements
CURA-9424
2022-11-17 17:03:05 +01:00
Joey de l'Arago
dd510a5dfc Cleanup
CURA-9424
2022-11-17 16:58:16 +01:00
Joey de l'Arago
4d2f6b9655 Previously there would always be one item in the updateableMachinesModel ("Create new"). This was moved to a button instead of being part of the model.
This fixes new machines being incorrectly created when a machine already exists.

CURA-9424
2022-11-17 16:21:57 +01:00
Joey de l'Arago
156004cb17 Move logic for deciding the initially selected printer that was inside WorkspaceDialog.qml before into WorkspaceDialog.py.
A block of code is run after dialog.show() and most of the dialog assignment. This is because dialog.show() resets the _result dictionary, we want to update the values in _result afterwards.

CURA-9424
2022-11-16 16:11:19 +01:00
c.lamboo
dc65e801d0 Set machine isAbractMachine in workspace dialog initialisation 2022-11-15 15:35:16 +01:00
Joey de l'Arago
28862c89e5 Show online badge and printer icon when initially loading machine selector
CURA-9424
2022-11-15 15:03:23 +01:00
Joey de l'Arago
959c42d96a The printer to override was not being set initially, causing file loading to fail when not selecting a printer in the MachineSelector.
Fix is to set it on initialization from the WorkspaceReader

CURA-9424
2022-11-14 13:34:46 +01:00
Joey de l'Arago
8e56631972 3mf project files saved with an abstract printer would crash on loading when selecting a non abstract printer to load the project with.
This was because the metadata "is_abstract_machine" was being loaded into the non abstract machine. This caused a crash in MachineListModel.py by trying to delete this non abstract machine from a list where it didn't exist.

The solution is to ignore the "is_abstract_machine" metadata when loading settings from saved machines in 3mf files.

CURA-9711
2022-10-05 15:27:39 +02:00
Jaime van Kessel
2f1325259c
Fix 3mf workspace reader crashing on certain invalid files
CURA-4DP (Sentry crash)
2022-09-06 14:47:32 +02:00
Ghostkeeper
8970f46154
Better path to packages.json in the 3MF file
Let's put it in the Cura directory with the rest of such files, as to not muddy the 3MF file with all sorts of directories that are not known to other consumers.

Contributes to issue CURA-9413.
2022-06-20 11:04:14 +02:00
j.delarago
f9ea517e05 If package.json metadata file is missing from 3mf file output warning instead of error.
CURA-8610
2022-06-08 11:51:54 +02:00
j.delarago
ce0623664a Include all missing package metadata instead of just ids so we have something to display before searching the package on the marketplace. This is also important so we can show something if we can't find the package on the marketplace.
CURA-6990
2022-05-31 15:21:11 +02:00
j.delarago
4572d53e11 Read package.json required package information. Put package_ids for packages we don't have installed inside the WorkspaceDialog
CURA-6990
2022-05-31 15:12:52 +02:00
Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
Ghostkeeper
9140b71b19
Merge branch 'libArachne_rebased'
Conflicts:
	plugins/SimulationView/SimulationPass.py -> Reverted layer view optimisation in Master while some whitespace changed in Arachne.
	resources/definitions -> Bunch of conflicts with profile updates.
	resources/quality -> Bunch of conflicts with profile updates.
	resources/texts/change_log.txt -> Removed the Arachne change log (as they are internal versions). It'll have to be re-added when we release this version as stable.
2021-12-14 11:48:58 +01:00
Remco Burema
f5604dfb1e
Add 'capabilities' to ignored metadata.
part of CURA-8671
2021-12-02 12:23:57 +01:00
Jaime van Kessel
988de58c4e Fix version upgrader for arachne
CURA-8468
2021-08-09 17:13:40 +02:00
Jaime van Kessel
900db57f0f
Update messages to use the message_types
CURA-8418
2021-07-27 11:54:43 +02:00
Ghostkeeper
3dc1dbbbdb
Load profile from ContainerRegistry if the stack refers to it
We encountered a case where the version upgrade changed the quality profile to a new one which was specific to the printer rather than a global profile. As the upgraded stack was being read from the project file, it would go look for the new quality profile in the workspace. That ID wouldn't be present in there, and so it would crash and pretend the project file is plain 3MF.
This change makes it fallback to the built-in profiles, for precisely such cases as when a version upgrade changes the stack.

Contributes to issue CURA-8212.
2021-06-03 17:13:22 +02:00
Kostas Karmas
00ade8be3a Fix crashing if the quality_type_to_apply is None
Fixes sentry issue CURA-24D
2021-04-16 16:35:44 +02:00
Ghostkeeper
eeecd545db
Catch errors for corrupted zip files when reading project files
Fixes Sentry issue CURA-1DG.
2020-11-18 01:57:49 +01:00
Ghostkeeper
b740fda491
Catch environment errors when reading 3MF archive metadata
The file could get deleted in the meanwhile.

Fixes Sentry issue CURA-1CK.
2020-11-04 14:25:39 +01:00