Commit Graph

90 Commits

Author SHA1 Message Date
wmayer
8d1f0ceadc in PropertyStringItem prepare input string for assignment via Python 2017-11-26 17:51:20 +01:00
wmayer
2cd338ba03 improve whitespaces 2017-11-24 15:43:28 +01:00
wmayer
4d63e9a4c4 various minor changes:
+ whitespace improvement
+ code cleanup
2017-11-21 17:51:22 +01:00
wmayer
77f9eccefa avoid normalizing axis of placement while changing it in property editor 2017-10-13 14:22:19 +02:00
wmayer
1602c2a1ee handle expression exception in property item, do not pass through event loop 2017-10-07 21:52:48 +02:00
Peter Lama
991573f1fc Fix macOS button layout in property editor
The size of the "..." button calculated by QMacStyle was not correct,
causing other widgets in the layout to be clipped.

Also, set the size of all "..." buttons the same way.
2017-09-26 10:56:55 -03:00
wmayer
6a063778c1 property editor for PropertyLinkList 2017-09-23 18:03:03 +02:00
Eivind Kvedalen
03c39f3a13 Added PropertyPosition and PropertyDirection classes. Basically PropertyVector classes with units. 2017-07-23 22:14:05 +02:00
Yorik van Havre
7e487f0fee Small improvements to the PropertyLink editor
* The "Edit" link is now a button, same as the Placement editor
* Added a "None" entry on top of the Link dialog
2017-04-17 23:00:14 -03:00
Zheng, Lei
18a7e73bf6 Added App::PropertyPrecision
The purpose of this property and the associated property item is to
properly display floating value of many decimal points, such as
Precision::Confusion()
2017-03-15 10:46:32 -03:00
wmayer
d6549e7dd7 fix -Wunused-private-field, -Woverloaded-virtual 2017-03-05 10:10:53 +01:00
Yorik van Havre
364c8bb749 Using system link color in property editor 2017-01-19 23:42:20 -02:00
wmayer
5e9efe15c2 allow to translate property names 2016-12-29 14:20:55 +01:00
wmayer
acbfb5b19e show expressions in axis of placement in property editor 2016-12-22 11:45:18 +01:00
wmayer
00a25d5998 issue #0002673: Not memorize the rotation 2016-12-19 17:32:39 +01:00
wmayer
b19a4246ab fix typos 2016-12-19 14:07:35 +01:00
wmayer
35626050d9 remove superfluous conversion methods 2016-12-12 17:30:13 +01:00
wmayer
3357cd91e7 Qt4/Qt5 neutral changes:
+ change inheritance of PropertyItem to not derive from BaseClass (and QObject) any more to fix crashes with Qt5
2016-12-12 17:01:26 +01:00
wmayer
c997180a47 Qt4/Qt5 neutral changes:
+ remove QCoreApplication::UnicodeUTF8/QApplication::UnicodeUTF8
+ remove QCoreApplication::CodecForTr/QApplication::CodecForTr
2016-12-12 14:52:09 +01:00
wmayer
365a50603b improve unicode support for enumeration properties 2016-11-14 15:22:21 +01:00
wmayer
47b41a7883 fixes #0002460: Use keyword 'explicit' for Quantity constructor 2016-11-05 23:21:42 +01:00
wmayer
f1127dd2f4 Fix issues:
+ improve formatting
+ remove superfluous semicolons
+ comment unused parameters
+ rename Initialisation to Initialization
+ rename Deinitialisation to Finalization
+ remove spaces
2016-10-08 12:48:34 +02:00
Stefan Tröger
28c21914d0 Extensions: Handle static/dynamic cast
After the change of the virtual inheritance position in the inheritance chain some
formally added dynamic_cast's can be reverted to the old behaviour
2016-10-08 12:48:34 +02:00
Stefan Tröger
3e1ba47d61 Extensions: Handle new dynamic_cast's 2016-10-08 12:48:34 +02:00
Stefan Tröger
2a61aec97b Extensions: Fix rebase errors 2016-10-08 12:48:34 +02:00
Stefan Tröger
6fa964c53f Extensions: Introduce classes and port App groups 2016-10-08 12:48:34 +02:00
wmayer
1e6dcabefc fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
947f9575de remove Application::runPythonCode 2016-09-15 23:14:31 +02:00
wmayer
af6f4704c9 issue #0002524: Make property docstrings translatable 2016-09-08 18:29:27 +02:00
wmayer
61aa0fcafe + implement PropertyMaterialListItem 2016-05-08 19:28:02 +02:00
wmayer
b80df1db40 + property editor for material 2016-05-08 17:51:21 +02:00
wmayer
6a8805829c + fix possible crash in some property editors 2016-05-07 22:59:19 +02:00
wmayer
926e5e127d + editor for PropertyMaterial 2016-05-07 22:11:37 +02:00
Yorik van Havre
a280c3ba39 Allow to enter empty values in PropertyFloatList and PropertyIntegerList - issue #2535 2016-04-29 23:00:11 -03:00
wmayer
c82811fd79 + add properties with 'hidden' mode to property editor but hide the item 2016-03-05 18:24:58 +01:00
wmayer
b30f03c66d + avoid throwing exceptions in property editor if not needed 2016-01-26 12:48:15 +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
Mateusz Skowroński
0695552cff QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
750897c20e + introduce proper enum for property status to replace plain integers 2016-01-01 15:36:24 +01:00
wmayer
01889f9c9f + limit display role of property list items to 10 elements 2015-12-13 12:01:16 +01:00
Stefan Tröger
2c249e69f2 Expressions: Fix property editor behavior
- change responsibility of python code emition
- Correct python code handling for expressions
- handle constraints expressions handling
2015-12-09 14:08:50 +01:00
Stefan Tröger
08b1c4619e Expressions: port int spinbox for property editor 2015-12-09 14:08:49 +01:00
Stefan Tröger
96a586d04a 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
wmayer
6ea05d01b9 + fix build failure with gcc 2015-11-16 23:21:47 +01:00
wmayer
ba053abec9 + support of adding/removing dynamic properties in property editor 2015-11-16 22:47:29 +01:00
wmayer
0ec8dd48b1 + property editor handles case when dynamic property is removed 2015-11-16 15:24:36 +01:00
Przemo Firszt
e56fd5b660 GUI: Fix invalid selection mode in PropertyPathItem::createEeditor
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:27:51 +02:00
wmayer
854ffb0013 + fixes #0001941: Refresh Property Editor 2015-09-13 15:53:59 +02:00
wmayer
f83707d73e + fixes #0002197: Buggy Placement dialog when using Euler angles 2015-09-13 15:17:44 +02:00
Yorik van Havre
4fd3a15b98 Added new property type: App::PropertyVectorDistance
This works exactly as a normal PropertyVector, but it
uses the Units-enabled GUI editor instead.
2015-08-31 22:57:29 -03:00