4614 Commits

Author SHA1 Message Date
Kostas Karmas
f8a9e7f2d2 Pass the "add to recent" as an input var to dialogs that open projects
This way it is clear before to the dialog whether it should add the file to the recent files list,
before the dialog opens.

CURA-7996
2021-02-08 11:55:28 +01:00
Kostas Karmas
ee22be74b9 Properly check whether the file should be added to recent
When importing only the models of a project file, Cura wasn't checking whether the file should
be added to the recent files list. This commit fixes that.

CURA-7996
2021-02-05 12:14:01 +01:00
Remco Burema
06666bddca
Fix recent files hint when file opens via dialoges. 2021-01-29 14:49:32 +01:00
Jaime van Kessel
464c19f592
Show print weight with single decimal in the details view
Fixes #9176
CURA-7992
2021-01-26 10:29:55 +01:00
Ghostkeeper
63deea4721
Fix model to use for comboboxes to check if they are empty
This was checking against the wrong model, it seems.

Contributes to issue CURA-7865.
2021-01-22 13:52:27 +01:00
Kostas Karmas
cdedb56a9a Restore arguments in the SaveProjectMenu
Or else the LocalFileOutputDevice will output a mesh 3mf file and not a Cura 3mf project when
being called from the 'File -> Save Project -> To Disk' submenu item.

CURA-7865
2021-01-20 21:13:36 +01:00
Remco Burema
0ba3833995
Merge pull request #9153 from Ultimaker/CURA-7865_Save_file_in_existing_project_mvp
CURA-7865 Save file in existing project mvp
2021-01-20 19:18:39 +01:00
Kostas Karmas
b7e613a271 Remove file_type argument from the saveWorkspaceDialog
Because we also want to export ufp files, which are not workspace files.

CURA-7865
2021-01-19 21:39:16 +01:00
Kostas Karmas
f1e152955c Correct the Menu title
CURA-7865
2021-01-18 18:00:05 +01:00
Jaime van Kessel
ffccd687ac
Merge branch 'fix_machinesettings_floats' of https://github.com/fieldOfView/Cura 2021-01-18 15:53:57 +01:00
Kostas Karmas
fc718892d9 Add default text in the ComboBox
The Cura.ComboBox component can now display a default text when there are no items in its model
and another text when there is no item selected.

CURA-7865
2021-01-18 12:10:15 +01:00
Kostas Karmas
2774ec7bdf Remove unnecessary kwargs
CURA-7865
2021-01-15 17:42:42 +01:00
Kostas Karmas
a45af1da25 Add save projects submenu
CURA-7866
2021-01-15 09:50:23 +01:00
Kostas Karmas
fd3c985440 Fix ambiguous Ctrl+O shortcut not opening the local file dialog
Ctrl+O was assigned as a shortcut in two places:
  1. To the "File->Open File(s)" menu item, which is visible when only the local file
	 provider is enabled (i.e. the DF file provider is disabled)
  2. To the "File->Open File(s)->From Disk" menu item, which is visible when there are
     more than one file providers enabled.

This was creating an ambiguous shortcut, thus never opening the local file dialog.

This is now fixed by disabling the shortcuts when the respective items are not visible.

CURA-7868
2021-01-11 17:50:26 +01:00
Kostas Karmas
96c4d66029 Revert making the open file dialog a separate LocalFileProvider plugin
This reverts commits 00de7497a4c2986cf8fd13be8f598a0f615f3d63 to 5f6b3b52c1848416c98f7d276fe02f08d067f675

CURA-7868
2021-01-07 16:35:40 +01:00
Kostas Karmas
606ec587fe Change the row height in the table view
CURA-7868
2021-01-06 11:51:29 +01:00
Kostas Karmas
adcdf7bad9 Remove unnecessary QML imports
CURA-7868
2021-01-05 14:54:28 +01:00
Kostas Karmas
dc02038513 Add a Cura-themed, re-usable TableView component
CURA-7868
2021-01-05 14:47:46 +01:00
Ghostkeeper
5f6b3b52c1
Don't trigger open menu upon starting Cura
That would be very annoying.

Contributes to issue CURA-7868.
2021-01-04 18:13:18 +01:00
Ghostkeeper
b266904d76
Replace other references to the open action with the file provider model
This adds a function 'triggerFirst' to the file provider that triggers the first file provider in the model. That should then be the local file provider, but if the plug-in is disabled for some reason it would use another plug-in.

Contributes to issue CURA-7868.
2021-01-04 18:12:15 +01:00
Ghostkeeper
de80461954
Remove open action, fixing ambiguous overload of Ctrl+O
The action was no longer in the menu, but the hotkey still functioned. Then there were two actions for Ctrl+O, which was ambiguous to Qt.

Contributes to issue CURA-7868.
2021-01-04 18:11:00 +01:00
Ghostkeeper
00de7497a4
Move open dialogue to separate file provider plug-in
We can now define plug-ins that specify where to open files from. This is one of the places where you can open files.
This breaks the main button to open files in the interface. It needs to be redirected to trigger the plug-in to show the open file dialogue.

Contributest o issue CURA-7868.
2021-01-04 18:11:00 +01:00
Ghostkeeper
4b375ce2fe
Remove unused hasMesh signal
This is logic that shouldn't be in QML anyway. It's not used by anything at this point. Let's remove it.

Contributes to issue CURA-7868.
2021-01-04 18:11:00 +01:00
Kostas Karmas
e5038ab46d Update year in the copyright comment.
CURA-7868
2021-01-04 15:12:53 +01:00
Kostas Karmas
70550594cd Connect the visibility of the components through their properties
As Ghostkeeper suspected correctly in the review comment https://github.com/Ultimaker/Cura/pull/9012#discussion_r549707433
the binding wasn't working because the model was being retrieved using a function
(CuraApplication.getFileProviderModel()).

