Commit Graph

7288 Commits

Author SHA1 Message Date
wwmayer
7ee0afbf7a Merge pull request #130 from bblacey/develop
Add include of <sstreeam> to fix commit 08692f811 breakage to Ubuntu …
2016-04-03 09:15:29 +02:00
Bruce B. Lacey
f2d8daa1fb Add include of <sstreeam> to fix commit 08692f811 breakage to Ubuntu Precise 12.04 builds. 2016-04-02 11:19:28 -07:00
wmayer
7052fde4de + clear selection before hiding the linked object when editing fillet/chamfer 2016-04-02 15:29:08 +02:00
Eivind Kvedalen
484ba25ce6 Spreadsheet: Added test cases. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
a21571a652 Spreadsheet: Removed own expression parser and instead use the one in App. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
c506881614 Expressions: Simpified parser, fixed precedence (parentheses) 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
909727ade8 Expressions: Fixed parsing of unit expressions similar to 1/unit. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
1626c69494 Expressions: Moved Expression::priority to cpp file. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
b37e6ece98 Expressions: Refactored aggregate functions. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
08692f811b Expressions: Added support for aggregate functions and ranges. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
6c80dd4eae Spreadsheet: Fixed crash when invalid unit was given as input. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
e230f3c5e7 Spreadsheet: Expose parse error to user. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
c861505bc9 PropertyPlacement: Convert x, y, z values to Quantities when using them in expressions. 2016-04-02 12:01:04 +02:00
Eivind Kvedalen
d6052a5a27 Quantity: Added -= and += operators. 2016-04-02 12:01:04 +02:00
wmayer
0e45008f9a + rework parameter dialog 2016-04-01 15:18:56 +02:00
Yorik van Havre
f526ff8f48 Draft: small fix in snaps - issue #2487 2016-03-31 19:33:50 -03:00
wmayer
d4ec3a985a + move creation of SoFCSelection node to ViewProviderBuilder to avoid code duplication 2016-03-31 15:54:33 +02:00
wmayer
2521718820 + fix bug in GLImageBox 2016-03-31 14:14:59 +02:00
wmayer
0875dfad34 + remove unneeded namespace 2016-03-31 14:14:22 +02:00
wmayer
031711120d + improve MeshSelection class 2016-03-31 13:35:55 +02:00
wmayer
7dbcbc0f76 + check if OCCGEOMETRY is already defined 2016-03-28 11:05:51 +02:00
Ian Rees
27f12ae3de Find Netgen/nglib on MacOS with MacPorts 2016-03-28 10:48:49 +02:00
wwmayer
c69aae4b2f Merge pull request #129 from ianrrees/20160327-use-SystemExitException-code
More fixes around Python exit codes
2016-03-28 10:17:13 +02:00
Yorik van Havre
153e87d36c fixed wrong info in fcinfo tool 2016-03-28 00:27:43 -03:00
wmayer
fa77887d09 + fix issue with cursor on viewer widget, prepare code for improved event handling 2016-03-28 00:55:37 +02:00
wmayer
d43443a832 + improve GraphicsScene class 2016-03-27 16:22:30 +02:00
wmayer
7993938ab6 + delete transient directory if sub-directory fc_recovery_files is empty 2016-03-27 11:32:29 +02:00
Ian Rees
bc71c6e64b More fixes around Python exit codes 2016-03-27 13:01:04 +13:00
wmayer
b86e14afff + improve GraphicsScene class 2016-03-26 19:02:15 +01:00
wmayer
bd46939070 + make GraphicsView get working again, remove unneeded code 2016-03-26 14:30:36 +01:00
wwmayer
70eeb4b475 Merge pull request #128 from ianrrees/20160326-catch-exceptions-FreeCADCmd
Catch exceptions in FreeCADCmd like FreeCAD
2016-03-26 11:07:31 +01:00
Ian Rees
3cd752417b Catch exceptions in FreeCADCmd like FreeCAD 2016-03-26 20:49:47 +13:00
wmayer
287f3d94ca + resize scene size when resizing graphics view 2016-03-25 18:11:56 +01:00
wmayer
05ed514bcf + replace insecure x/fabs(x) with sgn function 2016-03-24 11:07:30 +01:00
wwmayer
368cd7b731 Merge pull request #125 from triplus/patch-1
Pan support (LMB + RMB) Blender navigation
2016-03-24 09:46:16 +01:00
wmayer
3af29639c6 + various minor fixes, whitespaces improvements 2016-03-23 23:28:56 +01:00
wmayer
a69ee20f0c + fix warning of unused variable
+ when clearing scene graph then also empty internal lists
+ whitespace changes
2016-03-22 19:25:38 +01:00
Yorik van Havre
9e75213c92 Document.openTransaction() now accepts unicode 2016-03-22 12:20:58 -03:00
wmayer
ff0839184b + make an option to enable C++11 support for clang 2016-03-22 12:29:17 +01:00
wmayer
6453040cd8 + fix mesh merge 2016-03-22 11:06:04 +01:00
wwmayer
9299a73cf1 Merge pull request #126 from bblacey/new-document-icons
Added osx freecad-doc.icns icon resource file.
2016-03-21 19:31:55 +01:00
wmayer
7df94ca9af + fix crash when raising SystemExitException if not called inside Python function 2016-03-21 18:50:57 +01:00
Bruce Lacey
feac22b00d FreeCADTest.py invokes sys.exit() instead of the more aggressive os._exit()
With the ability to now pass the <exitCode> from sys.exit() up the
call stack to the shell, FreeCADTest.py should use sys.exit() instead
of the more aggressive os._exit() method that does not allow for
post-exception cleanup.
2016-03-21 18:28:46 +01:00
Bruce Lacey
9816e48b07 Propagate sys.exit(code) up the call stack to the shell
SystemExitException is instantiated and thrown by Base::Interpreter
whenever the python interpreter executes a sys.exit(<exitCode>) call.
However, in the current implementation, the SystemExitException
effectively swallows the <exitCode> hence under this change,
SystemExitException has been extended to save the <exitCode> passed to
the sys.exit() call when it is instantiated and provides a new
getExitCode() accessor method to retrieve the <exitCode> in a
try/catch block.  MainGui.cpp was change to pass the corresponding
<exitCode> to the system exit() call so it is accessible in the shell.
2016-03-21 18:28:29 +01:00
wmayer
5393196c0e + add clean-up function to recovery dialog 2016-03-21 17:56:18 +01:00
Bruce B. Lacey
0f2943bde5 Added osx freecad-doc.icns icon resource file. 2016-03-20 19:51:24 -07:00
Yorik van Havre
aa83224594 Merge pull request #124 from bblacey/new-document-icons
Add high-resolution variant of FreeCAD document icon resources for al…
2016-03-20 21:41:33 -03:00
triplus
aebcea070c Pan support (LMB + RMB) Blender navigation 2016-03-20 20:24:17 +01:00
Bruce B. Lacey
4ac1e89b65 Add high-resolution variant of FreeCAD document icon resources for all platforms
We did not have document icons defined for OS X and the existing legacy
icons were low resolution.  For this change, we have created a
freecad-doc.svg icon that serves as the basis for generating
platform-specific FreeCAD document icon sets for the supported
platforms.  Extended the OS X bundle definition to include the
high-resolution document icon set and regenerated the existing 64x64
Gui/Icon/freecad-doc.png from the new svg variant.
2016-03-19 19:10:13 -07:00
wmayer
c2bf2d0daa + fix build failure on Windows 2016-03-19 21:44:33 +01:00