Commit Graph

509 Commits

Author SHA1 Message Date
wmayer
70d746ca89 support more Qt options 2016-10-18 13:53:31 +02:00
wmayer
7fdf39244d set directory of file dialog when opening file by double-click, recent files list or drag and drop 2016-10-16 14:47:13 +02:00
wmayer
3d7dc6e56b issue #0002714: Segfault in PropertyLinkSubList::Save 2016-10-09 13:49:57 +02:00
wmayer
11a4c26dae + fix -Wunused-parameter 2016-10-08 15:13:56 +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
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
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
5b9aea71d5 Extensions: Port ViewProvider of GeoFeatureGroup 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
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
fe40bad92d Added new property type App::PropertyVolume 2016-10-04 16:02:30 -03:00
wmayer
314720c8c1 ObjectIdentifier has virtual method but no virtual destructor
fix 32-bit issues in PythonStuff.cpp
2016-10-01 11:03:15 +02:00
wmayer
9a4b4695e2 fix unicode/utf-8 encoding problems 2016-09-24 16:48:30 +02:00
wmayer
2af6bb6e49 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
c636974ec8 fix -Wextra in FreeCADApp 2016-09-21 16:05:36 +02:00
wmayer
4fa5b2cd54 comment out problematic asserts 2016-09-16 14:22:17 +02:00
wmayer
bb103cba18 convert utf-8 encoded path name to escaped unicode when saving document with Python 2016-09-12 20:58:41 +02:00
wmayer
3f6b2f18ed fix regression with unicode support 2016-09-08 16:08:01 +02:00
wmayer
9eb78d027b fix accessing freed memory in DocumentPy::openTransaction 2016-09-07 13:00:20 +02:00
wmayer
23eeb634e5 support of unicode for doc string, fix memory leak 2016-09-07 12:18:57 +02:00
wmayer
fb892d35de fix Coverity issues 2016-09-03 14:51:28 +02:00
wmayer
4c9b486954 fix crash when saving a document after aborting a pending transaction 2016-08-31 17:58:55 +02:00
Yorik van Havre
8af437a35a Added App::PropertyArea (same as PropertyLength but uses Area units) 2016-08-29 19:26:11 -03:00
wmayer
cb9be09512 Coverity issues:
129643
129654
129689
129714
2016-08-16 14:05:52 +02:00
wmayer
eb0647b144 Coverity issues:
129727: Structurally dead code
151979, 133461: Uninitialized scalar field
129785, 129786, 129787: Use after free
2016-08-16 12:23:12 +02:00
wmayer
af4ef2fa7f Coverity issues:
129202: replace dynamic_cast with static_cast
129421, 129422: fix Py_Return macro
128928: Unchecked return value
129488, 129490: uninitialized scalar variable
129567, 129661: uninitialized scalar field
129665: uninitialized pointer field
2016-08-15 21:28:41 +02:00
DeepSOIC
c74a7b5010 App::Property: add methods to get/set read-onlyness 2016-08-08 21:47:45 +03:00
wmayer
182fdabd48 expose getFacesFromSubelement to Python 2016-08-04 14:44:40 +02:00
wmayer
d177468f0c issue #0002638: Windows installer doesn't create the macro folder 2016-07-24 11:25:21 +02:00
wmayer
58831da643 use <> for inclusion of generated headers 2016-07-24 11:08:40 +02:00
wmayer
ac32ab0b00 + fix order of removed objects in transaction list
+ add assert to check for obvious error
+ removed unneeded method
2016-07-23 11:47:01 +02:00
wmayer
71390dcf20 prepare view provider for undo/redo 2016-07-23 11:46:19 +02:00