Commit Graph

66 Commits

Author SHA1 Message Date
Uwe
10380abd95 [Gui] Manual alignment etc.: remove unused includes 2022-03-02 04:22:48 +01:00
wmayer
75bf85eb5b Gui: Change label type to ExpressionLabel in ExpressionBinding
* Add function ExpressionBinding::makeLabel() and use it in subclasses to reduce code duplication
2021-04-02 17:46:42 +02:00
Chris Hennes
50c7ee36bf [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +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
34f4b712d8 Qt5: fix deprecation warnings of QWheelEvent in Qt 5.15 2020-10-18 14:45:31 +02:00
wmayer
b143194f9d Qt5: 'static bool QPixmapCache::find(const QString&, QPixmap&)' is deprecated: Use bool find(const QString &, QPixmap *) instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
luz.paz
f11783a498 src/Gui: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00
Zheng, Lei
ea7eee8061 Expression: split Expression.h to ExpressionParser.h
Split Expression details into a separate header to reduce recompilation
time on changes.
2019-09-28 15:30:41 +02:00
wmayer
66da83ef92 fixes 0003605: Scrolling on length inputs with Building Euro unit system has max value 2019-02-21 13:30:13 +01:00
wmayer
a12f4f364f fixes 0003823: FEM, unusable material property changing when using task panel 2019-02-18 23:26:00 +01:00
wmayer
0cc8efa105 simplify handling of locale specific with InputField from Python 2019-01-17 02:57:00 +01:00
wmayer
a6a004b6b2 fixes #0002866: Gui::InputField rounds values to 2 digits 2018-01-02 12:32:09 +01:00
wmayer
483d099671 remove now superfluous member from InputField 2018-01-02 12:31:32 +01:00
wmayer
cfc3dc22ad respect format option when changing values with wheel or up/down keys in input field 2018-01-02 12:11:45 +01:00
wmayer
533a78026a add method toFormat to get number format from character 2017-08-20 18:50:13 +02:00
Oliver Oxtoby
21fd2743a8 Base: Add properties to InputField for setting Quantity from Python
These additions are designed to allow easier interaction with the
InputField box from Python. Particularly, the ability to put the
format into scientific notation to prevent truncation of values.
There is also a need for a way to input a new value into the
text box such that it is formatted correctly.
- 'quantityString' property - allows to check, set, format and
display the underlying value. The only way to achieve this
currently from Python is to set the widget text, then hide and
re-show it to format the value.
- 'format' property: set to 'f' (fixed - default),
'e' (scientific) or 'g' (general - recommended)
to set the number format from Python or UI file
- 'precision' property: as above, number of decimals/significant
figures if it is desired to override the global default
2017-08-20 16:50:01 +02:00
Markus Lampert
71130d09ed Do not overwrite tooltips for InputFields. 2017-08-20 10:22:33 +02:00
Kunda
19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
816336ce65 register Quantity type for shiboken2, handle exception to fix abort when setting quantity property of InputField via Python 2016-12-30 22:51:17 +01:00
wmayer
9fe82bfbb9 fixes #0002460: Use keyword 'explicit' for Quantity constructor 2016-11-05 23:21:42 +01:00
wmayer
f944ab3846 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
f19d424d8b fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
maurerpe
8de9436c36 Add missing header files
Needed for Qt5, recommended for Qt4
2016-02-24 23:55:40 +01:00
Mateusz Skowroński
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Eivind Kvedalen
897f8b78b8 Added expression support to QuantitySpinBox and InputField classes. 2015-09-21 14:51:08 +02:00
wmayer
197aa0c85c + fix bug in read-only InputField, minor Utf-8 issue in meshing dialog 2015-04-22 14:01:27 +02:00
wmayer
b8df4593c9 + change selectNumber() to check against the locale signs 2014-08-11 11:07:24 +02:00
wmayer
17e2737062 + fix regression in selectNumber(), + little performance boost, fix whitespaces 2014-08-11 10:46:43 +02:00
Johan K
83a5f1547f Adding selectNumber handling of locale, this wont work with groupseparators 2014-08-03 22:31:57 +02:00
Johan K
5cfdabb45a Adding changes 2014-08-03 20:13:05 +02:00
wmayer
6b1e6a66ad + Make destructor virtual for classes with virtual methods (based on DevJohan's patch) 2014-07-26 19:17:12 +02:00
wmayer
b5b929cf58 + fix focus issue with QuantitySpinBox and InputField 2014-07-21 18:28:46 +02:00
wmayer
2da263ae95 + proper handling of group separator in InputField and QuantitySpinBox 2014-07-21 15:03:45 +02:00
wmayer
bfae053eb4 + fix a couple of issues with InputField used in property editor 2014-06-14 16:22:56 +02:00
wmayer
2320e994b3 + fix possible crash in InputField::selectNumber 2014-06-10 14:10:36 +02:00
wmayer
f867733499 + restore selected numbers in input field after showing it, select numbers if widget gets focus by Tab/Backtab/Shortcut 2014-06-10 11:34:23 +02:00
wmayer
f0bd78bee9 + fix issue with default value and unit in InputField 2014-06-06 16:17:47 +02:00
wmayer
52c385003f + optimization for icon retrieval in InputField 2014-05-30 12:56:26 +02:00
wmayer
30e5321e76 + fix whitespaces and a few minor things 2014-05-12 14:14:23 +02:00
Stefan Tröger
8ff14c8fdb port the placement dialog to the inputfield 2014-05-12 09:40:16 +02:00
wmayer
a31ce8e386 + fixes #0001512: After trying to set a bad value, the pad editor does not show 2014-04-23 17:10:28 +02:00
jriegel
280448e01c Fix unit error checking in InputField 2014-04-17 06:33:57 +02:00
wmayer
61919e89ab + implement input validator for range checking 2014-04-16 12:03:18 +02:00
wmayer
f3b150c3ea + improve whitespaces 2014-04-14 17:14:26 +02:00
jriegel
432b224e03 Make InputField obey Minimum/Maximum property 2014-04-14 03:29:44 +02:00
wmayer
f2a922bdf2 + implement key up/down for input field, fix wheel event 2014-04-02 12:22:28 +02:00
wmayer
22f3f85584 + emit valueChanged(double) signal from InputField 2014-02-12 14:03:42 +01:00
wmayer
9b0d24345f + Using locale delimiter 2014-02-11 17:36:04 +01:00
jriegel
d17fb3aa5d First tests of using InputField via Python 2014-02-09 20:50:07 +01:00