30 Commits

Author SHA1 Message Date
Jaime van Kessel
8de981f33d
Add left padding to numeric textfield 2020-06-17 09:29:43 +02:00
Mark Burton
2669fbe608 Set padding to 0 to remove vertical shift on Linux builds. 2020-06-05 15:31:57 +01:00
Ghostkeeper
2f3462203c
Fix QML errors due to property providers not being initialised yet
This then updates in a fraction of a millisecond later before things even appear on the screen, so it's not so bad to not have a tooltip or to have it show 0 then.

Done during Turbo Testing and Tooling.
2020-03-20 16:58:18 +01:00
Ghostkeeper
31aee866f4
Check if options are available before matching on them
This prevents a QML warning when the ListModel is created before the property provider is. This QML warning looked like this:
2020-03-20 15:04:30,012 - WARNING - [MainThread] UM.Qt.QtApplication.__onQmlWarning [406]: file:///home/trin/Gedeeld/Projects/Cura/cura/../resources/qml/MachineSettings/ComboBoxWithOptions.qml:74: TypeError: Cannot call method 'match' of undefined

Done during Turbo Testing and Tooling.
2020-03-20 15:09:46 +01:00
Ghostkeeper
c7e6553dbf
Disallow printers larger than 2km
To do this, I'm giving more power to the NumericTextFieldWithUnit QML element, to allow an arbitrary minimum and maximum. Enforcing this minimum and maximum is fairly simple with a JavaScript hook. This hook is necessary because the DoubleValidator allows intermediary values which defeats the purpose, essentially allowing any number as long as it has the correct number of digits.
Printers larger than 2km would start to give overflow errors in its X and Y coordinates. Z is okay up to about 9 billion kilometres in theory, since we don't need to do any squaring math on those coordinates afaik. In practice I'm doing this because at very high values the Arranger also gives errors because Numpy can't handle those extremely big arrays (since the arranger creates a 2mm grid).

Fixes Sentry issue CURA-CB.
2020-03-20 11:16:16 +01:00
Jaime van Kessel
decf96e99e
Set verticalAlignment of numericTextField
Contributes to #7300
2020-03-20 11:04:24 +01:00
Jaime van Kessel
08ca213127
Add extra update for Combobox 2019-11-15 11:35:06 +01:00
Lipu Fei
38ee4bf208 Remove deprecated functions in MachineManager
CURA-6858
2019-10-22 14:11:40 +02:00
Lipu Fei
01345650e7 Use more meaning ID
CURA-6834
2019-10-07 21:14:05 +02:00
Lipu Fei
497648ffe7 Fix min/max X/Y QML value bindings
CURA-6834
2019-10-07 14:06:21 +02:00
Ghostkeeper
4bf8ea9332
Merge branch '4.3' 2019-09-23 11:25:31 +02:00
Lipu Fei
c661f82756 Recreate bindings for the text fields
CURA-6690
2019-09-19 15:33:10 +02:00
Nino van Hooff
c43cdb5c63 Implement allowPositive for printhead settings
CURA-6690
2019-09-19 14:49:18 +02:00
Nino van Hooff
17a832f52f Do not transform negative printhead min max values to positive while
displaying

CURA-6690
2019-09-19 13:56:37 +02:00
Jaime van Kessel
75c7a6fa62
Change default font for numericTextfield to default instead of medium 2019-09-18 10:55:18 +02:00
Lipu Fei
d1805d34be Move background to ScrollView for GcodeTextArea 2019-05-14 11:44:14 +02:00
Lipu Fei
d0cc2dc8fa Remove unneeded TODO
CURA-6495
2019-05-02 12:47:48 +02:00
Ghostkeeper
038a5b5942
Fix background of g-code text boxes having zero size 2019-05-02 08:46:46 +02:00
Lipu Fei
904a8ab26c Fix theming
CURA-6435
2019-04-17 09:18:08 +02:00
Lipu Fei
06f427ef46 Make GCode TextField scrollable
CURA-6057
2019-04-04 14:18:54 +02:00
Lipu Fei
3911c3d73d WIP: Cleanup and unify MachineAction styles 2019-03-19 15:40:44 +01:00
Lipu Fei
8d68db9ff0 WIP: Add first-start machine actions 2019-03-19 14:24:57 +01:00
Lipu Fei
987ebba33b WIP: Make MachineSetting panel work 2019-03-19 09:51:10 +01:00
Lipu Fei
449740a631 WIP: MachineSettings Printer tab 2019-03-18 14:48:24 +01:00
Lipu Fei
a2f845f90e WIP: Add PrintHeadMinMaxTextField 2019-03-18 12:01:52 +01:00
Lipu Fei
0fb9ee6c9a WIP: Add CheckBox and fix styles 2019-03-18 09:24:20 +01:00
Lipu Fei
cf0e3effc7 WIP: Refactor NumericTextFieldWithUnit 2019-03-18 08:48:29 +01:00
Lipu Fei
752a48cacd WIP: Refactor and create reusable CuraComboBox 2019-03-14 13:44:15 +01:00
Lipu Fei
3e4624774a WIP: Create new machine settings page 2019-03-14 13:44:15 +01:00
Lipu Fei
6c2e80d2a1 WIP: Create new Machine Settings dialog widgets 2019-03-14 13:44:15 +01:00