Commit Graph

2938 Commits

Author SHA1 Message Date
wmayer
f7a5fe162d + fix expressions 2014-10-10 19:01:34 +02:00
wmayer
ee6cb252fa + fix issues with force constraint 2014-10-10 17:42:33 +02:00
Yorik van Havre
203fcb7a1b Draft: Adapted Draft module for python3 compatibility - issue #995 2014-10-05 19:40:14 -03:00
Yorik van Havre
cfe6613c71 Draft: prevented possible deletion of draft wire during edit - fixes #1680 2014-10-05 17:30:18 -03:00
Yorik van Havre
8fd880d51b Arch: Fixed axis object - fixes #1605 2014-10-05 13:09:08 -03:00
Jose Luis Cercos-Pita
5a98d932d3 Set PySide to all ambiguous QtGui and QtCore calls 2014-10-04 11:42:34 -03:00
Yorik van Havre
80e55003d8 Draft: Added DraftGeomUtils.pocket2d(shape,float)
Returns a list of wires obtained by offsetting the wires of the given
shape by the given amount (outer wire inside, inner wires outside) and
resolving intersections
2014-10-03 17:35:40 -03:00
Yorik van Havre
dce8676d1e Start: Set version info text color to white - fixes #1772 2014-10-01 19:27:50 -03:00
wmayer
4e72e4a937 + fix Qt help problems 2014-10-01 17:16:43 +02:00
wmayer
24886ad909 + fix minor bug when adding coincidence constraint 2014-09-28 15:06:02 +02:00
Yorik van Havre
1c78aed46f Draft: display coordinates using the current locale's decimal separator - fixes #1741 2014-09-27 16:23:59 -03:00
Sebastian Hoogen
9ad67346cc issue #1701 2014-09-27 13:07:30 -03:00
wmayer
cff917b013 + Proper handling of sketch plane parallel to view direction 2014-09-27 15:53:21 +02:00
Yorik van Havre
cc39f914e6 Draft: Reverting provisorily to the old version of DraftGeomUtils.sortEdges 2014-09-24 18:13:55 -03:00
Yorik van Havre
a5cea497d0 Arch: fixed string encoding in Space object 2014-09-24 18:13:18 -03:00
wmayer
ddb267fdf6 + fix warnings with clang 2014-09-24 18:00:46 +02:00
wmayer
696d4a5f4a + fix warnings with clang 2014-09-24 17:46:04 +02:00
wmayer
055dcb0512 + fix warnings with clang 2014-09-24 15:55:36 +02:00
wmayer
a63b94620b + fix build error 2014-09-23 12:51:31 +02:00
Stefan Tröger
f1d122b78c fix reported bugs
- compile on windows
- fix cursors
2014-09-23 10:11:12 +02:00
Stefan Tröger
512a2b94d2 Adaption of FreeCAD to QuarterWidget
-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer  interface
2014-09-23 10:11:11 +02:00
Yorik van Havre
e3554a7805 Arch: Extended role property to all Arch objects - fixes #1577 2014-09-21 15:12:06 -03:00
Yorik van Havre
b7f25be562 Spreadsheet - added a recompute() - fixes #1761 2014-09-21 14:40:01 -03:00
wmayer
4d328992d3 + add lost s 2014-09-20 18:01:40 +02:00
wmayer
2b8b11c71f + build with Qt < 4.7 and OCC < 6.5 2014-09-20 17:49:29 +02:00
Sebastian Hoogen
efbd320f78 fixes #1745 Encode Annotation Text using latin1
for Coin Versions <= 3
2014-09-20 16:26:59 +02:00
Sebastian Hoogen
59596bb6b0 fixes #1744 Use unicode in Unit system 2014-09-20 08:58:06 +02:00
Yorik van Havre
a31a01a2ac Fixed bug introduced by last commit 2014-09-19 13:13:34 -03:00
Sebastian Hoogen
edbc1e637a fixes #1755: don't translate toolbar names
in InitGui.py of Arch and Spreadsheet
2014-09-19 10:35:00 -03:00
Yorik van Havre
6b8036784a Draft: small fix in trackers - fixes #1757 2014-09-18 19:39:37 -03:00
Yorik van Havre
46e1754bac Added base translation file for the Web WB - issue #453 2014-09-18 12:24:16 -03:00
Yorik van Havre
e5a49e306e Draft: Fixed rotation UI unit - fixes #1664 2014-09-18 11:18:15 -03:00
Yorik van Havre
2b99706910 Draft: Grid now checks preferences settings when redrawn - fixes #1671 2014-09-18 11:09:43 -03:00
Abdullah Tahiri
f1035e8481 Sketcher fixes: Symmetry arrows properly scaled, fixed icon in constraint taskbar list contextual menu 2014-09-18 16:01:34 +02:00
Yorik van Havre
a615f97d04 Arch: Added sill height option to creation dialog - fixes #1609 2014-09-17 20:24:35 -03:00
Yorik van Havre
9b52c19fe3 Arch: fixed window movements - fixes #1597 2014-09-17 19:39:54 -03:00
Yorik van Havre
f76f91bd84 Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code 2014-09-17 14:20:07 -03:00
Yorik van Havre
974f95b295 Draft: provisorily fixed error in sortEdges 2014-09-17 14:19:42 -03:00
Abdullah Tahiri
5dcd081591 Sketcher enhancement: Constraint icons visible over lines 2014-09-17 18:49:40 +02:00
Abdullah Tahiri
b3f0c4652d 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
cea93fa33c 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
411dbd8ae6 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
e41b372cbf 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
Yorik van Havre
e6e582bc8f Draft: Added progress bar to dxf library download - fixes #1644 2014-09-17 13:30:51 -03:00
Abdullah Tahiri
816409c68a 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
8dd77ae18a Sketcher Redundant/Conflicting art by Jim 2014-09-17 16:43:51 +02:00
Abdullah Tahiri
512d51cb7f 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
7ab50d69d4 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
Sebastian Hoogen
67b01c5aae try to use Execptions in Draft module 2014-09-17 12:52:36 +02:00
Sebastian Hoogen
856c66d12d use exceptions in OpenSCAD module
derive OpenSCADError from FreeCADError if possible
2014-09-17 11:59:49 +02:00