Commit graph

714 commits

Author SHA1 Message Date
Joey de l'Arago
62274c4dac Revert Some of "Fix show/hide button in WorkSpaceDialog printer selector"
This reverts commit 0c79ec73
2022-11-11 17:04:39 +01:00
Joey de l'Arago
44d9df57e4 Update drop down to show correct printer icons in header
CURA-9424
2022-11-11 16:34:22 +01:00
Joey de l'Arago
1d34cd01c1 Removed unused UpdatableMachinesModel.py
CURA-9424
2022-11-11 16:34:08 +01:00
Joey de l'Arago
c59f5a5c00 Add tooltip in WorkspaceDialog over the printer selection drop down.
CURA-9424
2022-11-10 14:48:38 +01:00
c.lamboo
0c79ec738e Fix show/hide button in WorkSpaceDialog printer selector
CURA-9424
2022-11-09 23:05:06 +01:00
c.lamboo
8ee5bc2bd4 Remove column with single child
Just rendering the single child produces the same result

CURA-9424
2022-11-09 16:04:39 +01:00
c.lamboo
95e0021cce Align dropdown in open project dialog
CURA-9424
2022-11-09 15:55:48 +01:00
c.lamboo
948ac84070 Add create new button
CURA-9424
2022-11-09 15:49:04 +01:00
c.lamboo
dd4e1c66b7 Make MachineSelector more generic by detaching logic from view
By detaching the logic from the view custom handlers can be added to selecting printers. This was needed as the MachineSelector in the `WorkspaceDialog` needed to do something different from the `PreparMenu`.

CURA-9424
2022-11-09 14:16:33 +01:00
Joey de l'Arago
088ea0a768 Swap out UpdatableMachinesModel for MachineListModel.
This has to be instantiated with the WorkspaceDialog but attaching the listeners throws an error because it is done too early. The listeners are not needed anyway, so they have been disabled.

Update WorkspaceDialog.qml to use MachineListModel

CURA-9424
2022-11-04 16:44:04 +01:00
Joey de l'Arago
f8ed660d58 Update icons
CURA-9424
2022-11-03 16:54:56 +01:00
Joey de l'Arago
e954de7f01 Adjust dialog margins.
Move title into full width white square.

CURA-9424

Co-authored-by: Casper Lamboo <casper.lamboo@ultimaker.com>
2022-11-03 16:43:19 +01:00
Joey de l'Arago
6126135adb Adjust dialog margins.
Move title into full width white square.

CURA-9424

Co-authored-by: Casper Lamboo <casper.lamboo@ultimaker.com>
2022-11-03 16:43:01 +01:00
Joey de l'Arago
c987ef5315 Adjust warning label margins
CURA-9424
2022-11-02 18:30:46 +01:00
Joey de l'Arago
8bb6083481 Create custom component for rows in WorkplaceDialog.
CURA-9424
2022-11-02 18:25:05 +01:00
Joey de l'Arago
b1e559ff1a Add padding below section titles
CURA-9424
2022-11-02 18:09:49 +01:00
Joey de l'Arago
7171249d3f Adjust margins on dialog to match designs
CURA-9424
2022-11-02 15:33:47 +01:00
Joey de l'Arago
1764c338a0 fix visibility check
CURA-9424
2022-11-02 14:23:36 +01:00
Joey de l'Arago
25ecb0e621 Make types specific
Remove unused imports

CURA-9424
2022-11-02 14:21:37 +01:00
Joey de l'Arago
3a07d14b4b remove comboboxheight
CURA-9424
2022-11-02 14:19:35 +01:00
Joey de l'Arago
cde07b9fe4 move signal function to bottom of file
CURA-9424
2022-11-02 14:18:47 +01:00
Joey de l'Arago
d12b59ec0f Refactor workspace sections into separate qml file.
Refactor an existing hack to force trigger the onIndexChanged functions of the comboboxes.

CURA-9424
2022-11-02 14:17:05 +01:00
Joey de l'Arago
f72c980c20 Add icons to the left of titles
Align title text with values in table

CURA-9424
2022-11-01 18:19:50 +01:00
Joey de l'Arago
b01ff2f57e Add open with above printer drop down.
CURA-9424
2022-11-01 17:10:59 +01:00
Joey de l'Arago
41fd36a038 Adjust margins
CURA-9424
2022-11-01 17:10:24 +01:00
Joey de l'Arago
fa317a9e14 Use unique id for WorkspaceDialog
CURA-9424
2022-11-01 16:31:24 +01:00
Joey de l'Arago
afd3d92c5e Use wide button spacing
CURA-9424
2022-11-01 16:28:23 +01:00
Joey de l'Arago
25a0355cfe Update dialog size
CURA-9424
2022-11-01 16:20:09 +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
c.lamboo
0afab9f9e9 Add label-string to translations 2022-07-18 10:40:41 +02:00
Remco Burema
ca36b4f2ef Set proper background color for open project dialogs.
part of CURA-9402
2022-07-01 14:22:27 +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
Ghostkeeper
0f12b012cf
Create InstallMissingPackageDialog with newly-exposed function from Marketplace
This adds a new function to the API of the Marketplace plug-in.
It's not pretty, but it's going to be how it is for a while.

Done to fix a critical build issue. The 'import plugins' thing works from source but not on the build.
2022-06-08 10:19:51 +02:00
c.lamboo
76180eee01 Show warning on-close of the install missing packaged dialog
CURA-6990
2022-06-06 22:49:49 +02:00
c.lamboo
2f22002fd5 Add header and footer components to Dialog
This provides control over how the header (the header is newly introduced in this commit) and footer components are rendered. The footer is the area where the `leftButtoons` and `rightButtons` are rendered. Having control over how this is rendered introduces for instance the possibility to render the buttons within a warning area (an example of this can bee seen in the WorkspaceDialog).

CURA-6990
2022-06-06 21:45:48 +02:00
c.lamboo
34004df7af Un-capitalise materials
CURA-6990
2022-06-03 16:25:43 +02:00
c.lamboo
eccef62dc7 Add typing
CURA-6990
2022-06-03 15:22:29 +02:00
c.lamboo
8fe53163b3 Add Action button and learn more link to warning message
CURA-6990
2022-06-02 17:33:56 +02:00
c.lamboo
fccfcb0e2b Add scroll bar to the WorkSpaceDialog
The warning message took out some space from the dialog. Added a scroll bar to make sure the content can still be read.

CURA-6990
2022-06-02 16:58:41 +02:00
c.lamboo
812b728636 Show warning when opening file without installing missing materials
CURA-6990
2022-06-02 15:36:53 +02:00
j.delarago
0df21e6073 Refactor missing packages dialog into model (MissingPackageList) and controller (InstallMissingPackagesDialog.qml)
Rename classes and files to have unified naming.

CURA-6990
2022-06-01 16:50:53 +02:00
j.delarago
5a3836b841 Fix missingPackages not updating
CURA-8610
2022-06-01 10:39:03 +02:00
c.lamboo
cd9fde946f Add typing
CURA-6990
2022-06-01 10:09:57 +02:00
c.lamboo
cd18bfb893 Set warning only if there are missing materials
CURA-6990
2022-06-01 10:09:23 +02:00
c.lamboo
84f19458c5 Display error when opening 3mf files
CURA-6990
2022-05-31 16:49:47 +02:00
j.delarago
5c1b7470a7 Add pyqt access to missing package metadata.
CURA-6990
2022-05-31 15:26:56 +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