Commit Graph

73 Commits

Author SHA1 Message Date
wmayer
e260f9dabd improve whitespaces 2017-09-09 18:07:46 +02:00
Stefan Tröger
71b7811495 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
fa273f7307 Prevent ViewProvider at toplevel when adding object to Group in GeoFeatureGroup 2017-09-09 16:55:55 +02:00
Stefan Tröger
83f99ba1b6 Prevent crash on cyclic group relations. fixes #0002567 2017-09-09 16:55:55 +02:00
Stefan Tröger
2dc09c5e4d Tree: Adopt to special GeoFeatureGroup behaviours 2017-09-09 16:47:07 +02:00
luzpaz
1b56637c6f typo fix 2017-07-10 19:29:55 -03:00
Stefan Tröger
183a4b4ef3 GeoFeatureGroup: Handle drag into document 2017-06-19 15:37:09 +02:00
wmayer
f66562942c issue #0003025: Unhandled unknown exception caught in GUIApplication::notify when opening file 2017-05-16 10:37:34 +02:00
Zheng, Lei
92623c3a62 TreeView: fix children order when cyclic ref is found 2017-04-10 10:17:59 +02:00
Zheng, Lei
1d60277c1f 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
b42c45becc 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
f323b8c956 Gui.TreeWidget: check cyclic dep when populating 2017-03-26 18:53:36 +02:00
Zheng, Lei
a5dead1717 Gui.TreeWidget: removed incorrect assertion 2017-03-26 18:53:36 +02:00
Zheng, Lei
752f7a3d29 Gui: fixed ambiguous boost::bind 2017-03-26 18:53:36 +02:00
Zheng, Lei
535762ea4f 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
b95674db03 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
60ae927fcb issue #0002031: show object name when hovering tree view 2017-02-05 09:56:35 +01:00
wmayer
57e71e5d55 port C++ code to Qt5 2016-12-13 14:22:59 +01:00
Sergo
12b0e0f999 fixes #0002633 - body disappear if dragged out of Part container 2016-12-09 21:31:51 +01:00
wmayer
01996d8f13 introduce flag to skip recomputes of a document when needed 2016-10-21 22:23:34 +02:00
wmayer
ccbd0f02af 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
33c7ec80c8 Added "mark to recompute" action to tree view 2016-10-12 17:35:01 -03:00
Stefan Tröger
cd53eb2280 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
f19d424d8b fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
afa37847b5 remove Application::runPythonCode 2016-09-15 23:14:31 +02:00
Yorik van Havre
18e519571a Removed console message emitted by the tree when a PropertyLink is empty 2016-08-26 17:48:40 -03:00
wmayer
a830b8feb3 improve whitespaces 2016-08-24 19:08:45 +02:00
wmayer
0824c5fd3c fix Coverity issues 2016-08-21 14:03:02 +02:00
wmayer
153efa048d translate items of context menu of tree view 2016-08-05 19:20:26 +02:00
wmayer
5de9696365 + fix warnings:
-Wsign-compare, -Wunused-variable, -Wunused-function, -Wswitch
+ fix Qt issues
2016-04-13 14:26:38 +02:00
Stefan Tröger
35a5727474 ensure document objects claims in tree
It is possible that a newly reated document object already claims other existing objects. The tree needs to be recomputed in this case.
This happens for example for the origin, which creates its planes and axis first and claims them before its own viewprovider is created.
2016-04-12 18:12:20 +02:00
Alexander Golubev
2fc5d6c818 Gui/Tree: make tree view correctly handle child order than moving them 2016-04-12 18:12:16 +02:00
Stefan Tröger
7d759a5793 delete features when deleting body 2016-04-12 18:12:13 +02:00
jriegel
884ae139fa Several enhancements
+ PLMXML Reader
+ Some meta information sorting
+ Making ProductRefs invisibly in Tree
2016-04-12 18:12:03 +02:00
jriegel
80a9d4274e Generall Drag/Drop interface 2016-04-12 18:12:01 +02:00
jrheinlaender
4bb14de504 Honour the ordering of the children returned by claimChildren() in the TreeWidget 2016-04-12 18:11:49 +02:00
jrheinlaender
efd33c8465 Added check in Tree.cpp DocumentItem::slotChangeObject to check for invalid pointers returned by claimChildren() 2016-04-12 18:11:48 +02:00
jrheinlaender
1ec99c5d32 Work on inserting, removing, hiding and showing features in the body 2016-04-12 18:11:48 +02:00
jriegel
29507a44ed First claimChildren3D implementation and Starting PartItem implementation 2016-04-12 18:11:45 +02:00
jriegel
8537926edc Finally fixing the highlight code 2016-04-12 18:11:44 +02:00
jriegel
72b49dbc6b fixes in highlight code 2016-04-12 18:11:44 +02:00
jriegel
26afb6ee77 Add highlighting of tree view items 2016-04-12 18:11:44 +02:00
jriegel
80217bf10f Commands and object making 2016-04-12 18:11:44 +02:00
Mateusz Skowroński
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
b33be62bb6 + rename signal to signalRelabelObject and remove unused code 2015-09-22 17:13:03 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
13b8d323b2 + FEM: Improve drag and drop for FEM analysis object 2015-04-23 13:31:14 +02:00
wmayer
c2d0857ddc + fix possible crash in DocumentItem 2015-02-01 12:09:37 +01:00
wmayer
a672630756 + fixes #0001905: Group-ordering of orphaned children not working as expected 2015-01-11 22:15:18 +01:00
wmayer
b2f8a4ed2a + fixes #0001723: Display errormessage in tree in tooltip 2014-12-30 22:44:29 +01:00