Commit Graph

41 Commits

Author SHA1 Message Date
Chris Hennes
0f6ef9571f Precommit: formatting fixes after Black update 2024-04-04 23:24:37 -05:00
luzpaz
9c8a3f27f9 Fix typos 2023-12-22 13:35:23 +00:00
wmayer
ef9936a940 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
7bc320faf4 Show: Apply clang format 2023-09-10 12:20:59 +02:00
0penBrain
184cbc35b1 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
88d0fad307 [Bugfix]Sketcher: fix cross section side switch not working except for XY plane 2023-06-24 09:45:09 +02:00
luzpaz
38a01939e0 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
3971ea23d1 ShowWB: fix header uniformity
Make headers uniform + remote trailing whitespace
2023-01-22 20:33:10 +01:00
0penBrain
b0a8235f6a TempoVis : makes clip plane able to revert + some improvements 2022-09-09 16:09:42 +02:00
wmayer
1a62c2024d lgtm: removes unused imports in Python scripts 2022-03-20 23:00:55 +01:00
Uwe
34df90a4a1 [Show] delete empty and unused file 2022-02-23 00:42:53 +01:00
PRDC
cc0f147362 Update ClipPlane.py 2020-10-28 17:12:21 +01:00
vocx-fc
97c2be57d1 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
fb32601746 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
1593efecc7 Show: py2 support
mostly changes to the way things are imported
+small misc fixes
2019-09-14 12:16:51 +02:00
DeepSOIC
20f68358a7 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
00b0ccff33 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
10b0bb032b 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
5807e0b531 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
a09b83ec0d 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
59cd0c3802 Show: remove debug print 2019-08-30 14:54:20 +02:00
Zheng, Lei
99d4e2981c Show: fix body visible feature restore function 2019-08-30 13:35:07 +02:00
Zheng, Lei
d4ac072306 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
3f9549868d Py3: fix saving sketch while in edit mode 2019-01-09 18:29:11 +01:00
luz.paz
424cd49398 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
DeepSOIC
aae98415ba Show: improve container support 2018-05-25 17:24:57 -03:00
DeepSOIC
22620e3c3a Show: toggle support for sketch clipping plane 2018-05-25 17:24:57 -03:00
DeepSOIC
4b253c2281 Show: fixes 2018-05-25 17:24:57 -03:00
DeepSOIC
7e950a4036 Show: fix forgotten cmakelists 2018-05-25 17:24:57 -03:00
DeepSOIC
4741de113d Show: more fixes 2018-05-25 17:24:57 -03:00
DeepSOIC
38d2a9f0b2 TempoVis: Clip Plane Support 2018-05-25 17:24:57 -03:00
luzpaz
c4dd42de98 Typos: Various workbenches and misc.
[skip ci]
2017-12-25 10:58:10 +01:00
wmayer
b9135b594f do not hide any drawing elements when entering edit mode of a sketch 2017-07-15 15:47:22 +02:00
DeepSOIC
ccb7cd928c TempoVis: fix container detection 2017-03-15 10:30:50 -03:00
DeepSOIC
56f4b823ac Show: TempoVis: made to accept any iterable as list of objects 2017-03-15 10:30:50 -03:00
looooo
8d8dec9f3d python3: dict.has_key("key") --> "key" in dict 2017-01-20 00:06:58 -02:00
Yorik van Havre
bf0d37bf28 Doc: Fixes in doxygen docs for Draft,Arch, FEM 2016-11-17 17:04:09 -02:00
wmayer
46ca32da5f issue #0002757: sketch editing not visible when it is in a part 2016-11-06 11:21:11 +01:00
DeepSOIC
679bb2f5a8 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
f7aed56bd8 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
84b8f1c721 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