wmayer
e171a1f6e1
Gui: enable range check in QuantitySpinBox when opening expression editor
2022-12-19 14:46:31 +01:00
wmayer
ad8974e9d8
Gui: improve usability of QuantitySpinBox when used as menu item
2022-11-12 18:24:27 +01:00
wmayer
4d8e61549d
Gui: if an expression is set for Euler angles in the placement dialog then evaluate the expression instead of determining the angles from the rotation
...
See forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=72522
2022-10-26 11:27:46 +02:00
wmayer
bcc9c6654c
Gui: don't make QuantitySpinBox dependent on implementation details of its base class
2022-10-26 10:54:07 +02:00
wmayer
71d0490dab
Gui: don't make QuantitySpinBox dependent on implementation details of its base class
2022-10-26 00:43:33 +02:00
berniev
656ef8961f
Gui: redundant void 2
2022-08-08 10:21:44 +02:00
wmayer
60c2157e54
Gui: [skip ci] modernize QuantitySpinBox class
2022-07-31 13:59:28 +02:00
wmayer
3b0b7775f4
Fix several clazy issues:
...
* Q_PROPERTY should have either NOTIFY or CONSTANT [-Wclazy-qproperty-without-notify]
* Use Q_ENUM instead of Q_ENUMS [-Wclazy-qenums]
* Add missing a Q_OBJECT macro [-Wclazy-missing-qobject-macro]
* Signal/Slot arguments need to be fully-qualified [-Wclazy-fully-qualified-moc-types]
2022-07-24 19:03:30 +02:00
wmayer
d5921e08ec
fix (Qt) issues found by clang's clazy tool:
...
+ -Wclazy-incorrect-emit
+ -Wclazy-strict-iterators
+ -Wclazy-overloaded-signal
+ -Wclazy-qstring-arg
+ -Wclazy-unused-non-trivial-variable
+ -Wclazy-container-anti-pattern
+ -Wclazy-range-loop-reference
+ -Wclazy-const-signal-or-slot
+ -Wclazy-detaching-temporary
+ -Wclazy-qfileinfo-exists
2022-06-29 21:00:54 +02:00
wmayer
ac3390de12
Gui: add function to determine size that a quantity spin box would need to display a certain text
2022-06-12 20:01:41 +02:00
wmayer
96adb98f46
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
0penBrain
c4c81e6e69
[Core] Fix unit management in QuantitySpinBox
2022-01-23 22:04:06 +01:00
wmayer
6aec424aa5
Gui: override QuantitySpinBox::setExpression and validate expression to update internal representation
2022-01-05 20:15:03 +01:00
wmayer
5d49bf78de
Gui: QuantitySpinBox inherits from ExpressionSpinBox to reduce code duplication
2021-04-02 22:22:16 +02:00
Benjamin Nauck
f9ac51b6a6
[Gui] Use std::shared_ptr instead of boost::shared_ptr
...
There's no need to use boost version when stl has support for shared_ptr
2021-03-06 19:32:03 +01:00
luz paz
298c677873
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
wmayer
877d7e3c49
Gui: [skip ci] workaround for QWindowsStyle to disable spin buttons when it is set read-only
2020-09-11 14:10:45 +02:00
wmayer
050356aa55
plugin: [skip ci] add new signal textChanged() to QuantitySpinBox
2020-08-09 11:22:47 +02:00
wmayer
9a67154e73
Gui: [skip ci] fix bug when keyboard tracking for QuantitySpinBox is disabled and value is changed by mouse wheel or the spin buttons
2020-06-07 23:38:03 +02:00
wmayer
15c9644008
Gui: [skip ci] make QuantitySpinBox to handle disabled keyboard tracking
2020-06-01 18:47:54 +02:00
wmayer
379018cde4
[skip ci] fix superfluous workarounds
2020-01-09 23:36:28 +01:00
wmayer
222a84423d
Gui: [skip ci] avoid weird acronyms in function names
2020-01-09 17:23:12 +01:00
donovaly
65acf2371e
QuantitySpinBox: add function to set/change tooltip at runtime
2020-01-07 07:39:28 -03:00
wmayer
a056d85f7d
Gui: implement size hint for quantity spin box
2019-12-22 11:52:59 +01:00
wmayer
98dfe7c387
add posibility to use a unit schema other then the system schema to represent a quantity
2019-12-21 13:35:14 +01:00
wmayer
b6ae122351
Gui: set/get number of decimals of a quantity spin box
2019-12-20 14:44:40 +01:00
wmayer
93163b28d0
Improve usability of expression dialog:
...
+ add signal showFormulaDialog to QuantitySpinBox in order to indicate whether the formula dialog opens or closes
+ when formula dialog opens then hide the button box in the parent dialog, show it again when the formula dialog closes
2018-08-23 12:22:57 +02:00
Markus Lampert
b28e48c10b
Added read-only 'expression' property to QunatitySpinBox and renamed 'boundTo' to 'binding'.
2017-10-07 15:52:31 +02:00
Markus Lampert
7a352fea52
Added boundTo as a property to QuantitySpinBox to enable binding from Python.
2017-10-07 15:52:31 +02:00
wmayer
81e2480ca6
add new property rawValue to QuantitySpinBox to make it accessible from Python
2017-10-05 22:46:02 +02:00
wmayer
07943d2a9a
Qt4/Qt5 neutral changes:
...
+ move meta types to own header to avoid double declaration
2016-12-12 15:22:34 +01:00
Stefan Tröger
4203a6f35b
Expressions: Integrate into the property editor
...
- basic infrastructure for handling of expressions
- port the unit properties editor to support expressions
- port placement editor to support expressions
- expressions for double spinbox
- expressions in sketch constraints
2015-12-09 14:08:48 +01:00
Eivind Kvedalen
081bc6b107
QuantitySpinBox: Make sure Python code is emitted also when expressions are not used.
...
In that case, the property should be set directly.
2015-11-13 20:26:13 +01:00
Eivind Kvedalen
014bb5b519
QuantitySpinBox: Moved getIcon() and some data members to ExpressionBinding class.
...
Conflicts:
src/Gui/QuantitySpinBox.cpp
2015-09-30 15:54:17 +02:00
wmayer
309373c404
+ fix transparent background for Windows systems
...
+ set application-wide event filter and handle mouse press events
+ fix expressPosition() to return exact position of line edit
+ fix warnings in ui file
+ use DlgExpressionInput as non-modal dialog in QuantitySpinBox
2015-09-26 19:36:11 +02:00
Eivind Kvedalen
897f8b78b8
Added expression support to QuantitySpinBox and InputField classes.
2015-09-21 14:51:08 +02:00
wmayer
3c754da0cb
+ improve QuantitySpinBox
2015-01-19 00:36:07 +01:00
wmayer
7801fbef3a
+ fixes #0001849 : Enable Spin Boxes support for Pad, Fillet and Chamfer
2014-12-11 18:25:30 +01:00
wmayer
d403851313
+ add QuantitySpinBox
2014-07-20 17:47:09 +02:00