Commit Graph

454 Commits

Author SHA1 Message Date
WandererFan
008a19d89f Allow conversion between FC Color and QColor 2016-07-11 15:32:16 +02:00
wmayer
1408f0cd0a + fix compiler warning
+ check for existence of directory before using it
2016-06-23 11:25:54 +02:00
wmayer
75240e0058 code cleanup in App Document 2016-06-17 22:12:23 +02:00
wmayer
26df852f07 improve whitespaces 2016-06-16 15:00:30 +02:00
Jean-Marie Verdun
c473ef4c75 Add FCUserData declaration into Application.cpp to properly read FREECAD_USER_DATA environment variable 2016-06-16 14:56:21 +02:00
Jean-Marie Verdun
b0eea10e8e Add basic vagrant compilation capability
Add 	FREECAD_USER_DATA environment variable required to support snap on ubuntu which is using Apparmor to
	limit application access to filesystem.
Add	automatic snap build on Xenial (ubuntu 16.04) within Vagrant build
Info	Build results are into /home/vagrant/Results (deb + snap
2016-06-16 14:55:59 +02:00
wmayer
76548e987d + do not always close a document if an error occurs while reading it in 2016-05-30 18:58:06 +02:00
Bernd Hahnebach
78b92d47b4 Fem+App: use Tuple in PropertyLinkSubList::getPyObject
- fix appropriate methods in FemMeshTools
- fix task panels in FEM
- fix FemInputWriter
2016-05-26 12:06:44 +02:00
wmayer
f9d2814572 + fix crash in DocumentObserverPython if a property has no name (because it's not part of an object) 2016-05-20 13:57:30 +02:00
wmayer
2e79aefc2f + issue #0002521: SIGSEGV when trying to revert to saved file. 2016-05-20 13:01:23 +02:00
Stefan Tröger
836d5b1525 FEM Post: Fix rebase errors 2016-05-18 21:35:15 +02:00
Stefan Tröger
3bf749f0fd FEM Post: Give access to cmake BUILD variables from python
This commit adds a attribute __cmake__ to App which is a list holding all compile time cmake variables starting with BUILD.

Only export BUILD variables
2016-05-18 21:35:15 +02:00
David Pello
5f0073b9e0 BSD Porting fixes, conditional compilation and use of gettimeofday() 2016-05-15 12:08:43 +02:00
wmayer
f5b707e9a2 + implement PropertyMaterialListItem 2016-05-08 19:28:02 +02:00
wmayer
ec54c092d5 + restore old behaviour of PropertyLinkSubList::getPyObject to fix failure in ccxInpWriter.py 2016-05-08 14:50:50 +02:00
wmayer
8bbc642115 + editor for PropertyMaterial 2016-05-07 22:11:37 +02:00
wmayer
a175c4884d + simplify initialization of some Python types 2016-05-07 21:18:47 +02:00
wmayer
7179280138 + expose Material class to Python 2016-05-07 21:15:01 +02:00
wmayer
317b447f88 + implement PropertyMaterialList 2016-05-07 14:41:24 +02:00
DeepSOIC
472af4bf59 App: fix ObjectIdentifier causing link errors
Add missing AppExport to hash_value().
2016-05-07 11:24:41 +02:00
wmayer
133ff16d0a + avoid code duplication 2016-05-05 18:38:36 +02:00
wmayer
f5b48a636d + fixes #0002518: Propertylink enhancement. 2016-05-05 17:12:17 +02:00
Johannes Obermayr
1e061b5c02 Fix boost::any bug with Boost 1.54.
and set BOOST_MIN_VERSION to 1.48.

Fixes:
- http://freecadweb.org/tracker/view.php?id=0002505
- http://forum.freecadweb.org/viewtopic.php?f=13&t=15310
- http://forum.freecadweb.org/viewtopic.php?f=3&t=15400
- http://forum.freecadweb.org/viewtopic.php?f=10&t=14108
2016-05-02 18:31:08 +02:00
wmayer
00eaab0522 + add new class ParameterSerializer to load and save parameter files 2016-04-29 17:43:07 +02:00
wmayer
d03a8fd386 + fix various gcc & clang warnings 2016-04-24 16:21:19 +02:00
DeepSOIC
6b5554fb03 PartDesign: reverse XZ plane to match legacy orientations
discussion in forum thread "ZX plane in PartDesign Next (instead of XZ)"
http://forum.freecadweb.org/viewtopic.php?f=8&t=15319
2016-04-19 21:36:31 +03:00
Mateusz Skowroński
e797054304 Fix files encoding. Go from ISO8859-1 to UTF-8. 2016-04-15 10:22:08 +02:00
wmayer
0a7ab4e1ff + add missing license text 2016-04-13 15:20:41 +02:00
wmayer
5de9696365 + fix warnings:
-Wsign-compare, -Wunused-variable, -Wunused-function, -Wswitch
+ fix Qt issues
2016-04-13 14:26:38 +02:00
wmayer
e3b609b309 + consistent naming 2016-04-13 11:37:09 +02:00
Stefan Tröger
483e64f368 remove unneeded orig files 2016-04-12 19:10:19 +02:00
Stefan Tröger
cd2da9fe6d Fix test cases by adopting to new behavior
Pad now does not have a Sketch property anymore but a profile property. Also due to changes in PropertyLinkSubList it ispossible that PropertyLinks get an empty list assigned, this must be supportet now.
2016-04-12 18:12:24 +02:00
Stefan Tröger
7d30833349 PartDesign: Adopt to new property status bits 2016-04-12 18:12:22 +02:00
Alexander Golubev
6b75141514 Suppress a couple more warnings 2016-04-12 18:12:21 +02:00
Alexander Golubev
d523377631 App/OriginGroup: add missing AppExport 2016-04-12 18:12:21 +02:00
sgrogan
393ba05726 Win build fixes 2016-04-12 18:12:21 +02:00
Stefan Tröger
83eedba043 crossreferences only with ctrl button and fix missing return value 2016-04-12 18:12:20 +02:00
DeepSOIC
a1557d07da App: circular reference testing routine for new links
DocumentObject::testIfLinkDAGCompatible: return true if link can be
created (no cycles will be made). False if the link will cause a
circular dependency and break recomputes.
2016-04-12 18:12:20 +02:00
Alexander Golubev
0c620cc885 App/OriginFeature: a minor cleanup 2016-04-12 18:12:19 +02:00
Alexander Golubev
56823eeb9d App/Part: add getPartOfObject() to search a part for object 2016-04-12 18:12:18 +02:00
Alexander Golubev
2c2d155ee9 OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup 2016-04-12 18:12:18 +02:00
Alexander Golubev
797d6d3a11 App/Origin: big refactoring
- Rebase App::Origin on App::DocumentObject
 - Keep all control over the Origin structure inside the Origin and it's
   ViewProvider
 - Add OriginFeature class as common base for App::Plane and App::Line
 - Rebase App::Plane and App::Line on top of newly created class and
   move to the file.
 - Change Origin's ViewProvider API associated with temporary display
 - Lots of associated changes to files
 - Several minor fixes
 - Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
ecbb576330 App: minor fix of spacing 2016-04-12 18:12:17 +02:00
Alexander Golubev
26bb702ff6 App: add two callback to DocumentObject to perform initialization/uninitialization inside an object
Added two callbacks to App::DocumentObject
 - setupObject()
 - unsetupObject()

All associated code was added to App::Document
Also was added a specific flag ObjectFlag::Deleted wich is set when performing the deletion.
2016-04-12 18:12:17 +02:00
Alexander Golubev
c6797b6c29 Revert "part deletion handling"
This reverts commit 6ab2002021ac1df26ebe77f488f5cd94e1df0b26.
2016-04-12 18:12:17 +02:00
Alexander Golubev
dbb5786ffd App/GeoFeatureGroup: derive from DocumentObjectGroup
Refactor GeoFeatureGroup and derive it from DocumentObjectGroup rather
than GeoFeatureObject to unify code of those two classes.
2016-04-12 18:12:17 +02:00
Alexander Golubev
aa32522115 DocumentObjectGroup: fix deleting of groups in case of malformed links
This one prevents thurther object structure damage if
DocumentObjectGroup::Group connains multiple links to the same feature.
Also minorr changes:
 - Fix some spacing
 - Ask the user if he wants to delete group content
2016-04-12 18:12:17 +02:00
Stefan Tröger
a35c231d2a first take on enhanced feature pick task 2016-04-12 18:12:14 +02:00
Stefan Tröger
07b7d9ff08 part deletion handling
-remove everxthing that belongs to a part on deletion
-disallow to delete the origin by the user and only remove it when Part is being deleted
2016-04-12 18:12:13 +02:00
DeepSOIC
fa441a9623 PropertyLinkSubList, Sketcher: move legacy Support readout from PropertyContainer to Part2DObject 2016-04-12 18:12:12 +02:00