65 Commits

Author SHA1 Message Date
Remco Burema
fc908cdf9b Revert "Settings-GUI: Max decimal places to 4 (from 3)."
This reverts commit 020bedcfeea844a3a785fc12d5a590cef4b8e0a8.
2019-05-28 11:33:17 +02:00
Remco Burema
020bedcfee Settings-GUI: Max decimal places to 4 (from 3). 2019-05-28 11:07:18 +02:00
Lipu Fei
2054413952 Add handling for ValidatorState.Invalid
CURA-6497

ValidatorState.Invalid is set if a string setting has allow_empty =
False and its value is empty.
2019-05-09 12:07:16 +02:00
Diego Prado Gesto
d3b5b2717d Add rounded corners to the settings
Contributes to CURA-5941
2018-12-03 15:56:21 +01:00
fieldOfView
53b481ff5d Reduce the maximum precision of floats in SettingTextField inputs
No settings in Cura require more than 3 digits of precision. Many settings are in mm, and CuraEngine does its calculations in while microns. Having more precision in the frontend than in the backend apparently thoroughly confuses some people. Fixes #4368
2018-09-29 08:16:11 +02:00
Jaime van Kessel
2dbaa304a0 Set textFormat for the setting items to PlainText
Based on the Qt guide on making qml run much faster, it seems that the default of textFormatting (auto)
is quite expensive. As we make a *lot* of settingItems, which we don't want to format, it's better to set it to plain.
I haven't checked how much faster it actually is, but i didn't see visual changes, so it's at least a safe step.
2018-09-20 15:22:35 +02:00
jack
f3f4be5334
Merge pull request #3496 from fieldOfView/fix_textfield_select
Only select all text when tabbing to fields, not when clicking a field
2018-03-15 10:28:47 +01:00
fieldOfView
32d677295f Set rendertype for units in SettingTextField 2018-02-15 11:38:51 +01:00
Ghostkeeper
ee9de1f11b
Merge branch '3.2'
Lots of conflicts due to rounding vs. flooring of text element positions for weirdness with the font aliasing.
2018-02-14 10:53:51 +01:00
Mark
b531c0550d Change Math.floor to Math.round as a last try to fix garbled fonts
CURA-4941
2018-02-14 09:28:47 +01:00
Mark
12b2348309 Revert "Use QTQuick 2.2 to fix garbled fonts"
This reverts commit 0d5bb952efc468522b55cbf903349aaf7f979af9.
2018-02-13 14:37:05 +01:00
Mark
0d5bb952ef Use QTQuick 2.2 to fix garbled fonts
CURA-4941
2018-02-13 12:42:31 +01:00
Mark
7493fae667 Fix to make sure margins cant have partial values
CURA-4941
2018-02-13 07:32:10 +01:00
Mark
7ea654df3d Fix to make sure margins cant have partial values
CURA-4941
2018-02-13 07:31:02 +01:00
fieldOfView
2703474861 Only select all text when tabbing through fields, not when clicking a field 2018-01-27 21:56:39 +01:00
Ghostkeeper
0007f3dafd
Merge branch '3.2' 2018-01-16 09:28:40 +01:00
Aleksei S
9a3c9921ca Fix: remove unnecesary cura slice request
CURA-4785
2018-01-15 17:21:43 +01:00
Aleksei S
38ae75637a Revert "Fix: Cura update setting after delay"
This reverts commit f823a98708dd3eed2485ff412d3fe2dd03a31f35.
2018-01-15 16:15:36 +01:00
Aleksei S
f823a98708 Fix: Cura update setting after delay
CURA-4785
2018-01-15 15:39:25 +01:00
Jaime van Kessel
ed9634ebe0 Merge branch 'master' of github.com:Ultimaker/Cura into network_rewrite 2018-01-08 10:56:12 +01:00
ChrisTerBeke
9784faf181
Merge pull request #3017 from fieldOfView/feature_textfield_select
Select text when gaining focus
2018-01-04 17:01:46 +01:00
Lipu Fei
84adbc5f41 Use the 5.8 versions of QtQuick modules in QMLs
CURA-4758
2018-01-04 13:26:14 +01:00
ChrisTerBeke
27ca743e58 Merge branch 'master' into qtquick-controls-2.0 2018-01-03 11:03:17 +01:00
fieldOfView
57a9b709e7 Select text when gaining focus 2017-12-19 12:14:58 +01:00
Ruben D
0d0bcb8aea
Clip text that exceeds the width of the text box.
For #2802.
2017-11-26 18:48:27 +01:00
Ruben D
8847325cf8
Remove limit on length for integer arrays
The integer arrays were limited because the text in the text field is not properly clipped. I found a fix for that.

