4600 Commits

Author SHA1 Message Date
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
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
Ghostkeeper
222d6604e0
Clarifications and fixes to source strings
Found during work on CURA-7622.
2020-08-21 16:40:24 +02:00
Ghostkeeper
9ea418c0a1
Revert "Revert "Merge branch '4.7' of github.com:Ultimaker/Cura into 4.7""
This reverts commit 28f4d8513db7efce17bfd8b80fa7c8b237fd1c18.
The original revert was to revert an accidental merge from master to 4.7. This now reverts the revert on Master, so that we still have those changes on Master.
2020-08-20 16:35:52 +02:00
Jaime van Kessel
af05aa61b7
Remove unneeded binding
This binding wasn't needed to prevent a binding loop, but it did cause
the length to not be updated correctly sometimes

CURA-7589
2020-08-20 16:05:52 +02:00
Ghostkeeper
28f4d8513d
Revert "Merge branch '4.7' of github.com:Ultimaker/Cura into 4.7"
This reverts commit 7f47f12bf0a9cf305542b6c21600ce9b804c1dfd, reversing
changes made to dd42c87da762d2030ee2220bc6f0a3e44cf85c28.
2020-08-20 16:01:46 +02:00
Ghostkeeper
dea53b9c02
Revert "Use extruderList rather than deprecated extruders property"
This reverts commit 458acb356f11f50c3327b5af0be8531fb761548f.
The change was wrong. The code refers to PrinterOutputModel.extruders which is not deprecated, not to GlobalStack.extruders (which is deprecated).

Fixes #8204.
2020-08-18 10:38:50 +02:00
Jaime van Kessel
ea7dc0ff01
Fix custom profiles not always being visible in menu
CURA-7589
2020-08-17 14:09:27 +02:00
Jaime van Kessel
ec48496790
Remove unneeded binding
This binding wasn't needed to prevent a binding loop, but it did cause
the length to not be updated correctly sometimes

CURA-7589
2020-08-14 10:00:33 +02:00
Ghostkeeper
615c124960
Remove MouseArea if tooltip is not visible
It should unnecessarily catch any mouse events then. And neither should the ScrollView inside.
2020-08-12 11:07:09 +02:00
Ghostkeeper
3de3d438a5
Prevent MouseArea from stealing mouse clicks
Possibly this is a problem if the tooltip is invisible. We're not sure yet how to reproduce that bug though. In any case, it's neater to not catch mouse events you don't need.
2020-08-12 11:02:04 +02:00
Ghostkeeper
1085709407
Fix arrow position if tooltip is too big to fit on the screen 2020-08-05 02:44:19 +02:00
Ghostkeeper
3b8ae6439c
Put the setting tooltip in a scrollview
You can now scroll through it if the description is too long for it to fit on the screen.
2020-08-05 02:40:45 +02:00
Ghostkeeper
d710d42c0a
Keep tooltip visible when hovering over it
Except when hovering over it while it's completely invisible. You just get this 100ms leeway time to transition from the setting to the tooltip.
2020-08-05 02:16:16 +02:00
Jaime van Kessel
af9a078d41
Merge branch '4.7' of github.com:Ultimaker/Cura into 4.7 2020-08-04 13:30:39 +02:00
Jaime van Kessel
955b2950e8
Change tertiary button to use link text color
CURA-7627
2020-08-04 13:30:01 +02:00