Commit Graph

5449 Commits

Author SHA1 Message Date
DeepSOIC
78bed4bb78 Attacher: make positionBySupport return if attached or not
Needed as reliable way of testing if attachment is working or not.
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
4d7f802a13 Attacher: make Placement read-only when attached
Read-onlyness of Placement and superPlacement properties is now
dynamically controlled by MapMode property value.
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
22480effeb Attacher: new modes: Inertia CS, Inertia axes
Modes added:
3D and plane attachment: Inertia CS
Line attachment: Inertia axes
This commit may serve a good example of how to add new attachment modes.
2016-05-07 11:24:41 +02:00
DeepSOIC
701eba37be Attacher: new mode: center of mass (point attacment) 2016-05-07 11:24:41 +02:00
DeepSOIC
d1d8746518 Attacher: fix typo in tooltip 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
blobfish
deed33e6f2 Part: ModelRefine: adding basis surface to cylinder. 2016-05-07 09:45:39 +02:00
wmayer
a1cccbc449 + issue #0002525: Line color of shapes are always black 2016-05-06 13:57:13 +02:00
wmayer
d9bd355892 + suppress warnings with MSVC 2016-05-05 18:39:17 +02:00
wmayer
0509fcfc9e + avoid code duplication 2016-05-05 18:38:36 +02:00
wmayer
fb30b1116a + fixes issue #0002224: Drawings break on reopen. Template not found 2016-05-05 11:11:08 +02:00
Johannes Obermayr
bd3f6f4052 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
Yorik van Havre
ca4fa97d47 Arch: Fixed rebars to work with PartDesignNext 2016-04-30 10:47:05 -03:00
wmayer
0a209f53be + add method to show parts of a mesh transparent 2016-04-29 18:15:31 +02:00
wmayer
e579d49e6c + add method to set a viewer for Mesh selection 2016-04-29 18:14:28 +02:00
wmayer
e404c33e0f + rename BrushSelection class to FreehandSelection 2016-04-29 17:43:43 +02:00
wmayer
1736901e92 + implement TopoEdge.isSeam(face) 2016-04-28 11:08:28 +02:00
Enmar Abrams
bb800e768d Fix crash from unviewed parametrized datum plane 2016-04-27 11:25:03 +02:00
wmayer
4ce77402ca + fix compiler warning due to comparison of string literals 2016-04-26 18:57:25 +02:00
wwmayer
e47aa54e8e Merge pull request #148 from f3nix/remove-qt3-2
Remove remaining Qt3 stuff - 2
2016-04-24 20:34:01 +02:00
Bernd Hahnebach
267aec014a FEM: replace tabs at line start by spaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
3091fd5973 FEM: remove trailing whitespaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
11a1de07d1 FEM: convert all windows code files to unix line ending 2016-04-24 19:10:33 +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
Mateusz Skowroński
90be8e913e QInputDialog::getInteger() is obsolete in Qt4. Replace it with getInt().
This change is Qt4/Qt5 neutral.
2016-04-22 20:11:52 +02:00
DeepSOIC
7dbe10bb12 Attempt to fix gcc build 2016-04-21 22:34:20 +03:00
DeepSOIC
8dea73ed2b Attacher: coding and translation style fixes
Replace QObject::tr() with qApp->translate, as suggested by @wwmayer
Curly braces around nested ifs.
Fix misleading comment in Attacher.h
2016-04-21 20:55:42 +03: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
102b02e12b Attacher: create special source file to contain attacher strings 2016-04-21 20:55:42 +03:00
DeepSOIC
464ea0c85d Attacher: fix typesystem (forgotten ::init())
still doesn't work =(
2016-04-21 20:55:42 +03:00
DeepSOIC
0085071654 Attacher: remove #include QString 2016-04-21 20:55:42 +03:00
DeepSOIC
475484ab7b Attacher: fix superPlacement applied twice in some cases
superPlacement was applied twice on line and point attachment modes that
re-use 3d attachment modes code. Fixed.
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
Jose Luis Cercos-Pita
65eeec2c04 Moved to version checking for anarchists and software realists, like matplotlib guys 2016-04-19 13:41:30 +02:00
Yorik van Havre
f709bf3b30 FEM: Results can now be double-clicked to show their task panel 2016-04-17 14:01:10 -03:00
wmayer
71243d8d7b + fix whitespace & cmake warning 2016-04-17 11:38:56 +02:00
mandeeps708
49024c34a0 adds new material: Aluminium-6061-T6 2016-04-17 05:02:38 +05:30
mandeeps708
51f0e4faea Materials readme 2016-04-17 04:26:23 +05:30
wmayer
6422ba5bcb + disconnect boost signals on destruction 2016-04-16 15:38:04 +02:00