Commit Graph

5904 Commits

Author SHA1 Message Date
Chris Pollard
4a802befbb Made slight tweaks for high DPI displays 2015-09-28 13:42:00 -04:00
Abdullah Tahiri
94851bc14f 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
56c29e27f7 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
01ba165d9a 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
e9594501dd + use dedicated exception classes for expression and parsing errors 2015-09-27 23:17:33 +02:00
wmayer
ee28daa669 + 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
6fea753584 fix warnings 2015-09-27 22:05:01 +02:00
wmayer
0ef3a052c3 + ignore color of PLY file for point clouds 2015-09-27 22:04:16 +02:00
wmayer
cff628737b 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
cc446b1c5a + fix gcc warnings 2015-09-27 11:25:39 +02:00
wmayer
fa5b160887 + fix export of ASCII STL 2015-09-27 10:58:51 +02:00
wmayer
309373c404 + 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
98ed315b2d 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
ae033fc046 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
96998d390a first take on alternative expression ui input dialog 2015-09-26 19:09:07 +02:00
Yorik van Havre
6a93d1392d 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
c94c203843 Arch : little fix in ArchComponent 2015-09-25 20:02:38 +02:00
wood-galaxy
9b1fc9e705 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
f8d3210730 + fix build failure with gcc 2015-09-25 01:19:22 +02:00
wmayer
e786cfbc90 + reimplement virtual methods in PropertyExpressionEngine 2015-09-25 00:52:44 +02:00
wmayer
1059ff14fc + register python type if its dict doesn't exist 2015-09-25 00:51:38 +02:00
wmayer
202b51171c + improve ply support 2015-09-24 23:19:33 +02:00
Przemo Firszt
8c38e25377 Materials: Fix BOM problem in FCMat files
BOM is byte order mark and it was crashing ConfigParser:

Traceback (most recent call last):
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 109, in setEdit
    taskd = _MechanicalMaterialTaskPanel(self.Object)
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 138, in __init__
    self.import_materials()
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 264, in import_materials
    self.add_mat_dir(user_mat_dirname,
":/icons/preferences-general.svg")
  File
"/home/przemo/software/FreeCAD/build/Mod/Fem/MechanicalMaterial.py",
line 245, in add_mat_dir
    self.materials[a_path] = Material.importFCMat(a_path)
  File "/home/przemo/software/FreeCAD/build/Mod/Material/Material.py",
line 57, in importFCMat
    Config.read(fileName)
  File "/usr/lib64/python2.7/ConfigParser.py", line 305, in read
    self._read(fp, filename)
  File "/usr/lib64/python2.7/ConfigParser.py", line 512, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
<class 'ConfigParser.MissingSectionHeaderError'>: File contains no
section headers.
file: /home/przemo/.FreeCAD/Materials/AlMg3F24.FCMat, line: 1
'\xef\xbb\xbf; AlMg3F24 - 3.3535.26 - DIN 1725\n'

Reported-by: sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-24 11:07:23 -03:00
wmayer
8257751ef7 + fix clang build failure 2015-09-24 13:14:23 +02:00
wmayer
29c8e82dae + fixes unicode support in expression engine 2015-09-24 13:10:54 +02:00
wmayer
12050b4c7d + use escaped unicode for mesh import 2015-09-24 10:10:22 +02:00
Eivind Kvedalen
89df605c3b Expression editor: Qt-workaround for '='-key; compare with text() instead. 2015-09-24 09:53:14 +02:00
Eivind Kvedalen
0894d5bdae ExpressionCompleter: Skip all types of links when building completer model. 2015-09-24 09:52:45 +02:00
wmayer
10786c65b8 + support of unicode names for sketch constraints 2015-09-24 03:17:47 +02:00
Bernd Hahnebach
8e8ecdd36f FEM: icons for FemShellThickness and FemBeamSection 2015-09-23 20:11:11 -03:00
Bernd Hahnebach
705c339f21 FEM: added object FemShellThickness and FemBeamSection to enable shell and beam analysises 2015-09-23 20:11:11 -03:00
Yorik van Havre
de1bdefc7c Merge pull request #49 from pgilfernandez/pablogil-maya
New Maya navigation style
2015-09-23 20:05:05 -03:00
Yorik van Havre
2b172a9f41 Materials: Applied rockn's bugfix in material editor 2015-09-23 19:34:50 -03:00
Eivind Kvedalen
7b39e233e3 Expression parser: Fixed parsing of numbers like 2e3 (with e/E, but without decimal part). 2015-09-23 20:05:01 +02:00
Eivind Kvedalen
28fe9b481d QuantitySpinBox: Fixed placement of expression editor pop-up. 2015-09-23 18:48:22 +02:00
Priit Laes
90ccc1cee4 build: Remove unused SoQt cmake scripts 2015-09-23 12:25:43 +02:00
Priit Laes
e891ec1ba2 build: Remove unneeded f2c cmake scripts 2015-09-23 12:25:43 +02:00
Priit Laes
e4cf5fab49 build: Remove unneeded ODE configuration files 2015-09-23 12:25:42 +02:00
Przemo Firszt
e544a66086 Travis: run FreeCAD and check log against .log_errors
All phrases that should trigger test build failure should be
added to .log_errors, one per line.

Tested-by: sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-23 10:06:19 +02:00
Przemo Firszt
f85352d93d FEM: Fix file names in MechanicalAnalysis.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
d29f3fa276 FEM: FemTools - add function documentation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
8cd0939fff FEM: Update inp_file_name after base_name or working_directory change
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
cee4fc688f FEM: Fix icon names
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
9ce1020d84 FEM: Fix white spaces
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
ee7beea983 FEM: Fix file paths + tidy up naming
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
wmayer
60062892a6 + backward compatibility of Linear and Polar pattern 2015-09-22 18:04:07 +02:00
wmayer
b33be62bb6 + rename signal to signalRelabelObject and remove unused code 2015-09-22 17:13:03 +02:00
wmayer
a8507628fa Fix warnings: -Wuninitialized in expression engine 2015-09-22 10:12:17 +02:00
Mateusz Skowroński
43a4a5938c Fix files encoding. Go from ISO8859-1 to UTF-8. 2015-09-21 19:50:49 -03:00
Yorik van Havre
0ce3d46e92 Materias: Fixed small bug in material editor 2015-09-21 19:49:04 -03:00