45 Commits

Author SHA1 Message Date
Jaime van Kessel
b25e760c53 Remove incorrect enum usage
This only needs to happen in code that uses PyQt, not in qml code
2022-06-17 15:26:30 +02:00
j.delarago
2ffcfafc77 Some place RegularExpressionValidator can't be found in QtQuick 2.10 but can be in 2.15 so all files using RegularExpressionValidator have been bumped to latest QtQuick
CURA-8640
2022-04-05 16:10:39 +02:00
j.delarago
2f96f7b410 RegularExpressionValidator requires newer version of QtQuick
CURA-8640
2022-04-04 10:45:00 +02:00
c.lamboo
3c9e2a1b08 Update RegExpValidator to RegularExpressionValidator
Due to Qt6 API change

CURA-8640
2022-03-30 15:10:37 +02:00
j.spijker@ultimaker.com
55cb86ebbd
use namespace AlignmentFlag
Contributes to CURA-8640
2022-03-24 11:58:42 +01:00
j.delarago
3c7498feed Move ToolbarButton and ToolTip from Cura into Uranium. This makes it possible to use new styled ToolbarButton in plugins/Tools for the rotate tool.
Removed the ContentAlignment enum in ToolTip in favour of using the Text.ContentAlignment enum. For some reason references to this enum fail everywhere when ToolTip is moved into Uranium. There is some evil time-wasting magic cast on this component!

CURA-8943
2022-03-03 15:53:30 +01:00
casper
67c80e8a37 Update image loader dialog
- Changed the slider to a Cura.Spinbox
- Use Cura-styled buttons

CURA-8688
2022-02-18 14:02:09 +01:00
Jaime van Kessel
b45b3faa3c Replace textField in JobSpecs
CURA-8685
2022-02-15 15:32:29 +01:00
Jaime van Kessel
77b46868a6 Replace imagereader controls with styled variants
CURA-8685
2022-02-15 15:24:30 +01:00
Jaime van Kessel
cef3b5db16 Fix mergeconflict
CURA-8684
2022-01-31 17:30:03 +01:00
Ghostkeeper
6db4a55f6e
Merge branch 'replace_controls_1_for_controls_2' into CURA-8684_QtControls_replacement_Buttons,_Actions_&_'Exclusivity'
Conflicts:
	plugins/ImageReader/ConfigUI.qml
	plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml
	plugins/PerObjectSettingsTool/SettingPickDialog.qml
	resources/qml/Dialogs/DiscardOrKeepProfileChangesDialog.qml
	resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml
	resources/qml/Preferences/GeneralPage.qml
	resources/qml/Preferences/Materials/MaterialsPage.qml
	resources/qml/Preferences/Materials/MaterialsView.qml
	resources/qml/Preferences/ProfilesPage.qml

These conflicts are all arising from headers/includes being updated at the same time, or from the two branches marking the other one's components as needing OldControls.
This introduced more OldControls markers which don't get marked as merge conflicts by Git. This happens when an element could just be left as the original name but from the new import (e.g. a Button stays a Button in Controls 2, but should be marked as from OldControls on the branch that doesn't update the Button).
2022-01-31 16:53:45 +01:00
casper
4cb4e0e38c Re-enable validators in ImageLoaderPlugin
CURA-8684
2022-01-31 15:47:42 +01:00
casper
1ecc1ad753 Update styling in image loader plugin
CURA-8684
2022-01-31 13:43:08 +01:00
casper
264ce3bdd1 Make texts fields selectable by mouse for various components
This enables mouse-selectable for
- The image reader dialog
- Layer view text field (in simulation view)
- The TextField with unit component (for instace used to set the scale
 of models)
- Rename dialog(s)
- Currency text field
- The settings filter text field

CURA-8684
2022-01-31 10:28:00 +01:00
casper
d3f01034a2 Highight default action and listen to keyboard actions in image dialog
CURA-8684
2022-01-25 10:54:09 +01:00
casper
ee38c9c05b Update QtControls to v2.0 in image reader plugin
CURA-8684
2022-01-21 12:24:40 +01:00
Ghostkeeper
7a5db88fd8
Update slider to Controls 2
Because Controls 1 is going out.
The rest of the controls elements here are left as they were since they need to be styled.

