Commit Graph

21 Commits

Author SHA1 Message Date
Zheng, Lei
350c5982db Show: remove debug print 2019-08-30 14:54:20 +02:00
Zheng, Lei
5496bf0036 Show: fix body visible feature restore function 2019-08-30 13:35:07 +02:00
Zheng, Lei
00bcef0619 Gui: support in-place editing
The link support means that an object can now appear in more than one
places, and even inside a document different from its own. This patch
adds support for in-place editing, meaning that the object can be edited
at correct place regardless where it is.

See [here](https://git.io/fjPIk) for more info about the relavent APIs.

This patch includes two example of modifications to support in-place
editing. One is the ViewProviderDragger, which simply adds the dragger
node to editing root node by calling
View3DInventorViewer::setupEditingRoot(dragger). The other much more
complex one is ViewProviderSketch which calls setupEditingRoot(0) to
transfer all its children node into editing root. ViewProviderSketch
also includes various modifications to command invocation, because we
can no longer assume the active document is the owner of the editing
object.

This patch also includes necessary modification of the 'Show' module to
support in-place editing.
2019-08-17 15:08:32 +02:00
wmayer
f9f5b34ba7 Py3: fix saving sketch while in edit mode 2019-01-09 18:29:11 +01:00
luz.paz
baa6d89328 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
DeepSOIC
78f054f09f Show: improve container support 2018-05-25 17:24:57 -03:00
DeepSOIC
0511284f08 Show: toggle support for sketch clipping plane 2018-05-25 17:24:57 -03:00
DeepSOIC
7edfe0f26e Show: fixes 2018-05-25 17:24:57 -03:00
DeepSOIC
bd442192fb Show: fix forgotten cmakelists 2018-05-25 17:24:57 -03:00
DeepSOIC
75ba527311 Show: more fixes 2018-05-25 17:24:57 -03:00
DeepSOIC
1bf9da8a2a TempoVis: Clip Plane Support 2018-05-25 17:24:57 -03:00
luzpaz
128239b54a Typos: Various workbenches and misc.
[skip ci]
2017-12-25 10:58:10 +01:00
wmayer
1d83d179ca do not hide any drawing elements when entering edit mode of a sketch 2017-07-15 15:47:22 +02:00
DeepSOIC
7e6ad7412c TempoVis: fix container detection 2017-03-15 10:30:50 -03:00
DeepSOIC
dc227dc7aa Show: TempoVis: made to accept any iterable as list of objects 2017-03-15 10:30:50 -03:00
looooo
e9b5722220 python3: dict.has_key("key") --> "key" in dict 2017-01-20 00:06:58 -02:00
Yorik van Havre
af97583026 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
wmayer
60e6ad2e52 issue #0002757: sketch editing not visible when it is in a part 2016-11-06 11:21:11 +01:00
DeepSOIC
65a935f9ae Show: more general Body detection
Doesn't affect anything in master functionality, but is required for my
custom branch where there is another kind of body.
2016-10-02 12:33:36 +02:00
DeepSOIC
7e32de2f55 Show: add methods to make stuff unpickable
TempoVis.setUnpickable(App.ActiveDocument.Box) makes box transparent to
mouse clicks, i.e. impossible to select.
2016-10-02 12:33:36 +02:00
DeepSOIC
541e84076a New module: Show
A module for gathering code related to visibility automation and the like.

Contains DepGraphTools.py and TempoVis.py, to be withdrawn from
Part/AttachmentEditor.

Also: changes to TempoVis:
* keep TempoVis from from raising
(TempoVis is non-essential functionality, so breaking execution of
unsuspecting routines that use it seems like a bad idea.

* implement saving/restoring camera
(Unfortunately, I failed to implement nice animated restoration.)

* almost proper support of saving to file
(I still couldn't figure out a way to restore reference to document and
viewer. So, falling to using active ones instead (might cause bugs).)
2016-06-20 01:18:09 +03:00