Commit Graph

9060 Commits

Author SHA1 Message Date
wmayer
90c21a945b fix crash in DocumentIndex::cloneViewProvider 2016-10-08 12:48:34 +02:00
wmayer
f1127dd2f4 Fix issues:
+ improve formatting
+ remove superfluous semicolons
+ comment unused parameters
+ rename Initialisation to Initialization
+ rename Deinitialisation to Finalization
+ remove spaces
2016-10-08 12:48:34 +02:00
Stefan Tröger
0ae9346b3c Extenions: Drop virtual inheritance
Due to problems onthe windows platform the virtual inheritance approach must be dropped. NExt to the already reimplemented proeprty interface the Type interface is reimplemented too. This change allows to revert some earlier changes.
2016-10-08 12:48:34 +02:00
Stefan Tröger
3debf0d29e Fix rebase errors 2016-10-08 12:48:34 +02:00
Stefan Tröger
92a294f6aa Extensions: Windows fixes 2016-10-08 12:48:34 +02:00
Stefan Tröger
2420559431 Extensions: Revert few changes after restructuring 2016-10-08 12:48:34 +02:00
Stefan Tröger
2978ead384 Remove accidently added .orig files 2016-10-08 12:48:34 +02:00
Stefan Tröger
28c21914d0 Extensions: Handle static/dynamic cast
After the change of the virtual inheritance position in the inheritance chain some
formally added dynamic_cast's can be reverted to the old behaviour
2016-10-08 12:48:34 +02:00
Stefan Tröger
ae67946e25 Extensions: Fix rebase error 2016-10-08 12:48:34 +02:00
Stefan Tröger
687f96bf4b Extensions: Add type safety to PropertyData again 2016-10-08 12:48:34 +02:00
Stefan Tröger
89bbb81521 Extension: Fix order-of-initialisation crash
FreeCADs property system utilises some pointer math to calculate the offset between
property and base class. Due to virtual inheritance of th ePropertyContainer the memory
layout has been changed to rather random, which has lead to crashes dependend on the
order of object initialisation.

The solution is to not make PropertyContaner virtual but a class below, Base::Persitance.
Then the memory layout is random for Persistance, but it is perfectly aligned for the
base class chains from PropertyContainer onwards as well as from Extension onwards.
Hence the proeprty system was changed to take the offset always from those two.
2016-10-08 12:48:34 +02:00
Stefan Tröger
fc34fc2f2f Extensions: Fix crash due to wrong reference count 2016-10-08 12:48:34 +02:00
Stefan Tröger
07d749525f Extension: Dont override PythonFeature proxy name 2016-10-08 12:48:34 +02:00
Stefan Tröger
7a2fed1b75 Extension: Delete extensions correctly 2016-10-08 12:48:34 +02:00
Stefan Tröger
3e1ba47d61 Extensions: Handle new dynamic_cast's 2016-10-08 12:48:34 +02:00
Stefan Tröger
86f66c31da Extensions: Fix visibility restore issue 2016-10-08 12:48:34 +02:00
Stefan Tröger
1b150a86c3 Extensions: Add ViewProvider extension python types 2016-10-08 12:48:34 +02:00
Stefan Tröger
6e1a029996 Extension: Port ViewProvider of Part 2016-10-08 12:48:34 +02:00
Stefan Tröger
fedcfd9407 Extension: Port ViewProvider of OriginGroup 2016-10-08 12:48:34 +02:00
Stefan Tröger
5b9aea71d5 Extensions: Port ViewProvider of GeoFeatureGroup 2016-10-08 12:48:34 +02: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
Stefan Tröger
f61bb9062e Extensions: Port ViewProvider of groups 2016-10-08 12:48:34 +02:00
Stefan Tröger
b5f4023050 Extensions: Introduce ViewProviderExtension 2016-10-08 12:48:34 +02:00
Stefan Tröger
2a61aec97b Extensions: Fix rebase errors 2016-10-08 12:48:34 +02:00
Stefan Tröger
cdd33738bb Extensions: Add Documentation 2016-10-08 12:48:34 +02:00
Stefan Tröger
ab6151e71a Extension: Fix test case 2016-10-08 12:48:34 +02:00
Stefan Tröger
1398013c8a Extensions: Fix include 2016-10-08 12:48:34 +02:00
Stefan Tröger
f0f31ff94c Extensions: Make Python Integration work 2016-10-08 12:48:34 +02:00
Stefan Tröger
88484d7054 Extensions: Allow them to be added dynamically 2016-10-08 12:48:34 +02:00
Stefan Tröger
c0f243fa3b Extensions: bring files in correct order 2016-10-08 12:48:34 +02:00
Stefan Tröger
16f8dbbacd Extensions: special calls for document object extensions 2016-10-08 12:48:34 +02:00
Stefan Tröger
552fe52774 Extensions: Show up in the python interface 2016-10-08 12:48:34 +02:00
Stefan Tröger
6fa964c53f Extensions: Introduce classes and port App groups 2016-10-08 12:48:34 +02:00
Yorik van Havre
4375299724 Made Path objects properties translatable - fixes #2524 2016-10-07 22:21:02 -03:00
Yorik van Havre
e284a00570 Made Draft objects properties translatable - issue #2524 2016-10-07 21:55:26 -03:00
Yorik van Havre
210455d7db Made Arch objects properties translatable - issue #2524 2016-10-07 21:37:15 -03:00
wwmayer
d0f8e06f42 Merge pull request #299 from triplus/master
Fix NameError when test is run in console mode
2016-10-07 21:43:43 +02:00
kgoao
c35c003210 FEM: ConstraintPressure: Arrow direction bug fix 2016-10-07 15:05:28 -03:00
DeepSOIC
aae97dedd9 Part: Py API: fix memory leak in Part.Vertex.Point
fix #2728
2016-10-07 15:02:14 -03:00
WandererFan
e810ba81bb Fix print size issue from pan/zoom mods 2016-10-07 14:55:58 -03:00
Yorik van Havre
81598c2539 Arch: Added several properties to Equipment, Space, Floor & Site needed for gbXML - issue #2543 2016-10-06 22:35:45 -03:00
triplus
dca56b10ad Was a bit to quick the first time with the commit. 2016-10-06 20:58:38 +02:00
triplus
60a436f6b1 Fix NameError when test is run in console mode
http://forum.freecadweb.org/viewtopic.php?f=10&t=17818
2016-10-06 20:43:39 +02:00
Yorik van Havre
4bd03cd0ef Draft: Disabled builtin ctrl+z shortcut in wire drawing (indicated UI shortcut works) - fixed #2696 2016-10-06 11:23:54 -03:00
WandererFan
2edab06511 Fix clang complaint about const char*
Remove u8 literal for MSVC2013
2016-10-06 11:00:35 -03:00
WandererFan
bc2ac76fc5 Rename properties to fit PropertyEditor window 2016-10-06 11:00:35 -03:00
WandererFan
af9a6950e2 Fix #2707 hidden seam/smooth lines 2016-10-06 11:00:35 -03:00
WandererFan
5175771590 Add options for face detection and cut face edge display 2016-10-06 11:00:35 -03:00
WandererFan
7e14ca361c Prepare App side for "show units" preference 2016-10-06 11:00:35 -03:00
WandererFan
f4fd92e321 fix utf8 regression caused by e165e481 2016-10-06 11:00:35 -03:00