Fixes #2802.
2017-11-26 18:47:58 +01:00
Jaime van Kessel
7d28b26ff2 Merge branch 'master' of github.com:Ultimaker/Cura into qtquick-controls-2.0 2017-11-16 16:48:22 +01:00
fieldOfView
8dfba9a318 Stop SettingTextField from setting values when getting/losing the focus
Fixes #2694
2017-10-30 15:31:14 +01:00
fieldOfView
29729d2a23 Change renderType for TextInput elements
Unlike Label elements, which are defined to use Text.NativeRendering, TextInput uses Qt text rendering by default. This can lead to differences in font rendering between input fields and other texts.
2017-10-14 11:43:18 +02:00
Jaime van Kessel
799d1a5b0c Updated setting items & sidebar to qtQuick controls 2.0 2017-10-11 21:02:27 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Ghostkeeper
ab444943cb
Rename setting_validation_error/warning and border
In some places we want to use the bright error or warning colours to display that something is going on. In those places we'd like to refer to the colour setting_validation_error rather than setting_validation_error_border or something, so I'm renaming these four theme items.

Contributes to issue CURA-4148.
2017-08-23 13:30:25 +02:00
Ghostkeeper
5652bccc58
Change control border colour depending on validation state
The background colour was already changing, but the border colour was only depending on the hover state.

Contributes to issue CURA-4148.
2017-08-21 13:56:07 +02:00
Ghostkeeper
4b8152d6fe
Allow fallthrough of switch statement
Makes it easier to modify.

Contributes to issue CURA-4148.
2017-08-21 13:21:33 +02:00
fieldOfView
0f9cfa0304 Fix tab order after expanding categories or using search
This reimplements the behavior of pressing tab/backtab to force the correct order of items in the listview.
2017-06-26 14:35:37 +02:00
fieldOfView
edee53b0b1 Scroll setting with active focus into view 2017-06-26 13:00:59 +02:00
fieldOfView
b324e90ba5 Show hover state on active focus 2017-06-22 18:33:30 +02:00
fieldOfView
8a887915ac Add tab navigation to sidebar 2017-06-22 18:07:34 +02:00
Ghostkeeper
dd2c25868b
Allow strings with actual text
Previously string fields would only accept numbers, which is ridiculous.
2017-03-30 20:57:23 +02:00
Tim Kuipers
38a9df9d76 fix: more lenient int-list validator parsing (CURA-3275)
allow for empty integers
allow the brackets to be omitted
2017-03-06 14:42:11 +01:00
Mark Burton
db3cf0c0fb Add the [int] setting type for settings that are a list of integers.
The RegExpValidator (more of a restrictor than a validator) requires the
text to start with a '[' and then have a sequence of integers separated by
commas. A trailing ']' is accepted.
2017-01-27 15:54:19 +00:00
Mark Burton
03fe03ed65 Modify the constraints of the SettingTextField when the setting type is "str".
When the setting type is "str" it now allows the setting contents to be
up to 20 characters long with no constraint on what those characters are.
2017-01-16 16:05:21 +00:00
Ghostkeeper
45bc603c84
Allow floating point values higher than 9.9999
It would allow only one digit before the radix.

Contributes to issue CURA-3157.
2016-12-19 11:55:58 +01:00
Ghostkeeper
39c0a367b6
Update documentation of this stack description I found
Not really related, but doesn't hurt.

So... does not contribute to issue CURA-3157.
2016-12-16 16:17:14 +01:00
Ghostkeeper
0c212d01b9
Tighten regex for floats
You're no longer allowed to type multiple radices, for instance.

Contributes to issue CURA-3157.
2016-12-16 16:17:14 +01:00
Jaime van Kessel
9057174691 Resolve is now updated from the base property
The resolve doesn't update always update well for single extrusion machines, so the wrong value gets used.
There is however, no need for a resolve with a single extrusion machine, so we can disable the resolve for those alltogether.

CURA-2939
2016-11-21 11:10:23 +01:00
Jaime van Kessel
6c7a0d73c3 Resolve now also returns value if resolve was undefined
CURA-2319
2016-09-21 15:01:08 +02:00
Jack Ha
1c1be7d444 Undo material edit update resolve, breaks UM3. Contributes to CURA-2159 2016-09-12 16:16:02 +02:00
Jack Ha
8304f17efd Fix updating resolved values when changing material. Contributes to CURA-2159 2016-09-12 15:48:30 +02:00
Jack Ha
9521a85318 Fix resolve in profile bug. Removed unnecessary imports. Removed unnecessary watch. Contributes to CURA-2007 2016-08-24 11:36:10 +02:00