Commit Graph

789 Commits

Author SHA1 Message Date
Mateusz Skowroński
0aaa3c19c3 Fix layout in TaskDatumParameters dialog. 2016-05-07 23:01:47 +02:00
DeepSOIC
b84850cfed Attacher: UI: another fix of status label
When no references were filled in, and modes were switched, it falsely
claimed 'Attached'. This has been fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
03b974246c Attacher: add superPlacement to UI
Expose superPlacement as X,Y,Z,yaw,pitch,roll quantity boxes. With partial expression support.
2016-05-07 11:24:41 +02:00
DeepSOIC
ac20612f6b Attacher: UI improve status message display
Before, message used to display 'Selection accepted', when attachment
actually failed. Shouldn't happen anymore.
2016-05-07 11:24:41 +02:00
DeepSOIC
dd3675d9ae Attacher: rework UI
* Remove hint system on buttons. Buttons show currently selected
reference type, instead.
* Change button's caption to "Selecting..." when selecting.
* internal logic rearrangements
2016-05-07 11:24:41 +02:00
DeepSOIC
92ccefa1d2 Attacher: use getModeName() instead of eMapModeStrings[]
getModeName() does range checking. eMapModeStrings[] will crash if out
of range.
2016-05-07 11:24:41 +02:00
DeepSOIC
39249581eb Attacher: change suggestion routine interface
When another bit of information was needed to be extracted from mode
suggestion routine, it felt like listMapModes had too many arguments.
So, the arguments have been collapsed into a struct. This triggered a
few namespace-related changes, which lead to massive search-and-replace
changes all over FreeCAD.

So the only functional change carried out is the addition of reference
types readout to info returned by suggestor.
2016-05-07 11:24:41 +02:00
DeepSOIC
2c5fccaf5f Attacher: for reachable modes, display what's to add
For grayed out modes in list, show what's needed to get to the mode.
Like so:
"Normal to edge (add Vertex)"
2016-05-07 11:24:41 +02:00
DeepSOIC
a0e99c425e Attacher: display modes that can be reached
Attachment mode list used to display only the modes that fit current
references. Now, modes that can be reached by adding more references are
listed too, but grayed out.
2016-05-07 11:24:41 +02:00
Enmar Abrams
bb800e768d Fix crash from unviewed parametrized datum plane 2016-04-27 11:25:03 +02:00
wmayer
fe87a73530 + do not allow to create primitives while a task panel is open to avoid mess on the undo/redo stack 2016-04-24 18:27:24 +02:00
wmayer
9ae9e3d380 + fix typos + improve whitespaces 2016-04-24 18:11:02 +02:00
wmayer
d1bc34441d + fix various gcc & clang warnings 2016-04-24 16:21:19 +02:00
wmayer
1f3fe37700 + fix crash on abort of adding primitives 2016-04-24 14:17:01 +02:00
DeepSOIC
2639b6b5fb Attacher: list ref. combinations in UI 2016-04-21 20:55:42 +03:00
DeepSOIC
47de5ea462 Attacher: change label in UI
"Attachment mode:" instead of "Available modes:"
2016-04-21 20:55:42 +03:00
DeepSOIC
5f8bcc6e12 Attacher: use the new strings in UI
* user-friendly mode names
* tooltips
2016-04-21 20:55:42 +03:00
DeepSOIC
f7b1b0416c Attacher: split Attacher3d and AttacherPlane
Even though they share all the functionality now, I split them, to allow
independent user-friendly mode names.
2016-04-21 20:55:42 +03:00
wmayer
71243d8d7b + fix whitespace & cmake warning 2016-04-17 11:38:56 +02:00
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