Commit Graph

123 Commits

Author SHA1 Message Date
wmayer
ec134598cd Gui: implement property editor for vector list 2020-06-22 22:28:15 +02:00
wmayer
e2e4ecf36c Gui: [skip ci] fix regression by using UTF-8 encoding in PropertyItem::setPropertyValue 2020-04-03 16:22:35 +02:00
wmayer
ff9029938f [skip ci] improve whitespaces 2020-04-03 16:19:24 +02:00
wmayer
26dfcfea8c Gui: [skip ci] bind spin boxes to object in Placement dialog 2020-03-27 17:08:08 +01:00
wmayer
e14e5b845e [skip ci] use QLocale class consistently to make it possible to change it application-wide 2020-03-26 16:37:45 +01:00
Zheng, Lei
4566fb8538 Gui: fix property editor crash on remove dynamic property
The crash happens when the dynamic property is removed due changes of
the very same property.
2020-03-21 15:43:12 +01:00
Zheng, Lei
12690fb566 Gui: refactor link property editor
PropertyLinkItem now support all major types of link property.
PropertyLinkListItem is no longer necessary, but kept for backward
compatible, which is now identical to PropertyLinkItem.

DlgPropertyLink, the link selection dialog, is now made modeless, so
that that user can select geometry sub-element directory from 3D view.
2020-02-11 15:40:27 -05:00
wmayer
b00f8b0226 Gui: allow user to set an expression for property editor of vectors 2019-12-28 17:36:41 +01:00
Zheng, Lei
e3a6556878 App: fix PropertyXLink file path saving
Also modified ProeprtyLinkItem to show file path as tooltip.
2019-11-10 11:32:59 +01:00
Zheng, Lei
10e2681ab5 Gui: force dynamic property item background and text color
To avoid visual problem under dark theme.
2019-11-09 16:17:19 +01:00
Zheng, Lei
ae067d7a58 Gui: improve PropertyXLink display in property view 2019-10-08 10:21:31 +02:00
Tomas Pavlicek
d54633183c TechDraw - Fix Annotation and Symbol international characters mangling 2019-10-07 16:56:09 -04:00
Zheng, Lei
d68de72578 Gui: sync expression change in property editor
This patch fixes two problems,

When one property item is assigned an expression, auto remove any parent
and child item expressions to avoid expression conflicts.

Disable value update when an property item or any of its parents are
bound by an expression.
2019-10-07 17:24:31 +02:00
Zheng, Lei
1ff5c2f720 Gui: fix missing expression highlight in property editor 2019-10-07 17:24:31 +02:00
wandererfan
375fe1bd48 [App][Gui]Add Filter for PropertyFile in PropertyEditor 2019-09-20 07:56:52 -04:00
wandererfan
b9374d5e71 [Gui]Fix Py SyntaxError on " in PropertyStringList 2019-09-19 06:59:05 -04:00
wmayer
d36a4b817d correctly handle custom property names (e.g. sketcher constraints) 2019-09-08 17:32:43 +02:00
Yorik van Havre
72ba2aaf6e Gui: Do not use hard-coded blue color in tree 2019-08-20 20:12:51 -03:00
Zheng, Lei
8b3ef8faf5 Gui: property view related changes
* Display property from linked object, colored green,

* Change DlgPropertyLink to support external linking and sub-object
  selection

* Improve large selection performance by using a timer

* Improve TAB key behavior in property editor

* Add context menu to show hidden properties, change property status,
  set expression on any and property, and add/remove dynamic properties

* Optimize expression completer model construction, as the original
  implementation gets prohibitively slow for moderate number of objects.
2019-08-17 15:08:33 +02:00
Mateusz Skowroński
ac508516da Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00
wmayer
81f50a577c fix several bugs in LabelEditor to handle PropertyStringList 2018-12-20 23:20:23 +01:00
wmayer
046e8e0444 fixes 0003726: Property Editor Angle Fields Do Not Respect Units 2018-12-16 21:35:58 +01:00
wmayer
d8053cc1d5 fix converting float list to string list in property editor 2018-12-01 11:58:09 +01:00
wmayer
034279a02a whitespace improvement 2018-10-17 11:20:18 +02:00
wmayer
0c56619db0 avoid multiple spaces in property name 2018-10-03 18:48:10 +02:00
wmayer
141a2ad138 add missing comma separator in list 2018-09-03 21:33:06 +02:00
wmayer
25a7131e03 when adding a dynamic property to the editor then move it to the correct group or create a new group 2018-08-25 13:26:14 +02:00
wmayer
d139602512 Py3: fix PropertyStringListItem::setValue 2018-08-23 17:46:27 +02:00
Yorik van Havre
6bd25b8893 Escape single quotes in PropertyStringList 2018-03-19 13:35:50 -03:00
wmayer
f9b04b1551 #3325: DlgPropertyLink as editor of Tip property 2018-01-28 22:37:03 +01:00
wmayer
bf379642eb implement PropertyConstraintListItem::assignProperty to add item for each datum constraint 2017-12-30 19:49:34 +01:00
wmayer
77174809db use getRawValue in property editor to avoid normalizing the rotation axis 2017-12-13 17:00:38 +01:00
wmayer
ae6ce996ac fixes #0003281: STL object doesn't retain its rotation after change 2017-12-12 21:46:18 +01:00
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