Commit Graph

65 Commits

Author SHA1 Message Date
wmayer
f5063af183 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
098d7b9aee [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
Benjamin Nauck
d69bbaa51b [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
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
2647987157 Qt5: fix deprecation warnings of QWheelEvent in Qt 5.15 2020-10-18 14:45:31 +02:00
wmayer
9ed9d30338 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
04ba2872f0 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
38c47d6e95 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
5c4ad9eeac fixes 0003605: Scrolling on length inputs with Building Euro unit system has max value 2019-02-21 13:30:13 +01:00
wmayer
99355b6fd2 fixes 0003823: FEM, unusable material property changing when using task panel 2019-02-18 23:26:00 +01:00
wmayer
46804085c9 simplify handling of locale specific with InputField from Python 2019-01-17 02:57:00 +01:00
wmayer
a6dd02bb75 fixes #0002866: Gui::InputField rounds values to 2 digits 2018-01-02 12:32:09 +01:00
wmayer
a50b40f8df remove now superfluous member from InputField 2018-01-02 12:31:32 +01:00
wmayer
3a39ea43c3 respect format option when changing values with wheel or up/down keys in input field 2018-01-02 12:11:45 +01:00
wmayer
dd66a9c9fc add method toFormat to get number format from character 2017-08-20 18:50:13 +02:00
Oliver Oxtoby
966fbf422b 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
604365a6b8 Do not overwrite tooltips for InputFields. 2017-08-20 10:22:33 +02:00
Kunda
de2392eb18 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
4db41b0b4b 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
47b41a7883 fixes #0002460: Use keyword 'explicit' for Quantity constructor 2016-11-05 23:21:42 +01:00
wmayer
2af6bb6e49 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
maurerpe
5a85155565 Add missing header files
Needed for Qt5, recommended for Qt4
2016-02-24 23:55:40 +01:00
Mateusz Skowroński
c275b35d48 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
8e5619f7a0 Added expression support to QuantitySpinBox and InputField classes. 2015-09-21 14:51:08 +02:00
wmayer
05b921df0d + fix bug in read-only InputField, minor Utf-8 issue in meshing dialog 2015-04-22 14:01:27 +02:00
wmayer
4f3f96cba1 + change selectNumber() to check against the locale signs 2014-08-11 11:07:24 +02:00
wmayer
dd3083f04e + fix regression in selectNumber(), + little performance boost, fix whitespaces 2014-08-11 10:46:43 +02:00
Johan K
671a37ed57 Adding selectNumber handling of locale, this wont work with groupseparators 2014-08-03 22:31:57 +02:00
Johan K
d9a5576708 Adding changes 2014-08-03 20:13:05 +02:00
wmayer
552cb1a308 + Make destructor virtual for classes with virtual methods (based on DevJohan's patch) 2014-07-26 19:17:12 +02:00
wmayer
c504fc56b3 + fix focus issue with QuantitySpinBox and InputField 2014-07-21 18:28:46 +02:00
wmayer
dbddf8bbda + proper handling of group separator in InputField and QuantitySpinBox 2014-07-21 15:03:45 +02:00
wmayer
6201f1a74b + fix a couple of issues with InputField used in property editor 2014-06-14 16:22:56 +02:00
wmayer
f90d593aa5 + fix possible crash in InputField::selectNumber 2014-06-10 14:10:36 +02:00
wmayer
41f8415a60 + 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
f621ffa412 + fix issue with default value and unit in InputField 2014-06-06 16:17:47 +02:00
wmayer
a6f457228b + optimization for icon retrieval in InputField 2014-05-30 12:56:26 +02:00
wmayer
3444b885c4 + fix whitespaces and a few minor things 2014-05-12 14:14:23 +02:00
Stefan Tröger
79c60c4096 port the placement dialog to the inputfield 2014-05-12 09:40:16 +02:00
wmayer
edbbe07a79 + fixes #0001512: After trying to set a bad value, the pad editor does not show 2014-04-23 17:10:28 +02:00
jriegel
2082e5faf9 Fix unit error checking in InputField 2014-04-17 06:33:57 +02:00
wmayer
87b83fc3ac + implement input validator for range checking 2014-04-16 12:03:18 +02:00
wmayer
331adfa919 + improve whitespaces 2014-04-14 17:14:26 +02:00
jriegel
d266a2c99e Make InputField obey Minimum/Maximum property 2014-04-14 03:29:44 +02:00
wmayer
ad0ab4b816 + implement key up/down for input field, fix wheel event 2014-04-02 12:22:28 +02:00
wmayer
cfe77ee175 + emit valueChanged(double) signal from InputField 2014-02-12 14:03:42 +01:00
wmayer
22efe13bd9 + Using locale delimiter 2014-02-11 17:36:04 +01:00
jriegel
9f47c54e51 First tests of using InputField via Python 2014-02-09 20:50:07 +01:00
jriegel
fad3e2cfbc Fix doulbe value entry in history of InpuField 2014-02-09 19:28:15 +01:00