Commit Graph

870 Commits

Author SHA1 Message Date
wmayer
6422ba5bcb + disconnect boost signals on destruction 2016-04-16 15:38:04 +02:00
wmayer
dac8dfa317 + issue #0002504: Crash in pad function after undoing some operations 2016-04-16 15:16:00 +02:00
wmayer
dfa5972b4b + fix various warnings with VC12 2016-04-16 12:02:58 +02:00
Mateusz Skowroński
a8d37dabbe QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-04-15 11:55:12 +02:00
Mateusz Skowroński
596155061f QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-04-15 11:54:59 +02:00
Mateusz Skowroński
b6bace2cc4 Fix files encoding. Go from ISO8859-1 to UTF-8. 2016-04-15 10:22:08 +02:00
wmayer
f439a88c69 + remove 'using namespace Part' inside header file 2016-04-13 16:20:31 +02:00
wmayer
ab43e18b00 + remove 'using namespace Attacher' inside header file 2016-04-13 15:57:49 +02:00
wmayer
b6892c5424 + add missing license text 2016-04-13 15:20:41 +02:00
wmayer
6380881b58 + fix warnings:
-Wsign-compare, -Wunused-variable, -Wunused-function, -Wswitch
+ fix Qt issues
2016-04-13 14:26:38 +02:00
Stefan Tröger
1bc2caebb4 remove unneeded orig files 2016-04-12 19:10:19 +02:00
Stefan Tröger
71ec726161 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
c40d25c87f PartDesign: Fix body command 2016-04-12 18:12:23 +02:00
Stefan Tröger
97a51686c7 PartDesign: Adopt primitive preview
The preview was developed when the "one feature only" visibility rule was not yet introduced. This commit maks it work again.
2016-04-12 18:12:23 +02:00
Stefan Tröger
303578efc6 PartDesign: Fix attachment external references 2016-04-12 18:12:23 +02:00
Stefan Tröger
3e79c09d10 Fix rebase error 2016-04-12 18:12:23 +02:00
Stefan Tröger
ced37e29c1 Fix Windows build errors 2016-04-12 18:12:23 +02:00
Stefan Tröger
103ed524f5 PartDesign: Unify datum and shapebuilder visuals 2016-04-12 18:12:23 +02:00
Stefan Tröger
6fa3b94ff1 Override mode works with non-toplevel viewprovider
And adopt the part design body to handle the override mode correctly
2016-04-12 18:12:23 +02:00
Stefan Tröger
48b2bb86ab PartDesign: body is responsible for visuals
-Hide all visual properties of features when they are part of a body
-Propagate all body visual changes to features
-Separate display mode from body mode to enable setting display mode for both "tip" and "through" modes
-Use default visuals for body shape and only make "through" a new display mask mode for the children
2016-04-12 18:12:23 +02:00
Stefan Tröger
8cbf27dbd6 PartDesign: Fix context menus 2016-04-12 18:12:23 +02:00
Stefan Tröger
e64569aa2c PartDesign: prevent claiming features 2016-04-12 18:12:23 +02:00
Stefan Tröger
9ab137f3c9 PartDesign: prevent crash on delete and add body 2016-04-12 18:12:23 +02:00
Stefan Tröger
815a8e4d30 Remove ShapeBinder2D
As profile based features can work with faces and wires now ShapeBinder can do everything that needed ShapeBinder2D before.
2016-04-12 18:12:23 +02:00
Stefan Tröger
47985c4fc7 Fix workflow manager crash on windows 2016-04-12 18:12:23 +02:00
Stefan Tröger
12e793bde8 PartDesign: Adopt pattern to face based features 2016-04-12 18:12:22 +02:00
Stefan Tröger
ae9dac71d7 PartDesign: Modeling features work with faces
-Rename Sketchbased to ProfileBased to show new behavior
-Adopt ProfileBased to make the relevant helper functions work with faces too
-Adopt features for unified use of helper functions
-Adopt commands to allow face selection
2016-04-12 18:12:22 +02:00
Stefan Tröger
7e97cdaafe Datums not selectable during edit 2016-04-12 18:12:22 +02:00
Stefan Tröger
463070b1f6 Fix crash on aborted pattern external axis 2016-04-12 18:12:22 +02:00
Stefan Tröger
3c39410002 PartDesign: Adopt to new property status bits 2016-04-12 18:12:22 +02:00
Stefan Tröger
c027277128 no body allowed as body base feature 2016-04-12 18:12:22 +02:00
Stefan Tröger
063ffd8700 ShapeBinder: fix Null shape on recompute for copy 2016-04-12 18:12:22 +02:00
Stefan Tröger
a924d723c5 Fix shape binder placement
-- hidden for user
-- inherited by linked part
2016-04-12 18:12:22 +02:00
Stefan Tröger
73ab046ad6 Ensure only a single PartDesign feature is visible 2016-04-12 18:12:22 +02:00
Stefan Tröger
f392ed30d2 PartDesign mirror must work with base planes 2016-04-12 18:12:22 +02:00
Stefan Tröger
6b7b2176fb Fix transform feature crash on apply
-Redundant "reset edit" and command commit removed
-Redundant apply call removed
2016-04-12 18:12:22 +02:00
Stefan Tröger
7609c6e8c1 Add missing files 2016-04-12 18:12:22 +02:00
Stefan Tröger
0d4e941b0a fix reference selection of origin features 2016-04-12 18:12:22 +02:00
Stefan Tröger
732834c6d8 Handle external references for revolution et all
The reference selection, used in multiple part design features, treated body external references not corectly.
2016-04-12 18:12:22 +02:00
Stefan Tröger
846aa8febe Fix shutdown crash with primitives in the document
and cleanup the header
2016-04-12 18:12:22 +02:00
Stefan Tröger
cf4964fa8b Prevent dressup crash due to multi command commit
the same functionality is provided by upstream accept functions
2016-04-12 18:12:21 +02:00
Stefan Tröger
252865d43f Active view may not be 3d viewer
When for example the spreadsheet is open and an recompute is issued, the active view is not the 3d viewer which leads to crash if used for scene graph calculations.
2016-04-12 18:12:21 +02:00
Alexander Golubev
e8b323ba20 PartDesignGui: small rework to sketch-based task parameters
This done mostly for thurther unification them with other task
parameters/dialogs.
2016-04-12 18:12:21 +02:00
Alexander Golubev
7d8fc476bd PartDesign/App: a small fix to offset constraint syntax for Pad and Pocket 2016-04-12 18:12:21 +02:00
Alexander Golubev
27667cf5e6 Fix warnings introduced in new PartDesign
Mostly unused wariables and compare of signed & unsigned
2016-04-12 18:12:21 +02:00
Stefan Tröger
1a748c4d51 Simplify the feature pick dialog
less options are easier to grasp for the user
2016-04-12 18:12:21 +02:00
Stefan Tröger
f058ae12e9 fix sketch classification for other body
hasObject does search recursive only in groups, but a body is not a group. Hence for sketches within a body this will always return false. Annother logic must be used to detect sketches in bodies.
2016-04-12 18:12:21 +02:00
Stefan Tröger
571e5d55d2 fix sketch selection in part design
validateSketch was faulty: as every sketch is valid (non is removed) it could happen that the returned number was >0 but the iterator firstValidSketch was NULL nontheless. The routine needed to be udated to make snese and the usage in prepareSketchbased together with it.
2016-04-12 18:12:21 +02:00
Stefan Tröger
ad5785654e add only a single reference copy 2016-04-12 18:12:21 +02:00
Stefan Tröger
fe5d8b957d Fix incorrect ShapeBinder recalculation 2016-04-12 18:12:21 +02:00