25609 Commits

Author SHA1 Message Date
Miroslav Sustek
38e7d3b1ff Add missing Czech translations for Cura 4.9 2021-04-04 19:46:46 +02:00
Jelle Spijker
5a353f488c
Merge pull request #9497 from Ultimaker/constant_colour_layer_view
Draw simulation view lines with a constant colour for the entire line
2021-04-04 15:23:50 +02:00
Jelle Spijker
295e16f5cd
Merge pull request #9493 from Ultimaker/CURA-8152_Onboarding_flow_dialog_ends_after_selecting_networked_printer_without_showing_whats_new
CURA-8152: Go to the next page when adding a networked machine in oboarding wizard
2021-04-04 12:47:58 +02:00
jelle Spijker
23ba1745a4
Handle storing None values in keyring
Write an empty string as value to the keyring if None is parsed and
return a None value if an empty string was parsed from the keyring.

CURA-7180_keyring_none_value
2021-04-04 12:27:43 +02:00
Ghostkeeper
71b217c624
Fix colour calculations if spectrum is entirely one value
If the range of the colour spectrum is 0, i.e. there is only one value for the current colour spectrum, then this would previously give a division by 0 in the shader, causing the final colour to become black. This is unexpected and makes the layer view hard to read. Instead, we'll now use the middle of the range then.
This was likely a problem for a long time but only really became visible due to the colour spectrum now showing only the range of values for the visible structures. Previously it was a problem e.g. for layer thickness if all layers had the same thickness (i.e. initial layer height == layer height).
2021-04-03 17:29:33 +02:00
Ghostkeeper
6209a08121
Fix accidentally always taking 0th line along
The input array here is 2D, but always 1 by N long. The output of where then gives a tuple of two arrays, one indicating the Y positions and the other the X positions. The X positions were therefore always 0. The amin and amax functions were then always taking this index 0 along in their results, regardless of whether the line at that index was visible at all or not.
This will also improve performance since it's checking the limits now only for half as many indices.
2021-04-03 17:19:24 +02:00
Ghostkeeper
9b1941a4a2
Don't crash if there are no visible lines in a polyline 2021-04-03 17:07:01 +02:00
Ghostkeeper
b5bc4aecd5
Reset color scheme limits before every recalculation
This prevents previous measurements from influencing the colour scheme. Essentially previously it was showing the colour scheme based on all lines you had ever seen, rather than just the line types you were currently seeing.
2021-04-03 16:56:36 +02:00
Ghostkeeper
9f902f7a7a
Update colour scheme limits if visibility changed the limits
If the user makes certain structures visible or invisible, and this then causes the limits of the colour scheme to change, this now triggers the layer view to be re-rendered and updates the legend in the simulation view menu component.
2021-04-03 16:49:04 +02:00
Ghostkeeper
424f037dca
Trigger recalculation of colour scheme limits when visibility changes
While it's now correctly triggered to recalculate, it doesn't correctly update yet in the interface. We'll need to resolve that next.
2021-04-03 16:30:10 +02:00
Ghostkeeper
28f8da8f7b
Move calculation of simulation spectrum limits to separate function
This is just a refactor that shouldn't have any influence on the behaviour.
It is a necessary prerequisite to be able to trigger the updating of the layer view colour spectrum more frequently, i.e. if the visible line types change.
2021-04-03 16:16:02 +02:00
Ghostkeeper
8d13cfb5d6
Make limits in colour scheme depend on the visible line types
This way, if travel moves are not currently visible in the layer view, the travel moves don't get counted with the limits to determine the colour spectrum to grade each line with. Quite often, travel moves had a much greater speed than other moves, like 120mm/s instead of the fastest printed line 60mm/s. This caused all of the layer view to be pushed into the lower end of the spectrum. It makes it hard to distinguish the differences in speed and line width because travel moves influence the spectrum so much. This way, the travel moves only influence the spectrum if they are visible. If they are visible, it might be relevant to the user. Otherwise, the user gets the full spectrum to differentiate between all the line widths and speeds.

This currently doesn't update correctly yet. That is something we'll need to fix.
2021-04-03 16:03:20 +02:00
Ghostkeeper
fd6dbd3ede
Draw simulation view lines with a constant colour for the entire line
All of our current layer view colour schemes are properties of a line, not of a vertex. The line has a single feedrate, a single line type, a single layer thickness, a single material colour and a single width. This is even limited by the g-code specification itself, which is unable to represent lines with varying line width. However, we store this information in the vertices, the vertex data being the only data sent to layer view since layer view is sent as polylines to the shader.

This change makes the entire line take on the colour scheme of the vertex where its representative data is stored. This data is intended for the line, not just for that vertex, so it makes sense that the entire line listens to the data of the correct vertex, not just the nearest vertex of the line's endpoint.
2021-04-03 15:40:14 +02:00
jelle Spijker
279edf7a37
Czech Translations for 4.9
CURA-8153
2021-04-02 19:28:44 +02:00
Kostas Karmas
40c07fdeca Merge branch '4.9_translations' into 4.9 2021-04-02 18:11:22 +02:00
fvrmr
78d9576d5b Changelog and whats new
Added the changelog for 4.9 beta.
Copywrite whats new pages.
2021-04-02 16:55:56 +02:00
jelle Spijker
33c33c267d
Translations for 4.9
CURA-8153
2021-04-02 16:34:06 +02:00
Konstantinos Karmas
db750ccf43
Merge pull request #8842 from sustmi/CURA-8821_add_czech_translation
Add Czech translations for Cura 4.8
2021-04-02 15:45:42 +02:00
jelle Spijker
27fc435724
Bumped up stack version to 5
CURA-8110_upgrader
2021-04-02 15:02:38 +02:00
jelle Spijker
ebc4f45da6
Revert "Removed the upgrader for the machine and extruder stack"
This reverts commit 4707560d
2021-04-02 14:45:16 +02:00
jelle Spijker
72478994ec
Bumped up the Preference version to 7
reverted the SettingVersion to 16

