Commit Graph

5684 Commits

Author SHA1 Message Date
wmayer
d19ada810f + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog
+ add method to make image view unclosable for user
+ fix possible crash in MeshAlgorithm::GetMeshBorder
+ fix possible crash in MeshAlgorithm::ConnectLines
2015-10-06 17:28:52 +02:00
wmayer
8284ecc8e8 + clear highlighting when re-creating shape 2015-10-06 00:19:43 +02:00
Bernd Hahnebach
abe32132e1 FEM: add brackets to print statements in CalculiX file writer 2015-10-05 18:34:07 +02:00
Bernd Hahnebach
07d733c5f8 FEM: rewriting some defs in CalculiX input file writer 2015-10-05 18:33:52 +02:00
Bernd Hahnebach
682c22701d FEM: CalculiX writer, rename elset for solid meshes 2015-10-05 18:33:33 +02:00
Bernd Hahnebach
3c6e0c83d7 FEM: add licence information to CalculiX inpwriter 2015-10-05 18:33:16 +02:00
Bernd Hahnebach
8d13a8d53f FEM: add calculiX input file comment lines to FemTest input file diff 2015-10-05 18:33:01 +02:00
Bernd Hahnebach
7f835752be FEM: visual output for beam and shellelements added 2015-10-05 18:32:38 +02:00
Bernd Hahnebach
dc045c6880 FEM: fix in ShellThicness and BeamSection 2015-10-05 18:32:18 +02:00
Bernd Hahnebach
7602c46882 Fem: fix in ShellThickness selectionobserver 2015-10-05 18:25:57 +02:00
wmayer
fa2cf93da0 + fix clang warnings, fix wrong characters 2015-10-05 17:59:19 +02:00
wmayer
949fc4860a + fix module dependency of Start and Web 2015-10-04 13:33:43 +02:00
wmayer
596275c33d + fix warnings: -Wunused-private-field and -Wtautological-compare 2015-10-04 13:27:44 +02:00
wmayer
094b3b9d70 + remove SubWindow flag on OSX to put the expression input on top and get focus 2015-10-04 12:54:25 +02:00
wmayer
964932e3df + unlimit the value for occurrences 2015-10-04 10:32:58 +02:00
wmayer
7548e4cb30 + fix clang warnings 2015-10-02 23:32:01 +02:00
wmayer
2acb38daa7 + fix clang warning: -Woverloaded-virtual 2015-10-02 20:42:16 +02:00
Przemo Firszt
17b076a0b3 Travis CI: Add internal tests
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-01 12:18:28 +02:00
wmayer
918d42c856 + fix build failure on Windows 2015-09-30 16:37:48 +02:00
Eivind Kvedalen
7bd6b63183 PartDesign: bugfix, invoke ui->spinOccurrences->apply(). 2015-09-30 15:54:19 +02:00
Eivind Kvedalen
56c95964b8 PartDesign: Replaced QuantitySpinBox by SpinBox for "occurrences" input field. 2015-09-30 15:54:19 +02:00
Eivind Kvedalen
185a0916ef SpinBox: Added expression binding functionality. 2015-09-30 15:54:18 +02:00
Eivind Kvedalen
f33ce91c8f QuantitySpinBox: Moved getIcon() and some data members to ExpressionBinding class.
Conflicts:
	src/Gui/QuantitySpinBox.cpp
2015-09-30 15:54:17 +02:00
Eivind Kvedalen
273698307e QunatitySpinBox: Removed unused code. 2015-09-30 15:54:16 +02:00
Eivind Kvedalen
d7d184e198 Removed PropertyExpressionEngine::getPaths() method. 2015-09-30 15:54:16 +02:00
Eivind Kvedalen
051ddb3f27 Added various options to silence warnings when compiling salomemesh with clang. 2015-09-30 15:54:15 +02:00
Eivind Kvedalen
082195894b Spreadsheet: Fixed too liberal decoding of cell addresses. 2015-09-30 15:54:14 +02:00
Yorik van Havre
c635e88d4e Merge pull request #54 from cpollard1001/DPIFixes
Made slight tweaks for high DPI displays
2015-09-29 23:45:32 -03:00
Jan Kantert
8875f62756 properly add layer for blocks during export 2015-09-29 10:46:36 -03:00
wmayer
6eb0442826 + always save macro before executing 2015-09-29 10:00:23 +02:00
Chris Pollard
c9456ffdc5 Made slight tweaks for high DPI displays 2015-09-28 13:42:00 -04:00
Abdullah Tahiri
e4be4f8362 Sketcher Bug fix: External geometry shown after reorient
========================================================================

