Commit Graph

10993 Commits

Author SHA1 Message Date
looooo
7dd0b9b4e6 Test: simplified command to run single test 2017-05-04 00:19:37 +02:00
Abdullah Tahiri
5cbeb1002e Base::Exception extension
=========================

1. Enable automatic storing of information (function, file, line) when throwing the exception via macro:

Examples:

THROWM(Exception, "BSpline GeoId is out of bounds.")
THROWM(ValueError, "BSpline GeoId is out of bounds.")

THROW(AbortException)

Output:

a) Python Console (what()):
App.ActiveDocument.Sketch004.modifyBSplineKnotMultiplicity(16,3,0)
Traceback (most recent call last):
File "<input>", line 1, in <module>
Base.FreeCADError: FreeCAD exception thrown (BSpline GeoId is out of bounds.)

b) ReportException (report()):
Exception (Thu Apr 27 19:15:24 2017): BSpline GeoId is out of bounds. in bool Sketcher::SketchObject::modifyBSplineKnotMultiplicity(int, int, int) in src/Mod/Sketcher/App/SketchObject.cpp:4102

2. Extend the basic framework so as to allow more control over the mangling of the message introduced by the user, setting the basis to allow, where needed,
 to preserve the original message while allowing full legacy behaviour.

3. Supporting FileDialog reporting as legacy
2017-05-03 22:08:10 +02:00
Abdullah Tahiri
c2eea67893 Exception: Add CADKernelError exception for specialized OCC exception propagation to App::DocumentObject 2017-05-03 22:08:10 +02:00
wmayer
ffa10bbf0c Qt5: workaround for undocking of mdi view
fix minor issues reported by clang static analyzer
2017-05-03 22:01:46 +02:00
wwmayer
810ec334d0 Merge pull request #729 from DeepSOIC/PickRadius_fix1
PickRadius support for View3DPy.getObjectInfo()
2017-05-03 17:59:47 +02:00
Yorik van Havre
f264f0fd41 Arch Multimaterial 2017-05-03 11:52:24 -03:00
DeepSOIC
624a3c4146 Gui: PickRadius support for View3DPy.getObjectInfo()
requested by Chris_G in forum thread "ActiveView.getObjectInfo ignores
pickRadius ?"
https://forum.freecadweb.org/viewtopic.php?f=22&t=22196
2017-05-03 16:51:36 +03:00
Keith Sloan
2d1c913300 Support of OpenSCAD offset command 2017-05-02 15:53:30 +02:00
wwmayer
81d0ad9324 Merge pull request #725 from m0n5t3r/path-helix-sort-duplicates
[path] Remove duplicate first drill job in PathHelix
2017-05-02 13:51:27 +02:00
Sabin Iacob
fa1a5c486d [path] Remove duplicate first drill job in PathHelix 2017-05-02 07:10:00 +03:00
Abdullah Tahiri
d8d086b2f2 Sketcher: Visualization of horizontal alignment constraint 2017-05-01 23:35:13 +02:00
Abdullah Tahiri
af831520a3 Sketcher: Vertical alignment constraint command 2017-05-01 22:39:37 +02:00
Abdullah Tahiri
0848603051 Sketcher: Horizontal alignment constraint command 2017-05-01 22:39:08 +02:00
wmayer
df1da3f8d8 Qt5 port: workaround to keep multi-sampling when undocking mdi window 2017-05-01 18:53:58 +02:00
wmayer
4141611824 correct method name 2017-05-01 17:51:19 +02:00
wmayer
5232aa745f if set display node name in scene inspector panel 2017-05-01 17:45:42 +02:00
wmayer
c831d66589 add SwitchBoard node class 2017-05-01 17:42:03 +02:00
wmayer
77d6448da3 Revert "Sketcher: Constraint Node restructuring to enable independent hidding of driving/driven constraints"
This reverts commit aa9255509b9e89b10d8fe21d8d5daa2be7eb5bfb.
2017-05-01 16:17:20 +02:00
wmayer
2cb39de755 Revert "Sketcher: Edit Controls' checkboxes to independently hide/show driving/non-driving constraints"
This reverts commit cfd217071bbe83a44b3601b3df294924a9f3dc8d.
2017-05-01 16:16:49 +02:00
wmayer
57cfa6d836 Revert "Sketcher: hidding constraints - fix entry into empty sketch"
This reverts commit 38eef417110eed51073ad42a5ffa993cc90ab0ef.
2017-05-01 16:16:13 +02:00
Abdullah Tahiri
6595d5564f Sketcher: hidding constraints - fix entry into empty sketch 2017-04-30 10:06:15 +02:00
Abdullah Tahiri
a76286aa27 Sketcher: Edit Controls' checkboxes to independently hide/show driving/non-driving constraints 2017-04-30 10:06:15 +02:00
Abdullah Tahiri
c9fbe9cc6a Sketcher: Constraint Node restructuring to enable independent hidding of driving/driven constraints 2017-04-30 10:06:15 +02:00
Sabin Iacob
7534a2686f [path] Make PathHelix use the new tool controllers 2017-04-30 10:05:18 +02:00
wwmayer
5514761f1f Merge pull request #719 from m0n5t3r/path-helix-sort
[path] Sort helix drill jobs to improve efficiency
2017-04-30 10:02:34 +02:00
Sabin Iacob
fc9f7510d4 [path] Sort helix drill jobs to improve efficiency 2017-04-29 11:06:41 +03:00
wmayer
beff8eb3ca remove undesired virtual keyword from ViewProviderPythonFeatureImp 2017-04-28 21:15:53 +02:00
Yorik van Havre
77f652ea2f Gui: implemented isShow() for python viewproviders 2017-04-28 15:03:47 -03:00
Keith Sloan
779c8a4e43 Fix for null string and single blank string 2017-04-28 19:59:29 +02:00
wmayer
800526836a use specialized Python exception classes 2017-04-28 19:33:51 +02:00
wmayer
fb7094bf31 use specialized exception classes 2017-04-28 18:49:11 +02:00
Abdullah Tahiri
998c000516 Convert OCC exceptions into Base::Runtime exceptions for App:DocumentObject handling 2017-04-28 15:46:49 +02:00
Abdullah Tahiri
81c581b9bd Correct copy-paste typos in exception throwing 2017-04-28 15:46:30 +02:00
Abdullah Tahiri
e3b900d0f3 Change all exceptions thrown within AttachExtension::positionBySupport from Base::Exception to a meaningful derivative 2017-04-28 15:46:13 +02:00
Abdullah Tahiri
a2f1a4ff18 Part Design: Allow attachment error messages and error setting propagation 2017-04-28 15:45:54 +02:00
wmayer
7150e9ab23 replacement for PR 698 2017-04-27 23:05:40 +02:00
wmayer
712766c3e8 fixes #0003000: View property Angular Deflection can freeze FC 2017-04-27 19:20:22 +02:00
wmayer
95ef6b15d3 fix crash when setting invalid selection filter, improve doc strings 2017-04-27 18:55:09 +02:00
looooo
6db628f398 py3: part-design: involute-gear 2017-04-27 13:17:51 -03:00
Yorik van Havre
da483e762f Draft: fixed getSVG to work in non-GUI mode 2017-04-27 13:07:28 -03:00
wmayer
25c69ee833 add warning to generated file not to make manual changes 2017-04-27 15:52:15 +02:00
wmayer
7f42c31627 fix reference leak 2017-04-27 15:26:46 +02:00
wmayer
8c1aca1fb8 issue #0002996: PyObjectBase notification chain can lead to unexpected changes to document 2017-04-27 15:09:28 +02:00
Ian Rees
950ac44f9f TechDraw: Tidy, and fix Qt5 template text edition 2017-04-26 18:23:21 +12:00
wwmayer
3cf1cfce3e Merge pull request #711 from realthunder/PathArea
Path.Area: add abs_center parameter to Path.fromShapes
2017-04-25 11:24:40 +02:00
Zheng, Lei
17648c3c62 Path.Area: add abs_center parameter to Path.fromShapes
Set to true to enable absolute arc center mode (G90.1)
2017-04-25 11:51:54 +08:00
wwmayer
998889f38d Merge pull request #710 from wwmayer/SurfaceFilling
Surface filling task panel
2017-04-24 21:29:00 +02:00
wmayer
299555e0bd reset highlighting of references if object is being deleted, fix crash with invalid sub-element names 2017-04-24 19:18:58 +02:00
wmayer
023ff6a59f highlighting of point constraints 2017-04-24 17:20:41 +02:00
wmayer
6e33aad6bc fix vertex highlighting 2017-04-24 17:19:21 +02:00