Commit Graph

98 Commits

Author SHA1 Message Date
wmayer
1308a02c83 when restoring object then only expand single items, not its parent items 2019-02-24 00:37:53 +01:00
wmayer
03d7070e58 Undo/Redo of renaming an object via context-menu 2019-02-23 22:26:21 +01: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
2100f16076 disconnect boost signals when destroying tree view 2019-01-18 16:33:48 +01:00
plgarcia
77232b2141 Drags and drop with groups 2018-11-29 21:25:28 +01:00
wmayer
132076f33b improve drag and drop in tree view 2018-11-16 17:19:58 +01:00
plgarcia
402487fb7e Improvement and correction drags and drops in tree views. 2018-11-16 13:14:57 +01:00
wmayer
5a9c65e4fc use more speaking variable names 2018-11-16 11:24:25 +01:00
wmayer
fe016510ec add search function to tree view 2018-11-13 11:27:34 +01:00
wmayer
990d54d4be When activating a part container in the tree view make sure all parent items are expanded 2018-11-10 16:13:10 +01:00
wmayer
36271b4052 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer
6e0a90c8f2 enable FREECAD_RELEASE_PDB by default, cleanup cmake file, improve whiespaces 2018-10-15 20:11:58 +02:00
wmayer
7bf4c9d96f fixes 0003410: 0.17 Regression: recompute will make parts lose color and take a longer delay compared to FC0.16 2018-10-02 19:04:44 +02:00
wmayer
0c8cc7efcf fix regression wrt to bold text in multi-document mode when activating document by tabs 2018-09-13 01:19:49 +02:00
Markus Lampert
22838a95ce Added collapse/expand option to the document tree view. 2018-09-11 11:38:58 +02:00
Markus Lampert
b475b01686 Changed tree view document hiding boolean to integer to support arbitrary number of views. 2018-09-11 11:38:38 +02:00
Markus Lampert
71175748fc Added option to hide inactive documents in tree view. 2018-09-11 11:38:20 +02:00
wmayer
9d3304e1b5 by default show highlighted object in bold text, a document's active object is not in bold text any more 2018-09-10 14:24:37 +02:00
wmayer
6e697ddebf Gui: Better visualization of the Active Object 2018-08-19 18:14:06 +02:00
wmayer
88a8a4f631 do not show F2 as short cuts for renaming on macOS as it doesn't work 2018-04-26 12:57:59 +02:00
Yorik van Havre
cf92b03995 Active container (light gray) and edit (yellow) colors in Tree view are now changeable in prefs->display->colors 2018-04-19 18:25:48 -03:00
wmayer
94a7330459 add signal to scroll to view object 2017-10-06 16:28:30 +02:00
wmayer
962c961f26 fixes #0003025: memory leak in tree view 2017-09-30 19:45:25 +02:00
wmayer
fa9332deb3 fixes #0003201: Cross-linking of sketch visibility 2017-09-29 15:45:40 +02:00
wmayer
694fc7dcbf improve whitespaces and readability 2017-09-29 14:34:53 +02:00
wmayer
3a0c3499e5 improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
c14e508c74 Fix GeoFeatureGroup claimChildren in case some out-of-group item links to a child 2017-09-09 16:55:55 +02:00
Stefan Tröger
f2249d1eb2 Prevent ViewProvider at toplevel when adding object to Group in GeoFeatureGroup 2017-09-09 16:55:55 +02:00
Stefan Tröger
03721b91b8 Prevent crash on cyclic group relations. fixes #0002567 2017-09-09 16:55:55 +02:00
Stefan Tröger
81572d4a14 Tree: Adopt to special GeoFeatureGroup behaviours 2017-09-09 16:47:07 +02:00
luzpaz
117fe44b0c typo fix 2017-07-10 19:29:55 -03:00
Stefan Tröger
ce9a078584 GeoFeatureGroup: Handle drag into document 2017-06-19 15:37:09 +02:00
wmayer
31710838d4 issue #0003025: Unhandled unknown exception caught in GUIApplication::notify when opening file 2017-05-16 10:37:34 +02:00
Zheng, Lei
7a7fc95980 TreeView: fix children order when cyclic ref is found 2017-04-10 10:17:59 +02:00
Zheng, Lei
8f2aaa0934 TreeView: fix tree view performance
It seems on some system calling QTreeWidgetItem::takeChildren and then
addChild back is expensive. This fix avoids that but still keeps track
of item order in claimed children
2017-04-05 19:41:16 +02:00
Zheng, Lei
087614afa0 TreeView: fixed disappearing item
The problem occurs when a child object is no longer claimed by its
former parent. The child tree item is not added back to Document root
even if it is the only instance left, which resulting the child object
disappearing entirely from the tree view.
2017-04-02 12:24:54 +08:00
Zheng, Lei
1b183a16b8 Gui.TreeWidget: check cyclic dep when populating 2017-03-26 18:53:36 +02:00
Zheng, Lei
92ea1ac578 Gui.TreeWidget: removed incorrect assertion 2017-03-26 18:53:36 +02:00
Zheng, Lei
38abd868a7 Gui: fixed ambiguous boost::bind 2017-03-26 18:53:36 +02:00
Zheng, Lei
a8737e2f68 Gui: improved TreeView drag and drop
* support undo of drag and drop
* support drop only (i.e. no item removal from dragged parent item) when
    Ctrl key is pressed at the time of drop.
2017-03-26 18:53:36 +02:00
Zheng, Lei
d3557d2105 Gui: made the TreeView stable
The TreeView item (DocumentObjectItem) and DocumentObject now have a N:1
relationship. Adding or removing object with claimed children no longer
affects existing TreeView items.
2017-03-26 18:53:36 +02:00
wmayer
dfe3fcc4da issue #0002031: show object name when hovering tree view 2017-02-05 09:56:35 +01:00
wmayer
5096f55ccb port C++ code to Qt5 2016-12-13 14:22:59 +01:00
Sergo
6fdecb93de fixes #0002633 - body disappear if dragged out of Part container 2016-12-09 21:31:51 +01:00
wmayer
f551bf9cc3 introduce flag to skip recomputes of a document when needed 2016-10-21 22:23:34 +02:00
wmayer
bed3118d01 extend function to mark all selected objects for recompute or all objects of a document 2016-10-14 21:40:05 +02:00
Yorik van Havre
647956f697 Added "mark to recompute" action to tree view 2016-10-12 17:35:01 -03:00
Stefan Tröger
56492971c8 Remove redundant drag'n'drop interface
In the long time of parallel assembly development an own drag'n'drop interface has been added to master and assembly branch. After merge both have been available. This commit removes one and keeps the more extensive implementation
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