Reported here:
http://forum.freecadweb.org/viewtopic.php?f=10&t=12517&p=100388#p100429

Solution:
When a sketch loses support, all external geometry is deleted right away.
2015-09-28 11:45:06 +02:00
Abdullah Tahiri
a647bf140a Sketcher: Bug fix: Building Vertex Index on Restore
===================================================

The bug was introduced by myself here:
47c0859c1b

[code]
void SketchObject::onDocumentRestored()
 {
     try {
-        rebuildExternalGeometry();
+        if(Support.getValue()) {
+            validateExternalLinks();
+            rebuildExternalGeometry();
+        }
         Constraints.acceptGeometry(getCompleteGeometry());
     }
[/code]

The issue is that "rebuildExternalGeometry" calls "rebuildVertexIndex". So for any sketch not having external geometry, if you open it, select everything and hit del, you will have a crash because
I effectively removed the creation of the index in this dossier. You won't have one if you do anything rebuilding the index before hitting del, like creating geometry, though.
2015-09-28 11:42:56 +02:00
Abdullah Tahiri
72199f6296 Bug fix: deletion of groups of external geometry
================================================

Issue reported inter alia here:
http://forum.freecadweb.org/viewtopic.php?f=10&t=12380#p99456

How to reproduce:
1. Make an external geometry hexagon (make a hexagon, pad it, make a sketch on a hexagonal face and make all the lines external geometry)
2. Box select the external lines and press "del"

On the first pressing of "del" 3 lines were deleted and 3 remained, select again, on the second press 1 remains, select again, on the last press all are deleted.

Why?
Internal and External geometry were handled together in a single set. Group deletion of geometry is effected starting from the highest index,
so that upon deleting an element, the index of the remaining elements does not change. Handling both groups together caused that the external geometry
was actually deleted on the inversed order (as they are (decreasing) negative values for representation, but increasing positive indexes in the external geometry array).

Solution:
Internal and External geometries are handled separatedly
2015-09-28 11:14:30 +02:00
wmayer
c114c648fc + use dedicated exception classes for expression and parsing errors 2015-09-27 23:17:33 +02:00
wmayer
6b67d4a4e7 + replace old C casts with static_cast in generated C++ code, remove unused parent structure of Python classes, support of -1 as return value of setCustomAttributes 2015-09-27 22:08:08 +02:00
wmayer
798f74fa7f fix warnings 2015-09-27 22:05:01 +02:00
wmayer
a535688eef + ignore color of PLY file for point clouds 2015-09-27 22:04:16 +02:00
wmayer
18434a36b9 To see if the DlgExpressionInput can be closed check if it's under the cursor
Add some test code to deal with modal dialogs on Windows
2015-09-27 16:56:44 +02:00
wmayer
7e8d4ccf13 + fix gcc warnings 2015-09-27 11:25:39 +02:00
wmayer
fa5a8aac38 + fix export of ASCII STL 2015-09-27 10:58:51 +02:00
wmayer
9b273a723b + fix transparent background for Windows systems
+ set application-wide event filter and handle mouse press events
+ fix expressPosition() to return exact position of line edit
+ fix warnings in ui file
+ use DlgExpressionInput as non-modal dialog in QuantitySpinBox
2015-09-26 19:36:11 +02:00
Stefan Tröger
4b906690b6 Enhance expression icon
- fix size and position on kubuntu
- different icon for set or unset expression for better visual feedback
2015-09-26 19:09:07 +02:00
Stefan Tröger
0ecf7762a9 Fix usability bugs of new expression input
- click on background closes popup
- size on open is now correct if expression is set initially
2015-09-26 19:09:07 +02:00
Stefan Tröger
181e90471f first take on alternative expression ui input dialog 2015-09-26 19:09:07 +02:00
Yorik van Havre
9e801f734a Merge pull request #53 from wood-galaxy/equipement-fix
Arch : Fix ViewProviderComponent if vobj have not DiffuseColor attribute
2015-09-25 15:23:55 -03:00
wood-galaxy
d785cdd99f Arch : little fix in ArchComponent 2015-09-25 20:02:38 +02:00
wood-galaxy
b5851e5299 Arch : Fix ViewProviderComponent if vobj have not DiffuseColor attribute
Comment PropertyPartShape in Equipement because it
doesn't work if base object is a solid.
2015-09-25 19:48:31 +02:00
wmayer
446cbca7d4 + fix build failure with gcc 2015-09-25 01:19:22 +02:00
wmayer
343c915569 + reimplement virtual methods in PropertyExpressionEngine 2015-09-25 00:52:44 +02:00