Separating this model into a variable allows us to properly bind the "visible" properties of the
menu items with the count property of the model without a problem.

CURA-7868
2021-01-04 15:07:53 +01:00
Kostas Karmas
71994eaaf9 Change the Open File(s) option according to the file providers count
When there is only one file provider (i.e. the local file provider), the Open File(s) will be a
simple item in the File menu.
When there are more than one file providers, the Open File(s) will become a submenu in the File
menu, which will contain all the file providers as submenu items.

CURA-7868
2020-12-23 17:13:14 +01:00
Kostas Karmas
430550452f Add a new file menu option when there are multiple file providers
CURA-7868
2020-12-15 18:31:15 +01:00
fieldOfView
0313b29dcf Fix validator for floats in Machine Settings dialog
The DoubleValidator depends on the system locale, requiring users with certain locales to enter floats with a comma instead of a dot (though confusingly floats are always represented with a decimal a dot). Instead of configuring the DoubleValidator with a locale that only accepts decimal dots, this commit uses a RegExpValidator, like other numeric fields in Cura does.
2020-12-07 16:04:21 +01:00
Ghostkeeper
1cd5757029
Fix highlighting of item under tooltip area
The parent was no longer the original parent.
2020-11-17 19:41:22 +01:00
Ghostkeeper
29258aa5e2
Always display tooltip on combobox items if text gets elided
So if the text is too long to display, there is still a way to display it.
2020-11-17 10:52:25 +01:00
Ghostkeeper
5e383d4f42
Fix documentation
This is a checkbox, not a combobox.
2020-11-17 10:51:30 +01:00
fieldOfView
afa380555f Fix tooltips on actionbuttons 2020-11-11 14:23:50 +01:00
Ghostkeeper
68422e8be4
Merge branch '4.8' 2020-11-09 14:48:57 +01:00
Ghostkeeper
0821b1bdb1
Disable Czech translations
We didn't receive new translations for Cura 4.8.

Contributes to issue CURA-7782.
2020-11-09 13:55:08 +01:00
Ghostkeeper
95f1b11c45
Set initial page through currentPage after initialising
This has a delayed effect through a signal being emitted. That is necessary because the pagesList itself is also updated delayed, so at this time page 0 doesn't exist yet.

Contributes to issue CURA-7501.
2020-10-30 17:45:58 +01:00
Ghostkeeper
a2d2043b3c
Don't create DiscardOrKeepProfileChangesDialog on start-up
Just whenever we need it, please.
This removes a warning from the start-up sequence, but the warning is still there when you open the dialogue. It's complaining that a model has size -13 and another has size -14, but I don't know which model that is. The UserChangesModel seems to be fine at a size of 1 or so.

Contributes to issue CURA-7501.
2020-10-30 17:45:58 +01:00
Jaime van Kessel
bd4f46a865
Merge branch '4.8' of github.com:Ultimaker/Cura 2020-10-28 15:43:04 +01:00
Jaime van Kessel
cc29ffa40e
Disable the activate button if the machine is already active
Fixes #8643
2020-10-28 15:41:36 +01:00
Jaime van Kessel
5c5a26bf35
Merge branch '4.8' of github.com:Ultimaker/Cura 2020-10-20 13:45:50 +02:00
Ghostkeeper
0f86481ac2
Add libnest2d and pynest2d to list of dependencies
Contributes to issue CURA-7781.
2020-10-19 13:11:46 +02:00
Ghostkeeper
8f9e0da400
Fix binding of extruder enable checkbox if there is no active stack
There was a typo there.

Contributes to issue CURA-7501.
2020-10-16 14:03:59 +02:00
Ghostkeeper
0ecefde880
Defensive coding: Don't get the linked material if there is no material
Fixes Sentry issue CURA-17W.
2020-09-18 11:24:39 +02:00
Remco Burema
d1f5c7de05
Merge pull request #8363 from Ultimaker/CURA-7691_Unclear_why_imported_profile_is_not_immediately_visible
CURA-7691: Unclear why imported profile is not immediately visible
2020-09-16 08:28:35 +02:00
Remco Burema
3fcd7d567f
Show warning icon on import non-visible profile.
part of CURA-7691
2020-09-16 08:26:41 +02:00
Evangelos Trantos
548e6e19e5
Remove the opening of the mycloud/digital factory URL in cases where the user has already signed in.
In cases where a staging build is created this hardcoded value would cause confusion, since it would always point the user to the production environment.
2020-09-14 21:20:38 +02:00
Jaime van Kessel
b09a88075e
Show a visual indication of enabled directly after click
This doesn't actually speed up the process, but it does give some indication
that something is going on while the changes are happening

Contributes to #8250
2020-09-04 14:48:55 +02:00
Ghostkeeper
ab33a09613
Merge branch '4.7' 2020-09-01 13:02:01 +02:00
Ghostkeeper
d115efbbb2
Add change log entry for Cura 4.7.1
And make links clickable there.

Contributes to issue CURA-7658.
2020-09-01 13:01:45 +02:00
Jaime van Kessel
72d31d2ae5
Fix hover of the tooltip for the objectlist
Fixes #8290
2020-09-01 10:50:04 +02:00
Jaime van Kessel
afb29724ff
Give the machineButton selectors a fixed width
This prevents them from popping out of the interface for certain
languages
2020-08-25 10:59:14 +02:00