Contributes to issue CURA-8686.
2022-01-20 17:58:11 +01:00
Remco Burema
5e7eb2fc93
No need for leading 0 in load-image num-fields.
fixes #8906
2020-12-11 17:18:23 +01:00
Nino van Hooff
5a3bcb6161 Fix image reader peak height
CURA-7429
2020-05-07 14:29:30 +02:00
Nino van Hooff
90f580494b Change default image reader algorithm from logarithmic to linear
The log curve might have some benefits but is also harder to understand
and configure, so let's keep the default at linear.

CURA-6540
2019-11-01 10:31:34 +01:00
Nino van Hooff
6e65fe5772 Only show the transmittance input when the color model is Translucency
CURA-6540
2019-10-25 09:57:39 +02:00
Tim Kuipers
3e0b756a6d explain litho transmittance better 2019-05-20 14:37:14 +02:00
Tim Kuipers
5b9a18f5df make naming of Logarithmic Conversion Function intelligible 2019-05-20 14:27:51 +02:00
Tim Kuipers
9066f5f6d4 fix translucency model using new permittance setting 2019-05-20 14:22:19 +02:00
Tim Kuipers
3168328750 feat: use logarithmic conversion for lithophanes 2019-05-20 13:10:54 +02:00
Tim Kuipers
32d79451cc fix color inversion and make variable naming descriptive 2019-03-22 11:42:31 +01:00
Tim Kuipers
bdf102ea64 make description of color invert explanatory, rather than purely descriptive. 2019-03-22 11:30:58 +01:00
Tim Kuipers
709321fc0c Change image import options for standard lithophanes 2019-03-22 11:22:30 +01:00
Ghostkeeper
1bcd134f85
Fix code style
Most stuff here was recently changed. Some of it was where I found a pattern in something that was likely copy-pasted from somewhere else, so I did a global search and replace on that.

Contributes to issue CURA-5784.
2018-10-18 14:30:33 +02:00
Ghostkeeper
314b966cc9
Improvements to translated strings
These strings were recently found to have been confusing to the translators. Improvements are:
- Pulling the (untranslated) error message out of the message sentence. We really want the error message to be at the end so we'll force the translators to translate it as a prefix.
- Remove extra spaces at the end.
- Remove Python logic from within the i18nc call, since gettext doesn't understand that.

Contributes to issue CURA-5741.
2018-10-08 15:03:21 +02:00
Diego Prado Gesto
21d61ce21e Fix an error that makes Cura crash when introducing commas in the
textfields in the ImageReader panel. Now it's possible to use commas xor
dots for separating decimal values.
2017-12-01 14:26:53 +01:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
fieldOfView
c5fd0e6c80 Use screenScaleFactor to consistently adapt sizes to display pixel ratio 2017-09-25 22:07:12 +02:00
fieldOfView
a823980d17 Replace "transparent" Rectangles by Items 2017-01-25 15:21:37 +01:00
Jaime van Kessel
3d58bd4d49 Workspace & load image dialog can now be resized
CURA-3247
2017-01-23 15:08:37 +01:00
fieldOfView
27e3f8b33f Fix color of some texts on Linux with dark theme
Use Label{} instead of Text{}

CURA-1143
2016-04-07 18:57:11 +02:00
Jaime van Kessel
e7ab686318 Increases size of imageload dialog
CURA-266
2016-02-03 10:26:52 +01:00
Jaime van Kessel
538ef391c7 Removes undefined modal type
CURA-266
2016-02-03 10:25:25 +01:00
Jaime van Kessel
0038408933 Fixes binding errors
CURA-266
2016-02-03 10:24:52 +01:00
Jaime van Kessel
88f9cbc213 Fixes several code style violations 2016-02-03 09:14:34 +01:00
Kurt Loeffler
44217fbf94 Changed the translation string context in the ComboBox items in the image import dialog to their correct value of "@item:inlistbox". 2016-01-15 09:55:10 -08:00
Kurt Loeffler
b28bfc9602 Reworked UI so that it matches 15.04 UI, and made each field in the UI do the same thing that they do in 15.04. 2016-01-13 20:08:42 -08:00
Tamara Hogenhout
6711cd3070 Fixin some i18n function calls and such
because some strings could not be translated

Contributes to #CURA-526
2016-01-12 15:24:47 +01:00
Kurt Loeffler
447fdc8fbc Made changed from code review and updated MeshReader plugins to support changes made to Uranium branch MeshReaderDialog. This branch now must be paired with that Uranium branch. 2015-12-31 09:46:57 +01:00
Kurt Loeffler
f5939df085 Put ImageReader plugin in a new clean branch from 2.1. The plugin new uses numpy for geometry generation and image smoothing. 2015-12-31 09:46:56 +01:00