CURA-8110_upgrader
2021-04-02 14:41:52 +02:00
Kostas Karmas
789f6de9c8 Go to the next page when adding a networked machine in oboarding wizard
CURA-8152
2021-04-02 14:39:22 +02:00
jelle Spijker
4707560dcb
Removed the upgrader for the machine and extruder stack
It is known that will cause some user scripts to default behaviour.
But this is accepted behaviour, and the benefits of not upgrading
the Cura Application version outweigh this.
2021-04-02 14:03:37 +02:00
Jaime van Kessel
67e03e8763
Merge branch '4.9' of github.com:Ultimaker/Cura into CURA-8110_upgrader 2021-04-02 13:48:39 +02:00
Evangelos Trantos
2a4d421e4b
Change the devtoolset to version 8
After the python and Qt upgrade we're using devtoolset v8 in our centos7 container.
2021-04-02 13:43:19 +02:00
Jaime van Kessel
9fe9a8b802
Merge pull request #9490 from Ultimaker/CURA-8107_signin_screen_new_advertisement
New advertisement screen to log in
2021-04-02 11:18:01 +02:00
Ghostkeeper
e6951327bb
Translate title of sign in screen
Formerly this probably wasn't translated because it's like a name or term. But now it definitely needs to be translated.

Contributes to issue CURA-8107.

Co-authored-by: Jaime van Kessel <nallath@gmail.com>
2021-04-02 11:09:24 +02:00
jelle Spijker
368d28619e
Revert "Bump setting_version to 17" for instances
This reverts commit da4db51b
2021-04-02 10:43:24 +02:00
jelle Spijker
33e345d1bc
Removed upgrader for instance containers
CURA-8810_version_upgrade
2021-04-02 10:41:14 +02:00
Evangelos Trantos
78ecb7ec9a
Change the devtoolset to version 8
After the python and Qt upgrade we're using devtoolset v8 in our centos7 container.
2021-04-02 10:26:25 +02:00
jelle Spijker
5885c5afee
Fixed documentation of upgradeSettingVisibility
CURA-8810_version_upgrade
2021-04-02 09:44:56 +02:00
Ghostkeeper
7f353d72a7
Remove now unused image of printers
Contributes to issue CURA-8107.
2021-04-01 19:36:00 +02:00
Ghostkeeper
9ebb5e4cee
Redesign log-in advertisement
This is a new text and new ordering. The title is above the image now, and the sign in has become a tertiary button.

Contributes to issue CURA-8107.
2021-04-01 19:33:35 +02:00
Ghostkeeper
3e4098cffa
Clean up unreadable mess of SVG code
It's now documented and written down in human terms. Since it doesn't involve encoding contours as 0-width paths any more, the rendering should also be a bit faster.

Contributes to issue CURA-8107.
2021-04-01 19:09:55 +02:00
Ghostkeeper
6b41f3a5cd
Make the welcome screen a re-usable image
It's not good to name a resource after where it's used if it could be necessary in multiple places.

Contributes to issue CURA-8107.
2021-04-01 18:19:18 +02:00
jelle Spijker
51efeb9767
Upgrade expanded categories as well
CURA-8810_version_upgrade
2021-04-01 16:47:43 +02:00
jelle Spijker
0c965b4b20
Add current version to setting_visibility
CURA-8810_version_upgrade
2021-04-01 16:17:01 +02:00
jelle Spijker
77ea5e5e89
Allow setting visibilities to be upgraded
CURA-8810_version_upgrade
2021-04-01 16:15:47 +02:00
jelle Spijker
85fa07f6dd
Add top_bottom category to visible settings in preference
CURA-8810_version_upgrade
2021-04-01 14:22:32 +02:00
Remco Burema
9ffd7ecdb3
Make Wizard Dialogs non-resizeable.
5-min fix.
2021-04-01 13:01:14 +02:00
Remco Burema
92c3c0cdea
Solve 'What's New' font troubles.
5-min fix.
2021-04-01 08:54:16 +02:00
Remco Burema
61bbc6a935
Omit 'Changelog' from title-label
5-min fix.
2021-03-31 18:58:31 +02:00
Ghostkeeper
27185c268d
Strip whitespace around package name for display
The actual package name internally will still have the spaces.
People were using this to get ahead in the sorting of packages, which is a little unfair. This doesn't make that impossible, but prevents it for the most part.
2021-03-31 16:10:36 +02:00
VOLUMIC
c7ae9a7a67
Definitions corrections 2021-03-31 16:07:01 +02:00
VOLUMIC
f03e41701c
Definitions correstions 2 2021-03-31 16:00:06 +02:00
jelle Spijker
b05b36ae56
Added the VersionUpgrade48to49 plugin to bundled packages
CURA-8810_version_upgrade
2021-03-31 15:14:18 +02:00
jelle Spijker
fb05f1ce89
Made VersionUpgrade47to48 a bundled package
CURA-8810_version_upgrade
2021-03-31 15:14:12 +02:00
jelle Spijker
da4db51b0a
Bump setting_version to 17
CURA-8810_version_upgrade
2021-03-31 15:13:06 +02:00
Ghostkeeper
c85cf7b9cb
Add version upgrade plug-in for 4.9
Needed to happen at some point...

Contributes to issue CURA-7787.
2021-03-31 15:08:47 +02:00
Ghostkeeper
0787594a3d
Accept Griffin-style time estimation header
Otherwise it doesn't work for those printers.

Contributes to issue CURA-7787.
2021-03-31 15:08:33 +02:00