Commit Graph

4061 Commits

Author SHA1 Message Date
Yorik van Havre
e08788eca9 Arch: Extended role property to all Arch objects - fixes #1577 2014-09-21 15:12:06 -03:00
Yorik van Havre
4f5f9be38c Spreadsheet - added a recompute() - fixes #1761 2014-09-21 14:40:01 -03:00
Sebastian Hoogen
856418a2e5 use the commit time (in UTC) in version information
as it is more meaningfull than the author time
2014-09-20 21:54:41 +02:00
wmayer
eae8f22ee5 + add lost s 2014-09-20 18:01:40 +02:00
wmayer
26e01e0900 + build with Qt < 4.7 and OCC < 6.5 2014-09-20 17:49:29 +02:00
Sebastian Hoogen
6a89b33816 fixes #1745 Encode Annotation Text using latin1
for Coin Versions <= 3
2014-09-20 16:26:59 +02:00
Sebastian Hoogen
6ad50db01b fixes #1744 Use unicode in Unit system 2014-09-20 08:58:06 +02:00
Yorik van Havre
810fadab23 Fixed bug introduced by last commit 2014-09-19 13:13:34 -03:00
Sebastian Hoogen
e54297313b fixes #1755: don't translate toolbar names
in InitGui.py of Arch and Spreadsheet
2014-09-19 10:35:00 -03:00
jriegel
6561b99347 Merge branch 'refs/heads/Rift' 2014-09-19 11:08:00 +02:00
jriegel
3d00535d57 FreeCAD-VR: Small fix for older compilers 2014-09-19 11:03:35 +02:00
Yorik van Havre
fbeb7beba3 Fixed label of document - fixes #453 2014-09-18 20:17:50 -03:00
Yorik van Havre
328bdcf636 Draft: small fix in trackers - fixes #1757 2014-09-18 19:39:37 -03:00
Yorik van Havre
6e5fbc74a8 Added base translation file for the Web WB - issue #453 2014-09-18 12:24:16 -03:00
Yorik van Havre
0f559a7184 Draft: Fixed rotation UI unit - fixes #1664 2014-09-18 11:18:15 -03:00
Yorik van Havre
f796cacf65 Draft: Grid now checks preferences settings when redrawn - fixes #1671 2014-09-18 11:09:43 -03:00
Abdullah Tahiri
749abc5ed7 Sketcher fixes: Symmetry arrows properly scaled, fixed icon in constraint taskbar list contextual menu 2014-09-18 16:01:34 +02:00
jriegel
a81308ab57 FreeCAD-VR: Small cleanups 2014-09-18 10:25:28 +02:00
Yorik van Havre
524e5cbe32 Arch: Added sill height option to creation dialog - fixes #1609 2014-09-17 20:24:35 -03:00
Yorik van Havre
552c0b3af3 Arch: fixed window movements - fixes #1597 2014-09-17 19:39:54 -03:00
Yorik van Havre
7f90948712 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-09-17 14:20:07 -03:00
Yorik van Havre
e7cc192650 Draft: provisorily fixed error in sortEdges 2014-09-17 14:19:42 -03:00
jriegel
719c6e9425 FreeCAD-VR: fix Z direction 2014-09-17 19:13:48 +02:00
jriegel
b5c2554378 FreeCAD-VR: Proper light handling 2014-09-17 18:55:51 +02:00
Abdullah Tahiri
02cb12db52 Sketcher enhancement: Constraint icons visible over lines 2014-09-17 18:49:40 +02:00
Abdullah Tahiri
d562e1a389 Sketcher Art enhancement: New Symmetric constraint icon by Jim
There is more space in between the > < symbols now, so it is more clear as it overlaps less.

Thanks Jim!
2014-09-17 18:49:16 +02:00
Abdullah Tahiri
0adfa0a7ed Sketcher Bug fix: Arrows for symmetry constraint are back
The arrows were there in the code, but at a certain point, code was written to set the this->imgHeight value programatically, based on
whether it had text or not. As symmetry constraint does not have text the variable failed to initialize. Being zero, it did not pass
the ASSERT in the render function, so it was not rendered.

This includes Werner's fix for improver cast of a SoRayPickAction to SoGLRenderAction:
SbVec2s vp_size = static_cast<SoGLRenderAction*>(action)->getViewportRegion().getWindowSize();
to
SbVec2s vp_size = SoViewportRegionElement::get(state).getWindowSize();

At least sometimes tt is a SoRayPickAction because:

