Commit Graph

21 Commits

Author SHA1 Message Date
wmayer
2c744264d6 Gui: several fixes for expression search box:
+ rename method setMatchExact() to setExactMatch()
+ move handling of user-defined parameters to class ExpressionParameter
+ Qt::MatchExactly is not supported by QCompleter, use Qt::MatchStartsWith instead
+ add possibility to change match behaviour via context-menu
2020-09-13 18:35:46 +02:00
Zheng, Lei
4f5a2e923c Gui: allow change ExpressionCompleter filter mode
Fixes #4428

Filter mode set to Qt::MatchContains for tree view search and link
property editor object search.

Other usage of the completer (e.g. property editor, speadsheet) defaults
to Qt::MatchContains, but can be changed using parameter,

    BaseApp/Preferences/Expression/CompleterMatchExact
2020-09-13 18:35:02 +02:00
Zheng, Lei
92804a79d8 Gui: fix property link editor for PropertyLinkSubList 2020-06-03 14:34:20 +02:00
donovaly
4dc774c030 DlgPropertyLink.cpp: fix compilation
see https://forum.freecadweb.org/viewtopic.php?f=10&t=43298
2020-02-12 09:46:47 +01:00
Zheng, Lei
cbaee7e4ec Gui: add more options to DlgPropertyLink
Support user editable sub-element column.
(Dis)allow sync sub-object 3D view selection.
2020-02-11 15:40:27 -05:00
Zheng, Lei
0633abb70d 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
Zheng, Lei
05433f7148 Gui: fix crash on editing PropertyLinkList 2019-08-17 15:32:50 +02:00
Zheng, Lei
2bd4795e80 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
wmayer
a7094210f8 Fix scan coverity issues:
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
Yorik van Havre
8fd89533a8 Select items already present in PropertyLinkList edit dialog 2018-05-16 14:58:33 -03:00
wmayer
5022c8df5c use object's inlist to filter selection in property link dialog to avoid dependency loops 2018-02-07 23:31:14 +01:00
wmayer
cc00dc85d0 #3325: DlgPropertyLink as editor of Tip property 2018-01-28 22:37:03 +01:00
Yorik van Havre
86ca43743f Added 'Remove link' option to PropertyLinkList dialog too 2018-01-12 13:27:34 -02:00
wmayer
aa370e5d1b improve property link dialog for multi-selection 2017-09-23 18:37:52 +02:00
wmayer
22ac03a5b5 property editor for PropertyLinkList 2017-09-23 18:03:03 +02:00
Yorik van Havre
a967c41b0b 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
wmayer
ad57478ab4 fix a couple of compiler warnings 2017-01-20 22:54:10 +01:00
Yorik van Havre
7c15e1407f Added a search box to the PropertyLink dialog 2017-01-20 00:03:42 -02:00
Mateusz Skowroński
3b463f2138 Qt::WFlags is obsolete in Qt5. Replace it with Qt::WindowFlags.
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:58 +01:00
Johannes Reinhardt
2b28d41134 fixed a few small typos 2014-05-12 14:32:27 +02:00
wmayer
2aa2cb3fa6 + fixes #0001063: Show a PropertyLink in Property view 2014-03-13 14:28:53 +01:00