Commit Graph

68 Commits

Author SHA1 Message Date
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
Yorik van Havre
c563db37fc Removed console message emitted by the tree when a PropertyLink is empty 2016-08-26 17:48:40 -03:00
wmayer
aea74ce427 improve whitespaces 2016-08-24 19:08:45 +02:00
wmayer
e2398b4b06 fix Coverity issues 2016-08-21 14:03:02 +02:00
wmayer
4ce520e653 translate items of context menu of tree view 2016-08-05 19:20:26 +02:00
wmayer
6380881b58 + fix warnings:
-Wsign-compare, -Wunused-variable, -Wunused-function, -Wswitch
+ fix Qt issues
2016-04-13 14:26:38 +02:00
Stefan Tröger
3fa3ef5856 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
0b9cc3c19e Gui/Tree: make tree view correctly handle child order than moving them 2016-04-12 18:12:16 +02:00
Stefan Tröger
81601959ab delete features when deleting body 2016-04-12 18:12:13 +02:00
jriegel
c88a8336dc Several enhancements
+ PLMXML Reader
+ Some meta information sorting
+ Making ProductRefs invisibly in Tree
2016-04-12 18:12:03 +02:00
jriegel
be619b3e7d Generall Drag/Drop interface 2016-04-12 18:12:01 +02:00
jrheinlaender
ae7dd86b4d Honour the ordering of the children returned by claimChildren() in the TreeWidget 2016-04-12 18:11:49 +02:00
jrheinlaender
0e6cdbe397 Added check in Tree.cpp DocumentItem::slotChangeObject to check for invalid pointers returned by claimChildren() 2016-04-12 18:11:48 +02:00
jrheinlaender
8390bbb999 Work on inserting, removing, hiding and showing features in the body 2016-04-12 18:11:48 +02:00
jriegel
8eb0d198f8 First claimChildren3D implementation and Starting PartItem implementation 2016-04-12 18:11:45 +02:00
jriegel
d9b6c03304 Finally fixing the highlight code 2016-04-12 18:11:44 +02:00
jriegel
b4cad19107 fixes in highlight code 2016-04-12 18:11:44 +02:00
jriegel
fd000dff8a Add highlighting of tree view items 2016-04-12 18:11:44 +02:00
jriegel
9b5f9b8e58 Commands and object making 2016-04-12 18:11:44 +02: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
wmayer
e5348c743d + rename signal to signalRelabelObject and remove unused code 2015-09-22 17:13:03 +02:00
Mateusz Skowroński
05f95c0506 Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
wmayer
638bf26bb5 + FEM: Improve drag and drop for FEM analysis object 2015-04-23 13:31:14 +02:00
wmayer
afb2641c60 + fix possible crash in DocumentItem 2015-02-01 12:09:37 +01:00
wmayer
567a0e3fc4 + fixes #0001905: Group-ordering of orphaned children not working as expected 2015-01-11 22:15:18 +01:00
wmayer
5cd5a3e5f1 + fixes #0001723: Display errormessage in tree in tooltip 2014-12-30 22:44:29 +01:00
wmayer
55984a200f + fix flaws found with code analyzer tool 2014-05-07 13:09:44 +02:00
Yorik van Havre
f2c0b718f3 Used disable color instead of dark color for invisible tree items 2014-04-14 21:17:29 -03:00
wmayer
27a1f62d7e + drag and drop on tree widget 2014-03-12 14:38:00 +01:00
wmayer
4e89fd1b6e + Avoid cyclic dependency of tree items 2014-03-11 19:27:46 +01:00
wmayer
637027756a + Start drag and drop of view providers 2014-03-11 17:36:17 +01:00