Commit Graph

41 Commits

Author SHA1 Message Date
Chris Hennes
b93c02e07d Precommit: formatting fixes after Black update 2024-04-04 23:24:37 -05:00
luzpaz
e9f9e441fc Fix typos 2023-12-22 13:35:23 +00:00
wmayer
83d4080fe8 App: fixes #10460: App::PropertyPythonObject is not saving data
Since Py3.11 the methods names __setstate__ and __getstate__ conflict with the method names added to the object class.
Thus rename them to 'loads' and 'dumps'
2023-09-24 10:56:35 -05:00
wmayer
2c3230a986 Show: Apply clang format 2023-09-10 12:20:59 +02:00
0penBrain
6e6f4bb1eb Sketcher: improve Z layering in edit mode
Especially when using cross section there was cases where sketcher elements ...
 ... wasn't guaranteed to be visible because hidden by other objects
2023-06-24 10:17:47 +02:00
0penBrain
03a8954f6b [Bugfix]Sketcher: fix cross section side switch not working except for XY plane 2023-06-24 09:45:09 +02:00
luzpaz
129d5882a7 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
luzpaz
937d226f4f ShowWB: fix header uniformity
Make headers uniform + remote trailing whitespace
2023-01-22 20:33:10 +01:00
0penBrain
77f83ce716 TempoVis : makes clip plane able to revert + some improvements 2022-09-09 16:09:42 +02:00
wmayer
cf7fd5d2ac lgtm: removes unused imports in Python scripts 2022-03-20 23:00:55 +01:00
Uwe
8bbec12be3 [Show] delete empty and unused file 2022-02-23 00:42:53 +01:00
PRDC
f7532b91d4 Update ClipPlane.py 2020-10-28 17:12:21 +01:00
vocx-fc
9be9620ae2 Show: add argument to NotAContainerError class constructor
The class `NotAContainerError` is used as an exception.
Where it is used it is initialized with an argument,
but the definition didn't accept one; now we accept an argument
in the constructor.
2020-10-12 11:49:11 +02:00
luz.paz
7b7797f4f3 Fix various (doxy) typos and whitespace issues
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-03 07:57:13 +02:00
DeepSOIC
275c0a3061 Show: py2 support
mostly changes to the way things are imported
+small misc fixes
2019-09-14 12:16:51 +02:00
DeepSOIC
aa14a176f7 Show: rename TempoVis.py into mTempoVis.py
so that TempoVis member defined in Show's __init__ doesn't hide the module
2019-09-14 12:16:42 +02:00
DeepSOIC
5a542d3192 Show: don't come back to Start workbench
This caused start page to reappar, and confused people.
reported by tjp in https://forum.freecadweb.org/viewtopic.php?f=3&t=39143
2019-09-11 21:40:23 +02:00
DeepSOIC
e4e6ba6404 Show: fix CMake
In attempts to fix import errors on macos.
https://forum.freecadweb.org/viewtopic.php?f=3&t=39205
2019-09-10 02:53:53 +03:00
luz.paz
a1984aeece Fix typos, grammar, and some whitespace issues
Found via `codespell -q 2 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-09-07 11:58:38 -04:00
DeepSOIC
6dcdc7fe22 Show: Tempovis stack support
Improvents:
* Allows using several tempovis instances in arbitrary order
* plugin system (SceneDetail), ease of extending
* Mild restore feature - more respect for changes made by user
* workbench switching support
* undo saveable changes for the time of writing a file

Regressions:
* Removed support for pickling (with hopes to reintroduce later)
2019-09-04 11:37:48 -03:00
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