When you move with the mouse over the sketcher (when in edit mode) you enter the method ViewProviderSketch::mouseMove.
Inside there the method getPointOnRay is called to get a picked point underneath the cursor. Inside the latter method
an instance of SoRayPickAction is created to traverse the scene graph. After a long cascade of function calls you
finally enter SoDatumLabel::generatePrimitives(SoAction*).
2014-09-17 18:48:54 +02:00
Abdullah Tahiri
fdb7de1dda Sketcher visualization enhancement: Do not group sketcher symmetry icons.
Do not add a symmetry constraint icon to a group of icons, so that it lies on the line or point providing the symmetry (symmetry axis/point),
as it is more clear to the user which line this is.
2014-09-17 18:48:36 +02:00
Abdullah Tahiri
95c512d9a1 Sketcher feature enhancement: Symmetry constraint perpendicular to axis of symmetry
Solves Mantis ticket: http://www.freecadweb.org/tracker/view.php?id=1623
Unrelated minor fix: remove unused variable
2014-09-17 18:48:15 +02:00
jriegel
9a19baa8f5 FreeCAD-VR: Positional light and fix in camera positioning 2014-09-17 18:35:11 +02:00
Yorik van Havre
6e9d2e9b21 Draft: Added progress bar to dxf library download - fixes #1644 2014-09-17 13:30:51 -03:00
Abdullah Tahiri
da2df00eea Sketcher visualization: Increase readability of redundant constraint solver message
Color changed to "OrangeRed" to improve readability.
2014-09-17 16:43:51 +02:00
Abdullah Tahiri
5f2670dbcf Sketcher Redundant/Conflicting art by Jim 2014-09-17 16:43:51 +02:00
Abdullah Tahiri
34cc7c3136 Sketcher new feature: Select Conflict and Redundant Constraints
Based (and solves) Mantis ticket:
http://www.freecadweb.org/tracker/view.php?id=1643

The ticket refers only to redundant, and ask for deletion.

Two commands are created, one for redundant constraints and other for conflicting constraints.

As usually removing one constraint of the "at least one" is sufficient, the implementation selects the constraints (but does not delete them).

The user therefore easily identify the constraints involved and decide to delete them.

This implementation takes into account the edit->Actsketch that ViewProvidedSketch creates for solving, as it is this instance the one that generates the messages in the Sketcher Taskbar.

No buttons in the toolbar by default (can be added by the user), but an hyperlink in the solver messages which triggers the selection of the appropriate command (conflicting or redundant).
2014-09-17 16:43:50 +02:00
Abdullah Tahiri
bdbf5140f9 Sketcher new feature: Selects the elements associated with the selected constraint(s)
Ex 1: User selects constraints from the list => right click => select "select elements" from the contextual menu => The elements (edges,vertex) involved in the constraint(s) are selected.

Ex 2: User selects (a) constraint(s) => Clicks button in toolbar (if included by the user) => The elements (edges,vertex) involved in the constraint(s) are selected.

Intended as visual aid to see which elements are being affected by a constraint.

Requested by Jim on thread:
http://forum.freecadweb.org/viewtopic.php?f=19&t=6875&start=10

Solving another Mantis ticket I can not find now.
2014-09-17 16:43:49 +02:00
jriegel
4c7fb2d0f0 FreeCAD-VR: Upright position and remembering render window position 2014-09-17 15:01:28 +02:00
jriegel
1c741b6e0d FreeCAD-VR: Remove Tabs and add orientation for viewer position 2014-09-17 13:49:44 +02:00
Sebastian Hoogen
d537fc9b53 try to use Execptions in Draft module 2014-09-17 12:52:36 +02:00
Sebastian Hoogen
333e6e3155 use exceptions in OpenSCAD module
derive OpenSCADError from FreeCADError if possible
2014-09-17 11:59:49 +02:00
Sebastian Hoogen
57db95a1c3 issue #1701 removed further except: statements 2014-09-17 11:57:32 +02:00
Sebastian Hoogen
ed66ada1cf issue #1700 replace PyExc_Exception 2014-09-17 11:15:57 +02:00
Sebastian Hoogen
1b1d8010a6 removed catch (...) in Drawing
which discarded type information when rethrowing base type
2014-09-17 11:15:56 +02:00
Sebastian Hoogen
5e51a6cdf7 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
Yorik van Havre
f1dffbb90e Arch: Hide/show windows together with their parents - fixes #1733 2014-09-16 20:03:50 -03:00
Yorik van Havre
9f7956b17e Web: Added an Open Link In External Browser context menu option - fixes #1017 2014-09-16 14:16:44 -03:00
jriegel
0d6ccb7654 FreeCAD-VR: Some fixes 2014-09-16 18:14:42 +02:00
Yorik van Havre
302fcde1e0 Startpage now checks for new versions - issue #1017
After loading, the startpage now checks for
http://www.freecadweb.org/version.php and compares
with current version, and displays a message accordingly.
2014-09-16 12:58:07 -03:00
Yorik van Havre
b0c66cf6f7 Draft: fixed typo 2014-09-16 11:26:47 -03:00
Abdullah Tahiri
4aa71db3c8 Sketcher Element Widget enhancement: Auto-switch to Edge (first valid type)
Feature requested by nahshon.
- In auto-switch to edge mode, actually switch to first valid type, which is always
edge, except for a point. It reduces the amount of clicks when dealing with points.
- Correction of a typo.
2014-09-16 10:12:53 +02:00
Yorik van Havre
a4f208c8ac Draft: replaced DraftGeomUtils.sortEdges with better version from pkoning2 - fixes #1691 2014-09-15 17:30:37 -03:00