Commit Graph

5458 Commits

Author SHA1 Message Date
Wolfgang E. Sanyer
4ebb62be79 Fixed bug ID0002513, where Mesh.export failed.
The failure occered when Mesh.export was passed just a filename, such as 'out.stl'. If
'/some/path/out.stl' was passed it succeeded.
2016-05-10 22:29:40 +02:00
wmayer
59980c33d1 + methods to highlight points, edges or faces of a shape 2016-05-09 23:48:30 +02:00
wmayer
1ccab846e2 + apply f3nix:fix-gcc-warnings-1 2016-05-08 12:00:26 +02:00
wmayer
fbf72553f3 + fix warnings 2016-05-08 06:19:32 +02:00
Mateusz Skowroński
56e5837fd3 Fix Tab order in TaskDatumParameters dialog. 2016-05-07 23:02:04 +02:00
Mateusz Skowroński
58daa046f1 Fix layout in TaskDatumParameters dialog. 2016-05-07 23:01:47 +02:00
wmayer
d8ad50d11d + move global function to namespace 2016-05-07 12:21:21 +02:00
DeepSOIC
c1f22cbd8d Attacher: fix wrong superPlacement read-onlyness
It reacted to changes to unrelated properties. Fixed.
2016-05-07 11:24:41 +02:00
DeepSOIC
abf4ddf9f7 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
651be3dcd1 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
2f6aaf3742 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
b3e9c6b9a9 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
ebd5414a61 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
a392927750 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
f947101938 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
505ec6a26d 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
9d19bf023a 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
d12141d1fb Attacher: new mode: center of mass (point attacment) 2016-05-07 11:24:41 +02:00
DeepSOIC
71f5a8f980 Attacher: fix typo in tooltip 2016-05-07 11:24:41 +02:00
DeepSOIC
2b057ef192 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
e6911adc50 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
973dda6f88 Part: ModelRefine: adding basis surface to cylinder. 2016-05-07 09:45:39 +02:00
wmayer
7e01d0128b + issue #0002525: Line color of shapes are always black 2016-05-06 13:57:13 +02:00
wmayer
524cdec261 + suppress warnings with MSVC 2016-05-05 18:39:17 +02:00
wmayer
133ff16d0a + avoid code duplication 2016-05-05 18:38:36 +02:00
wmayer
cc88b376e1 + fixes issue #0002224: Drawings break on reopen. Template not found 2016-05-05 11:11:08 +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
Yorik van Havre
eca3ce2dde
Arch: Fixed rebars to work with PartDesignNext 2016-04-30 10:47:05 -03:00
wmayer
9ee892eb35 + add method to show parts of a mesh transparent 2016-04-29 18:15:31 +02:00
wmayer
d57b57d7ba + add method to set a viewer for Mesh selection 2016-04-29 18:14:28 +02:00
wmayer
f83506c510 + rename BrushSelection class to FreehandSelection 2016-04-29 17:43:43 +02:00
wmayer
af72ae09c1 + implement TopoEdge.isSeam(face) 2016-04-28 11:08:28 +02:00
Enmar Abrams
c12c4368cc Fix crash from unviewed parametrized datum plane 2016-04-27 11:25:03 +02:00
wmayer
1166d8d2cc + fix compiler warning due to comparison of string literals 2016-04-26 18:57:25 +02:00
wwmayer
898bd8bb4c Merge pull request #148 from f3nix/remove-qt3-2
Remove remaining Qt3 stuff - 2
2016-04-24 20:34:01 +02:00
Bernd Hahnebach
bdbefdc52a FEM: replace tabs at line start by spaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
b58e37b950 FEM: remove trailing whitespaces 2016-04-24 19:10:33 +02:00
Bernd Hahnebach
14eb6869a9 FEM: convert all windows code files to unix line ending 2016-04-24 19:10:33 +02:00
wmayer
1b1c0316d4 + 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
de47702b17 + fix typos + improve whitespaces 2016-04-24 18:11:02 +02:00
wmayer
d03a8fd386 + fix various gcc & clang warnings 2016-04-24 16:21:19 +02:00
wmayer
6b4821a855 + fix crash on abort of adding primitives 2016-04-24 14:17:01 +02:00
Mateusz Skowroński
c50bc17675 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
b08a75bfb2 Attempt to fix gcc build 2016-04-21 22:34:20 +03:00
DeepSOIC
6eb450b7a0 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
4a1a1480ce Attacher: list ref. combinations in UI 2016-04-21 20:55:42 +03:00
DeepSOIC
7e14a044a6 Attacher: change label in UI
"Attachment mode:" instead of "Available modes:"
2016-04-21 20:55:42 +03:00
DeepSOIC
cdc507fa36 Attacher: use the new strings in UI
* user-friendly mode names
* tooltips
2016-04-21 20:55:42 +03:00
DeepSOIC
314617f16a Attacher: create special source file to contain attacher strings 2016-04-21 20:55:42 +03:00
DeepSOIC
1ca73cf428 Attacher: fix typesystem (forgotten ::init())
still doesn't work =(
2016-04-21 20:55:42 +03:00