Compare commits

...

2608 Commits

Author SHA1 Message Date
wmayer dbb4cc6415 replace insecure use of eval() with proper use of units 2019-05-11 13:02:55 +02:00
wmayer e25cd6c71b py3/py2: use exec as function 2019-05-10 19:26:12 +02:00
Yorik van Havre 1fb7ed43cf Arch: Fixed error in roof - Fixes #3864 2019-05-07 22:49:19 -03:00
Yorik van Havre ebca0c9836 Draft: Fixed 0.18.1 bug in DXF importer 2019-05-02 16:10:12 -03:00
wmayer 476b4d5f97 Py3 fix: correctly convert a Python str to const char* 2019-04-21 10:15:13 +02:00
wmayer 3450cf9860 Py3: fix reading/writing from/to OBJ file 2019-04-21 10:14:45 +02:00
wmayer 0dc75267fe fixes 0003913: libspnav crash on linux wayland during startup 2019-04-05 17:43:53 +02:00
Bernd Hahnebach f7dccfaa90 FEM: ccx tools, set back the assignment of linux and osx ccx binary path 2019-04-04 15:42:43 +02:00
lorenz 76542ae729 FEM: osx: try to fix default ccx detection 2019-04-04 15:42:24 +02:00
wmayer 55698377f9 fix crash when checking an empty error message of an exception 2019-04-04 15:37:55 +02:00
wmayer f21cbce8cd fix crash when checking an empty error message of an exception 2019-04-04 15:37:40 +02:00
Bernd Hahnebach 9152703516 FEM: Py3 fix in result reader 2019-04-04 15:37:25 +02:00
Peter Eszlari c264c76d8f Linux/appdata: generate release info 2019-04-04 15:37:09 +02:00
sliptonic d8f5560cac Path: per Werner, fixing bug for function removed from string module
in py3
2019-04-04 15:36:53 +02:00
wmayer 442e411cf0 Py3: make string concatenation to work with Py2 and Py3 2019-04-04 15:36:39 +02:00
wmayer 55080952a8 reset expressions of a property when removing it 2019-04-04 15:36:25 +02:00
wmayer f185504b4e in case object deletion fails then make sure to re-enable updates of the main window 2019-04-04 15:36:11 +02:00
wmayer 2bc3daedcc Document::breakDependency should handle exceptions to avoid to leave document in an inconsistent state 2019-04-04 15:35:57 +02:00
Craig Marshall 2cef63f8a3 Fix #2034 with more precision attempt 2 2019-04-04 15:35:43 +02:00
triplus 81a7d937bd Fix for build failure on Ubuntu 16.04 2019-04-04 15:35:12 +02:00
wmayer 64f3424cab fix mouse selection for high DPI screens 2019-04-04 15:33:10 +02:00
wmayer 64cb745ddc fixes 0003130: FreeCAD 0.17 Qt5 bugs with external display 2019-04-04 15:32:54 +02:00
wmayer 228876f8f2 improve drawing of overlay pixmaps for high DPI screens 2019-04-04 15:32:34 +02:00
Yorik van Havre 8ece48c70b Arch: Fixed materials not updating their dicts 2019-03-20 10:01:27 -03:00
Craig Marshall 690774c0ef Fixes Bug 2034. Made Part dimensional arrows proportional to line length and radius 2019-03-12 10:38:07 -03:00
Bernd Hahnebach 639a497c9d FEM: in out VTK, return obj on vtk result import 2019-03-12 10:45:58 +01:00
Bernd Hahnebach eb171db379 FEM: mesh tools, add method to find 2D zplane meshes 2019-03-12 10:45:58 +01:00
Bernd Hahnebach 6a7085fe08 FEM: material task panel, fix it when Poissons Ration is given but empty 2019-03-12 10:45:58 +01:00
Bernd Hahnebach 67a19b758a FEM: inp file export pref widget, add missing tool tip 2019-03-12 10:45:58 +01:00
Bernd Hahnebach 1a67718022 FEM: vtk file import pref widget, fix tooltip, fixes #3886 2019-03-12 10:45:57 +01:00
wmayer ec86db4bfb when saving parameters make sure document exists 2019-03-12 01:05:50 +01:00
wmayer 194f5d779e fixes 0003894: Part Thickness dialog thickness field not Expressions enabled 2019-03-12 01:04:24 +01:00
Yorik van Havre 6323069cbb AddonManager: fixed iconless button 2019-03-11 17:29:40 -03:00
wmayer 568faf67a0 0003897: 'View Sketch' button doesn't account for container transform 2019-03-11 12:54:26 +01:00
wmayer 4a1c04e059 keep selection order with Selection.getSelection() 2019-03-10 18:01:25 +01:00
wmayer 3e713d918c fixes FreeCAD segfaults when pressing 'Clear All' in Measure tasks dialogue with no opened document 2019-03-10 12:27:20 +01:00
wmayer c1c5dd9bb4 fix unicode issue on tab of StartPage 2019-03-10 11:54:05 +01:00
wandererfan ba6092502c Fix #3891 S/S Contents not displayed at load
- DrawViewSpreadsheet is empty after document load. Requires
  recompute to display s/s contents.
2019-03-09 17:41:43 -05:00
wmayer 6363c90a20 PVS: V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected. 2019-03-08 18:56:16 +01:00
wmayer 67df9f3a82 PVS: V780 non-passive (non-PDS) type cannot be copied using the memcpy function 2019-03-07 21:40:22 +01:00
Yorik van Havre 0acb6eb236 Updated offline documentation 2019-03-07 14:10:28 -03:00
wmayer 00f2bd4e62 PVS: fix some more coding flaws 2019-03-07 14:43:16 +01:00
looooo 9e86ff440f add cmake_minimum_required to top of CMakeLists.txt and increase minimum Version 2019-03-07 11:10:42 +01:00
looooo 3ad9ee6fa4 python3.7 fix 2019-03-07 11:10:42 +01:00
wandererfan b5c3ca2087 Fix derived class calls wrong parent method 2019-03-07 10:58:30 +01:00
wandererfan 7b5458b7fa Ensure ProjGroup is created before child 2019-03-07 10:58:29 +01:00
wandererfan 9a99a87a9a Replace static_cast with dynamic_cast
- replace all static_cast with dynamic_cast + error test
2019-03-07 10:58:28 +01:00
wandererfan 7189b8ebc0 Fix segfault on missing Anchor view
- test script did not create Anchor(Front) view.  DPG/DVP did not
  handle missing Anchor properly
2019-03-07 10:58:28 +01:00
wandererfan 198c2258d4 Remove superfluous updates
- under certain conditions, unnecessary screen paints
  were being performed.
2019-03-07 10:58:28 +01:00
Bernd Hahnebach e21c284472 FEM: ccx tools, add misisng new line in error output 2019-03-07 10:45:34 +01:00
Bernd Hahnebach 6ebc2423b5 FEM: ccx tools, more Python3 decode fixes 2019-03-07 10:45:33 +01:00
Yorik van Havre dcae6d027e Updated translations 2019-03-06 21:50:08 -03:00
Yorik van Havre 8f58abfd49 Tools: Updated wiki download scripts 2019-03-06 17:11:00 -03:00
Yorik van Havre 8a84875e07 Arch: Minor bugfix in IFC exporter 2019-03-06 17:04:50 -03:00
wmayer 13433f4779 fix invalid static_cast 2019-03-06 16:56:26 +01:00
triplus 10cdb56f24 Add scroll area to Draft Toolbar
Forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=3&t=34552&p=291101#p291101

issue #3881
2019-03-06 11:53:45 -03:00
Dion Moult 8d01876484 Change hotkey of of cycle snap from tab to ` to prevent clashes with current tab behaviour 2019-03-06 11:47:00 -03:00
Bernd Hahnebach 87e47df06d FEM: ccx tools, Py3 decode fix in get ccx version 2019-03-06 12:22:32 +01:00
Bernd Hahnebach fd326aebb2 FEM: ccx tools, fix missing ccx setup 2019-03-06 12:22:32 +01:00
Bernd Hahnebach 3f6149ad4a FEM: elmer solver prefs, use elmer path for elmer grid prefs 2019-03-06 12:22:32 +01:00
Bernd Hahnebach e40ee28c1d FEM: frame work solver settings, delete duplicate code 2019-03-06 12:22:31 +01:00
Bernd Hahnebach 2e1e942a9b FEM: ccx tools solver task panel, fix editor prefs 2019-03-06 12:22:31 +01:00
wmayer c3fb5edc41 allow to define custom background images 2019-03-06 11:09:14 +01:00
wmayer 55160676d3 fixes 0003880: list of languages is not sorted in the preferences settings 2019-03-05 17:50:15 +01:00
Bernd Hahnebach 19a62a44ea Material: editor code formating, white space and remove new lines 2019-03-05 13:43:20 +01:00
triplus b5bd2e3405 Image workbench missing icons 2019-03-05 13:41:33 +01:00
wmayer 1daa0aa79c improve Copy&Paste handling in Python console 2019-03-05 10:20:50 +01:00
Bernd Hahnebach 56cc7e7913 FEM: analysis member, get rid of duplicate code in getting the analysis mesh 2019-03-04 22:15:44 +01:00
Bernd Hahnebach e606062f4c FEM: solver tasks, use FreeCAD instead of App 2019-03-04 22:15:44 +01:00
Bernd Hahnebach 7a2398ee80 FEM: solver framework, use small written modul import names in tasks 2019-03-04 22:15:44 +01:00
Bernd Hahnebach 79f9c21379 FEM: analysis, allow result meshes to be analysis member for making an analysis 2019-03-04 22:15:44 +01:00
Bernd Hahnebach e21423836a FEM: purge results gui tool, make it active if only result meshes are left in an analysis 2019-03-04 22:15:44 +01:00
Bernd Hahnebach 185098a911 FEM: result tools, delete result meshes on result purging too 2019-03-04 22:15:43 +01:00
Bernd Hahnebach 445f747378 FEM: ccx tools, delete duplicate code 2019-03-04 22:15:43 +01:00
Bernd Hahnebach e8044ac2cc FEM: ccx tools solver task panel, add missing check analysis type 2019-03-04 22:15:43 +01:00
Bernd Hahnebach 0b5cc822e8 FEM: examples, update solver obj of 3D example 2019-03-04 22:15:42 +01:00
Bernd Hahnebach f839b136d1 FEM: examples, update solver obj of 2D example 2019-03-04 22:15:42 +01:00
Bernd Hahnebach 56056a491d FEM: unit tests, add tests for von mises and prinzipal stress calculation 2019-03-04 22:15:42 +01:00
Yorik van Havre 3ca714670f Draft: Fixed failing dimension snap tool 2019-03-04 15:54:51 -03:00
wmayer 16a84b9605 add some comments 2019-03-04 19:25:43 +01:00
wmayer f24bed170a fix navigation with Tab or Shift+Tab in property editor 2019-03-04 19:15:53 +01:00
wmayer f29df543c2 remove unused controls from General preference page 2019-03-04 15:18:05 +01:00
wmayer 28b195d6e2 PVS issues:
consistently define copy constructor and assignment operator
remove superfluous casts
initialize member variables in constructor
avoid double assignment
2019-03-04 11:53:49 +01:00
wmayer d28e6a6ae7 hide some controls from preferences pages that are not implemented yet 2019-03-03 22:49:24 +01:00
wmayer 2b0d3477cb fix copy-constructor of Path::Area class 2019-03-03 15:51:07 +01:00
wmayer a604dab0b8 cannot use null pointer as target for strcpy 2019-03-03 15:39:38 +01:00
wmayer b1909bff4d PVS: V519 The 'keepExplicitPlacement' variable is assigned values twice successively. 2019-03-03 15:24:17 +01:00
wmayer 519849de89 fix -Wmaybe-uninitialized 2019-03-03 15:04:24 +01:00
wmayer 34e09b9af3 fix document observer classes to allow to run unit tests multiple times 2019-03-03 13:57:24 +01:00
luz.paz 9079de7516 Material: fix typos
Found via codespell
Thought this would merit a pre-0.18 release commit because of `./src/Mod/Material/StandardMaterial/TEMPLATE.FCMat`
2019-03-02 18:11:45 -05:00
Yorik van Havre ad28ba5095 Tools: Fixed bug in FreeCAD.ts generation 2019-03-02 19:32:10 -03:00
Yorik van Havre a70a82e19f Revert "Merged crowdin translations" for investigation due to some problems found in the translation files...
This reverts commit 9032c4c587.
2019-03-02 19:17:44 -03:00
wmayer 58aa9b183e fixes 0003876: Spreadsheet WB does not respect number of decimal settings
fixes 0003875: Spreadsheet workbench does not respect locale for decimal separator
2019-03-02 23:07:49 +01:00
Bernd Hahnebach 039ed11e84 Material: card tools, update ods and csv 2019-03-02 18:13:11 +01:00
Bernd Hahnebach ce4413e7a4 Material: cards, add group sections to all cards, by rewriting them once again 2019-03-02 18:13:11 +01:00
Bernd Hahnebach ac51fb35a7 Material: cards, rewrite all cards with card writer 2019-03-02 18:13:11 +01:00
Bernd Hahnebach 6a3a3f9f3e Material: mat module, write all cards def, add a parameter to not write the template card, which is active by default 2019-03-02 18:13:10 +01:00
Bernd Hahnebach 93456fda4c Material: card writer, get rid of double new line on file end 2019-03-02 18:13:10 +01:00
Bernd Hahnebach e481af1369 Material: card writer, better meta comments 2019-03-02 18:13:10 +01:00
Bernd Hahnebach f8771be49a Material, card writer, add parameter to switch off group section writing (it is how material cards look like ATM) 2019-03-02 18:13:09 +01:00
Bernd Hahnebach 83a40a3273 Material, card writer, move comment 2019-03-02 18:13:09 +01:00
Bernd Hahnebach 1f2e0fb9e5 Material: card writer, add white spaces around = 2019-03-02 18:13:09 +01:00
Bernd Hahnebach cf7df30f0f Material: card template, add group sections 2019-03-02 18:13:09 +01:00
Bernd Hahnebach 910753def0 Material: card template, white space 2019-03-02 18:13:09 +01:00
Bernd Hahnebach 34cd6733fb Material: card template, update some descriptions and links 2019-03-02 18:13:08 +01:00
Bernd Hahnebach db027538dd Material: card template, move property link comment in a separat line 2019-03-02 18:13:08 +01:00
Bernd Hahnebach 4e788b40ff Material: card template, update localized property comments 2019-03-02 18:13:08 +01:00
Bernd Hahnebach dfc4ac5ceb Material: card template, update unit description 2019-03-02 18:13:08 +01:00
Bernd Hahnebach 49707de57a Material: cards and templates, sort and move all rendering and vector rendering group attributes 2019-03-02 18:13:08 +01:00
Bernd Hahnebach 025ec48c8b Material: cards and templates, sort and move all architecture group attributes 2019-03-02 18:13:07 +01:00
Bernd Hahnebach c942ab71c5 Material: cards and templates, sort and move all thermal group attributes 2019-03-02 18:13:07 +01:00
Bernd Hahnebach 6f6735f9a8 Material: cards and templates, sort and move all mechanical group attributes 2019-03-02 18:13:06 +01:00
Bernd Hahnebach 68e23b6814 Material: cards and templates, sort and move all general group attributes 2019-03-02 18:13:06 +01:00
Bernd Hahnebach d0098ff966 Material: cards and templates, sort and move all cost group attributes 2019-03-02 18:13:05 +01:00
Bernd Hahnebach 90d789e393 Material: card tools headers, add missing property polish name 2019-03-02 18:13:05 +01:00
Bernd Hahnebach f8a5d278a1 Material: card tools headers, delete old depretiated property enlargen 2019-03-02 18:13:05 +01:00
wmayer 8da09b30e7 fix restoring sketch 2019-03-02 16:23:40 +01:00
wmayer 337c9c936f fix various flaws detected by PVS 2019-03-01 22:52:41 +01:00
Yorik van Havre 9032c4c587 Merged crowdin translations 2019-02-28 21:53:37 -03:00
wmayer 5791c341be fix -Winconsistent-missing-override 2019-02-28 23:30:56 +01:00
wmayer fcd3fe0a46 fix -Winconsistent-missing-override 2019-02-28 23:17:20 +01:00
wmayer 2ccffbe406 fix -Winconsistent-missing-override 2019-02-28 22:55:46 +01:00
wmayer f9d30cdc7c fix typo in German translation 2019-02-28 22:15:55 +01:00
wmayer 59a0144a4f fix saving view provider attributes for Copy&Paste or Duplicate selection 2019-02-28 18:48:30 +01:00
kazan417 979177deb1 Fix cut an object with a plane feature translation
Fix not worked translation for cut an object with a plane feature in arch module.
Without this fix cut an object with a plane does not work in languages different to English.
Similar bugs was fixed earlier, but this was harder to find because of initially grayed out feature.
2019-02-28 14:43:08 -03:00
triplus b0d83f3c5e Optional ClearMenuBar parameter
Forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=34&t=34366

P.S. Note that some mixed line endings were detected in this file and were normalized automatically.
2019-02-28 03:15:13 +01:00
wmayer 10c745175f support Del shortcut in several PD task dialogs 2019-02-27 13:36:45 +01:00
wmayer 070a153757 fixes 0003865: non-ASCII characters incorrectly displayed in material cards
The combination Py2+Qt5 already worked, this change now fixes the combinations Py2+Qt4 and Py3+Qt5
2019-02-26 19:26:00 +01:00
easyw 29ae44e083 fixing kicad StepUp wiki page link 2019-02-26 14:40:02 -03:00
wmayer d3e008e46c fixes 0003860: Debian bug #920971 - C++ exception on DXF import 2019-02-25 23:46:31 +01:00
wandererfan be45d5e7ba Implement kb scroll and pan 2019-02-25 17:52:46 +01:00
wandererfan 1c209d423f Implment ctl+/- zoomin on Page 2019-02-25 17:52:46 +01:00
Bernd Hahnebach f572207cdf FEM: ccx input writer, cut seconds output by 2 decimals 2019-02-25 17:50:50 +01:00
Bernd Hahnebach 3a472131af FEM: ccx tools task panel, use ccx tools method to find ccx binary 2019-02-25 17:50:50 +01:00
Bernd Hahnebach 972bb5ee1b FEM: ccx tools solver task panel, switch to self.fea instead of lots of fea instances 2019-02-25 17:50:49 +01:00
Bernd Hahnebach 91a1a4b6d6 FEM: ccx tools, find analysis if not given and there is only one in document 2019-02-25 17:50:49 +01:00
Bernd Hahnebach 3f8c524609 FEM: ccx tools, do not run all init methods on fea init 2019-02-25 17:50:49 +01:00
Bernd Hahnebach 21e1a89fc7 FEM: ccx tools solver task panel, update to new ccx tools working dir setting def 2019-02-25 17:50:49 +01:00
Bernd Hahnebach 5e57de60d7 FEM: ccx tools, do not create the working dir if it does not exist 2019-02-25 17:50:49 +01:00
Bernd Hahnebach 9ae07756c7 FEM: ccx tools unit tests, explicit create the working directory for all tests 2019-02-25 17:50:49 +01:00
Bernd Hahnebach 13a4ccc386 FEM: solver framework, fix pref group of working dir 2019-02-25 17:50:48 +01:00
Bernd Hahnebach 18c9046cef FEM: general prefs, some typos and better text 2019-02-25 17:50:48 +01:00
wmayer 85da6c363d make Del shortcut working again in Sketch edit mode 2019-02-25 17:17:32 +01:00
wmayer d3631968ab add method to Python interface to get reflect lines of a shape 2019-02-25 10:50:38 +01:00
wmayer e3d63493c7 fixes 0003061: 'Move object after other object' function causes chaos 2019-02-24 14:04:42 +01:00
wmayer 4e973324ae when restoring object then only expand single items, not its parent items 2019-02-24 00:37:53 +01:00
wmayer a4e46d1fa1 Undo/Redo of renaming an object via context-menu 2019-02-23 22:26:21 +01:00
wmayer 0852dde409 fixes 0003807: STEP export with BaseFeature does not hide BaseObject 2019-02-23 19:43:35 +01:00
wmayer 4765b7e2fe fixes 0003848: Preferences dialog not fully visible 2019-02-23 16:28:39 +01:00
wmayer bd89326d06 avoid using hard-code precision when writing double to streams 2019-02-23 14:58:41 +01:00
wmayer 183cd16263 Fix precision of NumberExpression when writing to a string (reverts a3af2902ef)
See also: https://forum.freecadweb.org/viewtopic.php?f=3&t=34392
2019-02-23 14:34:14 +01:00
wmayer 564d41d835 fixes 0003524: The PartDesign hole feature should respect the Reverse property and provide a checkbox in the panel 2019-02-22 21:10:05 +01:00
wmayer 2631df09c0 correctly handle again NotImplementedError in Python view providers 2019-02-22 13:26:33 +01:00
wandererfan 77b22f4f30 Fix bad highlight position in Detail from ProjGroup 2019-02-22 11:55:21 +01:00
wandererfan 8b8f96b930 Fix Selection center marks
- CenterMarks were difficult to select due to small
  pick radius.  Pick radius is now an adjustable
  parameter.
2019-02-22 11:55:21 +01:00
wandererfan c940081de1 Allow Section of unfused Source
- ViewSection required Source shapes to be fused before performing
  the section cut.  This caused some Edges to not be shown in the
  result.  An option to not fuse the Sources has been added.
2019-02-22 11:55:20 +01:00
wmayer b9b0a973e4 fixes 0003819: no proper input for contact stiffness 2019-02-22 11:51:57 +01:00
wmayer f6d9ec8568 fix creation of filter list for export dialog 2019-02-21 23:03:47 +01:00
Bernd Hahnebach 397418078a Material: card tools, update csv and ods 2019-02-21 21:53:04 +01:00
Bernd Hahnebach 638988f589 Material: cards, some fixes in generic cards 2019-02-21 21:53:04 +01:00
wmayer 2fcb7cb644 fixes 0003805: After 'Create a hole with the selected sketch' the model disappears 2019-02-21 18:49:00 +01:00
wmayer e55b718cd6 fixes 0003694: Part->Boolean->Cut should show error message if a non-solid (Shell, etc.) is selected 2019-02-21 16:55:59 +01:00
Bernd Hahnebach 56fb560e4f Material: cmake, add the new generic cards 2019-02-21 13:51:44 +01:00
Bernd Hahnebach 0061ea743b Material, card tools, update csv and ods 2019-02-21 13:51:44 +01:00
donovaly b686b43b9d Material: cards, fix name and licence of the new cards 2019-02-21 13:51:44 +01:00
donovaly 744ab56576 Material: cards, add some new cards 2019-02-21 13:51:43 +01:00
donovaly 9249db9f4c Material: cards, add some properties to some cards 2019-02-21 13:51:43 +01:00
donovaly 7fd66a11bf Material: card tools, add some cards and change properties of some cards by adding csv and ods files 2019-02-21 13:51:43 +01:00
Bernd Hahnebach 7249a15165 Material: editor, sort cards in combo box 2019-02-21 13:51:43 +01:00
Bernd Hahnebach f8c6bc6312 Material: editor, some comments 2019-02-21 13:51:43 +01:00
Bernd Hahnebach cad3019da5 Material: card parser, more important comments 2019-02-21 13:51:43 +01:00
Bernd Hahnebach e448ac66fb Material: template card, fix some properties 2019-02-21 13:51:42 +01:00
wmayer 66da83ef92 fixes 0003605: Scrolling on length inputs with Building Euro unit system has max value 2019-02-21 13:30:13 +01:00
wmayer 9d87d13dd2 fixes 0003843: registration of pointer in navigation cube/cluster is off, makes clicking difficult (fixed by garya) 2019-02-20 17:39:53 +01:00
wmayer 2e8412f684 fix position of version number in splash screen 2019-02-20 14:05:13 +01:00
Yorik van Havre 21dc8c5054 Arch: Fixed remaining encoding problems - issue #3827 2019-02-19 20:03:51 -03:00
Yorik van Havre 187988b64b Draft: Fixed move/rotate of objects inside PArt containers - fixes #3485 2019-02-19 19:55:20 -03:00
Yorik van Havre 3fc17edb41 Draft: Removed leftovers from DraftTools in DraftGui 2019-02-19 19:53:14 -03:00
wmayer c215a2aa2c fix inheritance of PartPy 2019-02-19 23:21:35 +01:00
SmuSmu acdd4b097b Update FreeCAD_WindowsInstaller.nsi 2019-02-19 22:32:03 +01:00
SmuSmu 723f1cf2c5 parameter for silent install was wrong
parameter for silent install was wrong
2019-02-19 22:31:53 +01:00
wmayer a6a9c15c4c disable commit e3793e6c 2019-02-19 22:28:46 +01:00
wmayer afc44af3e9 In boolean task panel show labels not internal names, fix adding/removing bodies 2019-02-19 20:49:14 +01:00
wmayer 997d1d7d51 fixes 0003846: unexpected result in building RuledSurface 2019-02-19 15:53:39 +01:00
wandererfan dace2f39cf Fix ShapeString attachment to Face 2019-02-19 10:32:46 -03:00
triplus 99b289e541 Start module Py2 encoding
https://forum.freecadweb.org/viewtopic.php?p=287690#p287600
2019-02-19 10:31:00 -03:00
wandererfan dca9120de7 Fix PDF orientation for ANSI B Landscape
- PDF exports in landscape orientation on ANSI B (Ledger) paper
  were formatted as landscape, but on portrait paper orientation.
2019-02-19 10:27:59 -03:00
Bernd Hahnebach 7642214958 Material: card tools, update csv and ods 2019-02-19 10:27:26 -03:00
Bernd Hahnebach 9c545b1883 Material: cards, remove non standard language info 2019-02-19 10:27:26 -03:00
Bernd Hahnebach b80d1887c3 Material: cards, fix some card names inside the cards 2019-02-19 10:27:26 -03:00
Bernd Hahnebach 7ab47cd6a6 Material: cards, remove spcific price values 2019-02-19 10:27:26 -03:00
Bernd Hahnebach 328c1a937a Material: card template, fix card name 2019-02-19 10:27:26 -03:00
Bernd Hahnebach 80af7c6b60 Material: card template, add missing properties 2019-02-19 10:27:26 -03:00
Bernd Hahnebach 1c44504a27 Material: card template, delete duplicate property for thermal expansion coefficient 2019-02-19 10:27:26 -03:00
Bernd Hahnebach a79624c6a7 Material: mat card template, adapt units from FreeCAD unit system 2019-02-19 10:27:26 -03:00
Bernd Hahnebach a1ba550301 Material: card tools, add missing properties 2019-02-19 10:27:26 -03:00
Bernd Hahnebach 899f3df2fe Material: card header, use the same header in all code files 2019-02-19 10:27:26 -03:00
Bernd Hahnebach 1b69cc58a1 Material: tools, add def to read and write a bunch of mat cards 2019-02-19 10:27:26 -03:00
wmayer e3793e6c88 use format options when using repr() on a quantity 2019-02-19 13:46:22 +01:00
wmayer 638845a6f0 fixes 0003845: unwanted rounding for dimensions of subtractive shapes in task dialog 2019-02-19 09:50:12 +01:00
Yorik van Havre 60d6a21493 Draft: better handling of non-closing paths in SVG import - issue #2488 2019-02-18 23:22:31 -03:00
wmayer a12f4f364f fixes 0003823: FEM, unusable material property changing when using task panel 2019-02-18 23:26:00 +01:00
triplus 68e7975157 Icon themes support for draft tray and snap 2019-02-18 10:11:25 -03:00
wmayer 90c80f83fd PVS: V522 There might be dereferencing of a potential null pointer 'Py::Vector2d().getCxxObject()' 2019-02-18 00:00:10 +01:00
wmayer b842274386 PVS: V783 Dereferencing of the invalid iterator 'b' might take place. 2019-02-17 22:39:13 +01:00
wmayer f0320d954a PVS: V629 Consider inspecting the 'col.red() << 24' expression. Bit shifting of the 32-bit value with a subsequent expansion to the 64-bit type. 2019-02-17 22:27:00 +01:00
wmayer 2bb5797568 PVS: V595 The pointer was utilized before it was verified against nullptr 2019-02-17 20:55:52 +01:00
wmayer 1e343d339f PVS: V779 Unreachable code detected. It is possible that an error is present. 2019-02-17 20:12:56 +01:00
wmayer 239c20b71f PVS: V705 It is possible that 'else' block was forgotten or commented out, thus altering the program's operation logics. 2019-02-17 19:54:24 +01:00
wmayer 493a144080 PVS: The 'then' statement is equivalent to the 'else' statement. 2019-02-17 19:52:35 +01:00
wmayer 67020fffef PVS: V735 Possibly an incorrect HTML. 2019-02-17 19:49:06 +01:00
wmayer ffaf1c9b76 V1028 Possible overflow. Consider casting operands, not the result 2019-02-17 19:31:02 +01:00
wmayer f160cc7854 PVS: V773 A memory leak is possible 2019-02-17 19:17:02 +01:00
wmayer 3845350c0a PVS: V773 A memory leak is possible 2019-02-17 18:40:06 +01:00
wmayer f581d5c8cb PVS: V560 A part of conditional expression is always true 2019-02-17 13:56:48 +01:00
wmayer b52f8d1e1d PVS: V730 Not all members of a class are initialized inside the constructor 2019-02-17 11:49:51 +01:00
wmayer 4e42e42957 PVS: Not all members of a class are initialized inside the constructor 2019-02-17 11:04:33 +01:00
wmayer a73b10203a fixes 0003825: file location not stored when opening/saving materials 2019-02-16 22:53:54 +01:00
furti b8da380ef4 Set window visibility based on wall
Previously windows attached to walls were not hidden or shown when the
visibility of the wall changed. This commit searches for all windows
that are based on the wall and hides or unhides them.

https://forum.freecadweb.org/viewtopic.php?f=23&t=34166

fixes 3833
2019-02-16 19:31:16 -02:00
wmayer 5f4deea7c9 fixes 0003794: Shortcut-Key is executed in edit field of a constraint (Combo View) 2019-02-16 21:53:23 +01:00
wmayer 36dc7b4242 issue 0003832: Editing thickness in Part or PartDesign resets join type to always being Arc 2019-02-16 16:30:46 +01:00
wmayer 7da9b674fc issue 0003832: Editing thickness in Part or PartDesign resets join type to always being Arc 2019-02-16 15:56:46 +01:00
wmayer 6704887afa fixes 0003838: missing tooltip in mesh preferences dialog 2019-02-16 15:07:52 +01:00
wmayer 506048a6f9 fixes 0003837: missing tooltip in STEP preferences dialog 2019-02-16 14:51:42 +01:00
wmayer 04bc3f817a fixes 0003840: Sketcher WB: units not completely hidden 2019-02-16 14:10:37 +01:00
wmayer 645b397dda fixes 0003804: FC becomes unusable after double-cicking on FEM elements while clip view is active 2019-02-15 23:30:18 +01:00
Abdullah Tahiri 88228d6d25 Fixes #3762 2019-02-15 19:08:44 +01:00
Bernd Hahnebach 4ff8995167 Material: editor, white spaces 2019-02-15 19:02:43 +01:00
Bernd Hahnebach ef79d20bfa Material, mat card writer, do not write empty sections 2019-02-15 19:02:43 +01:00
Bernd Hahnebach 07f7a04d61 Material: card tools, update csv and ods 2019-02-15 19:02:42 +01:00
Bernd Hahnebach 1e631eed1f Material: mat cards, add unit to shear modulus 2019-02-15 19:02:42 +01:00
Bernd Hahnebach 587b0a79ee Material: editor xml prop file, add shear modulus 2019-02-15 19:02:42 +01:00
Bernd Hahnebach 44a1298b80 Material: mat cards, fix a unit in an Aluminium 2019-02-15 19:02:42 +01:00
wmayer e9434d5023 in selection dialog also offer planar shape binders 2019-02-15 18:45:45 +01:00
Yorik van Havre 60f91fbef2 Draft: Fixed non-GUI issues - Fixes #3826 2019-02-14 22:18:41 -02:00
wandererfan 21353779d9 Fix Dimension Text Color
- Dimension text did not respect Color property setting.
2019-02-14 21:14:11 +01:00
wandererfan 9207e2ef7d Fix Dim text position for some DistanceX
- Dim text position was affected by point selection order
  when distance was no horizontal.
2019-02-14 21:14:11 +01:00
wandererfan a2bca22fc9 Fix #3800 Connect TD export to FC Gui Export
- TD did not define export types for the general Export
  command in Gui.
2019-02-14 21:14:11 +01:00
wandererfan 4ced49da81 Fix update of children on parent LockPosition change 2019-02-14 21:14:11 +01:00
wandererfan 41ab00c116 Restore secondary ortho view movement to v017 style
- this should also complete the fix for #3809
2019-02-14 21:14:11 +01:00
wandererfan a0e3ab1a40 Fix #3810 X/Y Property Update on Locked View
- fixes x/y update when position locked for simple
  Views and ProjectionGroups.
2019-02-14 21:14:10 +01:00
Bernd Hahnebach 97614e0341 FEM: in out, add missing new line 2019-02-14 21:11:24 +01:00
Bernd Hahnebach ce5757e1a6 FEM: material task panel, white space 2019-02-14 21:11:23 +01:00
Bernd Hahnebach b1efdf9c6a Material: card templates, remove wrong shear modulus name modulus of share and update materials csv and ods 2019-02-14 21:11:23 +01:00
Bernd Hahnebach ac0fc4d13c Material: mat cards, fix shear modulus name in all cards 2019-02-14 21:11:23 +01:00
Bernd Hahnebach 43ef43c3e2 Material: card templates, fix name of property shear modulus 2019-02-14 21:11:23 +01:00
Bernd Hahnebach 00007327c4 Material: editor, get rid of duplicate unit definition
- in mat editor xml file and in FreeCAD unit system
- remove it from material editor xml file and get it from FreeCAD unit system
2019-02-14 21:11:23 +01:00
Bernd Hahnebach 96a1007eae Material: editor dict file, fix some units 2019-02-14 21:11:22 +01:00
Bernd Hahnebach 57a0acffc0 Units: add various Material stress properties 2019-02-14 21:11:22 +01:00
wmayer 4bfe11ff43 improve calltips windows for Py2 2019-02-14 15:58:23 +01:00
Yorik van Havre c648b0e874 Material: Provisorily hide preview fields while mat preview is not implemented 2019-02-14 10:49:24 -02:00
wmayer 7d0e06c961 only allow 7-bit ASCII for IGES and STEP header information 2019-02-14 12:05:55 +01:00
wmayer 1a68b75a4b fix possible infinite loop when transcoding from/to UTF-8 2019-02-14 11:06:30 +01:00
wmayer ad51185280 print additional information to std::cout about ocaf structure 2019-02-13 17:54:54 +01:00
triplus 43b081947f Improved icon themes support 2019-02-13 10:42:46 -02:00
wmayer 9e7c384948 avoid possible errors with null labels 2019-02-13 11:39:25 +01:00
wmayer b4d2b9def5 fix build failure on Ubuntu Bionic 2019-02-13 10:46:55 +01:00
wmayer 3b708c7f84 by default disable the option NoSystemBackground to avoid possible OpenGL glitches 2019-02-12 21:47:50 +01:00
wmayer 0677684047 copyObject should return the clone of the passed object for recursive copies, not an arbitrary object 2019-02-12 19:40:29 +01:00
wmayer 9dfbc8f797 Py3: fix possible crash in call tips list 2019-02-12 17:14:27 +01:00
wmayer 1081403d21 Expose some standard units and quantities to Python 2019-02-12 15:12:19 +01:00
Bernd Hahnebach 7f2ad7fbbf Material: mat card parser, there are two parsers in FreeCAD, make some comments about the existance of each other 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 79b7041336 Material: tools adapt csv and ods 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 8223a5497a Material: cards, fix CardName 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 1f70b27bad Material: card steel generic, fix kg unit 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 33e40b584e Material: mat cards, add some units to all cards where missing 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 3b579190ea Material: card reader and writer, use file card name as CardName property 2019-02-12 10:17:50 -02:00
Bernd Hahnebach e0be3e474e Material: card reader, fix for values containing a = 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 76d1f0aa8e Material: card writer, some comments 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 0310bf6487 Material: card writer, better attribute classification
- move Density from General to Mechanical
- move Source from Meta to General and call it SourceURL
- add ReferenceSource to General
- move specific price, vendor and ProductURL into group cost
2019-02-12 10:17:50 -02:00
Bernd Hahnebach 3c3d9bca58 Material: card writer, do not handle source as comment in mat card 2019-02-12 10:17:50 -02:00
Bernd Hahnebach 22f59570c8 Material: card writer, move FreeCAD version info behind matcard info, std in original cards 2019-02-12 10:17:50 -02:00
Bernd Hahnebach b94ebbecc5 Material: Py3, get rid of extra bees on printing 2019-02-12 10:17:50 -02:00
wmayer fb37201299 fix build failures with newer compiler versions 2019-02-12 13:10:49 +01:00
wmayer b29209d523 enhance capabilities to render text in splashscreen 2019-02-12 13:09:51 +01:00
wmayer aee5b0213b improve exception handling if module to load a file cannot be imported 2019-02-12 13:07:48 +01:00
wmayer 0c3bfc4ff3 fix minor issues 2019-02-12 11:16:52 +01:00
Abdullah Tahiri 4e2ae6f408 Part: Rearrange inheritance not to use ArcPy
============================================

Inheritance:

Geometry
- GeomPoint
- GeomCurve (GeometryCurvePy)
- - GeomBoundedCurve (BoundedCurvePy)
- - - GeomBezierCurve (BezierCurvePy)
- - - GeomBSplineCurve (BSplineCurvePy)
- - - GeomTrimmedCurve (TrimmedCurvePy)
- - - - GeomArcOfConic (ArcOfConicPy)
- - - - - GeomArcOfCircle (ArcOfCirclePy)
- - - - - GeomArcOfEllipse (ArcOfEllipsePy)
- - - - - GeomArcOfHyperbola (ArcOfHyperbolaPy)
- - - - - GeomArcOfParabola (ArcOfParabolaPy)
- - - - GeomLineSegment (LineSegmentPy)
- - GeomConic
- - - GeomCircle
- - - GeomEllipse
- - - GeomHyperbola
- - - GeomParabola
- - GeomLine
- - GeomOffsetCurve

* Note: ArcPy is also a twinclass of c++ GeomTrimmedCurve, Python ArcPy derives from Python TrimmedCurvePy.

Same functionality as before:

>>> geometries = ActiveSketch.Geometry
>>> line = geometries[1]
>>> arc = geometries[2]
>>> line
<Line segment (-97.4389,42.4463,0) (-80.7887,44.5569,0) >
>>> arc
ArcOfCircle (Radius : 19.3111, Position : (-74.6914, -23.2165, 0), Direction : (0, 0, 1), Parameter : (1.82335, 2.71597))
>>> line.FirstParameter
0.0
>>> line.LastParameter
16.783437032695776
>>> line.setParameterRange(0,20)
>>> line.LastParameter
20.0
>>> arc.StartPoint
Vector (-79.51683708894876, -4.517938119394778, 0.0)
>>> arc.EndPoint
Vector (-92.27963885411512, -15.243140671641918, 0.0)
>>> arc.setParameterRange(1.5,3)
>>> arc
ArcOfCircle (Radius : 19.3111, Position : (-74.6914, -23.2165, 0), Direction : (0, 0, 1), Parameter : (1.5, 3))
>>> geometries[1] = line
>>> geometries[2] = arc
>>> ActiveSketch.Geometry = geometries
>>> ActiveSketch.solve()
0
>>>
2019-02-11 19:13:55 +01:00
Abdullah Tahiri a3b93ee0eb Part: expose geometry clone support to python
=============================================

>>> geometries = ActiveSketch.Geometry
>>> geo0 = geometries[0]
>>> geo0.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1 = geo0.clone()
>>> geo1.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1.Radius = 3
>>> geo0.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo0.Radius
30.157883192724587
>>> geo1.Tag
'a2b6883e-64d6-4348-b567-8b5e0a4896a0'
>>> geo1.Radius
3.0
2019-02-11 19:13:35 +01:00
Abdullah Tahiri 0ceae9ead4 Part: Enable trimmed curves to set their parameter range, from c++ and Python
=============================================================================

>>> geometries = ActiveSketch.Geometry
>>> geo2 = geometries[2]
>>> geo2
ArcOfCircle (Radius : 27.5267, Position : (-70.4702, -31.8933, 0), Direction : (0, 0, 1), Parameter : (1.34187, 2.35619))
>>> geo2.setParameterRange(1,3)
>>> geometries[2]=geo2
>>> ActiveSketch.Geometry=geometries
2019-02-11 19:13:16 +01:00
Abdullah Tahiri 6dd192eb1e Part: Python Bounded Curve (bring in accordance with c++)
Inheritance correspondence:

Geometry
- GeomPoint
- GeomCurve (GeometryCurvePy)
- - GeomBoundedCurve (BoundedCurvePy)
- - - GeomBezierCurve (BezierCurvePy)
- - - GeomBSplineCurve (BSplineCurvePy)
- - - GeomTrimmedCurve (ArcPy)
- - - - GeomArcOfConic (ArcOfConicPy)
- - - - - GeomArcOfCircle (ArcOfCirclePy)
- - - - - GeomArcOfEllipse (ArcOfEllipsePy)
- - - - - GeomArcOfHyperbola (ArcOfHyperbolaPy)
- - - - - GeomArcOfParabola (ArcOfParabolaPy)
- - - - GeomLineSegment (LineSegmentPy)
- - GeomConic
- - - GeomCircle
- - - GeomEllipse
- - - GeomHyperbola
- - - GeomParabola
- - GeomLine
- - GeomOffsetCurve
2019-02-11 19:12:50 +01:00
wmayer 51b32d75b4 fix regression in German translation 2019-02-11 17:51:36 +01:00
wmayer 397902c205 split question text from warning text 2019-02-11 17:03:51 +01:00
luz.paz 604811596f Crowdin: cont... 2019-02-11 16:22:13 +01:00
luz.paz 112f3de671 Crowdin: Continuing to refine translation strings 2019-02-11 16:22:12 +01:00
wmayer 110f6f74a4 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] 2019-02-11 16:12:50 +01:00
Mateusz Skowroński 92614e5688 Use QHash<K,T> instead of QMap<K,T> when K is a pointer. [-Wclazy-qmap-with-pointer-key] Thanks Clazy! 2019-02-11 15:39:15 +01:00
Mateusz Skowroński fbdfe16462 Use faster form of QFileInfo(filename).exists(). [-Wclazy-qfileinfo-exists] Thanks Clazy! 2019-02-11 15:39:15 +01:00
Mateusz Skowroński 082647b2d1 Remove unused non-trivial variables. [-Wclazy-unused-non-trivial-variable] Thanks Clazy! 2019-02-11 15:39:15 +01:00
Mateusz Skowroński 317bcd59c9 Use QString's multi-arg overload to save memory allocations. [-Wclazy-qstring-arg] Thanks Clazy! 2019-02-11 15:39:14 +01:00
Bernd Hahnebach 216106e407 Material: Py3 fixes in mat card writer 2019-02-11 15:18:24 +01:00
wmayer 0c37c7f5a5 simplify creation of strings 2019-02-11 13:46:58 +01:00
wmayer 9067d6a738 simplify creation of string 2019-02-11 13:03:51 +01:00
wmayer b1d086463d Fix theoretically possible format string vulnerability 2019-02-11 11:49:12 +01:00
Yorik van Havre 2ac0851d4c Draft: Small bugfix 2019-02-09 20:37:36 -02:00
donovaly ae3b57be3b export Flattened SVG fixes for python 3
To be able to export as flattened SVG with the Conda build of FC one needs these fixes.
2019-02-09 20:01:44 -02:00
carlopav 1401c00d60 Update DraftTools.py
Updated first part of file from FreeCAD/FreeCAD
2019-02-09 20:00:38 -02:00
carlopav a23a9499bc Update DraftTools.py
Refined last commit code
2019-02-09 20:00:38 -02:00
carlopav 4f7804dc10 Update DraftTools.py
Modified arc editing:
- middle editpoint control radius
- end editpoint control first and last angle;
2019-02-09 20:00:38 -02:00
carlopav e3ab6a1e1b Update DraftTools.py
Update Edit tool to edit wall base objects.
2019-02-09 20:00:38 -02:00
furti 27a467a44b Fix missing DWG imports in ArchSectionPlane.getSVG
When a DWG file is imported into FreeCAD it gets imported as a Part
object with a compound shape. One would imagine, that such an object
should be rendered like a symbol inside a TechDraw View. But when the
imported shape is inside a SectionPlane that also contains solids, the
shape is not included in the SVG.

The problem is, that getCutShapes only uses solid shapes, when a volume
was cut before. But the imported DWG is a flat 2D object and has no solids
inside.

To fix it, the getSVG method will check if an object looks like a draft
object, meaning:
 - It has a shape
 - It has no solids
 - It has no volume

When it finds such a shape, it will treat it like a draft object. So
it is displayed like a symbol in the resulting SVG.

https://forum.freecadweb.org/viewtopic.php?f=3&t=34079
2019-02-09 19:53:54 -02:00
Yorik van Havre 7ee0e4d439 Updated master translation files 2019-02-08 19:16:21 -02:00
Yorik van Havre 4a5cf9c52f Tools: Updated translation scripts to handle only the master (untranslated) ts files 2019-02-08 19:15:56 -02:00
Yorik van Havre f14633d182 Added untranslated 'master' .ts files where missing 2019-02-08 18:50:13 -02:00
Yorik van Havre b2619e7eb7 Tools: Discard obsolete strings in translation files 2019-02-08 18:32:10 -02:00
GeneGH 09da55e90f Repair pythonopen in line 126 for Python3
Python 3 is fussy about match of data type for a file open or write. Python 2 does not seem to care if a string is written with a 'wb' indicating a binary type, but Python 3 flags it as an error.
2019-02-08 11:06:05 -02:00
furti cce889b21c Fix missing door symbols in getSVG
The ArchSectionPlane has a built in SVG Cache. But the door symbols and
a few other things are not inside the cache. This things not inside the
cache rely on the presence of a cutface. But this cutface was only built
when the cache is not available.

So the First invocation after the cache was cleared added the symbols.
The next invocations of the method, with a cached SVG did not calculate
the symbols again, because the cutfaces where missing.

This commit fixes it by calculating the cutfaces independent from the
cache.

Reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=33987
2019-02-08 11:05:17 -02:00
luz.paz d040a656b4 Typos cont. + whitespace 2019-02-08 11:01:24 -02:00
luz.paz 4cfda0c3a5 Misc. typos
Found via `codespell`
2019-02-08 11:01:24 -02:00
Dion Moult 140d085517 Move hardcoded tab shortcut for cycling elsewhere in prep for refactor 2019-02-08 10:59:26 -02:00
Dion Moult 334a2a31d0 Allow tabbing to cycle through objects to snap
To do this, the object snapping code has been refactored into a snapToObject function. This allows it to be called on different objects easily. A new base class which handles the tab event has been added.
2019-02-08 10:59:26 -02:00
Yorik van Havre 18b5f238ae Arch: Fixed py3/encoding bug 2019-02-07 21:05:09 -02:00
paullee f431226bb8 Fix Right Align Railing Offset Bug 2019-02-06 10:13:37 -02:00
rokuster 59f39e2a33 file uri instead of relative path for images
Windows conda build needs a file uri to the image. This fix needs also changes in StartPage.py
2019-02-06 10:13:11 -02:00
rokuster ddc27357f5 Fix Images Display Issues
- Replace relative Add-On Image Path with full file uri in StartPage.js file
- Fix a missing absolute file path
- Fix a duplicated data folder entry in the Resourcepath
2019-02-06 10:13:11 -02:00
Bernd Hahnebach c0e8a4f310 FEM: mechanical result object, add comment in regard of read only 2019-02-06 10:10:46 -02:00
Bernd Hahnebach 38675fb0f5 FEM: result tools, small code improvements 2019-02-06 10:10:46 -02:00
Bernd Hahnebach 8c1c221f25 Data: update FEM 3D example 2019-02-06 10:10:46 -02:00
Bernd Hahnebach d8d185fe19 Data: update FEM 2D example 2019-02-06 10:10:46 -02:00
Bernd Hahnebach 62264e69f1 FEM: import tools, code improvements 2019-02-06 10:10:46 -02:00
Bernd Hahnebach 2c0ed3c041 FEM: import tools, some comments 2019-02-06 10:10:46 -02:00
Yorik van Havre 50895db6c1 Arch: Small bugfix in spaces 2019-02-04 22:35:16 -02:00
Markus Lampert 07910613dd Restrict removal of g0 to clearance height to the engraving of the last base model. 2019-02-04 22:21:28 -02:00
Syres916 550009be14 Collada Export Py3 Fixes
To allow successful Collada Export for Py3 and Py2, tested import of DAE file with colours from Blender to ensure no regression on the import side. Note: I had to download Pycollada to enable testing in Conda build.
2019-02-04 22:20:47 -02:00
Markus Lampert e680c60def Fixed error in hole sorting algorithm when some locations have identical distances 2019-02-04 22:20:03 -02:00
Markus Lampert c98407e282 Fixed dragknife error if coordinate isn't set in command. 2019-02-04 22:20:03 -02:00
Markus Lampert dd98661de7 Fixed py3 change of return type of 2019-02-04 22:20:03 -02:00
DeepSOIC 6a4422a9b6 PartDesign: Shapebinder: fix placement
reported by koluna:
https://forum.freecadweb.org/viewtopic.php?f=20&t=33794
2019-02-04 22:19:23 -02:00
DeepSOIC 03d7b83adb PartDesign: Shapebinder: use compound instead of fusion 2019-02-04 22:19:23 -02:00
Bernd Hahnebach ebc9893512 FEM: inout tools, add some comment in the regard of NaN 2019-02-04 22:18:54 -02:00
Bernd Hahnebach ebe1a2c4a4 FEM: guiobject, fix forgoten defs on code refactor in commit 80f2ccc fixes #3814 2019-02-04 22:18:54 -02:00
Bernd Hahnebach f05d8c314a Material Editor: fix unit for specific heat, fixes #3781 2019-02-04 22:18:54 -02:00
Bernd Hahnebach eba3b95438 FEM: material task panel, fix assignment and cancel by material editor 2019-02-04 22:18:54 -02:00
Bernd Hahnebach db9b125e04 FEM: material task panel, check for None instead of not 2019-02-04 22:18:54 -02:00
Bernd Hahnebach 1f79cd7007 FEM: material task panel, some comments 2019-02-04 22:18:54 -02:00
Yorik van Havre a4d5c02d36 Arch: Fixed encoding bug in OBJ importer 2019-02-04 13:35:00 -02:00
Yorik van Havre 2c0dfda7b5 Arch: Small bugfix in IFC exporter 2019-02-04 13:25:14 -02:00
Yorik van Havre f94e76c111 Arch: Fixed duplicate IfcSurfaceStyle names in IFC export 2019-02-01 18:38:21 -02:00
Yorik van Havre ac18ec0d79 Updated translations 2019-02-01 13:54:10 -02:00
Yorik van Havre 27885764c5 Tools: Use downloaded zip file from crowdin without arguments 2019-02-01 13:53:38 -02:00
Yorik van Havre 0bed2a9c53 Git ignore crowdin zip file 2019-02-01 13:40:47 -02:00
Yorik van Havre 0cd796a0f1 Draft: Fixed UI focus in arc tool 2019-02-01 12:16:52 -02:00
Bernd Hahnebach 7e9c09b770 FEM: materials task panel, fix: if material editor was canceled the material params were set to 0 2019-02-01 11:27:48 -02:00
Bernd Hahnebach cba29e6ce6 FEM: unit tests, some defs to open the FreeCAD test files 2019-02-01 11:27:48 -02:00
Bernd Hahnebach ce86fa4365 FEM: result tools, typo 2019-02-01 11:27:48 -02:00
Bernd Hahnebach e49098824b FEM: result tools, improve stats handling 2019-02-01 11:27:48 -02:00
Bernd Hahnebach ebbe781771 FEM: import tools, displacement abs, move calculation and adding into result tools 2019-02-01 11:27:48 -02:00
Bernd Hahnebach 52aa1b24cc FEM: frd reader, delete duplicate data container 2019-02-01 11:27:48 -02:00
Bernd Hahnebach de5fcf7c19 FEM: result reading, use stress tuple for filling all stress properties 2019-02-01 11:27:48 -02:00
Bernd Hahnebach a3612b4ac9 FEM: import tools, move stats calculation into result tools 2019-02-01 11:27:48 -02:00
Bernd Hahnebach e18ed72bdf FEM: import tools, remove duplicate code, node numbers attribut has been set already 2019-02-01 11:27:48 -02:00
Bernd Hahnebach 36c7d8740f FEM: frd reader, move span calculation into fill result 2019-02-01 11:27:48 -02:00
Bernd Hahnebach 546cadebb8 FEM: frd reader, rename frd reading def 2019-02-01 11:27:48 -02:00
Bernd Hahnebach ea60b65518 FEM: result reader, better identifier name 2019-02-01 11:27:48 -02:00
Bernd Hahnebach 9604920b1e FEM: Z88 result reader, typo in error message 2019-02-01 11:27:48 -02:00
Dion Moult 10e8d1281a Fix to take into account joining an object into a closed wire. 2019-01-31 10:54:36 -02:00
Dion Moult 84f68cc266 Support splitting closed wires as well as open wires 2019-01-31 10:54:36 -02:00
Dion Moult dd3c9ccfeb Add beautiful icons thanks to bitacovir
https://forum.freecadweb.org/viewtopic.php?p=283187
2019-01-31 10:54:36 -02:00
Dion Moult 0294b55bf0 This type of tool only works on wires 2019-01-31 10:54:36 -02:00
Dion Moult 09f134d56f Add split tool 2019-01-31 10:54:36 -02:00
Dion Moult 7867864456 Make join modifier actually talk about joining 2019-01-31 10:54:36 -02:00
Dion Moult 46ffa77c32 I think being explicit is clearer, and prevents the liklihood of random falsy values 2019-01-31 10:54:36 -02:00
Dion Moult 05ec6dbde5 Add some docstrings for joinwires and jointwowires 2019-01-31 10:54:36 -02:00
Dion Moult 5e6fb09119 Now you can join multiple wires all at once 2019-01-31 10:54:36 -02:00
Dion Moult e25044d0e9 Sorry I can't believe I committed and pushed that 2019-01-31 10:54:36 -02:00
Dion Moult 882c4ca2f3 Add new draft join tool 2019-01-31 10:54:36 -02:00
Yorik van Havre 6e91ae9561 Draft: Reverted 5ccc656 2019-01-31 10:53:40 -02:00
Yorik van Havre a901f5798a Draft: edit fix for wires works for bsplines too 2019-01-31 10:53:40 -02:00
Dion Moult 49be948b45 Adding new points on wires tests the edge you clicked on instead of an overcomplicated curve parameter check
* Makes adding points on wires and closed wires simpler and more reliable
 * Minor code cleanup to reduce the nesting of "if" statements
2019-01-31 10:53:40 -02:00
luz.paz 13622cd0b8 FEM: Fix grammar 2019-01-30 11:08:03 -02:00
luz.paz 8a4af3b28c Crowdin: Sketcher/App/SketchObject.cpp elaborated term in string 2019-01-30 11:08:03 -02:00
luz.paz 69707228c5 Crowdin: Sketcher/Gui/TaskSketcherValidation.cpp fixed obsolete punct. 2019-01-30 11:08:03 -02:00
luz.paz 77102cae41 Crowdin: Sketcher/Gui/CommandCreateGeo.cpp fix typos 2019-01-30 11:08:03 -02:00
luz.paz 103c118b82 Crwodin: Sketcher/Gui/CommandConstraints.cpp s/root/origin/ 2019-01-30 11:08:03 -02:00
luz.paz 92622053ae Crowdin: Drawing/Gui/TaskOrthoViews.ui remove whitespace
Fixed even though WB is obsolete
2019-01-30 11:08:03 -02:00
luz.paz 67fff1538d Crowdin: Arch/ArchFloor.py grammar and refinement 2019-01-30 11:08:03 -02:00
luz.paz 26750deb07 Documentation: uniformity 2019-01-30 11:08:03 -02:00
luz.paz f11f2fb590 Crowdin: Draft/Resources/ui/preferences-dxf.ui grammar fix 2019-01-30 11:08:03 -02:00
luz.paz e78fd828e2 Crowdin: AddonManager/AddonManager.py fix some strings 2019-01-30 11:08:03 -02:00
luz.paz 06967e2b4d Crowdin: StartPage/TranslationTexts.py grammatical fix 2019-01-30 11:08:03 -02:00
luz.paz 3b85a067bd Crowdin: Gui/qtcolorpicker.cpp refine string 2019-01-30 11:08:03 -02:00
luz.paz 3a32c314bc Crowdin: Draft/Draft.py fix grammar 2019-01-30 11:08:03 -02:00
luz.paz 3253de75e9 Fix for a previous commits
Crowdin:  Sketcher/App/SketcherAnalysis remove newlines
Crowdin:  Part/AttachmentEditor/TaskAttachmentEditor.py fix previous commiit
Crowdin:  Gui/NetworkRetriever.cpp correct previous commit
2019-01-30 11:08:03 -02:00
luz.paz 1770117406 Crowdin: Tux/NavigationIndicatorGui.py grammar fix 2019-01-30 11:08:03 -02:00
luz.paz 582181af70 Crowdin: Part/Gui/TaskAttacher.cpp superfluous whitespace fix 2019-01-30 11:08:03 -02:00
luz.paz 845e77164b Crowdin: Part/AttachmentEditor/TaskAttachmentEditor.py whitespace fix 2019-01-30 11:08:03 -02:00
luz.paz a07e675d9e Crowdin: Gui/CADNavigationStyle.cpp refinements 2019-01-30 11:08:03 -02:00
luz.paz 4c33b114de Crowdin: PartDesign/Gui/CommandBody.cpp grammar fix 2019-01-30 11:08:03 -02:00
luz.paz bccfcfc5d7 Crowdin: PartDesign/Gui/TaskFeaturePick.ui superfluous whitespace 2019-01-30 11:08:03 -02:00
luz.paz cf75857376 Crowdin: Gui/NetworkRetriever.cpp superfluous whitespace fix 2019-01-30 11:08:03 -02:00
luz.paz adae9071ed Crowdin: Base/Exception.h uniformity fix 2019-01-30 11:08:03 -02:00
luz.paz 1db71c3c7e Crowdin: Arch/ArchStairs.py missing paranthesis fix 2019-01-30 11:08:03 -02:00
luz.paz d858a8609d Crowdin: Sketcher/App/SketchObject.cpp uniformity fix 2019-01-30 11:08:03 -02:00
luz.paz c65fce6128 Crowdin: Sketcher/App/SketchAnalysis.cpp remove superflous whitespace 2019-01-30 11:08:03 -02:00
luz.paz 95f16814f6 Crowdin: Sketcher/Gui/CommandConstraints.cpp grammar fix 2019-01-30 11:08:03 -02:00
luz.paz 90841f72c1 Crowdin: Sketcher/Gui/CommandCreateGeo.cpp typo fix 2019-01-30 11:08:03 -02:00
luz.paz 0df518db8f Crowdin: Sketcher/Gui/SketchRectangularArrayDialog.ui typo fix 2019-01-30 11:08:03 -02:00
luz.paz 16653a4be9 Crowdin: Sketcher/Gui/SketcherSettings.ui whitespace fix 2019-01-30 11:08:03 -02:00
luz.paz 83c2434bd9 Crowdin: Sketcher/Gui/CommandConstraints.cpp 2019-01-30 11:08:03 -02:00
luz.paz d5ea453f9d Crowdin: Several more various fixes 2019-01-30 11:08:03 -02:00
luz.paz e1446a0b99 [WIP] Crowdin: fixes pre-0.18 release
Includes some whitespace fixes as well
2019-01-30 11:08:03 -02:00
wandererfan 0c5629870c Hide n/a Rotation property
- DPG does not rotate, but shows Rotation property in
  Property Editor
2019-01-30 10:12:49 -02:00
wandererfan 0f00402201 Prevent selection of read only field
- "current primary view direction" in TaskProjGroup is
  read only, but can obtain focus.  This can cause events
  to be unexpectedly passed to other objects.
2019-01-30 10:12:49 -02:00
markus 0b7c0b93dc Use regular 'w' mode when writing text files for py3 compatibility. 2019-01-30 10:12:00 -02:00
Fredrik Johansson 93dd00cc39 Make startpage navigation buttons work initial load 2019-01-27 23:29:25 -02:00
carlopav 763b4f3d8c Update DraftTools.py
Small fix to edit tool when editing arcs.
2019-01-27 23:26:22 -02:00
Fredrik Johansson 5caae5f430 Fix chrash when clicking link to allow internetaccess, and not having a open document 2019-01-27 11:35:43 +01:00
wmayer f2dc59c3ab add missing header file 2019-01-27 00:05:23 +01:00
wmayer d2ddce6a2e remove Standard_OVERRIDE which is unknown for older OCCT versions 2019-01-26 23:09:14 +01:00
wmayer dbc09e3a23 fixes 0003020: 2D offset of circle are not in the right place 2019-01-26 22:52:40 +01:00
wmayer 9f96254e7e improve whitespaces 2019-01-26 22:52:40 +01:00
Yorik van Havre bf24b74629 Draft: Small fix to Edit tool 2019-01-26 18:47:51 -02:00
triplus 051454314b Extend PySide2 wrapper to support QtUiTools
Reports started to emerge as ATM importing QtUiTools doesn't work on Qt5 builds:

https://forum.freecadweb.org/viewtopic.php?f=22&t=32947
https://forum.freecadweb.org/viewtopic.php?f=37&t=33629
2019-01-25 10:37:21 +01:00
wmayer 4079c9603f fixes #0003788: Part-workbench extrude with taper angle delivers a wrong shape 2019-01-25 02:49:09 +01:00
Stian Skjelstad 80f82b59db Detection of NETGEN_VERSION is needed if using Netgen package provided cmake file too.
Do not overwrite NETGEN_VERSION that might be cached. Use a new variable instead, NETGEN_VERSION_C.

Use cmake internal system to specify std=c++14, else you can end up with  `c++ -DFOO -std=c++14 -Ibar -std=c++11`, and the latter is used.
2019-01-24 14:52:21 +01:00
Stian Skjelstad 4c38d81d90 Netgen provided cmake file, has the include directories to use in plural.
Netgen provided cmake file, and the internal detection, had different casing
for the _FOUND variable

When detecting the Netgen include-directories, we only want the /include in
addition to the global one. To include a given header file, specify which
part of the library, or use the one from the project/include directory.
2019-01-24 14:52:03 +01:00
qingfengxia 672b15a8da FEM: constraint fluid boundary, fix bug of the delayed redrawing for BoundaryType changed 2019-01-24 14:19:49 +01:00
luz.paz 2b3ea642da Crowdin: More grammatical and whitespace fixes 2019-01-24 13:30:03 +01:00
Markus Lampert 28a23c23bc Set feed rates to constructs commands for a tags. 2019-01-24 10:13:44 -02:00
Markus Lampert af4026bcd5 Added support for feeds and speeds to to cmdsForEdge. 2019-01-24 10:13:44 -02:00
wmayer dedaa80762 fixes 0003771: Memory leak in Part.Face.Surface 2019-01-23 22:38:51 +01:00
Yorik van Havre 090fc64284 Misc translation fixes from https://forum.freecadweb.org/viewtopic.php?p=281670 2019-01-23 18:20:43 -02:00
Yorik van Havre eb08c67a78 Draft: Fixed regression in snapping 2019-01-23 13:27:22 -02:00
sliptonic 96dee91d5e fixes #3665
Applying patch from jurij
2019-01-22 20:26:59 +01:00
luz.paz 16ab8d3c8a Fix source typos 2019-01-22 20:26:59 +01:00
luz.paz 86078f6bae Path: Misc. comment typo and whitespace fixes 2019-01-22 20:26:58 +01:00
wmayer ba14668e1a add method multVec to MatrixPy class for better consistency 2019-01-22 15:57:10 +01:00
Dion Moult 47a2296c69 Remove abstract IFC entities (as per IFC4 Add2) 2019-01-22 10:19:14 -02:00
wandererfan d7c22d92dd Fix Compile Warning
- m_sectionFormat is not used yet and provokes a
  warning message.
2019-01-22 10:15:04 -02:00
wandererfan 5a26558a9d Fix out of scope warnings
- Links within TD were not set to Global scope. This caused
  problems when a Page was in a container, but Views were not
  in the container.
2019-01-22 10:15:04 -02:00
Yorik van Havre 13bf2c9672 Arch: Fixed missing UIDs in IFC import 2019-01-22 00:11:49 -02:00
Yorik van Havre 3ade7b34af Arch: Fixed multiple documents open bug in Reference object 2019-01-22 00:11:11 -02:00
Yorik van Havre ca2e3c2324 Draft: Small cosmetic fix in edit points 2019-01-22 00:10:31 -02:00
wmayer 041a550815 handle also B-spline and Bezier curves in GeomCurve::closestParameter 2019-01-21 13:47:41 +01:00
wandererfan 90fd3ae483 Fix movement of Front View in ProjectionGroup 2019-01-21 11:45:30 +01:00
wmayer 99c47b9bb2 fixes 0003785: Incorrect extension FCstd instead fcstd 2019-01-21 11:41:16 +01:00
Yorik van Havre 79a25ff6bd Arch: Prevision for forward compatibility 2019-01-20 19:32:12 -02:00
Yorik van Havre 46066bc160 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2019-01-20 19:31:20 -02:00
Bernd Hahnebach 82d92280af FEM: result and mesh, add compact result and mesh, workaround for issue #2873 2019-01-20 18:40:53 +01:00
Yorik van Havre 7fd16affee Arch: Updated IFC property sets definitions 2019-01-20 15:30:54 -02:00
wmayer e385ed7809 add convenience functions to get element type to id and vice versa 2019-01-20 17:58:30 +01:00
wmayer 76c9540009 fix crash when accessing invalid group 2019-01-20 17:57:08 +01:00
sliptonic 873762ccda Path: Remove obsolete code 2019-01-19 23:31:49 -06:00
sliptonic ef87018430 crowdin: fix whitespace 2019-01-19 23:31:49 -06:00
luz.paz cb768d4087 Crowdin: Path/PathScripts/PathOp.py capitalize string 2019-01-19 23:31:49 -06:00
luz.paz b7fbd7aeff Crowdin: Path/PathScripts/PathProfileBase.py capitalize string 2019-01-19 23:31:48 -06:00
DeepSOIC 28cbe2bd89 Spreadsheet: fix #3474 cross-CS drag-drop issue 2019-01-20 00:45:49 +01:00
Kurt Kremitzki 2e03740572 Fix Start WB behavior for missing examples dir in Debian package 2019-01-20 00:36:35 +01:00
Bernd Hahnebach 2a208f9da4 FEM: file ending, use FCStd in FEM strings 2019-01-20 00:32:19 +01:00
Bernd Hahnebach d0d8b99302 FEM: unit tests, add some comments to open test files in FreeCAD 2019-01-20 00:32:19 +01:00
Bernd Hahnebach b8172a1047 FEM: test suite, use FCStd instead of fcstd, as it is what FreeCAD does on saveing a file 2019-01-20 00:32:19 +01:00
Bernd Hahnebach 969b8860f8 FEM: white space 2019-01-20 00:32:17 +01:00
Bernd Hahnebach 37389601e7 FEM: tetgen exporter, code formating pep 8 2019-01-20 00:32:17 +01:00
Bernd Hahnebach 90f4869cac FEM: code formating, space in block comment 2019-01-20 00:32:17 +01:00
Bernd Hahnebach 4b7ddfe407 FEM: file types, sort them for im- and export 2019-01-20 00:32:17 +01:00
Bernd Hahnebach 769632f33b FEM: solver settings, sort setting 2019-01-20 00:32:17 +01:00
Bernd Hahnebach 3c0193b796 FEM: cmake, sort solver modules 2019-01-20 00:32:17 +01:00
luz.paz 5e2fbe18e5 Crowdin: Remove apostrophe from TechDraw/Gui/MDIViewPage.cpp translation 2019-01-20 00:29:18 +01:00
luz.paz 4f67fae9e8 Refine TechDraw/Gui/CommandDecorate.cpp translation string 2019-01-20 00:29:18 +01:00
wandererfan 7bd3bb8371 Fix Text Literals for Translation
- these strings were noted as being difficult to
  translate on Crowdin
2019-01-20 00:29:17 +01:00
Yorik van Havre ed06cbe626 OpenSCAD: Fixed issue #3640 2019-01-18 19:58:23 -02:00
Yorik van Havre a60b6957db Arch: Axis can now be referenced in sketches 2019-01-18 17:40:50 -02:00
Yorik van Havre ae95f77f5a Draft: Fixed small bug in Snap Nearest command 2019-01-18 17:39:33 -02:00
wmayer 42d7c7afd3 disconnect boost signals when destroying tree view 2019-01-18 16:33:48 +01:00
wmayer de53904563 fixes 0002706: Box selection does not select dimension or text 2019-01-18 14:46:21 +01:00
wmayer d37dea9c74 fixes 0001673: Assign already assigned keyboard shortcuts without searching old assigned action 2019-01-18 00:55:34 +01:00
wmayer b852d1490e add method to check if key sequence is none 2019-01-18 00:54:49 +01:00
wmayer c9b4f4ba67 fix possible crash in PropertySheet when removing dependencies 2019-01-17 18:33:06 +01:00
wmayer 552ed9eab2 fixes 0002793: tube as basic solid 2019-01-17 15:37:55 +01:00
wmayer e3ec8e7004 fixes 0003776: PartDesign Hole parameters Diameter field is not unit aware 2019-01-17 14:13:51 +01:00
wmayer 0cc8efa105 simplify handling of locale specific with InputField from Python 2019-01-17 02:57:00 +01:00
wmayer fdf8fe7bc6 fixes 0003669: AddonManager should inform of the need to restart FreeCAD for changes to take effect 2019-01-16 14:47:28 +01:00
wmayer f1c23e9038 Add new display mode Wireframe & Nodes to FEM 2019-01-16 10:19:14 +01:00
wmayer 6e5369da3a fix possible double destruction when removing a group and its content from document 2019-01-16 00:35:34 +01:00
Yorik van Havre 71d57b3760 Start: Handle addons with non-standard WB name 2019-01-15 20:01:23 -02:00
wmayer bdbea25d0d issue 0003624: FEM, GUI, mesh VP, element colors 2019-01-15 21:29:47 +01:00
wmayer 9f394aa53a set name to Inventor node of display mode 2019-01-15 21:26:54 +01:00
wmayer d94fc4988e fixes 0003683: FEM, GUI, incorrect display of constraints symbols on reference shapes 2019-01-15 11:01:45 +01:00
Yorik van Havre 3f51e25b26 Start: Fixed image file paths 2019-01-14 20:20:12 -02:00
luz.paz f86f5e9272 Crowdin: Experiment to remove obsolete translations from .ts file
Crowdin currently has an issue where typo strings that have been fixed in the FC source haven't been permeating in to the Crowdin UI. This maybe do to discrepency between lupdate and crowdin.  This PR experiments with removing a few lingering obsolete translations in the main .ts file of the Arch and Path WBs. If this works then a follow-up PR will be made to remove all the rest of the obsolete strings.
2019-01-14 19:39:58 +01:00
Bernd Hahnebach 4257a4d8ba FEM: vtk tools, some comments, white spaces and changes from message to log 2019-01-14 18:10:34 +01:00
Stefan Tröger 16435205d4 FEM: vtk Post, ensure correct data visuliation with non-continious node id's, workaround for issue #3617 2019-01-14 18:10:22 +01:00
Bernd Hahnebach 17a6a9889b FEM: toolbarnames, fix wrong name for utilities toolbar 2019-01-14 18:10:12 +01:00
Bernd Hahnebach 767c7365d3 FEM: netgen mesh obj, make it a norecompute obj 2019-01-14 18:09:55 +01:00
wmayer 24f1b023ef also set default view orientation when creating document from Start workbench 2019-01-14 14:43:41 +01:00
Yorik van Havre dd7aba2f65 Draft: small bugfix in trackers 2019-01-14 11:32:34 -02:00
wmayer c601f4cb66 fixes 0003222: Invert zoom setting is not respected in paper/page mode 2019-01-14 11:08:17 +01:00
wmayer 85c7ac5abb fix build failure with old Coin3d versions 2019-01-14 10:10:15 +01:00
wmayer 53eb746e1a fixes 0003700: Tree object deletion possible with keyboard but not right-click menu in Part Design 2019-01-14 00:47:22 +01:00
wmayer 632f9cf250 fixes 0003515: Changing Name of Spreadsheet in History Tree Does Not Trigger Name Update in Tab at Bottom of 3D Window 2019-01-14 00:21:56 +01:00
wmayer 1382f83620 fixes 0003222: Invert zoom setting is not respected in paper/page mode 2019-01-13 23:29:20 +01:00
wmayer 1f5059b5b2 fix crash when removing from document and accessing Python based feature 2019-01-13 17:50:48 +01:00
wmayer b357d530ef set non-modifying functions of Python wrappers as const 2019-01-13 15:45:32 +01:00
luz.paz d0d2a05941 Crowdin: cont...
https://crowdin.com/translate/freecad/27906/en-en#6502552
2019-01-13 02:24:50 +01:00
luz.paz 0d022601f2 Crowdin: more fixes
https://crowdin.com/translate/freecad/27906/en-en#6497659
https://crowdin.com/translate/freecad/27906/en-en#6497662
https://crowdin.com/translate/freecad/27906/en-en#6497656
2019-01-13 02:24:50 +01:00
luz.paz 506741aee1 [For v0.18] Crowdin fixes
https://crowdin.com/translate/freecad/568/en-en#1172237
https://crowdin.com/translate/freecad/568/en-en#1172239
https://crowdin.com/translate/freecad/568/en-en#195053
https://crowdin.com/translate/freecad/568/en-en#1172247
https://crowdin.com/translate/freecad/568/en-en#1172249
https://crowdin.com/translate/freecad/568/en-en#1172251
https://crowdin.com/translate/freecad/6766/en-en#6511058
https://crowdin.com/translate/freecad/6766/en-en#6511060
https://crowdin.com/translate/freecad/6766/en-en#6502381
+ random typo fixes
2019-01-13 02:24:50 +01:00
wmayer 15b854b2a0 allow to set user-defined standard orientation 2019-01-13 02:21:54 +01:00
wmayer abe82e00f4 harmonize functions to set camera orientations 2019-01-12 22:59:44 +01:00
Abdullah Tahiri 7d8e566264 Sketcher: fixes #3762 2019-01-12 17:26:19 +01:00
wandererfan cec0cf9133 Fix #3763 Page Tab not removed on undo 2019-01-12 17:21:32 +01:00
wmayer 0459122c11 update PD example project 2019-01-12 16:29:40 +01:00
Yorik van Havre a32d938962 Re-added linux thumbnailer utility that had been washed out together with debian folder 2019-01-12 13:27:31 -02:00
Yorik van Havre b7bf5db527 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2019-01-12 13:26:20 -02:00
wmayer 033fce2685 support face colors when writing in OpenInventor format 2019-01-12 15:06:25 +01:00
Yorik van Havre ac097cc240 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2019-01-11 15:55:26 -02:00
Yorik van Havre 6ccc239f97 Arch: Small bugfix in ifc exporter 2019-01-10 15:33:53 -02:00
wmayer 64a94ae0f7 implement Isometric, Dimetric and Trimetric projection 2019-01-10 18:31:17 +01:00
Syres916 a69abb3b75 Py3 Fix to import Airfoil DAT files
To prevent error message as per https://forum.freecadweb.org/viewtopic.php?f=3&t=33309#p278902

As it's my first PR, I've tried to follow the advice @triplus gave in https://forum.freecadweb.org/viewtopic.php?f=10&t=30340&start=300#p279079 but please let me know if I'm not providing sufficient information.
2019-01-10 10:19:30 -02:00
Yorik van Havre a14af0f2bd AddonManager: Show warning for obsolete addons 2019-01-09 19:57:19 -02:00
wmayer 356ecd5b1b fixes #0003766: Closing and re-opening a TechDraw page causes segfault 2019-01-09 22:09:16 +01:00
wmayer f9f5b34ba7 Py3: fix saving sketch while in edit mode 2019-01-09 18:29:11 +01:00
wmayer 896aaf575f fix incorrect terminology in NaviCube, add support of isometric view 2019-01-09 14:18:26 +01:00
Yorik van Havre 9a72871137 Arch: Fixed behaviour of alternative wall icon 2019-01-09 10:28:27 -02:00
cclauss 511a9edae8 matplotlib, PySide, Shiboken, six
* https://pypi.org/project/matplotlib
* https://pypi.org/project/pyside
* https://pypi.org/project/shiboken
* https://pypi.org/project/six
2019-01-09 10:32:44 +01:00
cclauss fb08dce8d4 Create requirements.txt
__pip install -r requirements.txt__
2019-01-09 10:32:44 +01:00
cclauss c701531069 flake8 noqa a Python 3 syntax error 2019-01-09 10:31:27 +01:00
cclauss a17ca7dc05 apply() was removed in Python 3 2019-01-09 10:30:02 +01:00
Yorik van Havre 3d52e8a6b9 Arch: Fixed recursion loop in windows 2019-01-08 16:39:11 -02:00
wmayer d37d7455d0 fix double vs. float problem to solve problems in Mesh.nearestFacetOnRay 2019-01-08 19:13:50 +01:00
Yorik van Havre 89cf78b262 Arch: Fixed Reference object that cannot be deleted 2019-01-08 15:44:45 -02:00
cclauss 59731e95a8 Undefined name: to --> 'to' (again)
Just like #1884 but on a different file.
```
./src/Tools/FCFileTools.py:47:50: F821 undefined name 'to'
                print('Error copying', pathFrom, to, pathTo, '--skipped')
                                                 ^
./src/Tools/FCFileTools.py:86:54: F821 undefined name 'to'
                    print('Error copying', pathFrom, to, pathTo, '--skipped')
                                                     ^
```
2019-01-08 11:57:18 -02:00
Yorik van Havre e638705bc4 Draft: Fixed grid not appearing on working plane setup 2019-01-08 11:43:36 -02:00
wmayer 1ebcb36545 Remove decode as returned object by translate() function is a unicode oject 2019-01-08 13:23:51 +01:00
wmayer 55a4f78adf Add command to create coordinate system as datum item 2019-01-08 12:48:37 +01:00
Yorik van Havre 6efd6de4c1 Start: Show 'New' button even if recent files list is empty 2019-01-07 19:44:49 -02:00
cclauss a7c0f4bc5b Drop depencence on six module 2019-01-07 15:51:34 +01:00
cclauss 51ab27f54a Fix file, long, raw_input, and xrange for Python 3 2019-01-07 15:42:37 +01:00
easyw fdb855e366 minor fix on SVG import 2019-01-07 12:26:34 -02:00
cclauss 3c4a5389d6 Undefined name: Typo ‘newob‘ —> ‘newobj’
Discovered via #1883
2019-01-07 12:26:07 -02:00
cclauss 9af7b83538 Missing import FreeCAD and/or FreeCADGui (again) 2019-01-07 12:25:27 -02:00
cclauss cf5a045792 fast_finish: true
Mark the build as passing even if the allow_failures macOS job is still running.
* https://blog.travis-ci.com/2013-11-27-fast-finishing-builds
2019-01-07 12:13:34 -02:00
cclauss 4ccdabd004 macOS: drop the old osx_image: xcode7.3
xcode9.4 is the Travis default and 10.1 is the latest available.
* https://docs.travis-ci.com/user/reference/osx/#os-x-version
2019-01-07 12:13:34 -02:00
cclauss 05572ba49e Also run the osx build in allow_failures mode
This let's us see where things are failing without failing the entire Travis build.
* https://docs.travis-ci.com/user/customizing-the-build/#rows-that-are-allowed-to-fail
2019-01-07 12:13:34 -02:00
cclauss f503314132 Travis CI: matrix: allow_failures: python: 3.7 2019-01-07 12:13:34 -02:00
cclauss b7ccf8da00 Travis CI: The real Python 3.7 in a separate parallel run 2019-01-07 12:13:34 -02:00
cclauss bdc0509372 python3 -m pip install flake8 2019-01-07 12:13:34 -02:00
cclauss 53a2feb6c0 Travis CI: Use flake8 to find Python syntax errors 2019-01-07 12:13:34 -02:00
Yorik van Havre 59eb1735bc Arch: Fixed wrong movement of references on reload 2019-01-07 11:19:32 -02:00
Yorik van Havre e10e90516e Draft: Fixed wrong Qt import 2019-01-07 11:18:49 -02:00
Yorik van Havre a9f1a0c4e2 AddonManager: Don't overwrite displayed text after a module install/removal 2019-01-06 22:26:03 -02:00
wmayer 1a8d3a7030 make handling more user-friendly if Sketch is outside of Body object 2019-01-06 22:43:14 +01:00
Przemo Firszt 0136445404 Fix medfile loction on different versions of fedora
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2019-01-05 19:58:33 +01:00
Przemo Firszt 744f381d5d Tidy up BuildRequires in fedora spec
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2019-01-05 19:58:33 +01:00
Przemo Firszt a07d1af088 Add med to fedora spec file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2019-01-05 19:58:33 +01:00
wmayer a395c570f8 respect transparency when setting color per face 2019-01-05 19:50:12 +01:00
lorenz ab1f4c442d py3: AddonManager-macro: use unicode
proposal from here: https://forum.freecadweb.org/viewtopic.php?f=3&t=33172&start=10#p278156
2019-01-05 14:50:25 +01:00
wmayer 2c3268f9f6 Py3: use feature detection instead of version detection 2019-01-05 13:11:04 +01:00
Markus Lampert 381f087536 Using fixed size images for qt5/4 compatibility 2019-01-05 12:30:41 +01:00
Markus Lampert 81729f6621 Setting fixed size for tool images 2019-01-05 12:30:41 +01:00
Markus Lampert 6e0a5580b8 Fixed Queue import for py3 2019-01-05 12:30:41 +01:00
Markus Lampert cd1ebb1732 Fixed indexing dictionary keys 2019-01-05 12:30:40 +01:00
cclauss d33098860d Fix TabError for Python 3
Was split out of #1885...
```
./src/Tools/ArchiveNameFromVersionHeader.py:41:34: E999 TabError: inconsistent use of tabs and spaces in indentation
	version['FCRepositoryHash'] = SHA
                                 ^
```
2019-01-05 12:20:49 +01:00
Bernd Hahnebach ade267b8f6 Arch: import ifc, code formating, flake8, only the most important ones 2019-01-05 12:17:52 +01:00
Bernd Hahnebach bc31a9afcd Material: code formating, flake8 2019-01-05 12:17:52 +01:00
Bernd Hahnebach b3de953c18 Material: code formating, file beginnings Python block comment with space, flake8 E265 2019-01-05 12:17:52 +01:00
Bernd Hahnebach 86c7a85e3c FEM: code formating, flake8, make line breaks before binary operator, it really reads better :-) 2019-01-05 12:17:51 +01:00
eszlari 19cd5690e7 XDGData: remove CMAKE_CURRENT_SOURCE_DIR 2019-01-05 12:15:58 +01:00
eszlari 0177c8b64e Linux mime: add icon 2019-01-05 12:15:58 +01:00
Yorik van Havre d9f8cfac18 Arch: Fixed wire/edge bug in IFC import 2019-01-04 22:48:49 -02:00
Yorik van Havre 41a9f5bbab Updated credits page 2019-01-04 15:25:12 -02:00
wmayer 9f2904e8ec fix flake8 issues suggested by cclauss 2019-01-04 15:30:17 +01:00
Bernd Hahnebach 56db51867c FEM: ccx tools, better error handling on run ccx 2019-01-04 15:28:17 +01:00
Bernd Hahnebach 37a2cceab3 FEM: ccx tools, ccx run, set ret code to 0 for check analysis and return ret code 2019-01-04 15:28:17 +01:00
Bernd Hahnebach 76541ca1b5 FEM: ccx tools, debug prints 2019-01-04 15:28:16 +01:00
Bernd Hahnebach 2e6dac1871 FEM: code formating, flake8 2019-01-04 15:28:16 +01:00
Bernd Hahnebach 3f443d2264 FEM: result reading, debugg prints 2019-01-04 15:28:16 +01:00
Bernd Hahnebach 8a3fd0caf6 Arch: IFC, print code formating in the regard of Py3 2019-01-04 15:28:16 +01:00
wmayer 64fa8cb855 improve handling of (raw) input in Python console 2019-01-04 14:16:50 +01:00
wmayer 2c838bfc7d fix typo in StartPage module 2019-01-04 10:56:34 +01:00
wmayer df3853738e fix several Py3 issues 2019-01-03 18:11:37 +01:00
cclauss 7afb54f49b Undefined name: to --> 'to'
```
./src/Tools/fcbt/FileTools.py:47:50: F821 undefined name 'to'
                print('Error copying', pathFrom, to, pathTo, '--skipped')
                                                 ^
./src/Tools/fcbt/FileTools.py:86:54: F821 undefined name 'to'
                    print('Error copying', pathFrom, to, pathTo, '--skipped')
                                                     ^
```
2019-01-03 17:38:45 +01:00
wmayer 7ba92f96a5 reduce code duplication 2019-01-03 17:33:39 +01:00
wmayer 8358d7f876 Qt5: don't use native color dialog 2019-01-03 16:14:12 +01:00
wmayer b8455531c1 declare private intersect() function as static to make clear it doesn't belong to a GeomCurve instance 2019-01-03 15:40:59 +01:00
wmayer 2aa4f8c47f Update copyright notice 2019-01-03 15:37:02 +01:00
tomate44 9ea523a9e0 fix intersectCC method missing some intersection points for Geom2d curves 2019-01-03 12:33:58 +01:00
wmayer 3ba0772d97 handle C++ exception in Python interface 2019-01-03 12:19:37 +01:00
Silas 8526b0747e Improve readability with some comments 2019-01-03 11:43:43 +01:00
Silas 309640eb7f Only changes the ViewSystem if the user confirms
UnitsApi::setSchema() was being called when the user changed the
comboBox item, so the view system was saved if the user later clicked
Cancel.  This call was moved to the saveSettings() method that is called
only if the user clicks Apply or OK.
2019-01-03 11:43:43 +01:00
cclauss f1c6c549a9 Cannot mix bytes and nonbytes literals in OpenSCADUtils.py
Fixes Travis test failure: https://travis-ci.org/FreeCAD/FreeCAD/jobs/474743289#L8528
2019-01-03 11:37:00 +01:00
wmayer 8527b0228e in test_python_syntax fix check for Py3 2019-01-03 10:40:19 +01:00
Yorik van Havre 98ebeaa198 Draft: fixed bug in arc tracker 2019-01-02 18:05:34 -02:00
paullee 5af993cb1c Curvilinear Landing based on underlying curve edges supported; found sortEdges() 'problem'
Discussion:-
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=100#p277409
2019-01-02 17:26:34 -02:00
Bernd Hahnebach ddebf0d3c7 FEM: gmsh tools, Py3, there still are extra b'ees to remove 2019-01-02 17:26:00 -02:00
luz.paz 0a25f7fd58 FEM: source comment typo fixes 2019-01-02 17:24:58 -02:00
Diego Elio Pettenò 0274e73a8d setup: don't require the user to agree to GPL to complete setup.
As @foone complains on twitter often enough, this should not require
agreement for use since GPL is not an EULA.

The definitions are inspired from the similar NSIS setup file from VLC.
2019-01-02 17:23:52 -02:00
wmayer 01367d21f6 fix bytes vs. str issue on macOS 2019-01-02 16:26:16 +01:00
wmayer ccf99f57c0 add slice apart command to sub-menu 2019-01-01 22:21:07 +01:00
Stian Skjelstad 06ef43c77f Fix #3697
We need to initialize progressTime for given number of step-operations too,
else the filter that checks for X ms between each refresh update will always
fail, due to time-difference being way out of range.

Also, 10 updates per second is not a lot, since we also filter out the
QT event loop for long operations performed in the main thread.
2019-01-01 21:47:11 +01:00
wmayer 1f30c218e6 remove signal blocker
fixes 0003752: Preferences/Sketcher: Changing Grid size default is not respected upon creation of new Sketches
2019-01-01 18:17:23 +01:00
wmayer 70aaf3e95f fixes 0003756: Tooltips should not start with the internal name of the tool 2019-01-01 16:54:12 +01:00
wmayer 47fc808157 fixes 0003757: Join icon menu in the Boolean toolbar does not show command names nor tooltips 2019-01-01 16:48:43 +01:00
Yorik van Havre 1a7d3d9a37 Start: Don't switch workbenches if we're not in Start anymore 2018-12-31 16:45:16 -02:00
Yorik van Havre 41fee3bb3d Fixed wording as notifed on crowdin 2018-12-31 16:21:49 -02:00
wmayer 563d020b67 improve error messages for Pocket, Hole and Groove feature 2018-12-31 18:30:13 +01:00
wmayer fd9516e071 fixes 0003755: Crash when using Part - Refine Shape on certain files 2018-12-31 15:06:21 +01:00
Yorik van Havre 6cdeab9c14 Start: Fixed single quotes display 2018-12-30 12:47:19 -02:00
Yorik van Havre 0bf6ca9732 Fixed translations of startpage 2018-12-30 12:38:03 -02:00
wmayer 7e80a1f64e add Qt5 translation files 2018-12-29 18:37:07 +01:00
Yorik van Havre e83c44200a Start: Better handling of unicode on py2 2018-12-29 14:41:25 -02:00
Yorik van Havre 91a61d4813 Material: Fixed py3/import issues 2018-12-29 14:40:25 -02:00
caceres 195c530c00 Material: MaterialEditor migrate to model/view 2018-12-29 12:47:30 -02:00
wmayer be5796b2d0 add method restoreFinished and reimplement it in SketchObject 2018-12-29 15:27:32 +01:00
wmayer 6cc2c1147e do not make default suffix lower case 2018-12-29 13:52:28 +01:00
Yorik van Havre 42e6650ac0 Start: Fixed translation on py2 2018-12-28 11:38:21 -02:00
Yorik van Havre 217e0fef0f Import: Fixed import of some DXF R12 files 2018-12-28 00:12:28 -02:00
wmayer 5d36da83e0 add comment 2018-12-27 20:06:16 +01:00
triplus 4276b92e32 Add Intensity 2018-12-27 20:00:55 +01:00
triplus 1d840261c5 Point cloud display mode enumeration
After point cloud is imported and saved to a file, opening such file introduces issue with point cloud feature display mode property.

Forum discussion:
https://forum.freecadweb.org/viewtopic.php?f=3&t=32808
2018-12-27 20:00:55 +01:00
Yorik van Havre 79723fe3d4 Arch: small cosmetic fix in material editor 2018-12-27 12:56:49 -02:00
Yorik van Havre f3a44bed80 Arch: Lowered tolerance of planar profiles for Arch structures 2018-12-27 12:29:03 -02:00
DeepSOIC 407dc25dba Part: add Slice Apart command 2018-12-27 14:30:06 +01:00
DeepSOIC f275a95008 PartGui: use icon in Compound viewprovider 2018-12-27 14:30:05 +01:00
DeepSOIC c025a77797 PartGui: add ExplodeCompound to menu and toolbars 2018-12-27 14:30:05 +01:00
DeepSOIC 3c23f2aa50 PartGui: update icons
* replace Part_Compound icon with a new one
* add Part_ExplodeCompound icon
2018-12-27 14:30:05 +01:00
DeepSOIC 368f0f0ccd Part: "Explode compound" tool 2018-12-27 14:30:04 +01:00
Yorik van Havre fc5542b976 Fixed translation of py commands in Image 2018-12-27 11:14:07 -02:00
Yorik van Havre cea09fd986 fixed non-executable translation script 2018-12-27 10:55:58 -02:00
Yorik van Havre 3e6e9ed690 Part: Fixed translation issues 2018-12-27 10:51:49 -02:00
luz.paz 7044147bac Path: source comment typo fixes
Found via `codespell`
2018-12-27 10:22:36 -02:00
wmayer 47f131b59e fix bug in zipios::writeUint16 2018-12-27 13:17:40 +01:00
Yorik van Havre d5dd0973ca Draft: Added ON/OFF status to the tooltip of snapping buttons 2018-12-26 12:59:50 -02:00
wmayer 9c7128ea77 fixes 0003729: REGRESSION: FreeCAD 0.17 does not export color information with STEP files 2018-12-24 17:27:56 +01:00
wandererfan 8801726ed4 Fix StartCell/EndCell handling
- multi-character Columns and multi-digit Rows
  were not being interpreted correctly.
2018-12-24 11:02:32 -02:00
Abdullah Tahiri ffd980b27e PartDesign: Up to face inclined plane limitation
================================================

fixes #3177

I fixed it by tricking the function, see:
https://forum.freecadweb.org/viewtopic.php?f=8&t=24238&start=30#p274454
2018-12-24 11:01:59 -02:00
Stian Skjelstad 33dfca95fa Improve messages when trying to detect HDF5 2018-12-24 11:01:39 -02:00
Stian Skjelstad 0f03f1e2bb Improve error-message if med.h is not found in CMake, and write all
commands in upper case, following the common syntax
2018-12-24 11:01:39 -02:00
Stian Skjelstad dccf48d3f4 On my Ubuntu setup, compilation failes when using med.h, since
libmedc is built with openMPI, while freeCAD selects hdf5-serial.

libmed declares functions prototypes which has MPI parameters if
built for openMPI, causing compilation errors. Doing some online
searches reveals that some users manually changes the include-paths
to hdf5-openmpi if this error happens.

This patch tries to autodetect this situation.
2018-12-24 11:01:39 -02:00
Yorik van Havre 2226da3a20 Added support for arabic and vietnamese 2018-12-23 13:56:46 -02:00
Yorik van Havre 2ea84272fd Updated translations from crowdin 2018-12-23 13:54:30 -02:00
Markus Lampert 3969dd52aa Use removeSplitter to get a single face for the removal shape construction. 2018-12-23 11:07:31 -02:00
Mateusz Skowroński 71a8e2668d Fix GCC 8 warning: catching polymorphic type by value [-Wcatch-value=] 2018-12-23 11:05:02 -02:00
Mateusz Skowroński 94e392347c Fix GCC 8 warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] 2018-12-23 11:05:02 -02:00
wandererfan 376a70bffc Remove u8 literals for Win compatibility 2018-12-23 11:03:02 -02:00
wandererfan 1b854e029b Add support for DMS angles to Expressions 2018-12-23 11:03:02 -02:00
wandererfan 60b9936a35 Use correct unicode symbols for DMS units 2018-12-23 11:03:02 -02:00
Bernd Hahnebach 763b5c362f FEM: ccx tools, optimize imports 2018-12-21 22:39:29 +01:00
Bernd Hahnebach ba22f17a3a FEM: ccx tools, add a method to find elments with no material 2018-12-21 22:22:49 +01:00
Bernd Hahnebach 3a9ada062f FEM: ccx tools, typo in def name for non positive jacobians 2018-12-21 22:16:57 +01:00
Bernd Hahnebach 9bb6174545 FEM: ccx tools, split run def to be able to do every fea task independent 2018-12-21 22:16:57 +01:00
Bernd Hahnebach d7e61d68b8 FEM: ccx tools, small code improvements 2018-12-21 22:16:57 +01:00
Bernd Hahnebach 356d24157c FEM: ccx tools, solver typ check only for ccx tools type 2018-12-21 22:16:57 +01:00
Yorik van Havre 0ab6b3ec02 Arch: fixed wrong WP when double-clicking an Arch BuildingPart 2018-12-21 18:55:59 -02:00
Bernd Hahnebach 1030e1cc64 FEM: print some error if only one material object but this one has a reference shape 2018-12-21 10:11:48 -02:00
Bernd Hahnebach 9d13a1ab89 FEM: ccx run, do not run ccx if input file writer returned an error 2018-12-21 10:11:48 -02:00
Bernd Hahnebach 07e7c2ef87 FEM: revert f77c605 and use a better fix fir frd reading of NaN floats 2018-12-21 10:11:48 -02:00
Bernd Hahnebach 56e9e92fd5 FEM: z88, delete not needed and not used variable 2018-12-21 10:11:48 -02:00
Yorik van Havre ab916fefe7 [Testing] renaming COPYING file to LICENSE 2018-12-20 20:36:01 -02:00
wmayer 583917dc17 fix several bugs in LabelEditor to handle PropertyStringList 2018-12-20 23:20:23 +01:00
wmayer 4c67a5c3c6 workaround to correctly render annotation flags if NaviCube is shown 2018-12-20 17:52:35 +01:00
Yorik van Havre 2e03d02a1a Arch: Fixed crash on creating new BuildingParts 2018-12-20 13:21:48 -02:00
Bernd Hahnebach f77c605ca8 FEM: frd file reader, fix for broken frd files 2018-12-20 12:00:04 -02:00
Bernd Hahnebach 86c5113e09 FEM: gmsh VP, Py3, remove more extra b'ees 2018-12-20 12:00:04 -02:00
Bernd Hahnebach 0d8388a47a FEM: code formating, pep8 2018-12-20 12:00:04 -02:00
Abdullah Tahiri e72bd857c7 Sketcher: Tangency between arcofellipse and other curves
========================================================

Surprisingly there was no code to handle arcofellipse tangencies using AngleViaPoint constraint.

fixes #3659
2018-12-20 11:59:26 -02:00
wmayer f474900c07 change default value of renderTriangleLimit to UINT_MAX 2018-12-20 10:49:37 +01:00
Yorik van Havre b918cbe14d Arch: Fixed object transparency not adopting the material's one 2018-12-19 20:51:39 -02:00
Fabio Rossi 92a89d6c2b Avoid overwriting of LDFLAGS for shared libs 2018-12-19 21:54:02 +01:00
Bernd Hahnebach 8324b2ee1b FEM: solver, move observer def into base class and use decode for Py3 bytestrings 2018-12-19 21:50:44 +01:00
Bernd Hahnebach b73849bc33 FEM: utils, add a def to decode bytestrings in Py3 2018-12-19 21:50:44 +01:00
wmayer 0556a2ca68 fixes 0002304: Duplicate multi selection of sketch element produces many sketches 2018-12-19 21:17:59 +01:00
Yorik van Havre 842672d961 Arch: Fixed display bug in BuildingPart 2018-12-19 16:33:48 -02:00
Yorik van Havre ca7dd2e1c3 Arch: Small refactor in arch reference 2018-12-19 12:29:34 -02:00
Yorik van Havre 7aa4d2a9f6 Arch: Fixed wrong elevation of imported IFC elements 2018-12-19 11:46:40 -02:00
wandererfan cd1959a094 Fix Detail highlight position for rotated DPGI
- highlight position calculation was not taking into account
  rotation of DPGI due to RotationVector property.
2018-12-19 10:30:30 -02:00
Abdullah Tahiri 47443dfd87 Improve debug info 2018-12-19 10:27:30 -02:00
Abdullah Tahiri 2830f107ae Sketcher: Improve element widget name of external geometry
===========================================================

fixes #3719

what?
https://forum.freecadweb.org/viewtopic.php?f=3&t=32693&p=274634#p274634
2018-12-19 10:27:30 -02:00
George Shuklin 69e3aeaa40 Draft/getSVG: Fix missed variable gui, fix bad call to getProj 2018-12-19 10:24:29 -02:00
Yorik van Havre 47a38eceb3 Arch: more thorough file search in arch references 2018-12-18 21:49:27 -02:00
wandererfan b5a3b7d3df Use same symbol for display and edit.
- UnitsSchemaImperialCivil was sometimes displaying
  degree symbol as "deg" and sometimes as "°"
2018-12-18 22:17:38 +01:00
wandererfan bde252895f Handle negative angles in UnitsSchemaImperialCivil 2018-12-18 22:17:38 +01:00
Yorik van Havre c4866c8346 Removed unappropriate copyright note from license file 2018-12-18 17:34:39 -02:00
Yorik van Havre c5939d4476 Tools: cosmetic fix in translation scripts 2018-12-18 11:36:46 -02:00
Yorik van Havre 91bb88fe18 add App.Units.setSchema() python method 2018-12-18 11:01:35 -02:00
Yorik van Havre 2557f07cbe Draft: minor bugfix 2018-12-18 11:01:14 -02:00
Yorik van Havre 56aba4c9d9 Arch: Allow to not zoom fit after importing IFC files 2018-12-18 11:00:56 -02:00
Abdullah Tahiri c43adafb12 Sketcher: Respect general autoconstraints setting on sketch creation
====================================================================

fixes #3727

https://www.freecadweb.org/tracker/view.php?id=3727

https://forum.freecadweb.org/viewtopic.php?f=3&t=32761
2018-12-17 18:44:56 +01:00
Abdullah Tahiri 64cd6a9082 remove experimental string from VBO and sketcher continue mode 2018-12-17 18:01:52 +01:00
wmayer bf1603b388 improve mesh validation functions 2018-12-17 16:14:28 +01:00
Yorik van Havre 5213f26846 Draft: Fixed tolerance problem in snapping to intersections 2018-12-17 12:58:21 -02:00
Yorik van Havre 175566d551 Arch: Fixed remaining bugs in Schedule - Fixes #3590 2018-12-17 12:24:27 -02:00
Yorik van Havre eb04b8ef0c Arch: Fixed incomplete last commit 2018-12-17 11:24:33 -02:00
Yorik van Havre ea885fb650 Arch: Stored if preferences pages are loaded or not 2018-12-17 11:22:20 -02:00
Yorik van Havre 223eb6864c Draft: Fixed wrong formatting of DXF importer url 2018-12-17 11:06:10 -02:00
Bernd Hahnebach 08ce5a6123 FEM: objects module, add vtk post processing objects 2018-12-17 09:38:23 -03:00
Bernd Hahnebach 41e56ef9d0 FEM: unit tests, add FEM_VTK check and reactivate vtk mesh test 2018-12-17 09:38:23 -03:00
George Shuklin ef34dd3a4f Include getSVG.py into Draft_SRCS 2018-12-17 09:37:51 -03:00
George Shuklin 8701a4d898 made getLineStyle to accepts scale parameter 2018-12-17 09:37:51 -03:00
George Shuklin dc8d8fdb44 move getDiscretized and getPattern outside of getSVG() 2018-12-17 09:37:51 -03:00
George Shuklin e1eae5e114 move getProj outside of getSVG, make 'plane' explicit. 2018-12-17 09:37:51 -03:00
George Shuklin 615d81fda3 Move getLineStyle to a separate function 2018-12-17 09:37:51 -03:00
George Shuklin 6ee6c677c6 Move getSVG into a separate file to further refactoring.
All internal dependencies (getrgb, getType) are reimported.
2018-12-17 09:37:51 -03:00
wmayer b530c7e576 include cmath header for definition of M_PI 2018-12-17 10:04:10 +01:00
wmayer 766383d411 fixes 0003726: Property Editor Angle Fields Do Not Respect Units 2018-12-16 21:35:58 +01:00
wmayer 583aea5aec fixes 0003732: Menu groups in Draft menu are not translated even though translated strings exist 2018-12-16 17:20:26 +01:00
wmayer fec487dc7f fix translate() function for Py2 & Qt5 2018-12-16 16:25:25 +01:00
wmayer c7883cd3cd fixes 0003733: FEM workbench menus are not translatable 2018-12-16 12:55:10 +01:00
wmayer 5a028e4578 fixes 0003734: Image Scaling tooltip is untranslatable and should be reworded 2018-12-16 11:15:06 +01:00
wmayer fd050c6f1d minor changes 2018-12-15 21:43:37 +01:00
Abdullah Tahiri 57b7142cd7 Sketcher: Do not recompute on geometry deletion
fixes #3642
2018-12-15 16:38:54 +01:00
Bernd Hahnebach cc0ea5571e FEM: unit tests, deactivate vtk mesh test, because travis runs without vtk 2018-12-14 22:53:48 +01:00
Bernd Hahnebach 150bcfcd77 FEM: mesh api, import of Abaqus inp mesh file with Fem API 2018-12-14 22:51:39 +01:00
Bernd Hahnebach b441c0d3e8 FEM: mesh api, import of z88 mesh file with Fem API 2018-12-14 22:51:39 +01:00
Bernd Hahnebach fffd4d49c4 FEM: unit tests, add tetra10 vtk mesh read and write test 2018-12-14 22:51:39 +01:00
Bernd Hahnebach 3e247b32dc FEM: in out moduels, use print log instead of print message 2018-12-14 22:51:38 +01:00
Bernd Hahnebach 1421b35b83 FEM: ccx tools, print error message if user trys to run ccx in test mode 2018-12-14 22:51:38 +01:00
wandererfan be23cf133a Revert Erroneous Change to parser
- ExpressionParser.y changed in error by commit
  00e6376c.  Regen ExpressionParser.tab.c and
  lex.ExpressionParser.c
2018-12-14 19:30:49 +01:00
Abdullah Tahiri 7acdd87bf2 fixes #3724 2018-12-14 19:26:30 +01:00
Yorik van Havre 0c886a479a Draft: Fixed wrong placement of edit dots in Draft Stretch 2018-12-14 16:06:31 -02:00
Yorik van Havre 981b158228 Draft: Fixed nearest snap not snapping to the working plane when required 2018-12-14 13:22:32 -02:00
Yorik van Havre 497b85f68c Arch: Fixed merged same-color IfcSurfaceStyles in IFC export 2018-12-14 13:21:47 -02:00
wmayer fa658f2f3b prepare for OCCT 7.3.1 2018-12-14 15:51:10 +01:00
Gauthier 5d5c4eb046 Fix forget to add new postprocessor grbl_G81 in CMakeLists 2018-12-14 08:52:35 -03:00
Yorik van Havre 144fee0915 Draft: updated minimal version of dxf library to include py3 fixes 2018-12-13 22:50:25 -02:00
Bernd Hahnebach 44e8f9e9bf FEM: unit tests, reactivate new z88 mesh reader test and mesh reading 2018-12-13 23:21:54 +01:00
Bernd Hahnebach a41d7a7398 FEM: Py3 fix, do not open file in binary mode if writing strings 2018-12-13 23:21:54 +01:00
wmayer 60581cff90 prepare for OCCT 7.3.1 2018-12-13 23:10:10 +01:00
wmayer 729b9e7afa add missing headers, prepare for OCCT 7.3.1 2018-12-13 23:08:48 +01:00
wmayer 9683abfc36 improve mesh healing functions 2018-12-13 17:31:21 +01:00
DeepSOIC 3b2c3b1d99 PartGui: fix typo in pop-up message
spotted by @bitacovir in crowdin:
https://crowdin.com/translate/freecad/563/en-hu#6513090
2018-12-13 09:02:22 -03:00
Gauthier 72c4bd3484 First version of grbl_G81_post.py 2018-12-13 09:01:52 -03:00
Bernd Hahnebach 5dee2fdfb3 FEM: unit tests, temporary deactivate new z88 mesh reader test and mesh reading 2018-12-12 08:47:33 -03:00
Bernd Hahnebach ce75653955 FEM: unit tests, rename test tools to utils to distinguish between test modules 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 5d105319d3 FEM: unit tests, delete wrong comment command 2018-12-12 08:47:33 -03:00
Bernd Hahnebach a3ea67ceae FEM: unit tests, split common module into a new module for result tests 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 8d88af3803 FEM: unit tests, rename test class names 2018-12-12 08:47:33 -03:00
Bernd Hahnebach ab6a3b34fc FEM: unit tests, small code improvement in mesh 2018-12-12 08:47:33 -03:00
Bernd Hahnebach b26a873920 FEM: unit tests, add import status print 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 9d39000e3a FEM: unit tests, mesh move tetra10 tests in separate class 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 13441b6535 FEM: unit tests, improve mesh tetra10 test 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 8bb994dff8 FEM: unit tests, z88 tetra10 read write test 2018-12-12 08:47:33 -03:00
Bernd Hahnebach f998547f8a FEM: unit tests, comment in ccxtools test 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 0ac6451517 FEM: inp mesh reader, add def to return the FemMesh only (no Document obj) 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 569715c1d7 FEM: import z88 mesh, delete duplicate code 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 1e47334634 FEM: z88 mesh import, get rid of not needed future import and debugg print 2018-12-12 08:47:33 -03:00
Bernd Hahnebach 1a77dc54c3 FEM: in out modules, use console log instead of print 2018-12-12 08:47:33 -03:00
Bernd Hahnebach e01546b0a9 FEM: mesh api, export of z88 mesh file with Fem API 2018-12-12 08:47:33 -03:00
wmayer 25eb9a22e9 fix MeshGeomFacet::IntersectWithPlane 2018-12-11 18:42:47 +01:00
sdaau 3290c36d28 Draft: preserving face colors and names when downgrading/upgrading (splitFaces and makeShell only) 2018-12-11 09:15:30 -03:00
Przemo Firszt 7fe115a3c7 Add mesa-libEGL-devel for fedora >= 29 COPR builds
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-12-11 09:12:37 -03:00
easyw d901631f8e a minor py3 fix 2018-12-11 09:12:15 -03:00
kreso-t 5eeff9d17f Path: Adaptive - bugfix
fix for path cleaning, related to uncleared regions
2018-12-11 09:10:08 -03:00
Bernd Hahnebach 081173e344 FEM: solver run, fix method names 2018-12-10 20:56:41 -03:00
DeepSOIC 5d5ac035f7 PartGui: fix error popup message
reported by kazan417 in crowdin
https://crowdin.com/translate/freecad/563/en-hu#6500315
2018-12-10 20:55:51 -03:00
Yorik van Havre 083954a0e2 Arch: small optimization in Arch Reference 2018-12-10 19:41:02 -02:00
Yorik van Havre 686688e00c Arch: Ability to unload shape of Arch References 2018-12-10 19:33:08 -02:00
Yorik van Havre f56198dd33 Tools: fixed translation of py files in Part 2018-12-10 11:00:53 -02:00
Yorik van Havre 5633bd14d2 Arch/Draft: Misc small fixes
* Properly handle offset2D and arch objects in Draft Stretch
* Allow the WP of Arch BuildingParts to stay weak
* Fixed Draft Edit making Wires not plane anymore
* Dont change the WP if already perpendicular to current view
* Fixed DXF import of Polyfaces
2018-12-10 10:21:17 -02:00
wmayer d91e38962c mesh segmentation algorithm for surfaces 2018-12-10 13:19:27 +01:00
Stian Skjelstad 7102ff26a7 Remove reuse of variable-name.
customwidgets.cpp: In member function ‘virtual void Gui::AccelLineEdit::keyPressEvent(QKeyEvent*)’:
customwidgets.cpp:287:38: error: no match for ‘operator+’ (operand types are ‘Qt::Modifier’ and ‘QKeySequence’)
             QKeySequence key(Qt::CTRL+key);
                              ~~~~~~~~^~~~
In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QtGui:38:0,
                 from customwidgets.cpp:24:

g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
2018-12-10 09:17:20 -03:00
wandererfan d9d81ade84 Clean up section line arrows 2018-12-10 09:15:07 -03:00
Abdullah Tahiri 167b0d6d99 Thumbnail generation
====================

Dynamically check whether to apply the fix for thumbnail generation.

Some QT5 version seem to be affected. This problem appears in some linux distributions with some window managers.

You may check/activate this fix:

>>> hgrp = App.ParamGet("User parameter:BaseApp/Preferences/Document")
>>> hgrp.GetBool("SaveThumbnailFix")
False
>>> hgrp.SetBool("SaveThumbnailFix",True)
>>> hgrp.GetBool("SaveThumbnailFix")
True
2018-12-10 09:14:36 -03:00
wandererfan 1d8cc22ed4 Fix SectionLine preference location 2018-12-10 09:12:51 -03:00
wmayer 0caa169eb0 mesh segmentation algorithm for surfaces 2018-12-10 00:23:31 +01:00
wmayer 9be3e63332 mesh segmentation algorithm for surfaces 2018-12-08 15:53:58 +01:00
wandererfan f8f85f0079 Improve "links go out of scope" message 2018-12-08 11:29:45 -03:00
wandererfan f76f19732c Use Global Scope for PathArray Links 2018-12-08 11:29:45 -03:00
wandererfan bf3a1fdaa8 Test for binormal == Z sb binormal parallel Z 2018-12-08 11:29:45 -03:00
lorenz 3059646761 Fem: Elmer: rename function iterkeys -> keys 2018-12-08 11:27:22 -03:00
looooo 1476caf281 py3: iteritems -> items, iterkeys -> keys 2018-12-08 11:27:22 -03:00
Przemo Firszt 9d395235b9 Comment out osx builds
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-12-08 11:26:14 -03:00
easyw 2cbf323e84 another py3 compatibility fix 2018-12-08 11:24:56 -03:00
easyw bb226d1973 first step vs py3 compatibility 2018-12-08 11:24:56 -03:00
DeepSOIC e48254d98e Draft: allow cross-CS links for Clone
fixes drag-drop issues
https://forum.freecadweb.org/viewtopic.php?f=3&t=32677&p=272896#p272896
2018-12-08 11:23:53 -03:00
wmayer 20fe774784 mesh segmentation algorithm for surfaces 2018-12-07 20:03:44 +01:00
Yorik van Havre 265be0fd86 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-12-07 14:27:35 -02:00
Yorik van Havre c507ab9efd Arch: minor bugfix in arch reference 2018-12-07 14:27:18 -02:00
wmayer a92014a36d rework mesh segmentation dialog 2018-12-07 13:13:08 +01:00
Bernd Hahnebach 36447d71c5 FEM: ccx tools, simplify member collection 2018-12-07 08:53:48 -03:00
Bernd Hahnebach 1311bac126 FEM: solver frame work ccx and z88, simplify member collection 2018-12-07 08:53:48 -03:00
Bernd Hahnebach 945497c73c FEM: utils, add some defs to collect analysis group member 2018-12-07 08:53:48 -03:00
Bernd Hahnebach 80f2ccc304 FEM: utils, rename get single member 2018-12-07 08:53:48 -03:00
Bernd Hahnebach 592979b829 FEM: utils, rename get member 2018-12-07 08:53:48 -03:00
Bernd Hahnebach e5c8c18e8d FEM: elmer writer, use class methond instead of utils method directly 2018-12-07 08:53:48 -03:00
Bernd Hahnebach 5c4b287597 FEM: solver tasks, delete duplicate methods 2018-12-07 08:53:48 -03:00
Bernd Hahnebach 93e179ba01 FEM: unit tests, extend commends to command for every module test 2018-12-07 08:53:48 -03:00
wandererfan 0e26ce1f27 Add id=PageName to exported Svg
- add id attribute to output of QSvgGenerator.
2018-12-07 08:53:08 -03:00
wandererfan 14b780c0ee Add Parameter to Control Section Line Appearance
- allow user to specify traditional section line
  or "reference arrow method"
2018-12-06 08:57:56 -03:00
wandererfan 7b4bc50e5c Make Edge Selection Area Adjustable
- Edges may be difficult to select depending on drawing
  scale and zoom level.
- Parameter: Preferences/Mod/TechDraw/General/EdgeFuzz
2018-12-06 08:57:56 -03:00
wandererfan ac15cda1d4 Add US Letter size blank template 2018-12-06 08:57:56 -03:00
wandererfan 9907422806 Display correct symbols for Minute/Second
- the ImperialCivil unit schema uses "M" for angular
  minutes and "S" for angular seconds. These must be
  replaced by ' and ".
2018-12-06 08:57:17 -03:00
wandererfan 00e6e376c9 Add ImperialCivil Units Schema
- units for civil engineering - ft, ft2, ft3, mph,
  and angles as degrees/minutes/seconds
2018-12-06 08:57:17 -03:00
wandererfan eb9aa5c54d Remove custom translation code
- go back to letting loadUi do the translating.
2018-12-06 08:54:46 -03:00
Bernd Hahnebach e40ce74f27 FEM: unit tests, extend the FEM is derived from test to more Trues 2018-12-06 08:53:58 -03:00
Bernd Hahnebach f3cee72436 FEM: utils, get rid of duplicate defs 2018-12-06 08:53:58 -03:00
Bernd Hahnebach 711d7f52ba FEM: utils, improve method to return the obj type 2018-12-06 08:53:58 -03:00
Bernd Hahnebach f9dd5f2b6f FEM: utils, rename isOfTypeNew to is_of_type 2018-12-06 08:53:58 -03:00
Bernd Hahnebach e06a541fec FEM: utils, rename typeOfObj to type_of_obj 2018-12-06 08:53:58 -03:00
Bernd Hahnebach d40b23a142 FEM: unit tests, move object tests in separate test module and class 2018-12-06 08:53:58 -03:00
Bernd Hahnebach 72d6c48bba FEM: unit tests, better name for unit test FreeCAD file names 2018-12-06 08:53:58 -03:00
Bernd Hahnebach babd888668 FEM: unit tests, better comments 2018-12-06 08:53:58 -03:00
Bernd Hahnebach 5ccd715e3f FEM: unit tests, rename common class 2018-12-06 08:53:58 -03:00
Bernd Hahnebach 9519f122f9 FEM: ccx tools, move helper into fem utils module 2018-12-06 08:53:58 -03:00
Bernd Hahnebach 44bdb5f99c FEM: calculix, fix obj type check 2018-12-06 08:53:58 -03:00
Bernd Hahnebach a2024d448f FEM: z88, fix obj type check 2018-12-06 08:53:58 -03:00
Bernd Hahnebach f6b1ec4401 FEM: z88 writer, raise exception if element type is not supported by Z88 2018-12-06 08:53:58 -03:00
Yorik van Havre ef002fdde2 Arch: Fixed non-unified extrusion direction in multisolid structures 2018-12-05 17:27:12 -02:00
Yorik van Havre 8483d8d5c2 Draft: Fixed dangling temp snap points 2018-12-05 16:38:34 -02:00
Yorik van Havre 47fd9d335e Arch: Fixed wrong extrusion of multisolid structures 2018-12-05 13:02:48 -02:00
Yorik van Havre 7159d38e82 Draft: Solved duplication problem - Fixed #2304 2018-12-05 11:05:40 -02:00
wmayer 69328ae2f5 if activating a workbench raises a general error then add the name to the message 2018-12-05 11:31:16 +01:00
Yorik van Havre b12bcc44a8 Draft: py3 bugfix 2018-12-03 18:39:57 -02:00
wmayer 9a7f97c827 Fix usage of Reference dialog:
+ fix memory leak by using QDialog on the stack
+ open a transaction where needed when making a copy to avoid mess with undo/redo
+ set proper title and use main window as parent
+ replace class name Dialog with PartDesignGui::DlgReference
2018-12-03 17:54:05 +01:00
paul a899a970c8 Fix another 2 missing parentheses 2018-12-03 10:30:08 -03:00
Yorik van Havre ccc5ff53fe Fixed py3 sntax errors 2018-12-03 10:30:08 -03:00
paullee da7b5199fb Some methods become Static, returnOutlines() become more generic purpose etc. 2018-12-03 10:30:08 -03:00
paullee 51b3b33917 Fix Typo - vbaseFollowLastSement --> vbaseFollowLastSegment 2018-12-03 10:30:08 -03:00
Abdullah Tahiri c88a64e8e7 Make Open vertices detection routine accesible to Python 2018-12-03 12:11:11 +01:00
Abdullah Tahiri 18e680f283 Move Open vertices detection routine to SketchAnalysis 2018-12-03 12:11:11 +01:00
Yorik van Havre 60c668231e Arch: Fixed buggy display string of BuildingParts 2018-12-02 19:10:46 -02:00
Yorik van Havre 7a279d7764 Arch: Fixed position of BuildingPart label on start 2018-12-02 18:49:07 -02:00
Yorik van Havre cc09490725 Arch: Remember last wall alignment setting 2018-12-02 17:20:38 -02:00
wmayer 4d4f016277 only save setting if grid view is shown or not 2018-12-02 12:15:28 +01:00
Abdullah Tahiri e654e476f6 Make show grid checkbox work again 2018-12-02 10:10:39 +01:00
Yorik van Havre 6199c95fd7 Draft/Arch: minor fixes 2018-12-01 18:56:05 -02:00
lorenz 2e03d2f298 cmake: revert changes for smesh
smesh relevant part of this commit:
https://github.com/FreeCAD/FreeCAD/pull/1810/commits/6b69a86600788ae9078b95a93cfa023ea1996a85
2018-12-01 20:17:37 +01:00
lorenz b022c7c01d further cmake changes for conda 2018-12-01 14:52:15 -03:00
lorenz c0644b84ed cmake-changes for conda 2018-12-01 14:52:15 -03:00
Yorik van Havre 5217b245b4 Arch: Added pref option to set default MoveWithHost property 2018-12-01 12:23:45 -02:00
Yorik van Havre 79ba082c55 Arch: Fixed IFC export of arch structures with several solids / holes 2018-12-01 12:14:00 -02:00
Yorik van Havre bc53910ace Arch: code cleaning 2018-12-01 12:13:25 -02:00
Yorik van Havre 34cad5b81f Draft: Better fix to buggy Move/rotate of Arch BuilfingParts 2018-12-01 12:12:22 -02:00
Yorik van Havre 0e3cab0874 Draft: Fixed snapping to sectionPlanes 2018-12-01 12:11:10 -02:00
wandererfan bdbdf8c6b7 FR1973 Draft ShapeString Ui
- load new ui from Resource file
- minor updates to translate for Py3
2018-12-01 11:08:37 -03:00
lorenz 5c8a9d2e19 py3: try to fix online doc problem 2018-12-01 11:05:20 -03:00
wmayer 927b496827 fix converting float list to string list in property editor 2018-12-01 11:58:09 +01:00
Yorik van Havre 9e870bec2e Added encrypted chunk.io key to travis file 2018-11-30 10:10:47 -02:00
Yorik van Havre d3ee0cd1fc Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-11-30 10:03:45 -02:00
wmayer 426bc01188 add runtime option to choose between native and Qt file dialogs 2018-11-30 12:37:26 +01:00
plgarcia 792bb8282a Drags and drop with groups 2018-11-29 21:25:28 +01:00
Yorik van Havre e3de72b131 Arch: Cosmetic fix to IFC prefs page 2018-11-29 16:34:42 -02:00
DeepSOIC 82fd0a8db6 Gui: Gesture: add option to disable tilt
On Qt5, using pinch will inevitably cause tilt. It's annoying, so it is disabled by default.

In the future, it's best to introduce some kind of threshold to overcome for the tilt to be triggered.
2018-11-29 15:29:27 -03:00
DeepSOIC b09fb97ad8 Gui: Gesture: fix tilt angle sign 2018-11-29 15:29:27 -03:00
DeepSOIC 46d0d4c80c Gui: Gesture: QPinchGesture angle - sign, degrees, make cumulative
fixes pinch gesture rotation part on Qt5 (tested only on windows, Qt4 and Qt5)
2018-11-29 15:29:27 -03:00
Yorik van Havre 623a1b5ce8 Arch: Cosmetic fixes to arch material UI 2018-11-29 16:10:20 -02:00
Yorik van Havre e677afd5c6 Arch: Refactored file detection code in Arch References 2018-11-29 11:13:31 -02:00
luz.paz 7d6e9c4f40 Misc. typo fix in src/Mod/Arch/ImportIFC.py 2018-11-29 09:46:18 -03:00
wmayer 1dded002ca Improve automatic search for matching Shiboken2 config file 2018-11-28 23:05:13 +01:00
Yorik van Havre 0939f17d6a Arch: Added IFC export option to disable IfcRectangleProfileDefs 2018-11-28 18:27:12 -02:00
Yorik van Havre 03e7083dd5 Draft: Fixed wrong moving of BuildingParts 2018-11-28 16:51:02 -02:00
Yorik van Havre 0de83e8b90 Arch: Reference object now uses file in current dir if not found in stored path 2018-11-28 16:50:13 -02:00
Yorik van Havre 8f62c85a6c Arch: Fixed bug in BuildingPart placement 2018-11-28 14:57:36 -02:00
Yorik van Havre 081e318829 Arch: Fixed buggy view restore system in BuildingPart 2018-11-28 14:28:21 -02:00
wmayer 4d6bcdcb0d If option USE_QT_FILEDIALOG is used then for Qt5 we still have to set QFileDialog::DontUseNativeDialog 2018-11-28 15:50:21 +01:00
Yorik van Havre 4e77cee5ee Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-11-27 16:10:56 -02:00
Yorik van Havre c0567a5990 Draft: Fixed DXF import of texts 2018-11-27 16:10:42 -02:00
luz.paz 4dc201e086 Misc. typo, grammar, and whitespace fixes
[skip ci]
2018-11-27 15:02:58 -03:00
wmayer 1dbbb4371b Py3: Port Wizard shaft to Python 3 2018-11-27 18:13:35 +01:00
Abdullah Tahiri a27e333852 Missing ExceptionProducer init for RestoreError 2018-11-27 13:23:44 -03:00
Bernd Hahnebach 5ba7942660 FEM: results, initialize Stats with the appropriate lenght on obj. creation 2018-11-27 13:23:00 -03:00
Bernd Hahnebach 16ee138017 FEM: results, fix stats setting 2018-11-27 13:23:00 -03:00
wandererfan d7d52336ba Fix coverity CID 184293 2018-11-27 13:21:18 -03:00
wandererfan 6c3a4450e8 Fix Arrowheads on vertical dimensions
- arrowheads sometimes point in wrong direction
  depending on selection order
2018-11-27 13:21:18 -03:00
Yorik van Havre ea66fcc55f Arch: Fixed missing 'Create Group' option in BuildingParts 2018-11-26 20:08:15 -02:00
wmayer 7ceac311b3 add specialized exception type for bad graphs 2018-11-26 14:15:19 +01:00
wmayer 42b689b464 show folder choosing file dialog for StartPage preferences 2018-11-26 13:22:53 +01:00
Bernd Hahnebach c24ff17840 FEM: special character, Python seams not to like the ü of Jürgen even it is an comment 2018-11-26 09:10:17 -03:00
Bernd Hahnebach f3c5c9a70b FEM: code formating, more format changes 2018-11-26 09:10:17 -03:00
Bernd Hahnebach 0ed87a5775 FEM: code formating, flake8 2018-11-26 09:10:17 -03:00
Bernd Hahnebach 72db8632ab FEM: code formating, print function 2018-11-26 09:10:17 -03:00
luz.paz d150dec132 FEM: make file headers title use the same schema in all fem(gui)objects/
Cherrypicked from femtemp f3212888c50d
+ 2 femobject uniformity fixes

fem(gui)objects leftover header copyright fix
2018-11-26 09:10:17 -03:00
luz.paz bf779155d4 FEM: solver, make uniform copyright and developer info
.
2018-11-26 09:10:17 -03:00
luz.paz 432ae644ee FEM: solver, make file header title use the same schema in all solver modules
Made uniform all __title__ doxy \addtogroup blocks
2018-11-26 09:10:17 -03:00
wmayer 29eeb6c2d8 fix crash if origin feature doesn't exist when trying to create dependency graph 2018-11-26 13:09:11 +01:00
Yorik van Havre 73df4e6fc0 Arch: Fixed default axis bubble size 2018-11-22 14:25:37 -02:00
Yorik van Havre 652e1dbdd0 Material: Fixed encoding bug 2018-11-22 11:45:06 -02:00
triplus 9fc8446c95 Notepad reliability
Notepad save/load functionality should work without the need to enable "Authorize FreeCAD to access the internet".

https://forum.freecadweb.org/viewtopic.php?f=10&t=30340&start=110#p269908
2018-11-22 10:24:44 -03:00
Yorik van Havre 54dd7c621d Draft: Fixed buggy ghost tracker 2018-11-21 18:37:39 -02:00
Yorik van Havre 3f585f4cf6 More readable splash image 2018-11-21 18:37:01 -02:00
wmayer 608d42d3cd fix ViewProjMatrix::getProjectionMatrix 2018-11-20 19:21:15 +01:00
Yorik van Havre a3129d3335 Changed splash screen, to remind us of it... 2018-11-20 14:15:42 -02:00
Yorik van Havre 0f2830609c Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-11-20 12:40:27 -02:00
Yorik van Havre 024540dbbe Fixed coverity issues
169009 Bad use of null-like value
169005 Bad use of null-like value
169003 Bad use of null-like value
169000 Bad use of null-like value
168998 Bad use of null-like value
168996 Structurally dead code
2018-11-20 12:37:32 -02:00
wmayer 36e3d5ef66 Fix scan coverity issues:
CID 184350:  Null pointer dereferences
2018-11-20 15:11:43 +01:00
Mateusz Skowroński 82fbdbb327 Explicitly set CMake's CMP0072 to OLD. 2018-11-20 09:44:11 +01:00
Yorik van Havre 3799b2a306 Fixed coverity issues
184348 Bad use of null-like value
175794 Copy-paste error
172913 Copy-paste error
169506 Structurally dead code
169504 Bad use of null-like value
169013 Copy-paste error
2018-11-19 19:36:50 -02:00
Yorik van Havre b1d6770ffb Fixed coverity issues
184298 Bad use of null-like value
183849 Bad use of null-like value
183846 Bad use of null-like value
183845 Copy-paste error
183844 Bad use of null-like value
2018-11-19 19:17:56 -02:00
wmayer ddb20468ad some additions to pR 1794:
add a special XMLAttributeError class to indicate an error when accessing a missing attribute
in PropertyContainer::Restore make error handling more flexible
2018-11-19 19:07:56 +01:00
Abdullah Tahiri 7216dba2f3 remove forgoten exception 2018-11-19 11:31:10 +01:00
Abdullah Tahiri b6a37e153f Example implementation 2018-11-19 11:31:10 +01:00
Abdullah Tahiri 9a34a93db1 Extension of XMLReader to facilitate partial restores 2018-11-19 11:31:10 +01:00
Abdullah Tahiri 10b12ddedb fix exception catching by reference 2018-11-19 11:31:09 +01:00
Abdullah Tahiri 8db80c5c99 Property: dropping isorderrelevant boolean member in favour of bit in the status of the properties 2018-11-19 11:31:09 +01:00
Abdullah Tahiri 1b152ee689 Example code of propagating the result of the partial restore 2018-11-19 11:31:08 +01:00
Abdullah Tahiri 714604e58f ZipStream: Change precision from 12 to 16 decimals
==================================================

Fixes:
https://forum.freecadweb.org/viewtopic.php?f=3&t=32212&start=10#p269080
2018-11-19 11:31:08 +01:00
Abdullah Tahiri 8176b7129c SketchObject: Activate relevant propertylist order 2018-11-19 11:31:08 +01:00
Abdullah Tahiri d62e886407 PropertyGeometryList: enable a partial recover on certain errors 2018-11-19 11:31:07 +01:00
Abdullah Tahiri 591718f918 App:Geometry make LineSegments do a best effort for recovering erroneus data 2018-11-19 11:31:07 +01:00
Abdullah Tahiri 580bb268d4 make App::Property aware of whether the order on the list is relevant or not 2018-11-19 11:31:07 +01:00
Abdullah Tahiri a459ee3f22 New Base::Exception type RestoreError 2018-11-19 11:31:07 +01:00
wandererfan ddfa510565 Fix View position in ClipGroup 2018-11-19 10:12:09 +01:00
wandererfan 7909ce83f9 Fix #3699 ClipGroup Regression from v0.17 2018-11-19 10:12:08 +01:00
wandererfan e67b84c5ec Fix #3698 Detail of Section View 2018-11-19 10:12:08 +01:00
wmayer 893f038717 improve whitespaces 2018-11-19 10:03:50 +01:00
Abdullah Tahiri 5705763088 Sketcher: Improving group constraint preselection
=================================================

the position obtained from the SoPath of the picked point when entering
the combined icon object is not the center of the icon, what leads to
wrong preselection or no preselection at all.

This commit uses the translation of the Constraint node, which is the same that
is used to locate the constraint icons on the screen in the first place.
2018-11-18 12:03:13 +01:00
Abdullah Tahiri 6df9b895ff Sketcher: Fillet increase debugging verbose and disable by default 2018-11-18 12:03:05 +01:00
Yorik van Havre fc5b6288c6 Draft: re-added missing arcFrom2Pts function in DraftGeomUtils 2018-11-16 18:28:01 -02:00
wmayer 6d836ad7a5 improve drag and drop in tree view 2018-11-16 17:19:58 +01:00
plgarcia f89b996396 Improvement and correction drags and drops in tree views. 2018-11-16 13:14:57 +01:00
wmayer e623049763 use more speaking variable names 2018-11-16 11:24:25 +01:00
wmayer e58f72933a fix DocumentObject::isInInListRecursive and DocumentObject::isInOutListRecursive 2018-11-16 01:14:33 +01:00
wmayer c009a206f8 make _getInListRecursive much more efficient by avoiding to process objects multiple times 2018-11-15 23:17:04 +01:00
wmayer 5479936894 remove superfluous error messages in In/Out list methods 2018-11-15 22:16:29 +01:00
wmayer b3721f8613 fix re-throwing an exception 2018-11-15 17:20:55 +01:00
wmayer af36a78f7f harmonize settings for DAGView with other dockable windows 2018-11-15 10:58:14 +01:00
wmayer d86c83d6c5 Enable again the standalone tree and property view by default 2018-11-15 10:24:53 +01:00
wmayer 1458c2364a fix file guards 2018-11-14 23:58:19 +01:00
wmayer 23addab20d fix exception message 2018-11-14 23:18:27 +01:00
wmayer 7dc13bd2d6 Replace Base::Exception with appropriate subclass 2018-11-14 23:17:42 +01:00
wmayer e02695b91f Replace Base::Exception with appropriate subclass 2018-11-14 19:45:20 +01:00
wmayer b0247d184e Replace Base::Exception with appropriate subclass 2018-11-14 19:42:10 +01:00
wmayer 7acdb56d92 Replace Base::Exception with appropriate subclass 2018-11-14 19:28:00 +01:00
wmayer 56db19824e Replace Base::Exception with appropriate subclass 2018-11-14 19:27:52 +01:00
Yorik van Havre f6205c6b93 Selection view: only select search results when enter is pressed 2018-11-14 15:11:54 -02:00
wmayer fc16bcbfca Replace Base::Exception with appropriate subclass 2018-11-14 18:02:49 +01:00
wmayer f9e487e4b2 Replace Base::Exception with appropriate subclass 2018-11-14 17:47:43 +01:00
wmayer c5a5eb6a83 Replace Base::Exception with appropriate subclass 2018-11-14 17:36:00 +01:00
wmayer 9d80db2793 Replace Base::Exception with appropriate subclass 2018-11-14 17:23:48 +01:00
wmayer 560b415f19 Replace Base::Exception with appropriate subclass 2018-11-14 17:19:30 +01:00
wmayer f34ec4534c Replace Base::Exception with appropriate subclass 2018-11-14 17:11:53 +01:00
wmayer 4f02b209fc fixes 0003689: Snap to grid checkbox in edit control widget does not update 2018-11-14 12:40:39 +01:00
PoroCYon da09f7c3d9 OpenSCAD: fix error in workaroundforissue128needed with date formats (YYYYMMDD vs YYYY.MM.DD)
This happens when the git version of OpenSCAD is installed (which uses YYYYMMDD), instead of
the latest released version (from 2015, which uses YYYY.MM.DD).
2018-11-14 00:14:19 +01:00
wmayer a7094210f8 Fix scan coverity issues:
CID 184294: Uncaught exception
CID 183597: Unchecked return value
CID 175809: Dereference before null check
CID 175810: Logically dead code
CID 133000: Uninitialized scalar variable
CID 133001: Uninitialized scalar variable
CID 183591: Explicit null dereferenced
2018-11-13 16:47:58 +01:00
Gaël Écorchard 735b0a18b9 [AddonManager] Fix bug to install macros' other files 2018-11-13 13:28:53 +01:00
Przemo Firszt 7e1acd756f Restore removed rpkg.conf 2018-11-13 13:26:53 +01:00
wmayer b8ed93605d Fix scan coverity issues:
CID 184299:  Null pointer dereferences  (FORWARD_NULL)
CID 184297:  Error handling issues  (UNCAUGHT_EXCEPT)
CID 184296:  Uninitialized members  (UNINIT_CTOR)
CID 184292:  Uninitialized members  (UNINIT_CTOR)
2018-11-13 13:20:16 +01:00
wmayer 6a6ea0a5a6 add search function to tree view 2018-11-13 11:27:34 +01:00
Yorik van Havre c18785fdb3 Arch: fixed bug in Schedule 2018-11-12 14:28:43 -02:00
lorenz 36f5421b34 ship: repair hydrostatics-plotting for py2 2018-11-11 14:34:10 -03:00
wmayer de074ec4f3 fixes 0003518: Expressions (fx) not updated 2018-11-11 10:58:48 +01:00
wmayer 04005b5e45 fixes 0003680: Export (Ctrl+E) doesn't check to make sure that object being exported is a model at all 2018-11-10 19:02:50 +01:00
wandererfan 9d384bd74e Fix #3674 inverted Detail from DPG
- Base views from ProjectionGroups can
  have inverted projection direction or
  rotation vector vs regular views. This
  causes Detail views to be inverted.
2018-11-10 17:04:58 +01:00
Przemo Firszt 7ed7b7add0 Use github api to find the total number of commits
That approach is faster and doesn't require huge download to determine
the total number of commits.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-11-10 17:03:20 +01:00
wmayer 9e2acc477c When activating a part container in the tree view make sure all parent items are expanded 2018-11-10 16:13:10 +01:00
wmayer 442e2dd381 add method to check if an open transaction is empty
This is needed to avoid to incorrectly abort a transaction if a recompute was done between opening and closing an editor in the property view
2018-11-10 14:50:58 +01:00
wmayer b65faeff77 fixes 0003627: Hole fails to restore from file 2018-11-10 01:13:42 +01:00
Abdullah Tahiri 07cf5b10d7 Sketcher: Trim support multiple intersections for circles
=========================================================

The problem with ellipses:
https://forum.freecadweb.org/viewtopic.php?f=3&t=31594&sid=37481b7a6c1ae2614c9840fc27a7773e&start=60#p267248

The problem with circles:
https://forum.freecadweb.org/viewtopic.php?f=3&t=31594&sid=37481b7a6c1ae2614c9840fc27a7773e&start=60#p267536
2018-11-09 22:30:04 +01:00
Abdullah Tahiri 084c483603 Sketcher: Ellipse trim, handle multiple intersection 2018-11-09 22:30:04 +01:00
Abdullah Tahiri 4245ae6863 Sketcher: Ellipse trimming with internal aligment geometry
==========================================================

Trimming was not considering a case where an ellipse is trimmed with respect to its own internal aligment geometry.

This resulted in Coincident Constraints with PointPos = Sketcher::none, which is invalid.
2018-11-09 22:30:03 +01:00
wandererfan f10c28fb5b Handle case of no points returned
- GeomAPI_ProjectPointOnCurve sometimes returns
  zero points and/or throws "NotDone" exception.
2018-11-09 22:26:37 +01:00
Yorik van Havre 4d0c856fa0 Start: minor py3 fix 2018-11-09 17:59:36 -02:00
Yorik van Havre bd2bf371af Arch: Fixed buggy import/export of objects based on rectangles to IFC 2018-11-09 17:59:17 -02:00
Yorik van Havre a8fda8df0b Arch: Fixed buggy import/export of 2D objects to IFC 2018-11-09 16:56:59 -02:00
wmayer 3d8b815834 by default disable old tree view & property view 2018-11-09 17:44:51 +01:00
wmayer 847c6ef74a fixes 0003652: Missing little expression icon 2018-11-09 16:48:44 +01:00
wmayer 9fde41ff19 Allow user to define a custom minimum deviation for the tessellation 2018-11-09 13:42:38 +01:00
wmayer f6a9cfaad3 fix -Wabsolute-value 2018-11-09 12:46:36 +01:00
looooo d4461f351c add function to retrive femmesh edges by a TopoDS_Edge 2018-11-09 11:11:59 +01:00
Yorik van Havre 7d197ce829 Start: Use default file icon if mime-based one is unavailable for some reason 2018-11-08 17:56:21 -02:00
Yorik van Havre 490b76f405 Arch: Fixed py3 errors in IFC export 2018-11-08 17:23:06 -02:00
Yorik van Havre b56598428d Arch: Disabled children claiming for Section Planes for now (buggy) 2018-11-08 15:17:22 -02:00
wmayer fe033dee78 make unit tests about document observer more reliably 2018-11-08 16:19:06 +01:00
wmayer 24c33c0d96 remove some more boost.signals leftover 2018-11-08 12:34:43 +01:00
wmayer 36b9a1c45c Add unit tests to check the new Prop_NoRecompute value 2018-11-08 10:24:14 +01:00
wmayer 6186a310d7 Add a new PropertyType enum Prop_NoRecompute to reduce possible inconsistencies between touched and recomputed features.
At the moment many feature classes lack of the mustExecute() method and thus can cause a touched feature not to be recomputed and causes the feature to be in a broken state.
Now this new enum value virtually makes the mustExecute() superfluous and thus guarantees to recompute a feature if a modified property has not set the Prop_NoRecompute flag.

On the other hand there are properties that should only touch a feature but not enforce a recompute. This guarantees a better performance and avoids unnecessary recomputes.
For example this is useful for placements where a change can be applied on-the-fly and the feature is up-to-date. Other features that depend on the touched feature will still be recomputed.
2018-11-08 10:20:50 +01:00
Yorik van Havre 1d72ee4343 Draft: Export of Arch Axes to DXF 2018-11-07 12:38:07 -02:00
wmayer daadba4924 add security checks when reading BMS files to avoid possible crashes due to corrupted data 2018-11-07 13:51:39 +01:00
wmayer 7fbd1c6beb remove some more boost.signals leftover 2018-11-07 11:42:44 +01:00
Bernd Hahnebach ba11c3a701 FEM: commands, sort classes 2018-11-06 12:04:49 -03:00
Bernd Hahnebach fb531582f6 FEM: print mesh info, rename it to display mesh info 2018-11-06 12:04:49 -03:00
Bernd Hahnebach 798c0ea4a8 FEM: z88 mesh, some changes:
- add a much simpler method to write a FemMesh to Z88 file format by Python
- add a read method which does not create a document object but just returns the FemMesh
2018-11-06 12:04:49 -03:00
easyw 3408e5908c minor Py3 issue fixed
https://forum.freecadweb.org/viewtopic.php?f=10&t=30624&p=265892#p265892
fixing as suggested here:
https://hynek.me/articles/hasattr/
2018-11-06 12:03:33 -03:00
Zheng, Lei f2ddb64fa1 Path.Area: minor optimization 2018-11-06 12:02:12 -03:00
Zheng, Lei a345669b38 Path.Area: fix default parameter initialization 2018-11-06 12:02:12 -03:00
Markus Lampert 2d3f94590e Support for step down in deburr op. 2018-11-06 12:01:18 -03:00
Markus Lampert 64addcabd9 Enable op base feature pre-selection for multiple base models. 2018-11-06 12:01:18 -03:00
Markus Lampert e4fc276bac Maintain stock bound box extension values across refreshs 2018-11-06 12:01:18 -03:00
Yorik van Havre fe8f172ce1 Arch: Fixed bug in windows snapping 2018-11-05 20:00:56 -02:00
Yorik van Havre ff5d67b66c Draft: fixed snapping to WPProxies 2018-11-05 19:28:20 -02:00
apeltauer d03a11ead9 Change the name of the Wire object
After changing the name from DWire to Wire the test fails, because an element with the name DWire does not exists.
The name change came in with commit "684b4ab03a27231e0cc603ca815bf9ea367fd0b9"
in file "src\Mod\Draft\Draft.py"
2018-11-05 19:24:02 +01:00
wmayer 36124965d1 add PS action to dumpToFile 2018-11-05 19:22:52 +01:00
Yorik van Havre fcdcb5d858 Arch/Draft: Fixed py3 bugs in text rendering 2018-11-05 11:47:54 -02:00
wmayer fbb8e86cbf remove trailing spaces 2018-11-05 11:55:14 +01:00
wmayer 768b1874db + minor fix in Document unit tests 2018-11-05 11:21:50 +01:00
wmayer c1f19d3854 remove trailing spaces 2018-11-05 10:53:01 +01:00
wmayer dedf42102e remove leftover of boost.signals headers 2018-11-05 00:03:36 +01:00
Clemens Weissbacher f71da8d76d py3: Arch: fix TypeError exception 2018-11-04 14:51:38 -03:00
Markus Lampert fb4460e528 Added tool controller to custom op 2018-11-04 14:50:04 -03:00
Markus Lampert fe8677fab1 Also restore position of base op when dressup is deleted. 2018-11-04 14:50:04 -03:00
Markus Lampert bfcd21361f Insert dressups at the same position in the operations list as the parent op is/was 2018-11-04 14:50:04 -03:00
Markus Lampert de5b785f6e Moved Deburr out of experimental features. 2018-11-04 14:50:04 -03:00
pekkaroi 2f2f5af4c2 Path: PathSurface task panel update 2018-11-04 14:49:21 -03:00
pekkaroi 5118118740 generalized optimization algorithm 2018-11-04 14:49:21 -03:00
pekkaroi c40060bc20 Path: Optimize output of OCL dropcutter algo. 2018-11-04 14:49:21 -03:00
Abdullah Tahiri 13f589a0a6 Sketcher: Allow driven constraints when autoredundancy removal and autorecomputes active
==========================================================================================

https://forum.freecadweb.org/viewtopic.php?f=3&t=31998#p266626
2018-11-04 14:46:37 -03:00
DeepSOIC 195c492993 Part: Attacher: fix blocking error message
fix #3662
for now, just allow accepting attachment even if attachment is faulty
2018-11-04 14:45:49 -03:00
Abdullah Tahiri 0a667889a0 Sketcher: Trim bug
==================

Trim tool fails to generate coincidence upon trimming an arc of ellipse at the end of the arc.

https://forum.freecadweb.org/viewtopic.php?f=3&t=31594&start=50#p266765
2018-11-04 14:43:24 -03:00
Abdullah Tahiri d779e5b4b9 Sketcher: Fillet radius estimation improvement 2018-11-04 14:43:24 -03:00
Abdullah Tahiri 6f42f3dacc Part: Geometry tangent with Vector3d overload 2018-11-04 14:43:24 -03:00
Abdullah Tahiri 293e5732ad Sketcher: SketchObject Debug disabled by default 2018-11-04 14:43:24 -03:00
Abdullah Tahiri abc7101118 Sketcher: Add DEBUG macro to SketchObject 2018-11-04 14:43:24 -03:00
Abdullah Tahiri 69d62787eb Sketcher: Intercurve fillet Improvement and delete constraint on point fix
==========================================================================

Intercurve fillet uses endpoint constraints for improved accuracy, but before this
commit was only considering a coincident constraint. Now it also considers an endpoint
tangency or perpendicular.

delConstraintOnPoint with coincidentonly=false, was not checking endpoint perpendiculars and
would therefore fail to delete them.

https://forum.freecadweb.org/viewtopic.php?f=3&t=31594&start=30#p265731
2018-11-04 14:43:24 -03:00
Abdullah Tahiri fe78c1a037 Sketcher: Expose mass datum commands to python 2018-11-04 14:41:20 -03:00
Abdullah Tahiri 2c41e70c91 Sketcher: Mass operations on dimensionals
=========================================

This commit introduces two functions to operate on all datum constraints exclusively:

- Make all datum constraints driving or not driving, depending on the argument.
- Move all datum constraints at the end of the constraint list.

The practical use an ongoing effort towards improving the block constraint behaviour, that will be defered to 0.19
2018-11-04 14:41:20 -03:00
Abdullah Tahiri 6a1aed66e2 Sketcher: Refactor code relating to dimensional constraint checks 2018-11-04 14:41:20 -03:00
Abdullah Tahiri 8e2e5d7b6a Sketcher: Made constraints aware of whether they are dimensionals or not
========================================================================

Centralise the knowledge on whether a constraint is dimensional or not within the constraint
2018-11-04 14:41:20 -03:00
marvellouschandan 071bc89cf1 Indentation error solved 2018-11-04 14:38:45 -03:00
marvellouschandan 2765ed4792 Resolved issue: Exporting rectangular section to ifc 2018-11-04 14:38:45 -03:00
Yorik van Havre 90a1f4ad1c Draft: Fixed py3 bug in getSVG 2018-11-04 15:36:07 -02:00
wmayer c3014fc65f fix blocking of SelectionObserver 2018-11-04 11:54:40 +01:00
luz.paz 4c2f2cd210 Misc. typos and whitespace
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm,./ChangeLog.txt" -I ../fc-word-whitelist.txt` and `grep`. Excess whitespace auto-removed by Atom editor.
2018-11-03 16:13:06 -03:00
wmayer 5ff383b46c fix gcc8 build failure 2018-11-02 18:57:43 +01:00
Yorik van Havre 684b4ab03a Draft: Fixed wrong Placement of Draft Wire - fixes #3558 2018-11-01 14:42:52 -03:00
Przemo Firszt e4b1cfc430 Fix COPR build and remove fedora specific xdg files
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-11-01 10:50:07 -03:00
wmayer e86f7caea8 Improve TaskAttacher dialog:
+ correct handling of active document
+ properly handle case if the view provider or document is deleted while the dialog is still open
2018-10-31 14:29:42 +01:00
wmayer 347f99364d add/extend helper classes to safely access documents, document objects or view providers 2018-10-31 14:27:28 +01:00
wmayer 40cec5f72a add/extend helper classes to savely access document, document objects or view providers 2018-10-31 11:24:45 +01:00
wmayer 0c8da1c38a add an assert to several Command methods to be notified in debug mode if no active document exists 2018-10-31 11:21:33 +01:00
wmayer f898eafd64 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
wmayer 3858b179c3 improve whitespaces 2018-10-30 13:48:00 +01:00
Abdullah Tahiri e10068a648 Sketcher: Trimming support bug
==============================

OCCT Geom2dAPI_InterCurveCurve based intersector does not detect intersection with the endpoint of a tangent line:
https://tracker.dev.opencascade.org/view.php?id=30217

This is a work-around that introduces endpoints of secondary curves as intersections, and uses projection to reject
projections further away than precision::confusion().

fixes #2463
2018-10-30 13:41:40 +01:00
wandererfan 408c31634f Fix BSpline/Circle conversion 2018-10-30 13:25:33 +01:00
wandererfan f0420d6cbd Add formatter for gp_Pnt 2018-10-30 13:25:33 +01:00
wmayer 2f4b61dacb fixes -Winconsistent-missing-override 2018-10-30 13:21:59 +01:00
kreso-t cd34f3d127 Path: Adaptive - set as standard feature
- i.e. removed from experimental features
2018-10-29 23:29:08 +01:00
kreso-t 976e804e2c Path: Adaptive - fix for path cleaning
- fix for side-effect introduced by last change
(completely collinear paths were filtered out)
2018-10-29 23:29:08 +01:00
Clemens Weissbacher 6e7beb1a0b py3: OpenSCAD: fix type cast 2018-10-29 17:18:13 +01:00
Clemens Weissbacher 1be9f18b52 py3: OpenSCAD: use io.open more explicit 2018-10-29 17:17:53 +01:00
wmayer 1538a14eca leave license field and url of a Part container empty to avoid possible confusion with imported 3rd-party STEP/IGES models 2018-10-29 15:24:12 +01:00
wandererfan 2b84be64cc Fix spurious error message
-  in FeatureGroove, the check for multiple
   solids in result was checking the wrong
   variable.
2018-10-29 10:29:23 -03:00
kreso-t c2f2db8b56 Path: Adaptive - finishing path improvements
- fixed bug in path cleaning (artifacts on the finish path)
- increased path discretization resolution
2018-10-29 10:28:54 -03:00
wmayer 1e7aa1becf fix crash with Py3 when releasing memory buffer 2018-10-29 11:59:34 +01:00
wmayer 42c5b2e9ca fixes 0003657: automatic rotation disabled by default 2018-10-28 20:45:02 +01:00
wmayer 53ba33a805 fix -Wunused-private-field 2018-10-28 18:58:38 +01:00
Abdullah Tahiri 1d86a83b30 Sketcher: Fillet UI command Improved exception handling 2018-10-28 18:35:41 +01:00
Abdullah Tahiri 957c22a61a Sketcher: Fillet extended CAD kernel information 2018-10-28 18:35:27 +01:00
Abdullah Tahiri 044e0f6c20 Sketcher: Use transparent exception mechanism for fillets
=========================================================

This ensures that the exception back in the c++ that invoked python retains the type of exception and can be properly catched.
2018-10-28 18:34:50 +01:00
Abdullah Tahiri 7effa68eeb Part: Geometry use CADKernelError exception for OCCT
====================================================

Part of the geometry was using CADKernelError and part was using RunTimeError exceptions, so unify criteria.

Runtime is very generic and does not need to stem from OCCT.

- Also rename of a typo basic to basis, to be coherent with OCCT terminology
2018-10-28 18:34:36 +01:00
Abdullah Tahiri 4b9d90321a Sketcher: GUI command updated to support filleting of bounded curves 2018-10-28 18:34:23 +01:00
Abdullah Tahiri f1a98c3101 Sketcher: Support for filleting bounded curves
==============================================

Generally, bounded curves require that the curves are coincident at one point, the vertex to be filleted.

Trimmed curves, like combinations of line segments, arcs of conics, do not require it, as they are able to extend the trimmed
curve using the basis curve. However, they work fine when there is such a coincidence.
2018-10-28 18:34:12 +01:00
Abdullah Tahiri 649d115afb Part: Geometry New Bounded-Trimmed-curve inheritance
====================================================

The new hierarchy is as this:
GeomArcOfConic:GeomTrimmedCurve:GeomBoundedCurve:GeomCurve

A bounded curve is one having a start and endpoint, like an arc, a line segment, or a b-spline

A trimmed curve is one arising from trimming a basis curve, line an arc or a line segment, but NOT a b-spline.

An arc of Conic is one arising from a conic section, line an arc, but neither a line segment, nor a b-spline.

This new hierarchy enables a more consistent handling of geometry and it is closer to the OCCT hierarchy.
2018-10-28 18:33:58 +01:00
Abdullah Tahiri 0ed7b1d691 Part: Geometry - refactoring of intersection code 2018-10-28 18:33:45 +01:00
Abdullah Tahiri c946de8fb4 Part: Geometry - intersection - checkendpoints
===============================================

Extrema algorithms sometimes fails when coincident endpoints

I am not sure if it is a bug in OCCT or it is just not intended.

This commits adds an extra check to add endpoints if within tolerance.
https://forum.freecadweb.org/viewtopic.php?f=10&t=31700
2018-10-28 18:33:32 +01:00
Abdullah Tahiri 4d1e981138 Part: Geometry GeomTrim Geomline segment type
=============================================

Make line segment inherit from GeomTrim. This allows seamless management of trimmed curves.
2018-10-28 18:33:19 +01:00
Abdullah Tahiri 396998467b Part: Geometry intersect routines throw when OCCT throws 2018-10-28 18:32:42 +01:00
Abdullah Tahiri 7c1a218847 Sketcher: Inter-trimmed-curve filleting
=======================================

Algorithm changed to use offset curves, so as to avoid moving geometry in the sketcher.
2018-10-28 18:32:30 +01:00
Abdullah Tahiri b1858f2cf4 Part: Geometry Arcs inheriting from GeomTrimmedCurve 2018-10-28 18:32:15 +01:00
Abdullah Tahiri 0aa3da513a Sketcher: filleting arcofconic-arcofconic command 2018-10-28 18:32:02 +01:00
Abdullah Tahiri 44c5f1a67e Sketcher: Fillet support inter-conics
==============================================

Specific support for filleting between conics.

It does not support B-Splines or line segments.
2018-10-28 18:31:48 +01:00
Abdullah Tahiri 8b97a31372 Part: Geometry refactoring
==========================

python c+ wrapper to use twin class c++ function instead of duplicating the code
2018-10-28 18:31:35 +01:00
Abdullah Tahiri 9e349c33a8 Part: Geometry - improvements/bug fixes
=======================================

routine for closest parameter to point was failing on endpoints. The former version
used the parameter of the basis curve, which sometimes was giving parameter values
incoherent. This version uses distance to endpoints when a projection on the trimmed
curve can not be found.
2018-10-28 18:31:22 +01:00
Abdullah Tahiri f301feec31 Part: New routines for curve intersection 2018-10-28 18:31:06 +01:00
Yorik van Havre 4c9356f0f5 Arch: Finished implementing color support for Arch Reference 2018-10-28 13:57:05 -03:00
Yorik van Havre a3729d5ca9 Arch: Support part colors in Reference 2018-10-28 13:57:05 -03:00
wmayer 17c783051b extend FreeCAD.getUserMacroDir to accept boolean to either return actual or default macro directory 2018-10-28 17:10:10 +01:00
lorenz e517c00d9b py3: Fem: remove extra b'ees
https://forum.freecadweb.org/viewtopic.php?f=18&t=30954
2018-10-28 15:13:30 +01:00
wmayer 465152bcc9 fix crash in debug mode in sketcher in case the equation matrix has rank zero 2018-10-28 14:51:14 +01:00
wmayer 4362ddc797 Raytracing: Fixed search locations of povray 2018-10-28 13:09:25 +01:00
wmayer 907cdb8fa0 add module for Qt translation stuff 2018-10-28 12:58:14 +01:00
Yorik van Havre 57726db47f AddonManager: minor bugfix 2018-10-27 16:15:55 -03:00
Yorik van Havre 7fabfde0ef py3 compatibility fixes 2018-10-27 16:04:51 -03:00
wmayer b6712e264a fix crash with Py3 when releasing memory buffer 2018-10-27 19:58:54 +02:00
wmayer 3b1e1f8859 remove trailing whitespaces 2018-10-27 18:12:36 +02:00
wmayer 3443fd9661 replace deprecated failUnless with assertEqual 2018-10-27 17:44:37 +02:00
ickby b262cf6e9f Persistence: Incorporate review feedback 2018-10-27 16:15:39 +02:00
ickby c60364772a Persistence: Test cases for content dump
It turned our that the document could not be dumped as the xml specifier was used as first element. As the dumping added the <content> element around it was invalid. However, content is required to read properties. Hence the xml element generation was moved.
2018-10-27 16:15:30 +02:00
ickby f5fc291ecd Persistence: Avoid copy of data on binary restore 2018-10-27 16:15:20 +02:00
ickby 4a7d49f8b6 Persistence: Enable binary dumps of properties 2018-10-27 16:15:09 +02:00
ickby fd378bbc8d Persistence: Implement dumping of binary content 2018-10-27 16:14:59 +02:00
wmayer 2af5a983a2 unit test for / operator of Quantity 2018-10-27 15:58:40 +02:00
wmayer 83f61b4372 implement true divide handler of the number protocol for Quantity 2018-10-27 15:27:27 +02:00
George Shuklin 7ec3984cbe Add support for dLabel.ViewObject.Line
If it's false, do not draw line (and arrow), text only
2018-10-26 19:25:44 -03:00
George Shuklin 9543d54647 Add arrows to dLabel getSVG, minor style cleanup 2018-10-26 19:25:44 -03:00
George Shuklin 3a85a1fd41 Add line for annotation (no arrow yet) 2018-10-26 19:25:44 -03:00
George Shuklin 3391a5ea4b Initial work, only text (no lines) 2018-10-26 19:25:44 -03:00
wmayer 76590be8ac improve call tips window 2018-10-26 19:37:16 +02:00
wmayer 4cff87ed57 add functions to customize NaviCube 2018-10-26 15:51:03 +02:00
triplus 10cd4cc7af Hide Draft tray toolbar
Forum discussion:

https://forum.freecadweb.org/viewtopic.php?f=3&t=31720
2018-10-26 04:26:20 +02:00
wandererfan 4fa707f46d Respect "InvertZoom" parameter 2018-10-26 00:49:53 +02:00
wandererfan 9c1587cfad Fix delayed rotation of DVP based Views 2018-10-26 00:49:53 +02:00
wandererfan b2135da447 Workaround for #3332 2018-10-26 00:49:52 +02:00
luz.paz 0660fd737c Reverting partial commit 2a53eb043 2018-10-26 00:47:18 +02:00
wmayer 33663d134d make the methods highlightSelection/unhighlightSelection virtual 2018-10-26 00:40:20 +02:00
wmayer 41ca90d223 Do not use a view provider's bounding box node when handling BoundBox selection style because it leads to some inconsistent behaviour.
Instead let SoBoxSelectionRenderAction render the bounding box.
2018-10-26 00:39:15 +02:00
Yorik van Havre b11ed19f8d Arch: Make section planes claim their children in the tree 2018-10-25 12:13:16 -03:00
Yorik van Havre f1e3ec88c6 AddonManager: Fixed missing files in cmake 2018-10-25 12:02:46 -03:00
Yorik van Havre 8ffd8c2901 Arch: Fixed bug in Site 2018-10-25 11:59:22 -03:00
luz.paz b78a6b57fa Another typo fix 2018-10-25 11:06:28 -03:00
luz.paz 0500bcbda3 Requested revision 2018-10-25 11:06:28 -03:00
luz.paz 2a53eb0432 Please review these and then I'll squash all in to one commit 2018-10-25 11:06:28 -03:00
luz.paz f976a4f734 Misc. typos and whitespace fixes
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ../fc-word-whitelist.txt` and `grep`
2018-10-25 11:06:28 -03:00
Gaël Écorchard 968ce141d0 [AddonManager] Fix Python 2 bug with list comprehension 2018-10-25 11:04:43 -03:00
Gaël Écorchard 2506f5b207 [AddonManager] Strip whitespace from other_files
Strip whitespace from the file name in the macro metadata __Files__
field.
2018-10-25 11:04:43 -03:00
Gaël Écorchard 37b738f86f [AddonManager] Add support for __Files__
Read the metadata __Files__ for macros from git and install or remove
files listed there.
__Files__ must be a comma-separated list of files to be copied alongside
the macro.  Their path must be relative to the macro (*.FCMacro file)
and not to othe root of the repository. Each file can be prefixed with a
subdirectory.
2018-10-25 11:04:43 -03:00
Gaël Écorchard bac786a8ea [AddonManager] separate the Macro class
Separate the Macro class of the AddonManager into addonmanager_macro.py
to prepare for future support for dependent files for macros from the
git repository.
2018-10-25 11:04:43 -03:00
Clemens Weissbacher cef825c567 py3: OpenSCAD: make Mod/OpenSCAD python3 compatible 2018-10-25 11:03:36 -03:00
Clemens Weissbacher 54f88cc75c py3: Arch: fix import urllib2 problem 2018-10-25 11:03:36 -03:00
pekkaroi ae9786253c PATH Fix bug on finding minimum Z on DressupRampEntry 2018-10-25 11:02:02 -03:00
lorenz d3df5d979a py3: Arch: try to fix unicode problem 2018-10-25 11:01:03 -03:00
Bernd Hahnebach d449f7f8c0 FEM: nonlinear material, small fix in setting solver attributes 2018-10-25 11:00:07 -03:00
Bernd Hahnebach 96f515748b FEM: ccx solver task panel run, return error if CalculiX has finished but there are errors in output. Happens on nonpositive jacobians 2018-10-25 11:00:07 -03:00
Bernd Hahnebach 341b72bea8 FEM: ccx tools, small improvements if nonpositive jacobians are in the mesh 2018-10-25 11:00:07 -03:00
luz.paz a22a0d4567 FEM: file headers, fix .cpp and .h header text 2018-10-25 11:00:07 -03:00
wandererfan 733dae2b3d Update context menu
- Page context menu was left over from
  Drawing module. Now updated with
  appropriate actions.
2018-10-25 10:58:53 -03:00
wandererfan 650404c17f Reduce unnecessary updates to QGraphicsScene
- Views were being redrawn unnecessarily on
  changes to selection status. Views are now
  redrawn only if the item's selection status
  is different from the desired state.
2018-10-25 10:58:53 -03:00
wandererfan 24f43527f5 Use circles for circular BSplines 2018-10-25 10:58:53 -03:00
wmayer 2004653fe4 check for existence of PySide stuff when defining convertWrapperToQuantity 2018-10-24 23:12:59 +02:00
wmayer 36029e96d6 restore shiboken wrapper for Base::Quantity 2018-10-24 22:27:59 +02:00
wmayer be586d089e improve whitespaces 2018-10-24 19:41:21 +02:00
wmayer a53027342e rework error handling mechanism 2018-10-24 19:38:43 +02:00
Yorik van Havre ea4fb69e4e Arch: Prevent exporting materials as IFC objects 2018-10-24 14:22:38 -03:00
Yorik van Havre 46b152669b Draft: fixed bug in delay system when passing a function with False as argument 2018-10-24 14:22:11 -03:00
Yorik van Havre 3969400a11 Draft: Don't show the Draft tray bar automatically 2018-10-24 12:23:20 -03:00
Amritpal Singh 74a6bb4253 Updated Draft Dimension object. 2018-10-24 11:06:17 -03:00
Yorik van Havre c78ebdec42 Draft: Set normal direction of dimensions to (0,0,1) by default 2018-10-23 22:18:26 -03:00
wmayer 75ee3e4c25 suppress error message if while restoring a document one of the lines or planes of an origin cannot be found 2018-10-23 23:12:25 +02:00
wmayer 27615abce1 implement a direct way to set single or double precision when writing/reading properties using floating point numbers 2018-10-23 19:38:03 +02:00
wmayer 8678f74dc6 allow to access NaviCube of 3d viewer 2018-10-23 12:47:11 +02:00
wmayer 7c4ab45e31 cache supported languages in order to make preferences dialog open faster 2018-10-23 12:44:43 +02:00
wmayer 409fec05c9 improve whitspaces 2018-10-23 12:43:47 +02:00
kreso-t 70fef39341 Path: Adaptive - finish depth option added
implemented the same way as in other path area operations
reusing the PathUtils.depth_params class
2018-10-22 15:41:18 -03:00
wandererfan 31a9ae655f Fix crash on RevertDocument
- MDIViewPage was not being deleted when document
  was closed. On reload, stale MDIViewPage was using
  old object pointers.
2018-10-22 15:39:01 -03:00
Martin Kroeker 13584d64fb py3: cannot take len() of zip() object directly 2018-10-22 15:38:16 -03:00
wandererfan 9f2ad88ded Upgrade test for BSpline is Line 2018-10-22 15:34:13 -03:00
wandererfan 3ca8eb0989 Use Page Label for Tab Text 2018-10-22 15:34:13 -03:00
wandererfan 8280d551a9 Fix Rotation not applied after restore
- DrawAnnotation was not applying Rotation
  property after restore from saved file.
2018-10-22 15:34:13 -03:00
Peter Eszlari 8933374b4d Linux: add XDG metadata files 2018-10-22 15:29:53 -03:00
looooo 44c2f19e38 py3: Draft: use proper way to test if property is available
if the attribute is not available py3 raises: `<class 'AssertionError'>: The enum is empty`. For py2 hasattr simple returns False. Similar changes should be applied also to other places.
2018-10-22 15:25:00 -03:00
wmayer 9bb360bb75 fix bug in PropertyPlacementList::RestoreDocFile 2018-10-22 12:06:54 +02:00
wmayer 1243b2543e put USE_OLD_DAG around use of backlinks 2018-10-22 12:06:22 +02:00
wmayer a8b7390805 fixes 0003486: Improve VRML export for more complex structures 2018-10-21 20:53:19 +02:00
wmayer c950d1f093 improve whitespaces 2018-10-19 22:25:55 +02:00
wmayer 7b86681678 fixes 0003638: Importing CSV-files produces an empty spreadsheet without the data 2018-10-18 23:32:32 +02:00
wmayer 3a6afac8b2 improve whitespaces 2018-10-18 23:31:55 +02:00
looooo 1e6818b6fb py3: arch: fix unicode problems #3590 2018-10-17 11:28:16 +02:00
wandererfan a281832627 Change tool from cylinder to prism
- cutting with cylinder produced too many
  short bsplines from HLR.  Straight cut
  from prism reduces these and speeds up
  HLR significantly.
2018-10-17 11:25:49 +02:00
Przemo Firszt 5eac507240 Add conditional python-matplotlib requirement depending on fedora ver
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-10-17 11:24:33 +02:00
Przemo Firszt 162dfe5737 Set revision and url in nightly builds
This is quick & dirty fix to a problem with revision number and date when
building from the tarball. The tarballs don't have all the git info
required to recognise build type and set revision/date properly, so it
will be done "manually" using sed. That change doesn't affect anything
except fedora rpmbuild or COPR builds.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-10-17 11:24:33 +02:00
Bernd Hahnebach 5e3b10c92f FEM: code formating, cut lines with more than 200 diggits 2018-10-17 11:23:05 +02:00
Bernd Hahnebach 40d0db3176 FEM: ccx solver, add gemetry check analysis 2018-10-17 11:23:05 +02:00
Bernd Hahnebach 76cc1308e1 FEM: print message, fix 2018-10-17 11:23:05 +02:00
Bernd Hahnebach 5981cf07b1 FEM: inout modules, delete not used and not needed variable 2018-10-17 11:23:05 +02:00
luz.paz f5523dd830 FEM: Typos 2018-10-17 11:23:04 +02:00
luz.paz d6d7b36aeb FEM: Grammar and organization fixes 2018-10-17 11:23:04 +02:00
wmayer 1c1dfe2215 whitespace improvement 2018-10-17 11:20:18 +02:00
wmayer 0b12ceec84 make constraint validation consistent to evaluation 2018-10-16 23:21:40 +02:00
wmayer 20298c45d2 set the cloned shape the tip of the created body 2018-10-16 19:39:07 +02:00
wmayer 0c63ab4234 remove unused shiboken wrapper for Base::Quantity 2018-10-16 19:31:33 +02:00
wmayer 47536dcd37 enable FREECAD_RELEASE_PDB by default, cleanup cmake file, improve whiespaces 2018-10-15 20:11:58 +02:00
wmayer 19b399015e fix possible build failure if oCCT is not used 2018-10-15 20:10:42 +02:00
wmayer 9d3ad415aa add option to save document directly to target file 2018-10-15 20:09:43 +02:00
wmayer e79a19828e avoid to degenerate the view frustum if there is only a single point in the scene 2018-10-15 14:08:46 +02:00
wmayer c6745d1b5b fixes 0003610: App::PropertyFloatList not updating in Spreadsheet 2018-10-13 14:02:03 +02:00
wmayer 571f75204a fixes 0003341: Undoing is missing steps 2018-10-13 12:21:17 +02:00
wandererfan cb30a82969 Fix #3634 Lost formatSpec on save/restore 2018-10-13 02:10:53 +02:00
wmayer 715ab0596e remove unused checkbox from Placement dialog 2018-10-13 01:51:05 +02:00
mwganson e1c18f0153 shorten placement dialog height so there is not so much scrolling required 2018-10-13 01:36:25 +02:00
mwganson 404f9e019d placement task -- for user's convenience copy distance or angle to clipboard when user shift+clicks Selected points button 2018-10-13 01:11:39 +02:00
wmayer 7527c7d149 fix -Wunused-variable 2018-10-12 22:17:29 +02:00
luz.paz 125f41e3e8 Misc. typo fix
Found via `codespell`
2018-10-11 16:21:28 -04:00
wandererfan f6e9faa62c Fix #3623 Display of Ft/In Dimensions 2018-10-11 21:59:20 +02:00
wandererfan eaf987625e Correct tree icon for Angle3Pt 2018-10-11 21:59:05 +02:00
wandererfan a373280946 Add @mario52's templates 2018-10-11 21:58:47 +02:00
wmayer 22ddbe0f8d fixes 0003632: Drawing lines on top of an image will not save the work (Reason: ' &' in the file name) 2018-10-11 21:50:32 +02:00
wmayer 68c644104a implement mustExecute for Raytracing features 2018-10-11 15:51:11 +02:00
wmayer 23d64fa7b7 fixes 0003629: FEM, input file is not written if the FreeCAD document name has none standard letters 2018-10-11 12:40:16 +02:00
wmayer ae7c53b951 Py3: fix opening file 2018-10-11 12:06:07 +02:00
wmayer 04faa8f497 + fix cutting or selecting mesh in perspective projection mode 2018-10-11 10:48:27 +02:00
Amritpal Singh ff05101b68 Fixed FreeCAD crashes. 2018-10-10 10:45:57 -03:00
wmayer 6178c79581 implement Cut, Copy, Paste messages in SheetView 2018-10-10 08:25:34 +02:00
wmayer 22513600dd implement cut/copy/paste in spreadsheet view 2018-10-09 00:02:53 +02:00
wmayer 0e948db5a3 Win32-specific optimization in Points module 2018-10-08 18:50:03 +02:00
Abdullah Tahiri e66849378b Sketcher: Avoid transfering angle constraints
=============================================

Angle constraints are internally coded using the diverging points of the segments (PointPos != none) in normal 2 segment angle constraints.

This creates a problem with the mechanism to transfer enpoints on angle deletion.

fixes #3589
2018-10-08 15:16:27 +02:00
wmayer dc023afc84 emit signal when starting and finishing to save a document 2018-10-08 14:03:00 +02:00
wmayer 4ac34d06a8 minor fixes 2018-10-08 12:27:03 +02:00
luz.paz 1f3905810c typo/grammar fixes 2018-10-08 11:06:41 +02:00
ickby 11a569b6b4 Make document observer testcases work in cmd line mode 2018-10-08 11:06:25 +02:00
ickby 3e3bfbabf5 Expose edit signals to Gui observer 2018-10-08 11:06:04 +02:00
ickby a0de8c9a62 Add python document observer for GUI documents 2018-10-08 11:04:56 +02:00
ickby fb95e3247d Expose dynamic property signals to python observer 2018-10-08 11:02:31 +02:00
ickby 7ec4fb357c Improve document observer tests by checking parameters of each call, not only the last one 2018-10-08 11:01:52 +02:00
ickby f68e36de41 Expose document property changes to python document observer 2018-10-08 11:01:07 +02:00
ickby e91de65df0 Fix and test the new signals 2018-10-08 10:58:39 +02:00
ickby 238c8a8567 Expose onBeforeChange to python document observer 2018-10-08 10:52:52 +02:00
Stefan Tröger 0edf6892b3 Expose transaction events to document observer 2018-10-08 10:49:39 +02:00
Stefan Tröger 2a15d8fc3a Add signals for recomputed objects 2018-10-08 10:43:32 +02:00
Priit Laes 64e9c4ea5a travis: ccache compilation also requires xsltproc 2018-10-08 10:40:13 +02:00
Priit Laes c6b1bdd297 travis: Install eigen3 via package from Ubuntu repository 2018-10-08 10:40:03 +02:00
Priit Laes ba85adf78c travis: Drop references to Ubuntu 12.04 2018-10-08 10:39:53 +02:00
Priit Laes ee3456fd88 travis: Reduce number of packages installed via apt
Use `--no-install-recommends` to only install needed packages.
2018-10-08 10:39:35 +02:00
mwganson 876c65157d issue 3443, suppress generation of new document when documents are loaded via command line 2018-10-07 23:27:44 +02:00
wmayer 84aa87c852 keep corner of navi cube when changing language 2018-10-07 22:39:33 +02:00
wmayer 8e084199d9 improve trace support of Shape binder 2018-10-07 22:11:53 +02:00
wmayer 84280330aa print warning also in release mode if an object is still touched after recompute 2018-10-07 22:09:44 +02:00
wmayer be8b1b52c1 fix ObjectStatusLocker and StateLocker to support nested calls 2018-10-07 22:04:27 +02:00
paullee 3de3ac3994 Tweak makeRailing(None) to (re)-create Railing and insert back to Stairs.Additions
Discussion:-

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&p=260767#p260767
2018-10-07 13:48:33 -03:00
paullee c825cca145 Default Stairs (i.e. without Base Dwire etc.) also have Railings created
Discussion:-

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&sid=55d32dc42111afa6c7fdf7b0fc0f3ab7&start=90#p260764
2018-10-07 13:48:33 -03:00
paul 1e23a42068 Merge pull request #1 from luzpaz/ArchStairs_Improvement_9
Typo fix for Archstair_Improvement9
2018-10-07 13:48:33 -03:00
wmayer 294100d95e for inner loop use a different iterator variable than for outer loop, remove superfluous argument from Message() 2018-10-06 19:42:58 +02:00
mwganson 3d833e52df placement dlg - do reselection prior to updating center coordinates -- prevents other object moving if apply incremental changes is not enabled 2018-10-05 16:14:17 -05:00
wmayer f84971fca2 avoid throwing exception in intersectCC 2018-10-05 22:17:20 +02:00
wmayer f5befc75ce improve unicode handling when setting Start page 2018-10-05 15:36:34 +02:00
wmayer d9e4c727db improve mesh decimation 2018-10-05 15:07:27 +02:00
lorenz 795e261be6 StartPage - handle should always return unicode 2018-10-05 11:33:30 +02:00
lorenz c159f9abad py3: fix unicode problem 2018-10-05 11:33:17 +02:00
Markus Lampert 6848a3c116 Removed experimental wb from build 2018-10-05 11:30:45 +02:00
Markus Lampert 78863e2698 Added comment about the correctness of cloning a clone - lest I not attempt to /fix/ it again 2018-10-05 11:30:45 +02:00
Markus Lampert 0e9bbf401c Cleaning up startEditing/finishEditing/isEditing 2018-10-05 11:30:45 +02:00
Markus Lampert 1a6665c0f4 Changed view providers to use Gui.Document.setEdit to start the editor for a new object. 2018-10-05 11:30:45 +02:00
mwganson 2c09277763 sketcher: clear selection after failed addExternal geometry to prevent crash 2018-10-05 11:26:07 +02:00
wmayer 48ec50db38 fix segfault in ExpressionDelegate in case constraint property is invalidated 2018-10-04 23:34:19 +02:00
wmayer a0916a9a66 avoid re-throwing an exception in case normal is not defined 2018-10-04 23:31:55 +02:00
wmayer 7949cd84ef fix possible crashes in sketcher commands due to wrong casts 2018-10-04 19:45:20 +02:00
wmayer abb56c35d0 0003544: Crash on creation of vertical dimension with Shift + V 2018-10-04 18:37:33 +02:00
wmayer b7f7c16e6c fix header include 2018-10-04 16:49:04 +02:00
mwganson 5811bc5f24 placement task - align buttons better 2018-10-04 16:26:31 +02:00
mwganson a520eb6342 placement - show complementary angle as float 2018-10-04 16:26:22 +02:00
kreso-t cc0dbb58e5 Path: Adaptive - adjustments to path smoothing 2018-10-04 16:23:20 +02:00
Yorik van Havre da9c652782 Start: Write test page in non-binary format 2018-10-04 11:11:48 -03:00
wmayer ebec4cd5e2 fix freeze when editing empty sketch 2018-10-04 00:34:06 +02:00
wmayer 93d9f16588 in topologicalSort check for valid iterator 2018-10-04 00:33:19 +02:00
Yorik van Havre 58b80f5389 Arch: bugfix in PanelCut 2018-10-03 16:37:28 -03:00
Yorik van Havre 1dfdaca5d3 Raytracing: Fixed search locations of povray 2018-10-03 16:33:41 -03:00
Yorik van Havre 27c80884a1 Start: Fixed freeze when trying to read corrupt fcstd file 2018-10-03 16:33:11 -03:00
Yorik van Havre a6f7ca483e Arch: Added a CutOffset property to PanelCut object to be able to move the cut plane 2018-10-03 16:04:01 -03:00
wmayer 8bf9d368a4 avoid multiple spaces in property name 2018-10-03 18:48:10 +02:00
wmayer e2ddabf235 returning a boolean from setEdit/unsetEdit of a Python view provider indicates a handled edit mode, None indicates to forward it to the C++ view provider 2018-10-03 17:39:22 +02:00
markus a4b0bdf33d Fixed context menu for PathIconViewProvider 2018-10-03 16:49:26 +02:00
markus 293ac55262 Fixed path model double click 2018-10-03 16:49:19 +02:00
markus 868baa6dd2 Return NotImplemented on PythonFeature::setEdit if the setEdit is implemented and returns True for one of the standard, not Default, edit modes 2018-10-03 16:49:10 +02:00
wmayer 5b85233a58 remove useless methods startEditing/finishEditing/isEditing from Python wrapper of view provider
add attribute to access document from view provider
2018-10-03 16:31:58 +02:00
wmayer 41f0dc1fe8 support of user defined Povray or Lux templates 2018-10-03 14:29:34 +02:00
wmayer 39d072bf82 fixes 0003621: Additive and subtractive loft preview not showing during creation 2018-10-03 12:40:43 +02:00
wmayer a03f8b7e49 improve whitespaces 2018-10-03 12:40:13 +02:00
luz.paz b8c50dc0f9 Fixed misplaced word 2018-10-02 21:05:31 +02:00
luz.paz 2de755186b Misc. typo fixes
Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ../fc-word-whitelist.txt`
2018-10-02 21:05:22 +02:00
mwganson fae5b4f7f7 Placement dialog - more consistent axis direction based on order of selection 2018-10-02 21:03:51 +02:00
Abdullah Tahiri 65dd09d5e6 Sketcher: Grid visualization improvement
========================================

Now the Grid is calculated based on the maximum semiaxis length. Grid is recalculated on every redraw of the Sketcher.
2018-10-02 20:59:29 +02:00
Abdullah Tahiri dedd66e7f4 Sketcher: Axes visualization improvement
========================================

Axes size was bounded to the boundingbox of the underlaying 2D shape. However, this does not even get updated in no update mode and provides unreliable values.

The axes calculation now:
- is coded to be the same size and fully symmetric.
- is coded to be minimum 100 mm semiaxis, which gives a good impresion for empty sketches with default zoom.
- is coded to grow with the largest of the semiaxes.

fixes #3334
2018-10-02 20:59:10 +02:00
wmayer 93f06f8256 fixes 0003410: 0.17 Regression: recompute will make parts lose color and take a longer delay compared to FC0.16 2018-10-02 19:04:44 +02:00
Yorik van Havre 4cab61c54a AddonManager: Added Mario's macro execute button 2018-10-02 10:25:38 -03:00
Markus Lampert a7942fc3ec Fixed path tool controller context menu 2018-10-02 09:42:52 -03:00
Markus Lampert 04568dc6ee Cleaned up path op context menu 2018-10-02 09:42:52 -03:00
Markus Lampert 317de14d25 Fixed model edit 2018-10-02 09:42:52 -03:00
Markus Lampert 82b98588aa Fixed support for objects in the tree without a Proxy 2018-10-02 09:42:52 -03:00
Markus Lampert 840e904a12 Fixed context menu for PathJob 2018-10-02 09:42:52 -03:00
Markus Lampert dd2679bc46 Fixed PathSetupSheet task panel and added doc strings to the UI. 2018-10-02 09:42:52 -03:00
Markus Lampert cf2799ccd8 Refactored operation initialisation into separate module so it can be called from the WB and the Job UI. 2018-10-02 09:42:52 -03:00
wandererfan cc320aa802 Handle Straight Line BSplines 2018-10-02 09:42:16 -03:00
wandererfan b569120131 Add 3Point Angle Dimension 2018-10-02 09:42:16 -03:00
wandererfan 1578b05a98 Add option to reverse arrowheads on Dims 2018-10-02 09:42:16 -03:00
wandererfan f5668c77ae Move dimText Prefix to FormatSpec
- prefix was applied at every request for
  formatted value. Now prefix is applied
  to FormatSpec and can be overridden for
  things like screw dia. M6 vs (phi)M6.
2018-10-02 09:42:16 -03:00
wandererfan d2c2b35b6c Add over/under Tolerance to Dimensions 2018-10-02 09:42:16 -03:00
Yorik van Havre 1d3f3ab7ec AddonManager: Fixed macro copying and centre manager dialog over FC window 2018-10-01 19:19:52 -03:00
Yorik van Havre 0e6f14e86b Arch: bugfixes in reference tool 2018-10-01 18:36:29 -03:00
Bernd Hahnebach 6410c28ddb FEM: vtk, tools, better comments in header file 2018-10-01 17:53:30 -03:00
Bernd Hahnebach c7252e5efd FEM: vtk, import and export FC result, better log messages 2018-10-01 17:53:30 -03:00
Bernd Hahnebach dc41055741 FEM: vtk, import and export FC result, get the FC result properties for them from a seperate method 2018-10-01 17:53:30 -03:00
Bernd Hahnebach ffdfaafb98 FEM: in out and vtk, make use of stats calculations for vtk import 2018-10-01 17:53:30 -03:00
Bernd Hahnebach 3d86b69657 FEM: import tools, move stats calculation in separate method 2018-10-01 17:53:30 -03:00
Bernd Hahnebach f56afed06d FEM: vtk, import FC result, further code improvements 2018-10-01 17:53:30 -03:00
Bernd Hahnebach 702b999e48 FEM: vtk, import FC result, small code improvements 2018-10-01 17:53:30 -03:00
Bernd Hahnebach a6ae394c1a FEM: vtk, import FC result, get rid of needless essential property 2018-10-01 17:53:30 -03:00
Bernd Hahnebach e1b9ad2899 FEM: vtk, import FC result, move defs together 2018-10-01 17:53:30 -03:00
Bernd Hahnebach bc9de847f1 FEM: vtk, export FC result, move defs together 2018-10-01 17:53:30 -03:00
Bernd Hahnebach 23643f08dc FEM: vtk, import FC result, get rid of needles result types 2018-10-01 17:53:30 -03:00
Bernd Hahnebach b05d61b391 FEM: vtk, export FC result, small code improvements 2018-10-01 17:53:30 -03:00
Bernd Hahnebach 99855a1605 FEM: vtk, export FC result, get rid of needless result types
- an result is an result, we just gone export what we have
- a vtk result can consists of all kind of result types
2018-10-01 17:53:30 -03:00
wmayer c3a8348861 fixes 0003571: Offset3D of volumes intersection is not solid 2018-09-30 22:40:32 +02:00
wmayer caf78bbabf fixes 0003509: Create MultiTransform Feature from existing Transform Feature forces document migration 2018-09-30 18:14:22 +02:00
wmayer 46def65b44 make DAG view behave more nicely in case of cyclic graphs 2018-09-30 15:21:11 +02:00
wmayer dfe734f3f1 fix infinite recursion when creating dependency graph with loops 2018-09-30 14:56:47 +02:00
Yorik van Havre 496df34369 Arch: Finished base implementation of Reference object 2018-09-29 16:41:42 -03:00
Yorik van Havre 1fec4d0c51 Arch: Started implementing Arch Reference 2018-09-29 16:41:42 -03:00
wmayer 64b9c78b92 fix GeometryPy::setConstruction 2018-09-29 21:36:07 +02:00
wmayer 47dacf30d0 update resource file 2018-09-29 18:32:12 +02:00
Rafael e8c6007c8f Replace fem-post-filter-data-at-point PNGicon
Currently a FEM WB tool has a PNG icon in FreeCAD. This file is the
fem-post-filter-data-at-point.png The rest of the icons in FEM WB 
are SVG files. This PNG icon is from ParaView and it has a different
stile, compared with the other FEM icons. It would be good to have 
an original SVG icon for this tool.

This commit replaces the PNG file with a SVG file with a new design. 
This job was a request from the FEM WB developer, in the UX/UI Design
FreeCAD Forum.

The new SVG icon follows the FreeCAD Artwork Guidelines
- https://www.freecadweb.org/wiki/Artwork_Guidelines

The new design keep the stile of the other icons with similar function 
in the FEM toolbar
- https://www.freecadweb.org/wiki/File:Fem-DataAlongLine.svg
2018-09-29 18:30:50 +02:00
Abdullah Tahiri b73cbd739c Sketcher: Correct checking of compatible equality geometry
=========================================================

Before this commit equality line to circle is allowed although the solver can not process it.

Similar happens for several combinations of incompatible edges.
2018-09-29 18:18:42 +02:00
Abdullah Tahiri 80e4b36f37 Sketcher: No equality to be applied to external axes
fixes #3532
2018-09-29 18:18:02 +02:00
kreso-t d1eb5f19a8 Path: Adaptive - Small adjustment to link path cleaning 2018-09-29 18:12:45 +02:00
kreso-t 9a2338a2cf Path: Adaptive - small performance improvement
- related to linking path smoothing
2018-09-29 18:12:28 +02:00
kreso-t a9dfb16998 Path: Adaptive - improvements and bug fixes
- more accurate path smoothing
- fix for missing helix lead-in in some cases
- fix for cleaning of helix center point
- increased max allowed step-over to 75%
2018-09-29 18:12:09 +02:00
wmayer 96ea2d470e use toDegrees 2018-09-29 18:08:10 +02:00
mwganson c78321f347 ensure points.size() > 0 before accessing points[0], update selected points message 2018-09-29 18:08:10 +02:00
Mark Ganson TheMarkster 55e6ee6d20 add support for 3 picked points in placement dialog (#1) 2018-09-29 18:08:09 +02:00
mwganson cfe088400d add tooltip to apply axial button 2018-09-29 18:08:09 +02:00
mwganson 6b44ba59bb add axial movement to placement dialog 2018-09-29 18:08:09 +02:00
Yorik van Havre 17b568db17 Start: Added pref option to use gradient icon for new files 2018-09-29 12:52:04 -03:00
wmayer dc46910231 fix crash when creating a copy of datum object 2018-09-29 12:34:55 +02:00
Yorik van Havre 0d228bce02 Arch: Fixed edit mode of components 2018-09-28 16:13:01 -03:00
paullee 2cddbe5dab ArchPipe objects named as "Rail"
Discussion:
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&p=259085#p259085
https://github.com/FreeCAD/FreeCAD/commit/5f63a7764bc4372f26db244a10d0dd0bc39ed360#diff-fb9ac48ea14ab86d0e964fee1f4e4838
2018-09-28 13:18:40 -03:00
paullee 56378b5be8 Add Property 'Width of Landing'; set width of different 'edge' of a Landing
Discussion:
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=80#p257963
https://forum.freecadweb.org/viewtopic.php?f=22&t=29709
2018-09-28 13:18:40 -03:00
wmayer e605d5f4bf fix build failure for oCCT 7.2 or later 2018-09-28 15:36:17 +02:00
wmayer 27a4938d90 move class ExportOCAF to own source files 2018-09-28 15:06:46 +02:00
wmayer 95efad737b fixes 0003491: Import.export not preserving placement of Part Features in STP file export 2018-09-28 14:58:49 +02:00
wmayer 02ab1c9424 fixes 0003165: Color information lost in STEP export 2018-09-28 11:49:04 +02:00
wmayer 0812fb06df improve Python call tips window 2018-09-27 21:49:20 +02:00
wmayer 3d2d4bdfcb store Python attributes of all extension types in one dict 2018-09-27 21:48:30 +02:00
wmayer 1d1abb6d29 fixes 0003311: SketchObjectPython - no addGeometry addConstraints setDriving...? 2018-09-27 21:47:03 +02:00
wmayer 830caf34c0 fixes 0003547: Linear pattern, mirrored and polar pattern feature not working on a hole just on pocket 2018-09-27 13:30:30 +02:00
Bernd Hahnebach 13b45c9c79 FEM: revert ac1b037, it is based on a change which is not in master, not yet ;-) 2018-09-27 11:09:22 +02:00
wmayer 19cd040415 in linear pattern handle selected edge of a 2d part object 2018-09-27 11:04:30 +02:00
Bernd Hahnebach a0ff629747 FEM: vtk, post task boxes, add some comment 2018-09-26 22:43:07 +02:00
Bernd Hahnebach a905b63632 FEM: vtk fix, task panels, some enumerations are no longer set back on any open of the tp 2018-09-26 22:42:53 +02:00
Bernd Hahnebach de7ef263d2 FEM: vtk, initialize the enums of piplines VP 2018-09-26 22:42:40 +02:00
Bernd Hahnebach 5fc337baf5 FEM: vtk fix, remove scaling of vtk results
- only displacements had been scaled, all other results remained untouched
- if the results should be scaled all results needs to be scaled
- this includes all possible result types with their units
2018-09-26 22:42:26 +02:00
Bernd Hahnebach b0f65e45ba FEM: SMESH, update internal version number 2018-09-26 22:42:13 +02:00
Bernd Hahnebach ac1b0371e1 FEM: input filewriter base class, remove no longer working mesh shape property, has been replaced by part 2018-09-26 22:41:56 +02:00
furti f054788a9e Make Part_Measure_Clear_All icon more intuitive
Previously the icon was made up of a tape measure and a pencil. But pencil
icons normally mean editing something. It was not clear that this icon was
meant to delete all the measurements.

This commit replaces the pencil with a red X to make clear it deletes
something. The X was taken because existing delte icons in FreeCAD also
use a red X.
 - https://www.freecadweb.org/wiki/File:Mesh_Remove_Components.svg
 - https://www.freecadweb.org/wiki/File:OpenSCAD_RemoveSubtree.svg
 - https://www.freecadweb.org/wiki/File:Delete.svg
2018-09-26 22:39:26 +02:00
wmayer 7fc487ae6f fixes 0003465: Groups breaking dependency graph 2018-09-26 22:21:52 +02:00
wmayer 00bf21dc26 fixes 0003618: FEM, GUI, mesh view provider, highlighted node show wrong node number on selection 2018-09-26 19:59:32 +02:00
Clemens Weissbacher 0c744f2517 FEM: fix an error handling issue, caused by an non existing variable 2018-09-26 17:15:03 +02:00
paullee fc09738579 ArchStairs: Fix HalfTurnLeft error/bug 2018-09-26 17:10:42 +02:00
kreso-t 1e53a8f479 Fix for crash on windows env. 2018-09-26 17:05:29 +02:00
kreso-t 27f9a69f24 Path: Adaptive - small improvement
- tendency to join cuts when possible
2018-09-26 17:05:05 +02:00
Zheng, Lei 35f6a4fa72 Path.Area: fix offset pocket mode 2018-09-26 17:02:36 +02:00
wandererfan df0eb076a6 Better error messages for bad selections 2018-09-26 17:00:07 +02:00
wandererfan f9b9de42dd Add Peppino's ISO7200 templates 2018-09-26 16:59:49 +02:00
wandererfan 859fed207d Fix double scaling in DPG AutoScale 2018-09-26 16:59:39 +02:00
wandererfan 3163c3d6f5 Fix late repaint of secondary views
- when ScaleType=Automatic and Scale changes
  individual views were not being repainted until
  next document recompute.
2018-09-26 16:59:12 +02:00
wandererfan db593f2169 Suppress spurious message
- was reporting "pattern not found" even if
  hatch source file was not a .pat file.
2018-09-26 16:59:00 +02:00
wandererfan 6b9c1e89d1 Show full width Edges around Section Face
- Section Face was hidding 1/2 of Edge if "Show Section
  Edges" was set to false.
2018-09-26 16:58:52 +02:00
wmayer 57cc33c8ee fixes 0003427: Measurement tool measures wrongly 2018-09-26 16:37:00 +02:00
wmayer dd492d7484 fixes 0003373: 'Save a copy' of a document with a spreadsheet mark the document as touched 2018-09-26 15:22:21 +02:00
wmayer ff0cacca0a fixes 0003469: FreeCAD crashes on edge selection during fillet edge operation on extruded geometry 2018-09-25 22:51:33 +02:00
wmayer dfd3d86b22 fixes 0003333: Wrong behaviour of fuse operation 2018-09-25 17:53:37 +02:00
wmayer 654fc12c8f fixes 0003496: Can't delete spreadsheet if spreadsheet is opened. 2018-09-25 16:17:05 +02:00
wmayer b112ac0ec1 fixes 0003513: Can't open file - some exceptions are shown in the log 2018-09-25 13:21:53 +02:00
wmayer b330950251 fixes 0003611: Linear pattern: 'Select reference' does near to nothing 2018-09-25 11:07:43 +02:00
wmayer fff2a34618 expose method to Python to switch on/off event redirection 2018-09-25 10:13:34 +02:00
wmayer a2d44d2642 fixes 0003521: Import of csv file into Spreadsheet does not work if the path contains non ASCII characters 2018-09-24 22:16:48 +02:00
wmayer 3653d7ed11 fixes 0003148: PartDesign does not allow colouring of single faces for non-primitives 2018-09-24 19:30:36 +02:00
wandererfan 8668296f9c Hard Code QTFileDialog option 2018-09-23 19:37:19 +02:00
wandererfan 6bda4a53e0 Gui::FileChooser respect Qt Dialog Flag
- Gui::FileChooser was not respecting the USE_QT_FILEDIALOG
  compile flag.
2018-09-23 19:37:19 +02:00
kreso-t ac6eebe7b9 Path: Adaptive - enhancements and bug fixes
- more accurate path cleaning
- fix for uncleared area remaining
- linking paths smoothing
2018-09-23 10:45:45 +02:00
easyw b8cceb5f52 make stepZ py3 compliant 2018-09-23 10:43:14 +02:00
wmayer 8d2f8a3d96 fixes 0003380: Involute gear should be created inside of Body and respect Attachment 2018-09-22 20:10:48 +02:00
wmayer 3c048904ff fixes 0003447: False PartDesign migration request 2018-09-22 13:59:34 +02:00
wmayer 2fb62cf0a1 improve whitespaces 2018-09-22 13:40:28 +02:00
wmayer f6b4ffb149 fixes #0001672: Raytracing export to POV-Ray - respect ASCII convention for I/O filenames 2018-09-22 10:48:45 +02:00
wmayer b5811a42b4 fixes #0003582: ShapeBinder did not show correctly 2018-09-22 00:55:46 +02:00
wmayer 75acfe898f fixes #0003540: Body invisible after deleting Part container 2018-09-21 15:12:38 +02:00
wmayer 68bc663617 set parent widget to message box when asking user to delete content of a group 2018-09-21 14:41:52 +02:00
wmayer ac21bcc35c fixes #0003597: PartDesign Additive and Subtractive Loft features don't allow changing the first section after creation 2018-09-20 22:12:43 +02:00
wmayer 198b047bdd clean-up work in TaskPipeOrientation 2018-09-20 17:47:36 +02:00
wmayer 14b8579a62 fixes #0003599: PartDesign Additive and Subtractive Pipe features don't allow changing sections after creation 2018-09-20 17:17:41 +02:00
wmayer 83c40da2a5 issue #0003599: PartDesign Additive and Subtractive Pipe features don't allow changing sections after creation 2018-09-20 15:14:33 +02:00
Zheng, Lei 70918ba683 ViewProvider: fix potential crash when exit editing 2018-09-20 12:47:19 +02:00
Bernd Hahnebach 50ab6e292c FEM: Python code formating, flake8 2018-09-19 21:40:57 +02:00
Bernd Hahnebach d6c6c4da6e FEM: menues, delete the FEM before material menue entries, just like all other entries 2018-09-19 21:40:44 +02:00
Bernd Hahnebach a20fa51084 FEM: menues, move element geometry enties into sub menue 2018-09-19 21:40:34 +02:00
wmayer 7fdbc1d2b8 inside display panel check if the property is part of the view provider 2018-09-19 21:30:35 +02:00
Mark Ganson TheMarkster 047f91832b do reselection whether 1 or 2 points selected
Add message box explaining usage of Selected points button.
Move reselection so it is applied whether 1 or 2 points were selected.
2018-09-19 20:32:49 +02:00
Mark Ganson TheMarkster bc1cf4873e relabel "Selected point(s)" to "Selected points"
better for translating to other languages
2018-09-19 20:32:33 +02:00
kreso-t 96e2f44e28 Path: Adaptive - fix for profiling operation
- improved handling for sharp corners for profiling op.
2018-09-19 18:29:18 +02:00
kreso-t de5ad52415 Path: Adaptive - enhancements and bug fixes
- cleanup & spelling corrections
- lead-in/lead-out improvements
- safer transition of linking path into lead-in/cut
- self-intersection check for keep tool down path
- additional perf. optimisations by parameter tuning
2018-09-19 18:28:48 +02:00
wmayer 4a717a8a44 Make destructors of all generated Py class protected
This is to avoid to create an object on the stack and thus to clutter Python's reference counting mechanism
2018-09-19 18:22:22 +02:00
luz.paz b214f606c4 Misc. typo and whitespace fixes
ref: https://forum.freecadweb.org/viewtopic.php?f=3&t=30988#p256964
along with other misc. fixes
2018-09-19 17:26:03 +02:00
wmayer 8ab6ffa692 fix -Wreorder 2018-09-19 17:17:43 +02:00
wmayer d978287af6 fix CID 183848 2018-09-19 17:14:46 +02:00
wmayer 24cf5d23b5 fix possible crash when aborting geometry checker 2018-09-19 13:50:44 +02:00
wmayer 17d36cecc9 improve manual mesh filling 2018-09-18 21:53:04 +02:00
wmayer 6b055ee899 add verifier class to check the result of the polygon triangulation 2018-09-18 21:38:04 +02:00
wmayer ff6ed27ba9 replace boolean to check for inside/outside cutting with enum values 2018-09-18 18:25:51 +02:00
wmayer 4c8e70b9a3 polish Mesh workbench 2018-09-18 14:53:37 +02:00
wmayer b05f234fac fix overloaded methods SelectionSingleton::addSelection 2018-09-18 12:41:02 +02:00
wmayer 0286a4e313 exit measure distance tool with Esc 2018-09-17 22:21:23 +02:00
wmayer d0cd33b2b8 always close task panel with ESC button 2018-09-17 21:35:44 +02:00
wmayer adc4b4a641 remove limit to only allow vertexes of a model 2018-09-17 17:27:21 +02:00
wmayer 5fc8368753 add convenience method addSelection(SelectionObject) 2018-09-17 17:06:58 +02:00
wmayer 86df253842 Qt5: fix build failure if spacenav is not used under Linux 2018-09-17 16:41:14 +02:00
mwganson fc8d9f2bf3 Add select point(s) option to Placement dialog 2018-09-17 15:00:48 +02:00
wmayer 4b90bed74e fix -Winconsistent-missing-override 2018-09-17 14:18:36 +02:00
wmayer adfdec3b9d re-arrange headers to fix build failure with Qt4 2018-09-17 14:02:29 +02:00
Ian Rees e7a5bd0aad SpaceNavigator on Linux: rearrange #includes 2018-09-17 12:43:24 +02:00
Ian Rees d63e29c3bc Replace Q_OS_UNIX with Q_OS_LINUX for spacenav 2018-09-17 12:43:24 +02:00
Ian Rees 39b27ab9e3 Port SpaceNavigator support on Linux to Qt5 2018-09-17 12:43:24 +02:00
wmayer 189a729027 extend QuantityFormat to set denominator independent of user settings 2018-09-17 12:38:46 +02:00
hokieengr 92145e7e37 Fractional inch setting now disabled when not in Imperial building 2018-09-17 10:32:04 +02:00
hokieengr 77060a75a6 Added support for fractional inch user setting. 2018-09-17 10:32:04 +02:00
hokieengr b102e15569 Now only storing the actual fractional denominator
GUI settings now computed directly from this value. This eliminates the
possibility of the combobox index and the value it represents getting
out of sync.
2018-09-17 10:32:03 +02:00
hokieengr 00a11a6366 Added option to select minimum fractional inch displayed
Load/save operation complete. Not yet integrated with the display code.
Also would like to disable option when non supported (those not using
fractional inches) are selected.
2018-09-17 10:32:03 +02:00
Markus Lampert 97ad1b687f Renamed Path Chamfer op to Deburr. 2018-09-17 10:27:49 +02:00
Markus Lampert a9e040eb10 Fixed selection restore of entire object. 2018-09-17 10:23:41 +02:00
Markus Lampert 91371a6c6a Added option to rotate multiple base objects as a compound or individually. 2018-09-17 10:23:41 +02:00
Markus Lampert 041d800518 Changed Rotate tool behaviour to rotate the entire selection group instead of each one individually. 2018-09-17 10:23:40 +02:00
Markus Lampert 725d87417b Don't force stock refresh on editor start 2018-09-17 10:23:40 +02:00
wmayer f9ca7d62c2 fix compiler warning, fix build failure with older OCCT versions 2018-09-17 10:20:03 +02:00
tomate44 f6d9b692be add a check to BSplineCurve.segment() 2018-09-17 10:02:04 +02:00
kreso-t ee128a32fd Fix for compiler warnings 2018-09-17 09:57:47 +02:00
kreso-t e9e27656be Path: Adaptive - small enhancement
- improved handling in spiky corners
2018-09-17 09:57:47 +02:00
kreso-t 46cd140c8b Path: Adaptive - performance optimization for larger models
- utilizing bounding boxes
- changed the alg. for resolving tool down linking paths,
   resolution is no longer based on clipper offsets as
   offset alg. tends to become slow
- new tool down linking alg. also should be better in finding
   shorter linking paths
- lead-in lead-out improvements
2018-09-17 09:57:46 +02:00
Markus Lampert 76638c7c32 Return self in addProperty for interface compliance. 2018-09-16 15:38:27 -07:00
wmayer 476a07ae24 expose some more methods of ParameterGrp to Python 2018-09-16 19:36:46 +02:00
wmayer c8cfc15e3c fix build failure on Linux 2018-09-15 21:38:15 +02:00
Mark Ganson TheMarkster 625ef4548b addon manager py3 fixes
Only decode / encode if on py2 except for the b'\xc2\xa0', replace, which must be decoded to create the unicode string.
2018-09-15 19:28:44 +02:00
Mark Ganson TheMarkster fa00718c23 fix python3 issues
* fix attempts to remove readonly temp folder in windows, which was preventing addon manager window from closing
* cleanup (unescape) macros manually if HTMLParser().unescape() fails
* replace tabs in macros with 4 spaces
2018-09-15 19:28:36 +02:00
wmayer f809a50be8 when loading file by drag and drop then create the objects in the active document
if no document exists then use i18n to translate the document name
2018-09-15 19:14:46 +02:00
luz.paz d1f1230ef5 Typo and whitespace fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt --skip=".git,*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/zipios++" -L "entires,fle,actuall"`
2018-09-15 19:13:52 +02:00
wmayer 6d49383093 Initial support of SpaceMouse Plus XT 2018-09-15 14:53:48 +02:00
wmayer c6df59969b expose more methods of Geom_Curve to Python 2018-09-15 11:26:26 +02:00
wandererfan 295bb8fa86 Fix Decoration positions on Views derived from DPG Base
- Section faces, detail highlights, center and section lines
  were wrong when the BaseView was a DPGI
2018-09-14 21:28:02 +02:00
wmayer dce4086d64 fixes #0002908: stp file import name mismatch (due to some limitation into UTF-8 support & naming convention) 2018-09-14 18:15:48 +02:00
wmayer 161973b962 add option to disable auto-deactivation of property view for inactive document 2018-09-14 16:30:26 +02:00
Markus Lampert 18ed94f788 Disable property editor if none of the selected objects is in the active document. 2018-09-13 22:18:28 -07:00
wmayer 62910898dd fixes #0003588: The path to the Addons does not allow special characters 2018-09-14 00:00:22 +02:00
wmayer 70cf68ab3d restore old behaviour of AddonManager.get_macro_dir 2018-09-13 23:50:36 +02:00
wmayer 3386567d99 issue #0003588: The path to the Addons does not allow special characters 2018-09-13 21:40:30 +02:00
wmayer 02eb4a6fa3 issue #0003588: The path to the Addons does not allow special characters 2018-09-13 16:03:38 +02:00
DeepSOIC 38df1ae742 Part, PartDesign, Attacher: fix a few problems with infinite shapes
To throw an error instead of returning a semi-infinite result that kills rendering.
fixes #3439
2018-09-13 13:12:55 +02:00
DeepSOIC eb8629d077 Part: Attacher: fix flip-sides for O-X-Y-like attachment modes
fixes #2519
2018-09-13 13:03:06 +02:00
wmayer 88babaf60a Ignore key events in dialogs and let parent task panel handle them
The affected dialogs are:
* Texture mapping
* Cross-sections
* Extrusion
* Revolution
2018-09-13 11:13:33 +02:00
wmayer ba2cdde66e move document mode command further uo in the View menu 2018-09-13 01:23:52 +02:00
wmayer 2ce34d6d4c fix regression wrt to bold text in multi-document mode when activating document by tabs 2018-09-13 01:19:49 +02:00
wmayer 5c40496cf3 fixes #0003514: Program crashes when user try to add (by mistake) the origin to a group 2018-09-12 19:01:25 +02:00
wmayer ac66048b8b fixes #0002833: [Spreadsheet] Keyboard events are sent to the wrong viewprovider 2018-09-12 17:40:57 +02:00
wmayer 876339b885 add method to activate 3d view when setting active object list 2018-09-12 15:38:28 +02:00
wmayer 23b0c89b8a fixes #0003155: FEM to mesh conversion fails for shells 2018-09-12 12:39:12 +02:00
wmayer faad5ea273 ignore key events in placement dialog and let parent task panel handle them 2018-09-11 21:12:04 +02:00
wmayer 8f3a53c24c move check for grabbed node and releasing it from ViewProviderDragger::unsetEditViewer to View3DInventorViewer::resetEditingViewProvider 2018-09-11 17:27:17 +02:00
wmayer aae8062f15 minor fixes:
make QtCreator happy by removing const & when connecting signal/slots
fix typo in comment
2018-09-11 15:50:27 +02:00
Zheng, Lei 3a81bd5103 PropertyEditor: improve editing experience 2018-09-11 14:51:03 +02:00
Amritpal Singh 7cf8dc254e Fixed minor bug in Rebar object. 2018-09-11 14:34:59 +02:00
wmayer a6a29467a3 improve whitespaces 2018-09-11 14:26:38 +02:00
hokieengr 77e40f32f0 Reformatted variable spacing. 2018-09-11 14:12:15 +02:00
hokieengr 10281ccc1f Parameterized previously hardcoded fractional inch code
To make way for an eventual upcoming feature whereby the user can select
the minimum fractional inch value (1/8", 1/16", 1/32", etc) to be
displayed, the function responsible for rendering this string was
rewritten. Previous functionality used hardcoded values for 1/8" and
therefore did not allow this to be changed. New code will work with any
integer denominator.

Also, a minor bug in the previous implementation has been fixed by the
new code. Prior to this fix, if an inch value rounded up to a foot, it
would still be rendered in inches. For example: 23.99" would be rendered
as 1'+12". The new code will render this as 2'.

Default fractional value set to 8 (1/8") for now such that there is no
change in the existing behavior. GUI option will be added at some point
in the future.
2018-09-11 14:12:05 +02:00
Markus Lampert 052d8a70e9 Added collapse/expand option to the document tree view. 2018-09-11 11:38:58 +02:00
Markus Lampert 6359c26b5b Changed tree view document hiding boolean to integer to support arbitrary number of views. 2018-09-11 11:38:38 +02:00
Markus Lampert 03d4f084c7 Added option to hide inactive documents in tree view. 2018-09-11 11:38:20 +02:00
wmayer f231871cb0 replace epsilon to check for null vector 2018-09-11 11:33:38 +02:00
Mark Ganson TheMarkster 41102edf67 fix bug in draft path array
put lnodes.normalize() inside try/except block
replace hard-coded 1e-6 with Vector3d::epsilon() in VectorPy::normalize()
2018-09-11 11:11:39 +02:00
wmayer 712012678f fix some MSVC & clang warnings 2018-09-11 11:02:43 +02:00
kreso-t ba6132c4b4 Path: Adaptive - fix for convetional mode detection 2018-09-11 11:02:43 +02:00
kreso-t e69571dcf3 Path: Adaptive - fix for offset glitches 2018-09-11 11:02:43 +02:00
kreso-t 40ff33d4a7 PathSimulation - fix for memory consumption with complex sim paths 2018-09-11 11:02:43 +02:00
kreso-t 9a451bbf3f Path: Adaptive - fix for integration 2018-09-11 11:02:43 +02:00
kreso-t 43ee740ef7 Path: Adaptive - prepping the PR 2018-09-11 11:02:43 +02:00
kreso-t 6db02838c3 Path: Adaptive - typo 2018-09-11 11:02:42 +02:00
kreso-t 90cd7cb23a Path: Adaptive - fixes 2018-09-11 11:02:42 +02:00
kreso-t 78e6cb30b6 Path : Adaotive - fix for finishing pass supression outside stock 2018-09-11 11:02:42 +02:00
kreso-t 9bb3576f6d Path: Adaptive - fixes 2018-09-11 11:02:42 +02:00
kreso-t f4dec2ece6 Path: Adaptive - fix 2018-09-11 11:02:42 +02:00
kreso-t 7b1f384982 Path: Adaptive -fix 2018-09-11 11:02:41 +02:00
kreso-t 202ace41a5 Path: Adaptive - keep tool down ratio option + bugfixes 2018-09-11 11:02:41 +02:00
kreso-t 53bbbe3eca Path: Adaptive - bug fixes 2018-09-11 11:02:41 +02:00
kreso-t 00085edd33 Path: Adaptive - linking optimization - chaining by distance 2018-09-11 11:02:41 +02:00
kreso-t f24d66f965 Path: Adaptive - fix for VS build 2018-09-11 11:02:40 +02:00
kreso-t 3c6d2094ab Path: Adaptive - fix for edge selections 2018-09-11 11:02:40 +02:00
kreso-t 3c7a884120 Path: Adaptive - fix for keep tool down linking 2018-09-11 11:02:40 +02:00
kreso-t af102ca1c5 Path: Adaptive - linking optimizations 2018-09-11 11:02:40 +02:00
kreso-t 526aadfd82 Path: Adaptive - path linking optimizations 2018-09-11 11:02:40 +02:00
kreso-t 4619f8a584 Path: Adaptive - bugfix 2018-09-11 11:02:39 +02:00
kreso-t cbecc2a49a Path: Adaptive - keep tool down feature - alfa 2018-09-11 11:02:39 +02:00
kreso-t 929bf9de50 Path: Adaptive - fix for cut direction 2018-09-11 11:02:39 +02:00
kreso-t 8ce1e811d5 Path:Adaptive - fix 2018-09-11 11:02:39 +02:00
kreso-t 0cbc401f7d Path: Adaptive - cleanup 2018-09-11 11:02:39 +02:00
kreso-t 743e95bca8 Path: Adaptive - bug fix 2018-09-11 11:02:38 +02:00
kreso-t 3928b5c852 Path: Adaptive - bugfix 2018-09-11 11:02:38 +02:00
kreso-t a980d1e9f1 Path: Adaptive - bugfix 2018-09-11 11:02:38 +02:00
kreso-t 0bfd6d7e8e Path: Adaptive - fix for stock to leave for outside region 2018-09-11 11:02:38 +02:00
kreso-t 365227a049 Path: Adaptive - feature to clear from outside stock bounday inwards 2018-09-11 11:02:38 +02:00
kreso-t 364daff4c7 Path: Adaptive - bugfix 2018-09-11 11:02:37 +02:00
kreso-t d578a546c3 Path: Adaptive - bug fix 2018-09-11 11:02:37 +02:00
kreso-t 0fe43a9321 Path: Adaptive - fix for returning to clearence height 2018-09-11 11:02:37 +02:00
kreso-t 3bf7fb24eb Path: Adaptive - support for cylindrical stock 2018-09-11 11:02:37 +02:00
kreso-t 4603f61661 Path: Adaptive - fine tuning 2018-09-11 11:02:37 +02:00
kreso-t 51e3396759 Path: Adaptive - fix for stock to leave option 2018-09-11 11:02:36 +02:00
kreso-t 4d3f6bc82c Path: Adaptive - fix for linking moves optimization 2018-09-11 11:02:36 +02:00
kreso-t 791435b088 Path: Adaptive - added stock to leave option 2018-09-11 11:02:36 +02:00
kreso-t 547ebe4fb6 Path: Adaptive - linking moves optimization 2018-09-11 11:02:36 +02:00
kreso-t e24034a107 Path Adaptive: fix for duplicate edge detection 2018-09-11 11:02:35 +02:00
kreso-t b9f841094f Adaptive: Fix for path nesting 2018-09-11 11:02:35 +02:00
kreso-t 3144de83c9 fix for py3 error 2018-09-11 11:02:35 +02:00
kreso-t b56cc96f32 clean up 2018-09-11 11:02:35 +02:00
kreso-t da62ad5bcd Fix for py3 import 2018-09-11 11:02:34 +02:00
kreso-t 2b395e07b8 Adaptive - finer tolerances for path cleaning 2018-09-11 11:02:34 +02:00
kreso-t 29013240ef Adaptive path to allow selection of edges 2018-09-11 11:02:34 +02:00
kreso-t 7541343022 Fix for compiling with VS2013 2018-09-11 11:02:34 +02:00
kreso-t f7773a1dc9 fix for pybind11 2018-09-11 11:02:34 +02:00
kreso-t 7ca6f83752 fix for pybind11 2018-09-11 11:02:33 +02:00
kreso-t 31cbf6f653 Path adaptive operation added 2018-09-11 11:02:33 +02:00
wmayer dcedf9a4a7 fix install locations for Raytracing and Start module 2018-09-11 10:17:53 +02:00
Markus Lampert 399c95ccc8 Added icon to TaskPanel tab in CombiView to indicate if an edit session is in progress. 2018-09-11 07:42:46 +02:00
Markus Lampert e4dbc896df Set focus to sketcher window when a new handler is activated to ensure proper handling of keys, espcially Escape. 2018-09-11 07:30:43 +02:00
luz.paz 36faeb247a Cosmetically change mentions of Teigha to ODA
Ref:  https://forum.freecadweb.org/viewtopic.php?p=255339#p255339
This PR is superficial as it doesn't actually change the path to the newly named executable.
2018-09-11 07:29:18 +02:00
luz.paz 37305f69fe Misc. typo and whitespace fixes
`codespell -q 3 -I ../fc-word-whitelist.txt --skip=".git,*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/zipios++"`
2018-09-11 07:27:22 +02:00
Markus Lampert 900a05bca6 Fixed ProfileEdges for multi base models. 2018-09-11 07:24:40 +02:00
Markus Lampert 48d058dc78 Fixed ProfileFaces for multiple base models. 2018-09-11 07:24:39 +02:00
Markus Lampert 8030e96e54 Fixed dogbone support for CCW profiles. 2018-09-11 07:24:39 +02:00
Markus Lampert 6687ff2fd9 Select potential base if it is the only candidate for a base model 2018-09-11 07:24:39 +02:00
Markus Lampert cc7abc59fc PathUtil fixes for adding ops with preselection. 2018-09-11 07:24:39 +02:00
Markus Lampert bc871e2b8e Support for converting existing jobs to multi base model on loading. 2018-09-11 07:24:38 +02:00
Markus Lampert 7925da828e Fixed merge issues 2018-09-11 07:24:37 +02:00
Markus Lampert fffb9f2656 Removed obsolete adjustWirePlacement. 2018-09-11 07:24:37 +02:00
Markus Lampert 1ad7b8c329 Added support for multi base model to Engrave. 2018-09-11 07:24:37 +02:00
Markus Lampert 3687224ce0 Added support for multi base model to Surface op. 2018-09-11 07:24:36 +02:00
Markus Lampert 546cd7e2e2 Added multi base model support to Pocket 3D op. 2018-09-11 07:24:36 +02:00
Markus Lampert 3d646ecd4e Changed base model tab view to a tree view 2018-09-11 07:24:36 +02:00
Markus Lampert e098c7f1f7 Fixed merge issues 2018-09-11 07:24:35 +02:00
Markus Lampert 1f0bda27f6 New approach to determine if an object is a solid - based on it's volume. 2018-09-11 07:24:35 +02:00
Markus Lampert dda6d49388 Fixed typo 2018-09-11 07:24:35 +02:00
Markus Lampert 74bcc8b576 Added support for multi base model to Chamfer op. 2018-09-11 07:24:34 +02:00
Markus Lampert a7f3c5974b Added multi base model support to MillFace. 2018-09-11 07:24:34 +02:00
Markus Lampert cd4e3043e5 Consolidated base model naming 2018-09-11 07:24:34 +02:00
Markus Lampert f01eb07375 Added multi base model support to CircularHoleBase op 2018-09-11 07:24:34 +02:00
Markus Lampert e4e54729ac Added multi base model support to ProfileEdges op. 2018-09-11 07:24:33 +02:00
Markus Lampert 0a9ff5f3aa Fixed base geometry selection for multiple base models. 2018-09-11 07:24:33 +02:00
Markus Lampert 9479e27abe Fixed Contour op to work with multiple base models. 2018-09-11 07:24:33 +02:00
Markus Lampert 39a73f4e7f Preserve selection over moves and rotations 2018-09-11 07:24:33 +02:00
Markus Lampert cc2ffc38a8 Added jobs as a selection for the base models. 2018-09-11 07:24:32 +02:00
Markus Lampert 5d5afd8b08 Added more placement tools for base models. 2018-09-11 07:24:31 +02:00
Markus Lampert 524380cd12 Fixed unit tests to support multiple base models. 2018-09-11 07:24:31 +02:00
Markus Lampert 2480b45c82 Alignment and orientation support for multiple base models. 2018-09-11 07:24:31 +02:00
Markus Lampert e0af0177cd Base model edit during job editor. 2018-09-11 07:24:31 +02:00
Markus Lampert bcfd92d388 Refactored job creation dialog to be re-used for model selection dialog. 2018-09-11 07:24:30 +02:00
Markus Lampert d78d65628a Basic job creation dialog with multiple base models. 2018-09-11 07:24:30 +02:00
Bernd Hahnebach 15df652804 FEM: cpp commands post, do not use create, same like constraints, data along line 2018-09-11 07:22:45 +02:00
Bernd Hahnebach f2422f1f7c FEM: cpp commands post, do not use create, same like constraints, scalar clip 2018-09-11 07:22:45 +02:00
Bernd Hahnebach c4e7ace300 FEM: cpp commands post, do not use create, same like constraints, linearized stress 2018-09-11 07:22:44 +02:00
Bernd Hahnebach 2db040dd84 FEM: cpp commands post, do not use create, same like constraints, data at point 2018-09-11 07:22:44 +02:00
Bernd Hahnebach 79e320d701 FEM: cpp commands post, do not use create, same like constraints, clip 2018-09-11 07:22:43 +02:00
Bernd Hahnebach 2110292f32 FEM: cpp commands sort posts, cut 2018-09-11 07:22:43 +02:00
Bernd Hahnebach 1075c331fa FEM: cpp commands post, fix warning class and a typo 2018-09-11 07:22:43 +02:00
Bernd Hahnebach c95cdb13bc FEM: workbench, remove wrong spaces 2018-09-11 07:22:42 +02:00
Bernd Hahnebach d62f1cbfed FEM: gui py class init, sort classes 2018-09-11 07:22:42 +02:00
Bernd Hahnebach 1effc84eb9 FEM: gui py class init, delete duplicates 2018-09-11 07:22:41 +02:00
Bernd Hahnebach 08e2c4f071 FEM: app py class init, sort classes 2018-09-11 07:22:41 +02:00
Bernd Hahnebach 24c8686861 FEM: app py class init, add some spaces 2018-09-11 07:22:41 +02:00
Bernd Hahnebach c9e5551172 FEM: icons, add new line after add icons 2018-09-11 07:22:41 +02:00
Bernd Hahnebach 6ac8df583a FEM: icons, rename inp editor 2018-09-11 07:22:40 +02:00
Bernd Hahnebach 0cdfc8bc4c FEM: icons, rename element rotation 1d 2018-09-11 07:22:40 +02:00
Bernd Hahnebach 45bf29e0f8 FEM: icons, rename element geometry 2d 2018-09-11 07:22:40 +02:00
Bernd Hahnebach 1fe8dc99fc FEM: icons, rename element geometry 1d 2018-09-11 07:22:39 +02:00
Bernd Hahnebach a8e34e566d FEM: icons, rename element fluid 1d 2018-09-11 07:22:39 +02:00
Bernd Hahnebach 316d99c862 FEM: icons, rename sovler cfd 2018-09-11 07:22:39 +02:00
Bernd Hahnebach 11d728a42e FEM: icons, rename solver analysis frequency 2018-09-11 07:22:38 +02:00
Bernd Hahnebach 211754d606 FEM: icons, rename solver analysis thermomechanical 2018-09-11 07:22:37 +02:00
Bernd Hahnebach de165b9a68 FEM: icons, rename solver analysis static 2018-09-11 07:22:37 +02:00
Bernd Hahnebach 55759110ec FEM: icons, rename solver standard 2018-09-11 07:22:37 +02:00
Bernd Hahnebach e7ce85c6d2 FEM: icons, rename solver control 2018-09-11 07:22:37 +02:00
Bernd Hahnebach 83d4247b8c FEM: icons, rename solver run 2018-09-11 07:22:37 +02:00
Bernd Hahnebach 281eeb5fd8 FEM: icons, rename solver elmer 2018-09-11 07:22:36 +02:00
DeepSOIC 4ca046a729 PartDesign: Refine property for Boolean #3488 2018-09-11 07:16:58 +02:00
DeepSOIC 46621a85d4 PartDesign: Refine property for primitives #3488 2018-09-11 07:16:49 +02:00
DeepSOIC 2cb1bad660 GestureNavigationStyle: fix interaction with SoClipPlaneManip 2018-09-11 00:38:06 +03:00
wmayer a93c893dc1 fixes #0003583: Using the raytracing WB crashes FreeCAD 2018-09-10 20:31:54 +02:00
wmayer b6e8718335 fixes #0003586: App test cases require Part module 2018-09-10 20:00:41 +02:00
wmayer 30f395761a remove unused option FREECAD_MAINTAINERS_BUILD 2018-09-10 17:42:45 +02:00
wmayer 63e8241e64 fix inconsistencies between default action of context menu and double-click 2018-09-10 17:32:39 +02:00
wmayer 2dd876c082 auto-expand/collapse a tree item when activating it 2018-09-10 15:47:48 +02:00
wmayer 34a0c7bce2 by default show highlighted object in bold text, a document's active object is not in bold text any more 2018-09-10 14:24:37 +02:00
wmayer 3b9a9e02bc close all top-level widgets when about to quit event loop 2018-09-10 12:32:14 +02:00
wmayer a624fee2c2 add GUI functions to flip orientation of input curves 2018-09-07 23:03:07 +02:00
wmayer 864767221d add boolean list to handle orientation of boundary curves 2018-09-07 11:48:11 +02:00
wmayer fbcecfb139 add missing header files 2018-09-07 11:46:32 +02:00
wmayer fd2befe7a7 when leaving dragger edit mode make sure to release the grabbed node 2018-09-06 12:42:08 +02:00
wandererfan aa8feb79d0 Use Face or 3D direction for View and ProjGroup
- use current 3D window direction as starting
  direction for DrawViewPart and ProjectionGroup
- if a Face is selected, use Face normal as
  starting direction.
2018-09-06 08:00:00 +02:00
wmayer 233ed49b23 make copy constructor of Handle class private 2018-09-05 22:55:33 +02:00
wmayer 0b846eee52 consider global placement when exporting point cloud 2018-09-05 22:18:55 +02:00
wmayer 7e3be9eb68 take care of object's global placement when creating point cloud of it 2018-09-05 21:24:22 +02:00
wmayer 7d8e7b6d65 add copy constructor for class PointKernel 2018-09-05 21:21:36 +02:00
wmayer 138ddcbeed add method Placement::isIdentity 2018-09-05 21:19:16 +02:00
wmayer 312310de60 take care of global placement when exporting from Mesh menu 2018-09-05 17:46:31 +02:00
wmayer b87d6e69fc copy image resource 2018-09-05 17:27:09 +02:00
Pablo Gil 9b42120c8f Start:
1) replaced link element before li item in order to make the whole box clickable
2) placed "New file" item as first one so that it is always at the same place no matter what session or recent files you have
3) created a thumbnail for "New file" item
2018-09-05 16:07:25 +02:00
Pablo Gil 506ed1ee98 Start: fixed tabs border radius and reduced font weight for file info 2018-09-05 16:07:09 +02:00
looooo 599e59059b reduce line-length to 80 characters 2018-09-05 11:06:26 +02:00
looooo b20d1bc09c new style modules: print traceback as error and as log. 2018-09-05 11:06:12 +02:00
Peter Lama e0f8dede06 Update commit count reference for shallow clones
Clone depth for travis is set to 5000. Using the current HEAD
as reference means we won't have to update it again for awhile.
2018-09-05 10:59:34 +02:00
wmayer 36bd5a0ec1 fix build failure for OCCT < 7.0 2018-09-05 10:56:56 +02:00
wmayer 7a71cf188a take care of global placement when creating mesh from shape 2018-09-05 00:10:07 +02:00
wmayer d8c5581566 add optional parameters to copy method to copy topology and/or triangulation 2018-09-04 23:17:25 +02:00
Christophe Grellier 7d8e53aaab add Const to ancestorsOfType 2018-09-03 22:06:46 +02:00
wmayer 9e5b31fe2a add missing comma separator in list 2018-09-03 21:33:06 +02:00
Yorik van Havre ef0fe57328 Draft: Allow to switch the line of Draft Labels on/off 2018-09-03 16:03:10 -03:00
wmayer acbbcbcb00 enable VBO support for Intel graphic drivers if UseVBO is activated 2018-09-03 16:57:33 +02:00
wmayer b385387797 enable VBO support for Intel graphic drivers if UseVBO is activated 2018-09-03 16:46:54 +02:00
Amritpal Singh dda6672d48 Fixed minor bug of custom spacing in Rebar object. 2018-09-03 11:08:53 -03:00
Mark Ganson TheMarkster 689765da1b Revert unintended change
Not sure how that happened...
2018-09-03 11:08:16 -03:00
Mark Ganson TheMarkster 43d16fc87a Add Duplicate button to Execute Macro dialog
With the Duplicate button a macro is duplicated with a new name, e.g. duplicate a macro named "MyMacro.FCMacro" and you get a new duplicate file named "MyMacro@001.FCMacro", but the user has opportunity to override the new name with a name of his own or to cancel the operation.

Functionality is similar to already existing ability to create copies of the .FCStd file, only for macros, and this must be done manually for each new file.  Will be useful to coders mostly.  Expected use case could be to save a history of the macro periodically as changes are made or perhaps to duplicate the macro first, and then make changes to the duplicate, eventually replacing the original once satisfied with the changes.

New code is based largely on existing code from rename operation, but with QFile.copy() instead of QFile.rename() used, along with other changes needed, such as generating the new suggested filenames.

link to forum discussion and demonstration video:
https://forum.freecadweb.org/viewtopic.php?f=8&p=254014&sid=98243801791920b69086a3fcd4699e34#p254014

Not sure how to make the Duplicate button label text translate when changing languages.
2018-09-03 11:08:16 -03:00
wmayer 299f68cda6 add comment about using readLockNormalCache 2018-09-03 13:16:16 +02:00
Zheng, Lei 4231194a37 GLBuffer: fix isVBOSupported() 2018-09-03 12:59:27 +02:00
Zheng, Lei b5467b02ad MeshGui::SoFCIndexedFaceSet: fix missing normal cache unlock 2018-09-03 12:59:13 +02:00
Markus Lampert ad39b37b98 Fixed whitespace error 2018-09-02 10:50:08 -07:00
Markus Lampert ec8e97c262 Fixed merge issues 2018-09-02 00:32:22 -07:00
markus 67987cc916 Added job export dialog to Job Editor. 2018-09-02 00:32:22 -07:00
markus ff54af4e9b Redesigned ops defaults to use combo box for op selection and only have one editor visibile at the time. 2018-09-02 00:32:22 -07:00
markus 9cc08cee0f Fixing unit tests for more conservative height settings. 2018-09-02 00:32:22 -07:00
markus 84b681eb2b PathEdit integration of the setup-sheet editor. 2018-09-02 00:32:22 -07:00
Markus Lampert 795842b71c Setting a property's tooltips in setup sheet editor. 2018-09-02 00:32:22 -07:00
Markus Lampert c4340a7577 Fixed surface settings. 2018-09-02 00:32:22 -07:00
Markus Lampert e833c5b325 Fixed build for new files. 2018-09-02 00:32:22 -07:00
Markus Lampert 33e3a0083e Turning off settings exception printing for unregistered ops. 2018-09-02 00:32:22 -07:00
Markus Lampert 9d7d9e8177 Partial operation settings support for Surface op. 2018-09-02 00:32:22 -07:00
Markus Lampert 6c83a991ea Operation settings support for both engrave ops 2018-09-02 00:32:22 -07:00
Markus Lampert 3e1310ba79 Operation settings support for Helix op. 2018-09-02 00:32:22 -07:00
Markus Lampert 7d8ed6fd70 Operation setting support for all pocket ops. 2018-09-02 00:32:22 -07:00
Markus Lampert ea84b18aee Operation settings support for Drilling. 2018-09-02 00:32:22 -07:00
Markus Lampert f4124b91bc Sorting of operation settings for UI purposes. 2018-09-02 00:32:22 -07:00
Markus Lampert 0824066c59 Added operation setting support to profile ops. 2018-09-02 00:32:22 -07:00
Markus Lampert 74d3bf4856 Added support for property types required for PocketShape settings. 2018-09-02 00:32:22 -07:00
Markus Lampert 954771ccba Added automatic setting of operation values from the setup sheet during creation. 2018-09-02 00:32:22 -07:00
Markus Lampert ebe76319b8 Added name parameter to operation proxy constructor. 2018-09-02 00:32:22 -07:00
Markus Lampert a3cd80796b Template export/import of operation settings. 2018-09-02 00:32:22 -07:00
Markus Lampert 5f5543da31 Add properties to the setup sheet and initialise their editor from there. 2018-09-02 00:32:22 -07:00
Markus Lampert a5a44ececd Property editor for enums. 2018-09-02 00:32:22 -07:00
Markus Lampert ac84092e75 Basic property editor framework 2018-09-02 00:32:22 -07:00
Markus Lampert 7b81653895 Display setup sheet for each registered op. 2018-09-02 00:32:22 -07:00
Markus Lampert ee49b9874d Prototype objects for operations and the ability to create them through the regular proxy instantiation. 2018-09-02 00:32:22 -07:00
Markus Lampert 070d17e4e4 Add job as parameter to opSetDefaultValues 2018-09-02 00:32:22 -07:00
Markus Lampert b93d39f701 UI for operation's setup sheet. 2018-09-02 00:32:22 -07:00
Markus Lampert 660b9b38d4 Added approximation for hyperbola curves. 2018-09-02 00:32:22 -07:00
Markus Lampert 853ad14a1a Basic UI/editor for the SetupSheet. 2018-09-02 00:32:22 -07:00
Markus Lampert cdff29e474 Fixed stock creation with odd initial extent - tessellate to the rescue. 2018-09-02 00:32:21 -07:00
Markus Lampert c495ed43f8 Fixed heights and introduced OpStockZMin/Max. 2018-09-02 00:32:21 -07:00
Mark Ganson TheMarkster 94fa64077b Add eval() to distance line edit during scaling
This adds the ability to enter things like 6 * 25.4 into the distance line edit widget during scaling operations in the image workbench.  Can also enter something like math.pi * 3 or 2**3, etc.  Basically, any legal python input can be used.

Using eval() is not considered a secure way of doing things, but in this context the user would be entering malicious code into his own computer.  Also, what can the user do in eval() that he can't already do just by entering directly into the python console?
2018-09-01 18:16:48 -05:00
Michal Ulianko faf8834484 py3.7 fix
PyUnicode_AsUTF8() returns const char* in py3.7 instead of char*. Making
changes to reflect that which should also be safe in
other Python versions.
2018-09-01 22:44:39 +02:00
Mark Ganson TheMarkster 591c1d32cd Add link button to Addon Manager to Macros dialog
Adds a button labeled Addons... to the macros dialog below the create, edit, delete, and rename buttons.  Clicking the Addons... button will open the same dialog available from Tools -> Addon Manager menu.
Convenience for experienced users, but new users who might not know about the addon manager will be able to see it here, too.
2018-09-01 22:21:33 +02:00
markus 7c048482bf Hiding all/most properties that are supposed to be hidden on document restore again. 2018-09-01 21:01:04 +02:00
markus f094ae4135 Fixed logging for unit tests. 2018-09-01 21:01:04 +02:00
markus 8054540afe Added button to stock dialog to recreate the stock object. 2018-09-01 21:01:03 +02:00
markus 5b39974bfb Only track stock from base's extent at creation time. 2018-09-01 21:01:03 +02:00
Bernd Waibel a8be139cbc Improve search for coin3d tag file
Currently cmake looks for coin.tag and coin.tag.gz when searching a
tag file of the Coin3D documentation. On some coin3d installations,
the tag file is named Coin.tag or Coin.tag.gz. This patch improves
the search by adding additional hints to the find_file() test for
the tag file.
2018-09-01 20:58:40 +02:00
wmayer b79e1bfee4 get rid of private function _PyImport_FixupBuiltin for FreeCAD and FreeCADGui modules 2018-09-01 19:57:15 +02:00
wmayer 8c08635d30 get rid of private function _PyImport_FixupBuiltin for __FreeCADBase__ module 2018-09-01 16:26:18 +02:00
Bernd Waibel 1eeb19748b Fix typo in search for OpenGL. 2018-08-31 23:27:10 +02:00
wmayer fb1a0be846 exit application when running unit tests raised a system exception 2018-08-31 22:21:15 +02:00
Yorik van Havre 022653331f Arch: Close base profile of Structures automatically when needed 2018-08-30 17:12:18 -03:00
Yorik van Havre 5f025587a0 Draft: Fixed bug in WorkingPlaneProxy color 2018-08-30 17:11:40 -03:00
Kurt Kremitzki e381e6b739 Remove unused Debian packaging files
These files are not used in Debian or the PPA; they use conventions from
many years ago and in general are cruft. The canonical location for this
information is now https://salsa.debian.org/science-team/freecad. This
fixes #2984.
2018-08-30 03:31:52 -05:00
Yorik van Havre 682650b0b2 Draft: Fixed adding points in Wires 2018-08-29 21:49:56 -03:00
wmayer 3d70f9ed4f number of used decimals in UnitsApi must already be set when initializing App 2018-08-29 23:35:38 +02:00
Keith Sloan c717d1121d improve csg import 2018-08-29 21:45:41 +02:00
wmayer 96771a07b0 use a widget's current font as default in the list of available families 2018-08-29 19:33:02 +02:00
Bernd Hahnebach 28b7e01123 YEAH 1000 commits for great FreeCAD project :-) ahh the commit ... FEM: netgen mesh obj, typo in attribute description 2018-08-29 11:02:43 -03:00
Bernd Hahnebach d436630f5b FEM: equation objects, add some comments for linear and nonlinear equation 2018-08-29 11:02:43 -03:00
Bernd Hahnebach ff716f3d45 FEM: mesh netgen and gmsh, use the same group and description for mesh geometry object 2018-08-29 11:02:43 -03:00
Bernd Hahnebach 26a255b384 FEM: common test module, some comments 2018-08-29 11:02:43 -03:00
Daniel Furtlehner 998b72324d AddonManager: Fixes download of metadata.txt with Py3
urllib2 in Py3 gives us a bytearray instead of a string. We have to decode it first to get the metadata.txt. When decoding fails we assume that we are in Py2 and process as before.
2018-08-29 11:00:42 -03:00
Yorik van Havre b469c237b5 Arch: cache svg calculations in section planes/techdraw views for better performance 2018-08-28 21:03:25 -03:00
wmayer 404b42d0a6 unit tests of Arch and Draft require GUI, improve output of units tests 2018-08-28 19:39:34 +02:00
Yorik van Havre 559a5e6e58 Arch: Added placement controls to section plane's task panel 2018-08-28 11:18:35 -03:00
wmayer 16e709a682 do not explicitly use extesnion modules in SelectionView::getModule 2018-08-28 14:11:31 +02:00
wmayer 67b5ee0931 now each module registers its unit tests itself 2018-08-28 13:14:16 +02:00
Yorik van Havre 8708da2627 Arch: Section plane is now created at center of selected objects 2018-08-27 22:09:03 -03:00
Yorik van Havre 6f06345634 Draft: Fixed DXF support for new Draft texts 2018-08-27 12:11:38 -03:00
wmayer 904aef5551 use abstract interface to access geometry in transform dialog 2018-08-27 16:19:56 +02:00
Abdullah Tahiri 2a6655e176 Sketcher: UI option to enable/disable the automatic redundant removal mechanism 2018-08-26 20:54:02 +02:00
Abdullah Tahiri 8505b0eff4 Sketcher: Automatic redundant removal mechanism
===============================================

It is a long felt need that redundant constraints are not generated while autoconstraining.

The solver sketcher in v0.17 is überpicky with redundants due to the new popularity contest algorithm. The former behaviour is exhacerbated.

This new mode enables automatic redundant constraint removal.

In UI operations IN EDIT MODE, upon detection of redundancy by the solver, the Sketcher will remove all redundant constraints detected by that solve.

This makes the sketcher much less annoying.

How to test this?

The easiest example is to create a vertical line. Then make the endpoints symmetric with respect to the horizontal axis. Without this mode,
the vertical constraint and the symmetry constraint are redundant. With this mode, the vertical constraint gets automatically removed by the Sketcher.
2018-08-26 20:54:01 +02:00
Abdullah Tahiri dc1bb7eb87 Sketcher: Move autoremoveredundants method from SketchAnalyser to SketchObject 2018-08-26 20:54:01 +02:00
Abdullah Tahiri 96f6c46949 GCS: Bug fixes
==============

- Zero initialization of the jacobian matrix
- Correct notification of redundant/conflicting in presence of non-driving constraints.

fixes #3529
2018-08-26 20:54:01 +02:00
Markus Hovorka 31750a7503 FEM: elmer, fix SIF variable output bug
The property "FluxVariable" of the FluxEquation document type was
exported wrongly by sifio. This was because sifio didn't recognise
unicode as a string and exported is as an array of chars.
2018-08-26 20:47:42 +02:00
luz.paz 31193039e2 FEM: femtools/femutils.py typos and whitespace fixes 2018-08-26 20:47:41 +02:00
Bernd Hahnebach f8939d689f FEM: vtk post, support multiple pipeline objects for filters 2018-08-26 20:47:41 +02:00
Bernd Hahnebach d060cacfa2 FEM: cpp commands sort constraints, temperature 2018-08-26 20:47:41 +02:00
Bernd Hahnebach 144e548456 FEM: cpp commands sort constraints, pulley 2018-08-26 20:47:41 +02:00
Bernd Hahnebach 283f9dbe7a FEM: cpp commands sort constraints, pressure 2018-08-26 20:47:41 +02:00
Bernd Hahnebach ffbeac03f9 FEM: cpp commands sort constraints, plane rotation 2018-08-26 20:47:40 +02:00
Bernd Hahnebach c8ec1a756a FEM: cpp commands sort constraints, initial temperature 2018-08-26 20:47:40 +02:00
Bernd Hahnebach 38f8682633 FEM: cpp commands sort constraints, heat flux 2018-08-26 20:47:40 +02:00
Bernd Hahnebach 79442a1f2a FEM: cpp commands sort constraints, move gear 2018-08-26 20:47:40 +02:00
Bernd Hahnebach 164ee520a9 FEM: cpp commands sort constraints, move force 2018-08-26 20:47:39 +02:00
Bernd Hahnebach ab522431db FEM: cpp commands sort constraints, move fluid boundary 2018-08-26 20:47:39 +02:00
Bernd Hahnebach 33f749c96e FEM: cpp commands sort constraints, move displacement 2018-08-26 20:47:39 +02:00
Bernd Hahnebach c97ed2db34 FEM: cpp commands sort constraints, move contact 2018-08-26 20:47:39 +02:00
Bernd Hahnebach ba6976fd67 FEM: cpp commands, use for command creation same order as for command definition 2018-08-26 20:47:38 +02:00
Bernd Hahnebach 6923a52213 FEM: cpp commands, add some comments 2018-08-26 20:47:38 +02:00
Bernd Hahnebach e214769070 FEM: cpp commands, comment analysis and solver command as they are created in Python 2018-08-26 20:47:38 +02:00
Bernd Hahnebach 8c30258db4 FEM: cpp commands, code formating 2018-08-26 20:47:38 +02:00
Bernd Hahnebach 1a08251a81 FEM: vtk post, change order of commands and icons 2018-08-26 20:47:37 +02:00
Bernd Hahnebach a322cc3495 FEM: vtk post, small improvement in scalar clip gui 2018-08-26 20:47:37 +02:00
Bernd Hahnebach a02b355747 FEM: objects module, rename result objects to post processing ones 2018-08-26 20:47:37 +02:00
Bernd Hahnebach d8f65890df FEM: objects module, delete recompute comments, the user needs to take care of recomputes if he adds objects by Python 2018-08-26 20:47:37 +02:00
Bernd Hahnebach ce1be10f0e FEM: vtk post, typo in Tranparency property 2018-08-26 20:47:37 +02:00
Bernd Hahnebach 25bcbcbf23 FEM: vtk post, sync tranparency on reopen of pipeline task panel 2018-08-26 20:47:36 +02:00
wmayer 2dc8089852 handle case if a B-spline is straight and thus maximum curvature is zero 2018-08-26 19:17:16 +02:00
luz.paz 8740a3a568 Whitespace formatting 2018-08-26 17:30:44 +02:00
luz.paz 55e93745fa Misc. typo fixes
Found via `codespell`
2018-08-26 17:30:44 +02:00
Zheng, Lei 69efa47374 Selection: handle exception in observer callback
Selection callback are sometimes called while traversing Coin node tree.
If any unhandled exception is thrown while traversing the tree, FC 3D
rendering will become unstable and non-usable thereafter.
2018-08-26 17:29:14 +02:00
wmayer 561be08211 Part sweep now accepts compounds of edges that build a wire 2018-08-26 17:02:01 +02:00
wmayer b2cefc460d Part loft now accepts compounds of edges that build a wire 2018-08-26 16:49:48 +02:00
wmayer fe2660b468 issue #0003177: Part Design Pad should allow besides 'Up to face' something like 'Up to plane' as well 2018-08-26 13:22:35 +02:00
Yorik van Havre b656377e6d Start: break too long thumb caption texts 2018-08-25 19:58:49 -03:00
wmayer f8f4cd76cc clear dict when invalidating Py object to fix possible cyclic references 2018-08-25 21:49:57 +02:00
wmayer 5eaf2e6387 fixes #0003564: Python objects: updateData calls to proxy instance that should have been deleted 2018-08-25 16:33:22 +02:00
wmayer bb9d737ba1 when adding a dynamic property to the editor then move it to the correct group or create a new group 2018-08-25 13:26:14 +02:00
wmayer 3f0dca6387 avoid that Datum plane is always touched when automatically resizing it from within its own view provider 2018-08-25 11:09:15 +02:00
Yorik van Havre 2b2b920c80 Arch: python3 fix 2018-08-25 00:11:43 -03:00
Yorik van Havre 988dc11275 Start: additional py3 fixes 2018-08-24 23:10:31 -03:00
Yorik van Havre 69d9a3f949 Arch: Use the smallest face as profile when discovering extrusions in IFC objects - thanks @geometrygym 2018-08-24 23:10:10 -03:00
Yorik van Havre f0d6a43d3d Arch: Using transparent style during walls and structs draw 2018-08-24 15:23:00 -03:00
Yorik van Havre af30700b14 Draft: Fixed leftover scene callbacks in snapping 2018-08-24 15:16:35 -03:00
Yorik van Havre 16e01ceaa9 Start: misc improvements
- Hide recent files section if recent files prefs is set to 0
- Better filetype management
- Better tooltip on file thumbnails
- Added notes section (enable in preferences)
2018-08-23 16:00:18 -03:00
wmayer 24579fff32 Py3: fix PropertyStringListItem::setValue 2018-08-23 17:46:27 +02:00
wmayer 93163b28d0 Improve usability of expression dialog:
+ add signal showFormulaDialog to QuantitySpinBox in order to indicate whether the formula dialog opens or closes
+ when formula dialog opens then hide the button box in the parent dialog, show it again when the formula dialog closes
2018-08-23 12:22:57 +02:00
Yorik van Havre 0252e491d5 Start: Misc fixes to start page
- Use smaller icons in file thumbs if desired size is not available
- Fixed loading of stp examples
- Cleaned wrong files appearing in examples
- Added preference setting to configure font and font size
2018-08-22 11:45:11 -03:00
Markus Lampert 6429707f70 Allow user to suppress the initial tool change. 2018-08-22 10:17:46 -03:00
Markus Lampert c17bcb1303 Enable option for grbl tool change command. 2018-08-22 10:17:46 -03:00
Markus Lampert 478829510e If an edge cannot be flipped, issue a warning and approximate it through straight line segments. 2018-08-22 10:17:46 -03:00
paullee 6e83baf1df Fix railing height at starting point etc.
Discussion:

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p247814
2018-08-22 10:17:24 -03:00
paullee 681c71766f Add Railing Height and Offset
Discussion:-

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p247036
2018-08-22 10:17:24 -03:00
wmayer 3927a2ed8b reduce compile time after each time cmake configure is executed (Version.h) 2018-08-21 14:06:33 +02:00
wmayer 4211defb4a reduce compile time after each time cmake configure is executed 2018-08-21 13:53:33 +02:00
wmayer e5a1a9d35a macro to check for different input and output file and if needed replace output file 2018-08-21 13:52:42 +02:00
wmayer b9c24f8a92 reduce compile time after each time cmake configure is executed (swig) 2018-08-21 13:20:58 +02:00
wmayer afd5249563 add static function isVBOSupported to OpenGLBuffer to check for the GL_ARB_vertex_buffer_object extension 2018-08-21 10:29:55 +02:00
Yorik van Havre 83351faebc Draft: Ability to set working plane from PartDesign datum planes 2018-08-20 21:56:08 -03:00
wmayer 952a9a4a80 CMP0050: make Template module aware of cmake policy 2018-08-20 23:33:26 +02:00
wmayer 67ddda714d CMP0050: make Assembly module aware of cmake policy 2018-08-20 23:11:32 +02:00
wmayer 172503b408 CMP0050: make JtReader module aware of cmake policy 2018-08-20 22:49:00 +02:00
wmayer f4a21d3b6b CMP0050: make Sandbox module aware of cmake policy 2018-08-20 22:27:36 +02:00
wmayer a84b84bf1b CMP0050: make TechDraw module aware of cmake policy 2018-08-20 20:59:39 +02:00
wmayer 8ff52568db CMP0050: make Start module aware of cmake policy 2018-08-20 20:42:13 +02:00
wmayer c36bdb4e34 CMP0050: make Start module aware of cmake policy 2018-08-20 20:40:08 +02:00
wmayer 63bf0aaeb6 CMP0050: make Fem module aware of cmake policy 2018-08-20 20:14:46 +02:00
wmayer 681d22226a CMP0050: make Robot module aware of cmake policy 2018-08-20 20:00:53 +02:00
wmayer fc8984ae7c CMP0050: make Path module aware of cmake policy 2018-08-20 19:33:12 +02:00
wmayer d85309a76c CMP0050: make Raytracing module aware of cmake policy 2018-08-20 19:16:12 +02:00
wmayer 49ca698b3e CMP0050: make Drawing module aware of cmake policy 2018-08-20 19:10:02 +02:00
wmayer 0c95c95793 CMP0050: make Drawing module aware of cmake policy 2018-08-20 18:40:14 +02:00
wmayer 2455b5fe39 CMP0050: make Sketcher module aware of cmake policy 2018-08-20 18:04:58 +02:00
wmayer 104595d37d CMP0050: make MeshPart module aware of cmake policy 2018-08-20 17:45:15 +02:00
wmayer ed5313d729 CMP0050: make Inspection module aware of cmake policy 2018-08-20 17:32:25 +02:00
wmayer cdc507d9bb CMP0050: make PartDesign module aware of cmake policy 2018-08-20 17:19:04 +02:00
wmayer 73e27458da CMP0050: make Part module aware of cmake policy 2018-08-20 16:54:23 +02:00
wmayer f7f143a2b9 CMP0050: make Points module aware of cmake policy 2018-08-20 16:34:54 +02:00
wmayer cda05c914c CMP0050: make Import module aware of cmake policy 2018-08-20 16:16:41 +02:00
wmayer e3a783fd46 CMP0050: make Import module aware of cmake policy 2018-08-20 16:16:13 +02:00
paullee cad83384f3 'Multi-segment' continuos railing update following Stairs' changes
Discussion:-
(Somewhere here)

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=60#p246607
2018-08-20 10:52:59 -03:00
paullee fb388774ea Fix railing on 2 sides; Make continous railing for 'multi-segment' stairs; Group under 'Master Stairs'
Discussion:-
(Somewhere here)

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&sid=3d9ba22b6aa2556f61c4ddb035a6163d&start=60#p246607
2018-08-20 10:52:59 -03:00
paullee 6dafd51fa9 Fixing Railing - Left & Right
Discussion:-
(Somewhere here only - Not discussed exactly here, codes not post here)
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&sid=3d9ba22b6aa2556f61c4ddb035a6163d&start=60#p245038
2018-08-20 10:52:59 -03:00
Yorik van Havre 8d47560151 Start: Fix for py3 2018-08-20 10:52:34 -03:00
Yorik van Havre f09ccebbe5 Start: Support for qss stylesheets 2018-08-20 10:52:34 -03:00
Yorik van Havre 9df1166de1 Start: More cosmetic fixes 2018-08-20 10:52:34 -03:00
Yorik van Havre e8811c0d36 Start: cosmetic fixes 2018-08-20 10:52:34 -03:00
Yorik van Havre efae18742e Start: Refined display + start with forum disabled 2018-08-20 10:52:34 -03:00
Yorik van Havre 1007c822d6 Start: Allow to not show start page on file open 2018-08-20 10:52:34 -03:00
Yorik van Havre 36cd5a55cf Start: Added forum box with latest posts 2018-08-20 10:52:34 -03:00
Yorik van Havre 5bc02545ca Start: Small fixes in preference page 2018-08-20 10:52:34 -03:00
Yorik van Havre ac6586a207 Start: New start workbench 2018-08-20 10:52:34 -03:00
Yorik van Havre 8236f158d8 Web: Allow to use url queries 2018-08-20 10:52:34 -03:00
wmayer 9e9e4dd7f7 CMP0050: make Image module aware of cmake policy 2018-08-20 15:52:12 +02:00
wmayer a4390f5478 CMP0050: make ReverseEngineering module aware of cmake policy 2018-08-20 15:37:50 +02:00
wmayer a0faa374cc CMP0050: make Mesh module aware of cmake policy 2018-08-20 15:22:00 +02:00
wmayer 0b86312714 CMP0050: make Spreadsheet module aware of cmake policy 2018-08-20 15:14:05 +02:00
wmayer cd5ee548f6 CMP0050: make Surface module aware of cmake policy 2018-08-20 14:56:30 +02:00
wmayer 8d4953ad8f CMP0050: make Measure module aware of cmake policy 2018-08-20 14:31:54 +02:00
wmayer 8d09cafc33 CMP0050: make Test module aware of cmake policy 2018-08-20 13:58:28 +02:00
wmayer 1c656b1cb7 CMP0050: make Web module aware of cmake policy 2018-08-20 13:51:40 +02:00
wmayer 16295d4121 CMake 2.8.12 and lower allowed the SOURCE signature in add_custom_command
In CMake 3.0 the policy CMP0050 was introduced where it could be set to OLD to keep this behaviour while for NEW an error was raised.
Since CMake 3.5.2 a warning comes up when using the OLD behaviour and that it will be removed in a future version.

In FreeCAD we switched to the new behaviour now and removed the SOURCE signature from add_custom_command which affects the macros
fc_copy_sources, fc_target_copy_resource and fc_target_copy_resource_flat and their usage.
It's not possible any more to add files to a target by using the macros. Now a file must be added to the target before using the macros.

This commit fixes it for Arch, Draft, OpenSCAD, Material, Plot and Ship
2018-08-20 11:47:39 +02:00
wmayer bff245daef add Mesh_Data target to handle scripts files 2018-08-19 22:56:12 +02:00
wmayer 82b31d50e5 clean up cmake macros add new macro fc_target_copy_resource_flat 2018-08-19 22:54:33 +02:00
wmayer a1b0c2ff32 Gui: Better visualization of the Active Object 2018-08-19 18:14:06 +02:00
paullee 55fb508346 Fix StraightLanding connecting bit; other TreadDepth RiserHeight issues etc.
Discussion:
(Somewhere here)
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&sid=3d9ba22b6aa2556f61c4ddb035a6163d&start=60#p244648
2018-08-19 11:15:58 -03:00
paullee 0c918ba5d0 'Centralise' all cases use MakeStraightStairsWithLanding method; further fix TreadDepth and RiserHeight Enforce
Discussion:-
(Somewhere here)

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&sid=3d9ba22b6aa2556f61c4ddb035a6163d&start=60#p244502
2018-08-19 11:15:58 -03:00
paullee 773ca081f1 Add TreadDepth & RiserHeight Enforce properties; Fix MakeStair, MakeStraightLanding functions; Test Right Railing
Discussion:
(Somewhere here)

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&sid=3d9ba22b6aa2556f61c4ddb035a6163d&start=60#p244502
2018-08-19 11:15:58 -03:00
paullee dc4628767c Fix MakeStairs, _CommandStairs functions; Testing Railing (One side only)
Discussion:
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=50#p244345
2018-08-19 11:15:58 -03:00
wmayer 07eea2e3a6 remove ambiguous function setTolerance, use Tolerance attribute instead 2018-08-19 14:31:04 +02:00
wmayer 3ffd435526 move cmake policy CMP0050 to new style 2018-08-19 13:59:42 +02:00
wmayer fc6e6a55ea fix broken generate_from_xml macro 2018-08-19 13:34:05 +02:00
wmayer 68f6c82eb1 fix -Wcast-function-type 2018-08-19 13:11:08 +02:00
wmayer 557fee3dc6 fix -Wignored-qualifiers 2018-08-19 12:38:57 +02:00
wmayer 4686f27f64 fix -Wimplicit-fallthrough 2018-08-19 12:35:57 +02:00
wmayer 0bc5699b59 fix -Wparentheses 2018-08-19 12:28:05 +02:00
looooo fa99f792e3 Py3: PartDesign: relative imports 2018-08-19 10:59:11 +02:00
wmayer 03a28be4ca MSVC does not support keyword 'or' 2018-08-19 10:56:00 +02:00
wandererfan f82012b68a Remove const qualifier for Travis OCE version 2018-08-19 10:47:08 +02:00
wandererfan baa960e1de Coverity Fixes
- 183599
- 183595
- 183594
- 175821
- 175820
- 175817
- 175816
- 175815
- 175814
- 175813
- 175812
- 175811
- 175806
- 175805
- 175804
- 175802
2018-08-19 10:47:08 +02:00
wandererfan 0865468918 Add option for Dxf Version and forced Polyline
- allows override of user parameter values.
2018-08-19 10:47:08 +02:00
wmayer e757e4f7e7 fix warning C4244: conversion from 'const double' to 'float', possible loss of data 2018-08-19 10:43:25 +02:00
wmayer e701f75c25 generic wrapper/unwrapper for PySide and PyQt classes 2018-08-18 22:12:00 +02:00
wandererfan de66ab3d1a Coverity Fixes
- 175807
- 175808
- 183598
2018-08-18 21:59:06 +02:00
wandererfan 368ba7a37e Fix Travis Compile Warnings 2018-08-18 21:59:05 +02:00
wandererfan 0432ecdb88 Fix propagation of Source property to children 2018-08-18 21:59:05 +02:00
Markus Lampert 1b1eaa5def Turn off Operations visibility by default 2018-08-18 21:55:26 +02:00
Markus Lampert 04807fddd7 Add UseOutline property to PocketShape in order to mill full pockets and not have to add all sub-shapes. 2018-08-18 21:55:26 +02:00
luz.paz 321b159f27 More typos 2018-08-18 21:48:43 +02:00
luz.paz a981753d2c Trailing whitespace fixes 2018-08-18 21:48:42 +02:00
luz.paz 781d007321 Misc. typos
Found via `codespell`
Trivial typos

Found via `codespell`
2018-08-18 21:48:42 +02:00
wmayer e31cac568e revert changes of SMESH_Gen class interface of bundled SMESH 2018-08-18 16:13:10 +02:00
wmayer 3c999f563e fix several reference counting bugs 2018-08-18 16:01:55 +02:00
wmayer 271cdcb19e clear selection node when destroying viewer 2018-08-18 11:32:32 +02:00
wmayer 9f9886691b disable FREECAD_USE_EXTERNAL_KDL due to incompatibilities with bundled version 2018-08-17 21:59:51 +02:00
paullee 2221820d79 Various general bugs fixes and _CommandStairs related 2018-08-17 10:35:46 -03:00
paullee 28e8d5e822 Add HalfTurnRight 'basic' feature, Master Stairs to accommodate differnt flight of stairs 2018-08-17 10:35:46 -03:00
wmayer 171e652047 fix -Wabsolute-value 2018-08-17 09:47:38 +02:00
wmayer b04ea27042 do not show dialog of progress indicator for OCCT < 6.9.0 2018-08-17 08:10:16 +02:00
wmayer 5ee9e11931 nullify path on destruction and check if adding new trajectories 2018-08-16 16:04:24 +02:00
wmayer 4d9ee645ce use consistently cc_glglue functions in OpenGLBuffer class 2018-08-16 13:38:46 +02:00
wmayer c842f0b8b5 fix build failure if pch is on 2018-08-16 01:50:54 +02:00
wmayer a5515527e9 move OpenGLBuffer class to core system 2018-08-16 01:30:23 +02:00
wmayer 5039e4b0a7 simplifiy code in SoFCIndexedFaceSet::GLRender, fix bug in wireframe mode when panning/rotating 2018-08-15 22:24:24 +02:00
paullee 4f3d0149f1 Add basic MultiEdgesLanding method 2018-08-15 10:46:43 -03:00
paullee 69fec24cbb Add AbsTop Property - Absolute Top Level of a segment/flight of stairs; To enable 'multi-segment' stairs. 2018-08-15 10:46:43 -03:00
paullee adb44fee55 Add LastSegment Property - to enable 'multi-segment' / 'multi-flight' stairs; and fix some LandingDepth related bug. 2018-08-15 10:46:43 -03:00
Bernd Hahnebach e76488eb10 FEM: post warp filter, try to better handle ui min max values, but no success 2018-08-15 09:18:59 +02:00
Bernd Hahnebach 88b605774d FEM: post warp filter, add some comments and make code better readable, no real changes 2018-08-15 09:18:59 +02:00
Bernd Hahnebach 5d2d33b983 FEM: post warp filter, small ui layout improvements 2018-08-15 09:18:58 +02:00
Bernd Hahnebach 2772d1faa8 FEM: post warp filter, better values for ui spinbox values 2018-08-15 09:18:58 +02:00
Peter Lama c44ade6961 Fix build error on MacOS due to sed command usage
Non GNU sed on macOS expects suffix after -i option (can be empty str).
However, removing the comments from the pyside generated files is not a necessary
operation (presumably done to avoid a diff when no code changed), so simply skip the operation on macOS
2018-08-15 09:13:03 +02:00
wmayer e290de07a9 BOPAlgo supports progress indicator since version 6.9.0 2018-08-15 09:09:44 +02:00
wmayer d5c63cf211 add progress indicator to BOP check task panel 2018-08-14 23:51:02 +02:00
wmayer 2b02b07538 let pass events of a progress dialog in event filter of WaitCursor 2018-08-14 23:49:00 +02:00
wmayer 56e6d58291 add comment about regression in ProgressBar 2018-08-14 23:47:43 +02:00
Przemo Firszt ba7161ac48 Add boost-python to fedora spec file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-08-14 00:04:08 +01:00
wmayer 52a5cbe7cf Improve error report about missing boost components 2018-08-13 12:00:09 +02:00
wmayer 9549f29f2a fix MSVC warning: unreferenced local variable 2018-08-13 11:06:20 +02:00
Mark Ganson TheMarkster 99b077cf80 use parallel mode of BOPCheck class 2018-08-13 10:10:27 +02:00
Kyrre Sjobak ff93395221 Give FindNETGEN a path hint so that it ACTUALLY works with the standard Fedora 28 netgen package. 2018-08-12 20:19:01 +02:00
Kyrre Sjobak e903690e0c Give FindNETGEN a path hint so that it works with the standard Fedora 28 netgen package. 2018-08-12 20:19:01 +02:00
Kyrre Sjobak 9a6dcff1de Give FindMEDFile a path hint so that it works with the standard Fedora 28 med-devel package. 2018-08-12 20:19:01 +02:00
paullee 90a8b54200 Add HalfTurnLeft landing stairs basic feature.
- HalfTurnRight, stairs alignment etc. 'fix' added in 'later version' in my local machine not yet in this commit

Discussion posts :-

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&sid=bbca78d86eda8a6f8837fc2901d88be7#p240745
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p247814
2018-08-12 14:09:39 -03:00
Ryan Pavlik 5f8f268244 Apply equivalent changes to FindPySide2Tools as FindPySideTools.
These are largely matching files, potential to de-duplicate them, but this
just ports the changes over for now.
2018-08-11 17:39:15 +02:00
Ryan Pavlik bf043fe68f Fix typo in FreeCadMacros.cmake 2018-08-11 17:39:15 +02:00
Ryan Pavlik f12c4092ab Quote paths used in FindPySideTools.cmake 2018-08-11 17:39:14 +02:00
Ryan Pavlik 32c40179dc Fix ninja warnings about duplicate rules for Mod/Web/Init.py
Both Web/App and Web/Gui were copying it.
2018-08-11 17:39:14 +02:00
Ryan Pavlik 25332ba033 Fix ninja warnings about duplicate rules for Mod/Path/Init.py
Both Path/App and Path/PathSimulator/App were copying it.
2018-08-11 17:39:14 +02:00
Ryan Pavlik 75c698d180 Fix policy warning with CMake (regarding "no rules to generate")
Fixed by using add_custom_command instead of execute_process,
with an in-place sed command included to strip timestamp just like
previous code.
2018-08-11 17:39:13 +02:00
Ryan Pavlik b844589cf5 Clean up and make FindPySideTools CMake module more robust 2018-08-11 17:39:13 +02:00
Ryan Pavlik cf79125dd6 Add fc_target_copy_resource/fc_copy_sources build message
Includes optional verbosity param for tracking down "two rules for..."
ninja/etc warnings.
2018-08-11 17:39:13 +02:00
Ryan Pavlik 2ae238e3db Clean up and fix generate_from_py and generate_from_xml CMake macros
Includes native-path-usage fixing like the previous commit.
2018-08-11 17:39:13 +02:00
Ryan Pavlik 4ffc6c2882 Clean up and improve fc_copy_sources and fc_target_copy_resource CMake macros
The previous steps of TO_NATIVE_PATH followed by ABSOLUTE
is not meaningful or reliable: output of ABSOLUTE is always in
"cmake" path format, not native path format. Native path input to
CMake commands may not do what you want.
2018-08-11 17:39:13 +02:00
Ryan Pavlik 11d89c7608 Clean up and improve "COPY_IF_DIFFERENT" CMake macro 2018-08-11 17:39:12 +02:00
Oliver Oxtoby de282ad5ce Base: Make units of PropertyQuantity settable from Python code
The previous implementation did not allow the unit to be set after it
is initialised by the default constructor - this fix makes it possible
to set the unit by explicitly assigning a Unit object.
2018-08-11 16:12:17 +02:00
wmayer 855f4ef2f6 Fix globalPosition in Stl export 2018-08-11 15:36:08 +02:00
wmayer 9602e22c3d compute the actual placement to apply instead of transforming the points twice 2018-08-11 14:36:50 +02:00
wandererfan 0f9eba7d96 Fix double application of Placement
- global placement already contains feature
  placement, so multiplying aPoints by
  global placement applies feature placement
  twice.
2018-08-11 13:49:29 +02:00
hgutsche a097804cbd Add library for concurremcy in >= VS2015
revert conditional in Points.cpp (i.e. reactivate parallel handling)
2018-08-11 11:55:51 +02:00
Sviatoslav Sydorenko 3c2e27cfc2 🚑🐛 Don't install doc/freecad.qch with no GUI 2018-08-11 11:39:27 +02:00
Markus Lampert 6eb2cd3152 Set Operation's view object proxy to 0 to let the framework use the c++ implementation. 2018-08-11 11:35:47 +02:00
Markus Lampert 02a2376376 Use TC of last operation of a job - bring up dialog if it's the first op of a job. 2018-08-11 11:25:46 +02:00
wandererfan 9f29693df3 Fix Dimension update on DPG Scale Change 2018-08-11 11:24:13 +02:00
wandererfan 7028da17b5 Expose findCentroid to Python 2018-08-11 11:24:12 +02:00
wandererfan 603c294d47 Fix QGIVP boundingRect 2018-08-11 11:24:12 +02:00
wandererfan 5730aae4c9 Allow circular BSplines to be dimensioned 2018-08-11 11:24:12 +02:00
Yorik van Havre 874309b947 Arch: Initial support to export quantities to IFC 2018-08-10 18:37:13 -03:00
Yorik van Havre 57f2bf74a6 Arch: Import/export Site data (longitude, latitude, etc..) to/from IFC 2018-08-10 17:08:20 -03:00
Yorik van Havre 21e00b6d76 Arch: Support for IfcElementAssembly 2018-08-10 13:08:27 -03:00
Markus Lampert d30cb78533 Added vertical/horizontal support for SurfaceOfRevolution. 2018-08-10 10:43:33 -03:00
Markus Lampert a50727b596 Fixed Cancel of job selection - abort op creation. 2018-08-10 10:43:33 -03:00
Markus Lampert cf14ebf7ea Use the job that matches the current selection - iff only one job fits that description. 2018-08-10 10:43:33 -03:00
Yorik van Havre 18964c2e5f Removed non-printable character at line 1 2018-08-10 10:41:50 -03:00
paullee 5e791f55a0 1. Fixed typo in previous commit (item 3)
2. Added URL of discussion post / thread
3. Previous commit - Added Landing Depth Control to ArchStairs

Discussion:-

https://forum.freecadweb.org/viewtopic.php?f=23&t=29358#p240197
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p249409
https://forum.freecadweb.org/viewtopic.php?f=23&t=29358&start=70#p249498
2018-08-10 10:41:50 -03:00
paullee c33e247d93 Add Control Landing Depth 2018-08-10 10:41:50 -03:00
wmayer 880c8ccbfd avoid linker errors with >= VS 2015 2018-08-09 23:53:12 +02:00
Markus Lampert 1160e04afe Revert "Get the outline of the syntesized shape for PocketShape before extruding."
This reverts commit 135ede46fe.
2018-08-09 17:24:37 -03:00
wmayer 2587864b52 example using C++ API of FreeCAD in external application 2018-08-09 22:12:18 +02:00
wmayer 90ad845396 for Qt5 no explict event processing after creating a 3d view 2018-08-09 18:57:21 +02:00
wmayer 2e35941efc add some convenience methods for initialization process 2018-08-09 18:41:40 +02:00
wmayer 1d83e15e3f quit event loop after closing main window if not started by an extern host application 2018-08-09 17:03:01 +02:00
wmayer 34172c851c improve handling as library if used by another application 2018-08-09 17:01:46 +02:00
wmayer 241f85569c fix typo 2018-08-09 17:00:41 +02:00
wmayer 71088bfb94 suppress -Wcast-function-type for swig code 2018-08-08 18:18:53 +02:00
wmayer 01c140be28 fix warnings 2018-08-08 18:02:59 +02:00
wmayer a9c4bcb5d6 remove kwd argument for functions only with flag METH_VARARGS 2018-08-08 17:39:32 +02:00
Markus Lampert 0b40519f3f Changed all catch types to references for polymorphic exceptions. 2018-08-08 15:45:30 +02:00
Zheng, Lei 1cbd5cc994 Path.Area: add PocketLastStepover/LastStepover parameter 2018-08-08 13:54:58 +02:00
Bernd Hahnebach 3414c042b6 FEM: clipping plane, fix bound box calculation for obj with a property called Shape which is not a occt shape 2018-08-08 13:49:43 +02:00
Zheng, Lei 436d04fe3e ViewProviderDocumentObject: forbid recursive call of updateView() 2018-08-08 13:44:36 +02:00
easyw c961f8f6b5 make Loop selection command available outside Path WB 2018-08-08 08:58:22 +02:00
pekkaroi f99940ff19 Make drill location list sortable 2018-08-07 16:35:32 -03:00
luz.paz 2e1a887c4c whitespace fixes 2018-08-07 11:13:31 -04:00
luz.paz 67aa3c4c32 Source typo change 2018-08-07 11:13:31 -04:00
luz.paz baa6d89328 Typos and whitespace fixes 2018-08-07 11:13:31 -04:00
Bernd Hahnebach f991d89ec2 FEM: icons, rename purge results icon 2018-08-07 16:57:06 +02:00
Bernd Hahnebach af61ca6698 FEM: icons, rename show result icon 2018-08-07 16:57:05 +02:00
Bernd Hahnebach 4019cc3466 FEM: icons, rename sphere icon 2018-08-07 16:57:05 +02:00
Bernd Hahnebach 1a1ce36f93 FEM: icons, rename plane icon 2018-08-07 16:57:05 +02:00
Bernd Hahnebach eba0a6a6f8 FEM: icons, rename iso surfaces icon 2018-08-07 16:57:05 +02:00
Bernd Hahnebach e0a8cd8f87 FEM: icons, rename cylinder icon 2018-08-07 16:57:05 +02:00
Bernd Hahnebach b7680920de FEM: icons, rename box icon 2018-08-07 16:57:04 +02:00
Bernd Hahnebach dab1ed770c FEM: icons, rename warp filter icon 2018-08-07 16:57:04 +02:00
Bernd Hahnebach a799e00606 FEM: icons, rename linearized stress icon 2018-08-07 16:57:04 +02:00
Bernd Hahnebach 38ae615edf FEM: icons, rename data at point icon 2018-08-07 16:57:04 +02:00
Bernd Hahnebach d9ed75d954 FEM: icons, rename data along line icon 2018-08-07 16:57:03 +02:00
Bernd Hahnebach 2b6ec41963 FEM: icons, rename cut function icon 2018-08-07 16:57:03 +02:00
Bernd Hahnebach 23d28268ff FEM: icons, rename clip scalar icon 2018-08-07 16:57:03 +02:00
Bernd Hahnebach cbcebb6d0c FEM: icons, rename clip region icon 2018-08-07 16:57:03 +02:00
Bernd Hahnebach e16f1939ea FEM: icons, rename data icon 2018-08-07 16:57:02 +02:00
joha2 4e8574e91d FEM: fenics #0003038: flake8 2018-08-07 16:57:02 +02:00
joha2 8df79bef53 FEM: fenics #0003038: added overlap parameter and removed assign_values from interfaces 2018-08-07 16:57:02 +02:00
joha2 bf45030595 FEM: fenics #0003038: removed old fenics interface classes 2018-08-07 16:57:02 +02:00
joha2 ee8a525c07 FEM: Fenics interface: changed interface into different classes for cell functions 2018-08-07 16:57:02 +02:00
joha2 122ea86ba5 FEM: Fenics interface: flake8 2018-08-07 16:57:02 +02:00
joha2 193e69ad6d FEM: Fenics interface: changed cell function and facet function interface to be more convenient 2018-08-07 16:57:01 +02:00
Bernd Hahnebach baf26a3dc3 FEM: analysis task, use analysis icon 2018-08-07 16:57:01 +02:00
Bernd Hahnebach 6bef300102 FEM: post filters task panels, use the right icons and better names 2018-08-07 16:57:01 +02:00
Bernd Hahnebach 90533ea4ed FEM: post warp task panel, small typos in uifiles combo box 2018-08-07 16:57:00 +02:00
Bernd Hahnebach 1c870cc89a FEM: menue names, use better readable names and use same typo system 2018-08-07 16:57:00 +02:00
Bernd Hahnebach 9ce4111cee py3: define more unicode for python3, see commit 7ad0c7f7 2018-08-07 16:57:00 +02:00
wmayer 88aefc28e8 backport to OCCT < 6.8 2018-08-07 16:56:33 +02:00
wmayer 9faa7fc57f fix exception raised on project load for invalid enums 2018-08-07 15:23:56 +02:00
looooo 7ad0c7f7f2 py3: define unicode for python3 2018-08-06 19:24:38 +02:00
Zheng, Lei 8f3cf6156b PropertyPartShape: remove CopyShapeOnSave parameter 2018-08-06 19:01:37 +02:00
Zheng, Lei 8548d72492 App::Document: enable saving with binary brep 2018-08-06 19:01:21 +02:00
Zheng, Lei d65349f1f9 PropertyPartShape: fix brep shape saving without copy 2018-08-06 19:01:09 +02:00
Zheng, Lei 8018f2640d PropertyPartShape: add parameter to disable copy on save
By default PropertyPartShape uses BRepBuilderAPI_Copy to copy the shape
on saving, to get rid of the triangulation. However, OCCT seems to
perform a deep copy and shape sharing information is lost.

A new parameter, BaseApp/Preferences/Mod/Part/General/CopyShapeOnSave,
is added to disable this.
2018-08-06 19:00:58 +02:00
wmayer dc54f67d03 fix infinite recursion in case of non-DAG documents 2018-08-06 18:52:48 +02:00
wmayer 917b95f726 paralleization of transformation and bounding box calculation 2018-08-06 18:52:01 +02:00
Yorik van Havre 102fe30a76 Arch: Discard faces without nornals in IFC exporter 2018-08-06 10:55:29 -03:00
wmayer 2e4d2dff03 fix possible UNICODE related build failure due to OCCT cmake flags 2018-08-06 12:29:43 +02:00
wmayer 5e63d3ded9 fix build failure on Linux 2018-08-06 10:16:18 +02:00
wmayer e6b7bb18b9 fix macOS build failure of MeshGui 2018-08-05 22:08:46 +02:00
wmayer 8068150c64 [WIP] add box selection to select individual faces 2018-08-04 19:37:49 +02:00
wmayer 70e5b9fec3 fix explosion of face colors dialog if too many faces are selected 2018-08-04 18:16:05 +02:00
wmayer 272c89b007 add protected default constructor of SelectionFilterGate to simplifiy writing of sub-classes 2018-08-04 16:52:57 +02:00
Yorik van Havre 123e9d210d Draft: Allow to turn off Draft verbose output in preferences 2018-08-03 19:07:59 -03:00
luz.paz 1d81fd66b8 AddonManager: expand dialog window
Closes https://github.com/FreeCAD/FreeCAD-addons/issues/74
2018-08-03 10:31:44 -03:00
wmayer 48641c2b93 replace Qt's OpenGL buffer with own implementation based on Coin3d API 2018-08-03 13:07:55 +02:00
Yorik van Havre 53c2058e0c AddonManager: Support for Mario's template for externally hosted macros 2018-08-02 11:47:29 -03:00
Yorik van Havre b40b50a30c Arch: Fixed orientation of CTH profile 2018-08-01 22:16:50 -03:00
Yorik van Havre ee517cf184 Draft: better tooltip for copy mode option 2018-08-01 21:50:44 -03:00
Eivind Kvedalen 5d2a889a80 Fixed issue #3506: Certain alias names with a number at the end caused exceptions when deleting cells in a spreadsheet. 2018-08-01 19:23:16 -03:00
Benjamin Alterauge 20d3ebca86 Update Draft.py 2018-08-01 19:22:45 -03:00
Yorik van Havre 5162f4e578 Arch: support of stacked groups in IFC and added Internal property to Spaces 2018-08-01 15:50:14 -03:00
Yorik van Havre 269a4a5585 Arch: Fixed export to IFC of standalone axes 2018-07-31 19:20:13 -03:00
Yorik van Havre 0865c8ae64 Arch: small bugfix in material creation 2018-07-31 18:31:43 -03:00
Eivind Kvedalen d2f9ab6a11 Spreadsheet: Fixed issue #3361. 2018-07-31 16:11:37 -03:00
Eivind Kvedalen 13da3dd830 Revert "fixes #0003361: Spreadsheet: Inserting Row Cause Crash - FC Daily v0.17"
This reverts commit f485a0786f.
2018-07-31 16:11:37 -03:00
wandererfan cd0b26a69c Fix text position in Diamter Dim 2018-07-31 16:08:48 -03:00
wandererfan 4046b001b5 Fix default Vertex color 2018-07-31 16:08:48 -03:00
wandererfan ee607d36a9 Fix iso View position in AutoDistribute 2018-07-31 16:08:48 -03:00
wmayer 1f4ab25d9a add option to resize datum planes manually 2018-07-30 22:31:24 +02:00
wmayer 9c57ae56ad add cmake file for thumbnail provider 2018-07-30 16:38:55 +02:00
wmayer 9a3f0bc25a improve exception handling in ViewProvider::eventCallback 2018-07-30 12:25:54 +02:00
wmayer 36fa72488c comment out unused icons (to fix C2603 MSVC error) 2018-07-30 09:52:41 +02:00
Abdullah Tahiri 3d4c5eda21 Sketcher: Fix typos 2018-07-30 00:47:26 +02:00
Abdullah Tahiri de7bab2f4a Sketcher: Fix Radius/Diameter shortcut 2018-07-30 00:47:26 +02:00
Abdullah Tahiri c84fe5fa3d Sketcher: Add diameter constraint to the menu and the toolbar
fixes #1632
2018-07-30 00:47:25 +02:00
Abdullah Tahiri 26f93eef96 Sketcher: Geometry Element Widget Support for Diameter Constraint shortcuts 2018-07-30 00:47:25 +02:00
Abdullah Tahiri 1414f986dc Sketcher: Constraint Widget support for the diameter constraint 2018-07-30 00:47:25 +02:00
Abdullah Tahiri 6ce8dcdfc4 Sketcher: Support for editing datum dialog 2018-07-30 00:47:24 +02:00
Abdullah Tahiri 3147691013 Sketcher: Diameter Constraint Property representation 2018-07-30 00:47:24 +02:00
Abdullah Tahiri a582da50b8 Sketcher: New command to add a Diameter Constraint 2018-07-30 00:47:24 +02:00
Abdullah Tahiri 1fbdc7c1dd Sketcher: Diameter constraint art 2018-07-30 00:47:23 +02:00
Abdullah Tahiri de3da81293 Sketcher: ViewProvider representation of the Diameter Constraint 2018-07-30 00:47:23 +02:00
Abdullah Tahiri 2e33aba01e Sketcher: Double arrow label for Diameter Constraint 2018-07-30 00:47:20 +02:00
Abdullah Tahiri f41c1a9696 Sketcher: Python SketchObject support 2018-07-30 00:47:20 +02:00
Abdullah Tahiri 103260872c Sketcher: Diameter support for Sketch Object 2018-07-30 00:47:20 +02:00
Abdullah Tahiri 1e2df1054c Solver: Support for Diameter constraint 2018-07-30 00:47:20 +02:00
Abdullah Tahiri 424d68085e GCS: Diameter constraint emulation through ConstraintEqual 2018-07-30 00:47:19 +02:00
Abdullah Tahiri dcdb664709 GCS: Extension of ConstraintEqual to allow for a proportionality factor 2018-07-30 00:47:19 +02:00
Abdullah Tahiri 4ae2692fe2 Sketcher: Diameter Constraint Python support 2018-07-30 00:47:18 +02:00
Abdullah Tahiri 4bbc7ea786 Sketcher: New Sketcher Constraint Diameter 2018-07-30 00:47:18 +02:00
wmayer 8ef330d19a add missing export macro 2018-07-29 15:53:56 +02:00
Abdullah Tahiri 1899987e89 Sketcher: Add command to delete all constraints to menu 2018-07-29 13:44:09 +02:00
Abdullah Tahiri 74a5a066c9 Sketcher: UI command to delete all the constraints at once 2018-07-29 13:44:09 +02:00
Abdullah Tahiri cd5aa8975e Sketcher: Python command to delete all the constraints at once 2018-07-29 13:44:07 +02:00
Abdullah Tahiri 0024d1b0c4 Sketcher: Python SketchObject implementation
Exposure of all the functionality in the previous commits to Python
2018-07-29 13:44:07 +02:00
Abdullah Tahiri 527c814ddc Sketcher: SketchObject adaptation to Sketch Analysis
Apart for the inclusion of the Analysis functionality, SketchObject has been improved to provide:

- A fast painless deleteAllConstraints() function

- A fast painless constraint group deletion, delConstraints(std::vector<int> ConstrIds, bool updategeometry)
2018-07-29 13:44:07 +02:00
Abdullah Tahiri 3dfb202380 Sketcher: Make use of Sketch Analysis for Sketch Validation - refactoring 2018-07-29 13:44:06 +02:00
Abdullah Tahiri de9e7cc942 Part: Improvement to closest parameter determination when the projection does not exist in the trimmer curve 2018-07-29 13:44:06 +02:00
Abdullah Tahiri 97f375296b Sketcher: Sketch Analysis tool and autoconstraining algorithms
A series of algorithms to detect missing constraints and create them.

Each of the algorithms is divided in different steps for maximum flexibility:

    /// There is a first type of routines, simple routines, which work in the following order:
    /// Detect - (Analyse) - [Get] - [Set] - Make
    ///
    /// The Detect step just identifies possible missing constraints.
    ///
    /// The Analyse, which is not available for all the routines, operates in detected constraints of the same routine, to
    /// look for alternatives. For example, a general pointonpoint detection leads to a search for coincident constraints, which
    /// can be later run via Analyse if it is intended to convert endpoint coincidence to endpoint perpendicular and tangent constraints.
    ///
    /// The Get retrieves the result of the analysis as a vector of ConstraintIds, indicating the suggested constraints. This step is intended
    /// for enabling the user to check the result of the analysis, rather than applying it. If only applying is intended, this step is not necessary
    /// as the Make will operate on the result of the Detect - Analyse directly.
    ///
    /// The Set changes the detected result. It modifies the SketchAnalysis object. It only modifies the SketchObject as far as the SketchAnalysis is changed.
    /// It does not apply any changes to the sketch. It is intended so as to enable the user to change the result that will be applied.
    ///
    /// Neither the Detect, nor the Analyse, nor the Get steps modify the Sketch geometry.
    ///
    /// Make applies the constraints stored internally in the SketchAnalysis object.

It includes an automatic constraining algorithm for coincidences, horizontals/verticals and equality:

    /// A second type of routines, complex routines, are thought for running fully automatic and they Detect, Analyse and Make.
    /// They may also apply a variaty of types of Constraints.

It also includes some helper functions, like autoRemoveRedundants
2018-07-29 13:44:06 +02:00
tomate44 b40c1f16b5 add a missing check for OCC version 2018-07-29 11:50:08 +02:00
tomate44 3c049e44f1 cleanup of defeaturing in Part Gui 2018-07-29 11:50:07 +02:00
tomate44 d5db3ff588 add OCC defeaturing to PartWB Gui 2018-07-29 11:50:07 +02:00
tomate44 1f63d6a103 add python binding of OCC defeaturing 2018-07-29 11:50:06 +02:00
tomate44 4a0ea3c0ec add OCC defeaturing to TopoShape 2018-07-29 11:50:06 +02:00
wmayer e6658ed3f3 expose methods to Python to change navi cube settings 2018-07-29 11:32:54 +02:00
Eivind Kvedalen c2ada8eacd Fix for issue #3541: Normalize xDir vector for Hole feature to correct hole diameter. 2018-07-29 01:03:17 +02:00
wmayer 2ca81da42f fixes #0003538: MacOSX 10.13 not in the 'About FreeCAD' dialog 2018-07-28 16:06:15 +02:00
luz.paz 23b30518b9 PartDesign: fixes for Qt 5.11
Similiar to changes made in https://github.com/FreeCAD/FreeCAD/pull/1552/commits/7e63a33b8b90e2ffa3bd449712d4521eaee75aa7
CC @efferre79
2018-07-28 15:32:43 +02:00
Przemo Firszt c6c55cb6c3 Change method of counting commits
The count of commits in unshallowed copy should always match the actual
number of commits in the master repository, so the is no need for
workarounds.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-07-28 15:25:35 +02:00
Przemo Firszt 9d419b8a40 Add libspnav to fedora spec 2018-07-28 15:25:34 +02:00
wmayer 61a6fbe6d2 fix -Wunused 2018-07-28 12:56:31 +02:00
wmayer c2ab3f02cd remove undesired dependency of Mesh to Part module 2018-07-28 11:58:39 +02:00
wmayer 039e972a4b implement fast mesh rendering for Qt5 port (7x faster) 2018-07-28 11:08:03 +02:00
Yorik van Havre db4f47cf28 Arch: other small bugfix in IFC exporter 2018-07-27 17:07:44 -03:00
Yorik van Havre ee154d9203 Arch: Fixed storey height bug in IFC export 2018-07-27 16:41:20 -03:00
luz.paz 0576524144 Misc. code comment typo fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt --skip="*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./.git,./src/zipios++"`
2018-07-27 10:39:43 -03:00
Philipp Tenbrock 4c188ec0f5 Fixed DAE export of groups including sub-groups and sub-parts 2018-07-27 10:39:00 -03:00
wandererfan e267eac7bb Fix #3329 globalPosition in Stl export 2018-07-27 10:37:06 -03:00
Yorik van Havre e45a3674f0 Arch: bugfixes in IFC exporter 2018-07-26 19:23:48 -03:00
wandererfan c28f95d9f5 Export DocObjectPy/TopoShapePy to Dxf (Import module) 2018-07-26 10:02:25 -03:00
wmayer 6cc1524a0d Mesh improvements:
+ support of Simple Model Format (smf)
+ improve reading of STL files (reduce by ~70%)
2018-07-26 13:19:35 +02:00
Yorik van Havre 98af9aabd9 Draft: Snap to BuildingPart base points 2018-07-25 20:25:11 -03:00
Yorik van Havre 78fea67043 Arch: bugfix in IFC exporter 2018-07-25 20:24:50 -03:00
wmayer d4987d088f add option to drag at cursor instead of view center 2018-07-25 22:36:35 +02:00
wmayer 6e8b60589f add brnading option to show full version number in splash screen 2018-07-25 22:26:54 +02:00
wmayer 6c51cdd663 minor changes 2018-07-25 21:49:21 +02:00
wmayer fa89e3b951 add url handler to handle certains protocols differently 2018-07-25 21:48:55 +02:00
wmayer d3ef6905ff + add option to switch off precompiled header 2018-07-25 20:17:11 +02:00
wmayer 08fcd58e9d + raise exception instead of crashing when trying to access curvature info via Python 2018-07-25 20:12:55 +02:00
wmayer 6b9a3bf93c fix possible crash in Quarter viewer 2018-07-25 19:50:25 +02:00
wmayer b7ac2807fe Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2018-07-25 18:01:02 +02:00
wmayer 65879dfe63 + Improve mesh selection (precompute projection matrix and use polygon bounding box) 2018-07-25 18:00:42 +02:00
Yorik van Havre 2b04db09e3 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-07-25 12:56:20 -03:00
Yorik van Havre d034c0083c Draft: Added variable to be able to start Move command in copy mode 2018-07-25 12:55:55 -03:00
Yorik van Havre f6fdad4d07 Part: Fixed wording in ShapeBuilder messages 2018-07-25 12:55:27 -03:00
wmayer 1fcfbcf1ab + move implementation of Base::ifstream and Base::ofstream to header and remove export macro.
This is needed for VS 2013 to avoid that it exports methods of the base class and thus causing linker errors for modules that link FreeCADBase
2018-07-25 17:50:30 +02:00
wmayer 3b3e4fd4ce minor fix 2018-07-25 17:49:28 +02:00
wmayer 806ad88c5a + implement a faster method to multiply vector with matrix
+ add convenience method to transform a point array
2018-07-25 17:31:11 +02:00
wmayer b298e63bcc + implement direct and queued mode in console class 2018-07-25 17:25:32 +02:00
wmayer b13f1562a3 handling of UTF-8 in zipios++ on Win32 2018-07-25 16:57:38 +02:00
wmayer 6b6bde1bab use correct spelling of Windows header 2018-07-25 16:49:37 +02:00
Yorik van Havre 1885036139 Arch: Added preference option for screen helpers color (axes, grids, etc...) 2018-07-25 10:56:12 -03:00
Yorik van Havre 111c0496b4 Draft: Minor bugfix 2018-07-24 17:10:18 -03:00
Yorik van Havre 64c760f537 Added Standard Code property to all components 2018-07-24 11:58:55 -03:00
Yorik van Havre 4394862794 Arch: Reorganizing structural profiles + added eurocode timber sizes 2018-07-24 11:58:34 -03:00
Yorik van Havre 7bac2a610a Arch: minor bugfix 2018-07-23 21:13:14 -03:00
Yorik van Havre acf18c193c Arch: Minor fixes in Materials 2018-07-23 19:43:04 -03:00
wandererfan d37519e3e3 Dxf Boilerplate files not installed
- fix INSTALL command in Import/CMakeLists.txt
2018-07-23 12:47:56 -03:00
wandererfan 4418502964 Add ANSIB Template
- also fix cmake to move all templates after
  build.
2018-07-23 12:47:17 -03:00
wandererfan 2cc80b6131 Add preference settings
- autodistribute, vertex size, vertex color
2018-07-23 12:47:17 -03:00
wandererfan 8ba4cd1058 Add support for alternate LineGroup file 2018-07-23 12:47:17 -03:00
Mark Ganson TheMarkster 5a39efa771 Fix typo
I figure this should be Z instead of Y, but even if I'm wrong there's no reason to check for hasattr(pts,'Y') twice.
2018-07-23 12:46:16 -03:00
wandererfan d48d014eb9 Fix Detail view orientation 2018-07-23 12:45:32 -03:00
hokieengr 2b08754c17 Fixed default HideUnits option to FALSE 2018-07-23 12:44:26 -03:00
hokieengr d7e5534d51 Added code to strip units from display string 2018-07-23 12:44:26 -03:00
hokieengr b9767f0036 Updated hide units GUI option with more text 2018-07-23 12:44:26 -03:00
hokieengr f8327a009b WIP. Moving to other machine. 2018-07-23 12:43:46 -03:00
hokieengr 4c2e36b645 WIP. Added logic to not hide non-base units. 2018-07-23 12:43:46 -03:00
hokieengr 841dfeadbe WIP. Moved code to hide units to seperate function 2018-07-23 12:43:46 -03:00
Bob da41c0071b Add getPresentationValue function prototype 2018-07-23 12:41:14 -03:00
hokieengr 3f1216a58d WIP. Added logic to hide units on distance dimensions.
More of a prototype than anything else right now. Will find a better way to add this functionality to the rest of Sketcher.
2018-07-23 12:41:14 -03:00
hokieengr 5e3ce0331e Added option to hide units in sketch
Currently not hooked up to anything just yet.
2018-07-23 12:41:14 -03:00
wmayer 548f63fd0e fix -Winconsistent-missing-override 2018-07-22 17:19:36 +02:00
Yorik van Havre 8272abf5ae Arch: Added edit mode task panel to arch profiles + added American Wide Flange (W) profiles 2018-07-21 22:50:07 -03:00
Yorik van Havre 4aa91d62e2 Part: Added 'Wire from Edges' option to Part ShapeBuilder 2018-07-20 20:15:26 -03:00
Yorik van Havre a91f9e9812 Arch: Enable materials hierarchy 2018-07-20 17:59:39 -03:00
wandererfan a077a6d1af Tweak Linear Dim Cosmetics 2018-07-20 10:36:26 -03:00
Fabio Rossi 97ebbf27c2 fixed mod Assembly for Qt 5.11 2018-07-20 10:34:58 -03:00
Fabio Rossi 4249ddf648 building fixes of mod Assembly 2018-07-20 10:34:58 -03:00
Fabio Rossi 068073656e fixes in mod Assembly for python3 2018-07-20 10:34:58 -03:00
Yorik van Havre 473c86626d Arch: misc improvements to IFC importer
* Fixed progress bar
* Import can now be aborted by pressing ESC
* No intermediary Extrusion object is created for Walls and Structures
* When a base profile has only linear edges, create a draft wire instead of face
* Fixed placement bug in shared profiles
2018-07-19 17:04:19 -03:00
sliptonic e92d1018be PEP8 cleanup 2018-07-19 12:06:09 -03:00
sliptonic 024ce84da3 Using PropertyVectorDistance
per yorik: https://forum.freecadweb.org/viewtopic.php?f=3&t=29787#p244785
2018-07-19 12:06:09 -03:00
Yorik van Havre c93ff200ca Part: Allow to disable progress bar in brep string reader 2018-07-19 11:57:07 -03:00
Yorik van Havre cc0fb2a5a9 Arch: Fixed bug in display of axis systems 2018-07-18 21:39:11 -03:00
Yorik van Havre 0c33d00bfd Arch: Fixed visibility of BuildingPart 2018-07-18 15:35:13 -03:00
Yorik van Havre 50a10a2020 Arch: Support of shared profiles in extrusions imported from IFC 2018-07-18 15:07:54 -03:00
wandererfan 9bfd118f37 Fix includes for M_PI on Win
Fix missing ImportExport
2018-07-18 10:52:03 -03:00
wandererfan 9c60b4190c Fix "use of deleted function" error on streams 2018-07-18 10:52:03 -03:00
wandererfan 0790e3c920 Add support for Dxf Export R14 spec 2018-07-18 10:52:03 -03:00
Yorik van Havre 24a9ab73a7 Arch: Improved compression of IFC files 2018-07-17 22:30:54 -03:00
Yorik van Havre 56c6e3f0f6 Arch: Fixed wrong Floor height on IFC import 2018-07-17 21:41:19 -03:00
Yorik van Havre d940fd3447 Arch: Enable compression when exporting IFC files (reuse similar vectors, colors, etc) 2018-07-17 14:19:38 -03:00
Yorik van Havre a7c8a4677f Arch: Support for IfcGrid 2018-07-16 17:21:17 -03:00
Mark Ganson TheMarkster fa32af7025 convert tabs to spaces 2018-07-16 12:03:45 -03:00
Mark Ganson TheMarkster dc79a93dde save current color so it can be reverted on cancel 2018-07-16 12:03:45 -03:00
Mark Ganson TheMarkster 1cb114e256 handle user cancel color dialog
Currently, when user cancels line color or face color selection dialog current color gets changed to black, as opposed to retaining the status quo.  https://forum.freecadweb.org/viewtopic.php?f=3&t=29762

The fix is to test QColor.isValid(color), which returns false when the user cancels the QColor dialog.
2018-07-16 12:03:45 -03:00
sliptonic 3d09e6543a Fix for coverity CID 168953
Make test for ocl not conditional.
2018-07-15 16:28:16 -03:00
Yorik van Havre 2c74bcddd4 Merge pull request #1553 from luzpaz/source-typo
Source typo fix
2018-07-14 11:55:07 -03:00
luz.paz 49b3fbab58 Source typo fix
minor typo in function saveIfNeccessary() to saveIfNecessary()
2018-07-13 18:49:48 -04:00
Markus Lampert 07d1abb387 Fixed import and coverity issue in rml_post. 2018-07-13 10:33:46 -03:00
wandererfan 7e781bcfd0 Revise multiple solids message 2018-07-13 10:23:42 -03:00
wandererfan c74ea1d999 Fix PD Pocket Through All Unit Test
- test for Pocket Through All case
  generated a multi-solid solution.
  Now returns single solid.
2018-07-13 10:23:42 -03:00
wandererfan 883a726d52 Fix #3401 warning on multiple solid
- PartDesign only uses the first result shape
  of an operation and discards the rest without
  warning.

- this also fixes #1707
2018-07-13 10:23:42 -03:00
Yorik van Havre c6b3949704 Arch: Building now derives from BuildingPart 2018-07-13 10:23:01 -03:00
luz.paz be5e93ddfe Misc. typo & whitespace fixes
Found via `codespell -q 3 -I ../fc-word-whitelist.txt --skip="*.ts,*.po,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./.git,./src/zipios++"`
Revert IFC commit
2018-07-11 21:52:27 -04:00
Yorik van Havre c9b29dc63b Revert "Added support in DraftGui.todo.delay function to accept any number of arguments."
This reverts commit dc4fa6e804.
2018-07-11 21:31:57 -03:00
JimStar 63f085dd78 Extended global marker size to be used for Sketcher 2018-07-11 21:22:28 -03:00
JimStar dc15e8f077 Extended global marker size to be used for Path 2018-07-11 21:22:28 -03:00
JimStar 348ae51772 Extended global marker size to be used for other modes 2018-07-11 21:22:28 -03:00
Bernd Hahnebach 101fac6c12 Material: recreated materials files with the bash tools 2018-07-11 21:18:49 -03:00
Bernd Hahnebach 4627ad5856 Material: properties, add ultimate strain 2018-07-11 21:18:49 -03:00
Bernd Hahnebach 35b92641de Material: properties, remove Elasticity because it is a theory and not a property 2018-07-11 21:18:49 -03:00
Bernd Hahnebach 3416a26d7f FEM: analysis group meshing, deactivate by default 2018-07-11 21:18:49 -03:00
Bernd Hahnebach 96ed5404a2 FEM: material task panel, typo 2018-07-11 21:18:49 -03:00
lo d990fb15fa py3: <generator>.next -> next(<generator>)
reported: https://github.com/FreeCAD/FreeCAD_Conda/issues/16
ref1: https://stackoverflow.com/questions/12274606/theres-no-next-function-in-a-yield-generator-in-python-3
2018-07-11 21:17:57 -03:00
wandererfan 860ad6b913 Use Stroker to generate Edge selection area 2018-07-11 21:17:03 -03:00
wandererfan 545bed8b15 Fix arcs on outer angle dimensions 2018-07-11 21:17:03 -03:00
wandererfan 0914829958 Fix initial placement of linear dims 2018-07-11 21:17:03 -03:00
Markus Lampert ae49612447 Fixes for coverity CID 176063 and 176065. 2018-07-11 21:15:59 -03:00
Kurt Kremitzki 062fd6735b Detect OCCT at new Debian location 2018-07-11 21:13:35 -03:00
Amritpal Singh dc4fa6e804 Added support in DraftGui.todo.delay function to accept any number of arguments. 2018-07-11 21:12:27 -03:00
Yorik van Havre c4fc02cbcf Arch: fixed bug in non-GUI mode 2018-07-09 11:49:26 -03:00
Yorik van Havre 74a399e6b1 Arch: added IfcPRoperties to BuildingParts 2018-07-08 17:34:11 -03:00
Yorik van Havre b54661c09a Arch: Added IFC properties editor to edit mode of all Arch objects 2018-07-07 21:46:49 -03:00
Yorik van Havre 0ff2c72abc allow to disable version number in window title 2018-07-07 20:12:43 -03:00
Yorik van Havre 5f63a7764b Arch: using basic object names for all arch objects 2018-07-07 14:40:10 -03:00
pekkaroi d7d4489da1 Change StepOver to PropertyPercent 2018-07-07 14:11:08 -03:00
pekkaroi 097f73afcb Path: Surface op improvements for drop cutter algo 2018-07-07 14:11:08 -03:00
Fabio Rossi 56cd699183 Fix mod JtReader with python3 2018-07-07 14:09:11 -03:00
Fabio Rossi f469c9a2c6 Another fix to compile against qt5 with python2 (detection of shiboken2) 2018-07-07 14:09:11 -03:00
Markus Lampert 1a952af89c Make sure the offset wire is oriented predictably. 2018-07-06 22:08:47 -07:00
Markus Lampert 41ca2b3b6c Changed OpTools and unit tests to not rely on Part.Face creation to determine wire orientation. 2018-07-06 22:08:47 -07:00
Markus Lampert d2efdc4080 Some tests to figure out Travis failures 2018-07-06 22:08:47 -07:00
Markus Lampert c4426c28e6 Fixed chamfer UI 2018-07-06 22:08:47 -07:00
Markus Lampert c4c30fba9d Renamed PathGeomOp to PathOpTools. 2018-07-06 22:08:47 -07:00
Markus Lampert 57ee12df60 Prevent user from adding stock features to chamfer. 2018-07-06 22:08:47 -07:00
Markus Lampert 3652cee94a Fixed holding tags unit tests. 2018-07-06 22:08:47 -07:00
Markus Lampert c75fc99cf6 Added chamfer selection guard to allow edges and faces. 2018-07-06 22:08:47 -07:00
Markus Lampert ebf84ff152 Fixed holding tags issue with Path's at the same height as the tag top. 2018-07-06 22:08:47 -07:00
Markus Lampert b8b1c6afe2 More holding tags robustifying. 2018-07-06 22:08:46 -07:00
Markus Lampert 559d480457 Fixed direction for offsetting holes. 2018-07-06 22:08:46 -07:00
Markus Lampert 664b2da2ee Fixed flipping of an arc if the arc is rotated. 2018-07-06 22:08:46 -07:00
Markus Lampert 1574d0bd43 Robustify holding tags a bit. 2018-07-06 22:08:46 -07:00
Markus Lampert c4ae92cf3c Fixed open wire offsetting and orienting. 2018-07-06 22:08:46 -07:00
Markus Lampert 4a8653b1c6 Refactored geom functions into PathGeomOp. 2018-07-06 22:08:46 -07:00
Markus Lampert 34aaeff312 Extracted and added tests for chamfer tool depth and offset calculations. 2018-07-06 22:08:46 -07:00
Markus Lampert 028d76f000 More chamfer unit tests. 2018-07-06 22:08:46 -07:00
Markus Lampert 324a30831a Fixed wire offsetting and orientation and added more test cases. 2018-07-06 22:08:46 -07:00
Markus Lampert bf7f0a69ed Corrected cutting edge angle input for v-bits. 2018-07-06 22:08:46 -07:00
Markus Lampert ee56fc92d5 Set default log level back to INFO for all modules. 2018-07-06 22:08:46 -07:00
Markus Lampert c559544cdf Fixed missing stock exception in ProfileContour. 2018-07-06 22:08:46 -07:00
Markus Lampert 97ef1bb622 Work around for offsetting a circle with Placement. 2018-07-06 22:08:46 -07:00
Markus Lampert 1b6d14a8df Added basic chamfer test case for offsetting a wire. 2018-07-06 22:08:46 -07:00
Markus Lampert a605b6ea73 Fixed flipping of b-spline and enabled unit test for it. 2018-07-06 22:08:46 -07:00
Markus Lampert d101111f64 Added flipping of edge to PathGeom. 2018-07-06 22:08:46 -07:00
Markus Lampert 8130b57945 Moved functions out of class for simpler testability 2018-07-06 22:08:46 -07:00
Markus Lampert 135ede46fe Get the outline of the syntesized shape for PocketShape before extruding.
This greatly improves the robustness of the algorithm and gives PathArea less chances to mess it up.
2018-07-06 22:08:46 -07:00
Markus Lampert 5fa725c188 Always use climb milling for closed wires. 2018-07-06 22:08:46 -07:00
Markus Lampert 0a7074cd10 Added join to chamfer properties and UI. 2018-07-06 22:08:46 -07:00
Markus Lampert 8657632d1f Combined engrave ops in a command group. 2018-07-06 22:08:46 -07:00
Markus Lampert 6920a618db Fixed chamfer depth and cleaned up properties. 2018-07-06 22:08:46 -07:00
Markus Lampert ce7f288110 Rebase chamfer op on engrave-base and enable path generation. 2018-07-06 22:08:46 -07:00
Markus Lampert 57ff80fb07 Split Engrave into base implementation and Engrave specific pieces. 2018-07-06 22:08:46 -07:00
Markus Lampert 63200c00e5 Offsetting edges for chamfer op. 2018-07-06 22:08:46 -07:00
Markus Lampert ec0e9d1d91 Basic chamfer op framework. 2018-07-06 22:08:46 -07:00
Markus Lampert 0c71bc9f93 Consolidated path tool editor and added customized support for endmill, drill and v-bit. 2018-07-06 22:08:46 -07:00
Victor Fragoso 5f63f9f23f Add comment to clarify why replace() is used
by The WikiLab Team (wikilab.blog.br)
2018-07-06 09:55:44 -03:00
Danilo Oliveira 9ea0cf5a30 Add version info to window title
Fix issue 3499
by The Wikilab Team (wikilab.blog.br)
2018-07-06 09:55:44 -03:00
Amritpal Singh f0252c80c2 Show color of object wrt to its transparency while exporting SVG file. 2018-07-05 19:10:17 -03:00
wandererfan bd4f48c95f Fix #3525 Handle Global Position
- DVP was not taking container's Placement into
  account when drawing objects.
2018-07-05 19:06:33 -03:00
JimStar e5dc8bfffa Implemented a global setting for marker size and support of it for snapping in "Draft" workbench. In future this setting can be used for other markers too, to be able to set them all to comfortable size by just one global setting.
Before that (e.g. on MacBook Pro) it was very hard to see the microscopic selection-circle hidden behind much bigger cursor arrow when trying to snap e.g. a line to some vertex. Now this setting can be used for such displays to increase the marker size and make it clearly visible behind the cursor.
The already existing "sketcher marker size" property is intended to be used for sketcher only, so it's not suitable for global setup of all the markers' sizes uniformly...
2018-07-05 19:05:19 -03:00
Yorik van Havre 2f6fe25971 Arch: Support of IfcBuildingElement and IfcPropertySets in ifc import/export 2018-07-04 14:49:31 -03:00
Bernd Hahnebach a790510d8e Material: material properties, add angle of friction 2018-07-03 17:54:57 -03:00
Bernd Hahnebach 7a27e0e85a Material: material properties, remove duplicate 2018-07-03 17:54:57 -03:00
Bernd Hahnebach f379e61255 Material: material properties, add some links as comments 2018-07-03 17:54:57 -03:00
Bernd Hahnebach 3887161f4c Material: material properties, better formating 2018-07-03 17:54:57 -03:00
Bernd Hahnebach 527b3b35ed Material: add some thermal and mechanical properties to material module 2018-07-03 17:54:57 -03:00
Bernd Hahnebach 6442ac83dc Material: material module, add some comment 2018-07-03 17:54:57 -03:00
Bernd Hahnebach ce9e5d9553 Material: editor, add cards output and some comment 2018-07-03 17:54:57 -03:00
Bernd Hahnebach 0f8566ef0a FEM: principal stress calculation, fix for direction of principal stress 2018-07-03 17:54:57 -03:00
Dmitrii Starostin 1bd2463d90 IMHO it looks like a bug... 2018-07-03 17:53:43 -03:00
Yorik van Havre 6014fce390 Arch: Fixed bug in windows 2018-07-02 13:02:57 -03:00
Yorik van Havre 42efa3f728 Arch: Fixed bug in restoring material objects 2018-07-02 13:02:43 -03:00
Yorik van Havre ab1520b872 Arch: Fixed compatibility with 0.17 2018-06-29 13:07:13 -03:00
easyw 88729418b7 fixed a crash on escape from Image Scaling WB 2018-06-29 12:21:49 -03:00
Yorik van Havre 10dee3f420 Draft: applied patch #1530 from easyw 2018-06-29 12:20:04 -03:00
Yorik van Havre 1314210a4c Arch: Handle cloning of BuildingParts 2018-06-29 12:12:54 -03:00
Yorik van Havre 43bf3bc0cb Arch: Handle placement change in BuildingPart + view management 2018-06-28 18:44:07 -03:00
Yorik van Havre 082926c7d2 Arch: Further work on BuildingPart 2018-06-28 18:44:07 -03:00
Yorik van Havre 2bef80dcc4 Arch: initial BuildingPart development 2018-06-28 18:44:07 -03:00
Yorik van Havre 05c26826ca Arch: context menu option for material group to merge duplicate materials 2018-06-28 18:27:19 -03:00
Yorik van Havre fafb194883 Arch: Minor fix to IFC explorer 2018-06-28 13:35:55 -03:00
Yorik van Havre efdef0f636 Arch: Fixed non-GUI mode bug 2018-06-26 17:31:13 -03:00
Yorik van Havre 3f2cfa0a7f Arch: Fixed OBJ export 2018-06-26 15:26:00 -03:00
Yorik van Havre fd5f1fae3e Arch: Fixed IFC export of window openings 2018-06-26 15:17:22 -03:00
easyw 55db1feb2b adding missing changes :) 2018-06-26 10:13:33 -03:00
easyw 13cbc0c250 fixing py3 exceptions 2018-06-26 10:13:33 -03:00
easyw 87ee06b930 Centering the Image Scaling Dialog 2018-06-26 10:13:33 -03:00
easyw 090211b632 Adding Image Scaling Macro ti Image WB 2018-06-26 10:13:33 -03:00
Yorik van Havre 8f1c6f77c0 Arch: Fixed RHS structural profiles 2018-06-22 11:51:12 -03:00
wandererfan c5d5897457 Fix #3508 Missing Namespace in Templates 2018-06-22 10:56:02 -03:00
wandererfan cd02be6fca TD: provide gap between figure and ext lines 2018-06-22 10:47:55 -03:00
wandererfan b20a992579 Fix extension line direction in isometric views 2018-06-22 10:47:55 -03:00
Yorik van Havre 5da2280cd6 Arch: Added Frame and Offset properties to windows 2018-06-21 18:53:52 -03:00
Markus Lampert fb0fc49a30 Removed PathPreferences class and moved functionality into the module interface. 2018-06-19 21:53:41 -07:00
Markus Lampert b24e95b7c1 Removed PathGeom class and moved functionality into module interface. 2018-06-19 21:38:20 -07:00
Yorik van Havre fae0de5858 Arch: Fixed export of included windows to IFC 2018-06-18 22:14:05 -03:00
ageeye 64fee7817b Simple blocks now are possible as container. 2018-06-18 20:38:10 -03:00
ageeye ec16d82c96 Add a new array type: PointArray. 2018-06-18 20:38:10 -03:00
Yorik van Havre 70c190f5dc Merge pull request #1521 from easyw/master
updating Image WB new Icons
2018-06-18 20:34:06 -03:00
easyw 60a0dff12d updating new Icons 2018-06-15 18:29:12 +02:00
Yorik van Havre 8e4dd8ca84 Arch: Fixed bug in removing objects from section planes 2018-06-15 12:36:25 -03:00
wandererfan 9e7f406bd9 Fix X,Y of anchor in Projection Group 2018-06-15 11:34:00 -03:00
wandererfan f91cb2ab7d Compatibility w/R12 and arrows for Angles 2018-06-15 11:34:00 -03:00
Markus Lampert 36a82c690d Add support for full circles to PathGeom. 2018-06-15 11:32:06 -03:00
Torsten Sadowski a59e87976f Additional modules for Arch Linux added to VTK_COMPONENTS 2018-06-15 11:30:42 -03:00
Torsten Sadowski e3f578ee89 Building the FEM module on Arch Linux requires some additions to VTK_LIBRARIES 2018-06-15 11:30:42 -03:00
luz.paz c0014cbd3e Misc. comment typos
+ Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ~/Projects/fc-word-whitelist.txt`

+ crowdin translation refinements:  
- https://crowdin.com/translate/freecad/6766/en-en#6499546
- https://crowdin.com/translate/freecad/6766/en-en#6504496
2018-06-13 20:37:17 -04:00
Yorik van Havre 548511ac30 Add support for Qt5 in ts update script 2018-06-13 11:45:40 -03:00
larnu c8c10c117b Fix Blender Navigation 2018-06-13 12:21:34 +02:00
Markus Lampert 3c3239ae29 Aggregate base edges into wires for engraving. 2018-06-12 10:32:47 -03:00
ageeye 8faf50ec04 PartDesign::Clone maintain the colors of the original 2018-06-12 10:30:07 -03:00
Yorik van Havre 0fcb378f02 Arch/Draft: Fixed bugs in non-GUI mode 2018-06-11 21:44:23 -03:00
Yorik van Havre 2f18182b6d Updated travis build badge in Readme 2018-06-11 12:28:00 -03:00
ageeye 15685136e7 Add sew function to the draft facebinder. Besides facebinder and patharray get their own icons in the tree view. 2018-06-11 09:58:22 -03:00
ageeye c6c4a06778 Add sew function to the draft facebinder. Besides facebinder and patharray get their own icons in the tree view. 2018-06-11 09:58:22 -03:00
Bernd Hahnebach 1051f10498 Material: main module, only use one material structure list 2018-06-11 06:21:41 +02:00
wmayer f90cd4a56d backport to occt < 6.9 2018-06-10 21:57:25 +02:00
tomate44 f3ac51d9b7 add Approximation option to TopoShape section 2018-06-10 20:59:06 +02:00
tomate44 be96fcc62d add Approximation option to FeaturePartSection 2018-06-10 20:59:06 +02:00
wmayer 2410e53238 fix typo 2018-06-10 20:55:16 +02:00
Bernd Hahnebach 184a566da3 Material: move materal property list into material module and use this for material editor ui and writing of mat files 2018-06-10 20:54:23 +02:00
Bernd Hahnebach 1e844d4f53 Material, code formating, flake8 compatible code 2018-06-10 20:54:23 +02:00
Abdullah Tahiri 1e37612a27 Sketcher: Fix deleteall crash 2018-06-10 19:57:42 +02:00
wandererfan 9975c75888 Fix #3419 Circles as Polygons
- by default, OpenScad represents circles from
  dxf files as octogons.  This fix provides
  access to the OpenScad variable "$fn" which
  controls the number of polygon sides.
2018-06-10 19:33:33 +02:00
wandererfan f571c14487 Fix wrong point in Radius dim 2018-06-10 19:13:22 +02:00
wandererfan 7cb8520a84 Make Dxf Dimensions compatible with ACAD 2018-06-10 19:13:22 +02:00
wandererfan 0f8eca3c1c Make Dxf header compatible with ACAD 2018-06-10 19:13:21 +02:00
wandererfan 79e290ffb5 Fix 3505 Special Chars in Path
- thanks to @marams for the patch.
2018-06-10 19:13:21 +02:00
wandererfan 6c4e4b35af Ensure Correct Scale in DrawViewSection
- when the Source View for a Section is a Projection
  Group item, need to use the Scale property from the
  parent Projection Group.
2018-06-10 19:13:21 +02:00
wmayer a8daaf4a45 fixes #0002725: Random color for features in PartDesignNext 2018-06-10 18:37:53 +02:00
looooo 617dfa0639 Arch: survey: py3-fix 2018-06-10 10:14:30 +02:00
wmayer 41b278a05b fixes #0003256: additive elements do not use color of Body 2018-06-10 10:12:32 +02:00
wmayer 75a6c68185 fix possible crash when reverting a document 2018-06-09 23:22:56 +02:00
wmayer c4fd48fb32 explicit handling of English/en locale in setLocale and supportedLocales 2018-06-09 20:34:54 +02:00
wmayer 8f19b46d26 Some fixes for PropertyEnumeration:
+ when reading an enumeration ignore negative indexes and print a warning
+ raise an exception when trying to get the current value of an invalid enumeration
2018-06-09 20:00:28 +02:00
wmayer 5ea211489a add methods to set/get locales 2018-06-09 17:31:19 +02:00
wmayer cb13376746 properly handle failure of loading a module 2018-06-09 15:55:20 +02:00
wmayer b77b77c0de fix -Wmaybe-uninitialized 2018-06-09 12:05:19 +02:00
wmayer 833c2c601e add missing newlines 2018-06-09 11:47:12 +02:00
Markus Lampert f0e6b69690 Switched engrave to use path-geom tools 2018-06-09 11:14:08 +02:00
Abdullah Tahiri d6d26b6a89 Sketcher: Wrong DoF reported - Fixes #3503 2018-06-09 11:11:46 +02:00
wmayer a91d9c5d13 msvc2013 doesn't support default arguments in lambda expressions 2018-06-09 11:09:29 +02:00
Abdullah Tahiri a5e85fd297 Sketcher: Python interface to solveraid 2018-06-09 11:02:53 +02:00
Abdullah Tahiri 830932db4e Sketcher: Ability for SketchObject to create a list of dependent geometric elements 2018-06-09 11:02:43 +02:00
luz.paz 556f5dc8f7 FEM: source typo fixes 2018-06-09 10:53:00 +02:00
Bernd Hahnebach 7d7a02e00a FEM: add tool clipping plane tools 2018-06-09 10:53:00 +02:00
Bernd Hahnebach c3e64d2861 Material: editor, move poisson ration into mechanical properties 2018-06-09 10:53:00 +02:00
Bernd Hahnebach e143e3f290 Material: editor, move in ui hardcoded properties into the editor module in a tuple 2018-06-09 10:52:59 +02:00
Abdullah Tahiri 0b37a92596 GCS: Improved point symmetry constraint
=======================================

The original implementation won't work when the point is already on the line. See:
https://forum.freecadweb.org/viewtopic.php?f=3&t=29115#p237397

The new implementation works on the projections of the vectors linking the two first points with the symmetry point on the vector linking the two first points.

This assures that there is no stability problem when the point is already on the symmetry axis.
2018-06-09 10:50:05 +02:00
Abdullah Tahiri ed0c22cf56 GCS: Add convenience point constructor 2018-06-09 10:49:55 +02:00
looooo 83dd39b4ce small flatmesh fix 2018-06-08 16:08:31 +02:00
Yorik van Havre 08910e71e4 Arch: Added pref option to base new walls on Draft lines 2018-06-06 18:34:14 -03:00
Bernd Hahnebach 05bee3aa1f Materials: use material directory pref from FEM 2018-06-05 14:28:25 -03:00
Bernd Hahnebach 1a4b2cb73d FEM: pref general and material, change back the file chooser to dir chooser 2018-06-05 14:28:25 -03:00
Bernd Hahnebach 7c316ba01e FEM: prefs, move material prefs from general tab into an own tab in FEM 2018-06-05 14:28:25 -03:00
Bernd Hahnebach 71a27731b2 FEM: App Gui, sort headers and pref entries 2018-06-05 14:28:25 -03:00
Bernd Hahnebach 01ecf98596 FEM: cmake, sort files 2018-06-05 14:28:25 -03:00
Bernd Hahnebach d871555fef FEM: ccx binary, better error message if ccx binary exists but has problems to run, seen a lot on osx 2018-06-05 14:28:25 -03:00
Bernd Hahnebach 51ad2b023b FEM: command manager, use FEM wb icon as standard 2018-06-05 14:28:25 -03:00
Bernd Hahnebach 9c628b8700 FEM: calculix writer, do not write integration point results into dat file, because we do not have a reader for this ATM 2018-06-05 14:28:25 -03:00
Yorik van Havre 8700597c8c Merge pull request #1493 from WandererFan/update
Dxf Export Fix and Additional Features
2018-06-05 14:26:21 -03:00
WandererFan 334697fcd0 Merge branch 'master' into update 2018-06-04 17:03:54 -04:00
wandererfan 8cd1cab685 Fix wrong Pi literal on Win 2018-06-04 17:00:40 -04:00
looooo e80b5678cc Arch: Survey: fix py3 unicode problems 2018-06-04 19:23:42 +02:00
wandererfan 8b4a2895ab Control Dxf Point export by preference 2018-06-04 12:56:26 -04:00
wandererfan 5d65ad7994 Implement thumbnail blocks for Dimensions 2018-06-04 12:56:26 -04:00
wandererfan bf5589e2d6 Position DPGI Dimensions correctly in Dxf file 2018-06-04 12:56:26 -04:00
wmayer 9ec4d83682 missing call to clear error indicator 2018-06-04 17:48:10 +02:00
Markus Lampert 9f7ac42217 Support for individual edges and faces of an attached shape string - fixed depth settings. 2018-06-04 12:06:45 +02:00
Markus Lampert 1b78a99dd1 Fixed engrave gui updating Base and BaseShapes. 2018-06-04 12:06:44 +02:00
Markus Lampert 4641fafa02 Added support for rotated 2d shapes for engraving selection. 2018-06-04 12:06:44 +02:00
Markus Lampert a3d864e59d Added engraving support for attached ShapeStrings 2018-06-04 12:06:44 +02:00
Markus Lampert b3d11842f4 Fixed stock from base. 2018-06-04 12:06:43 +02:00
Markus Lampert 79c9e2d872 Fixed selection of vertexes and faces - and added support for faces as base objects. 2018-06-04 12:06:42 +02:00
Markus Lampert 32cb111721 Filter out duplicate selections 2018-06-04 12:06:42 +02:00
Markus Lampert 60a49ede57 Allow selection of edges for engraving. 2018-06-04 12:06:42 +02:00
Markus Lampert 13bce09608 Suppport for engrave as part of a general job 2018-06-04 12:06:42 +02:00
Markus Lampert aaa200f015 Add support for BaseGeometry to Engrave, if the Job's base object cannot be processed. 2018-06-04 12:06:41 +02:00
looooo 57a8fddba0 Fem: fenics: py3-fixes 2018-06-04 10:02:09 +02:00
Yorik van Havre 23f58f1afc Draft: Fixed Draft texts not appearing on file load 2018-06-02 14:31:12 -03:00
Yorik van Havre def225caa9 Arch: Fixed bug in windows presets 2018-06-02 14:20:44 -03:00
Yorik van Havre 15d2f9bb73 Arch: Added toggleSubs command to context menu of arch objects 2018-06-02 13:54:10 -03:00
Abdullah Tahiri d02d0da7de Sketcher: Do not update point height when highlighted i.e. (pre)selected 2018-06-02 16:44:57 +02:00
wmayer fc47266829 fix memory leak in SMDS_MeshNode::getCoord() 2018-06-02 15:33:07 +02:00
Yorik van Havre e49a5af3ae Arch: separate properties creation in own methods and check properties at file load 2018-06-01 19:36:35 -03:00
Yorik van Havre 27e80d0c69 Arch: Fixed Site properties 2018-06-01 13:36:34 -03:00
wmayer 211a24507c do not use deprecated class in OCCT 7.3 2018-06-01 17:02:27 +02:00
Yorik van Havre 37b9fedaf8 Arch: Fixed bug in preset doors 2018-06-01 11:40:09 -03:00
Yorik van Havre 93eb05b1b5 Draft: Support new-style Draft texts in TechDraw 2018-06-01 11:05:15 -03:00
Bernd Hahnebach 22b0fe9df7 Material: editor, some comments 2018-06-01 08:26:58 +02:00
Bernd Hahnebach 76cb5f033c Material: Editor, fix open the editor without mat 2018-06-01 08:21:36 +02:00
Bernd Hahnebach b643d03319 Material: Editor, fix folders to look for mat cards 2018-06-01 08:21:33 +02:00
Bernd Hahnebach 6ae0aa0659 Material: Editor and import, only use mat keys if they have a value 2018-06-01 08:21:31 +02:00
Bernd Hahnebach bf11a5f239 Material: Editor and import, fix openfile and savefile if no filename is given, make open and save work the same way 2018-06-01 08:21:28 +02:00
Bernd Hahnebach 428e9ea5ed Material: Editor and import, delete trailing white spaces 2018-06-01 08:21:26 +02:00
Bernd Hahnebach c3954c2e1d FEM: material task panel, remove matweb button and save mat card button as they are tools implemented in FreeCAD material editor 2018-06-01 08:21:23 +02:00
Bernd Hahnebach 2d8ebcf005 FEM: material task panel, quite some changes:
- add Material editor for editing material parameters as well as load and save mat cards
- distinguish between 'card name' and the 'material name'
- reorganising codeg
2018-06-01 08:21:19 +02:00
Bernd Hahnebach 0bafa26b26 FEM: elmer writer, fix heat source and add a comment about units 2018-06-01 08:21:17 +02:00
Bernd Hahnebach 5fd8bd0c21 FEM: pyhton commands, some comment 2018-06-01 08:21:14 +02:00
Bernd Hahnebach e1ae500e8d FEM: pyhton commands, do open the task panel on new object creation in Gui 2018-06-01 08:21:10 +02:00
Bernd Hahnebach 1035a032fc FEM: material editor, add command to open the editor ot icon toolbar, use copy of Arch material group icon 2018-06-01 08:20:59 +02:00
wandererfan f0964a9c05 Implement R12 version of Polyline 2018-05-31 20:57:01 +02:00
wandererfan 6b6a0569be Add 999 Application group code
- also remove variable $MAXACTVP - not valid in some
  appls.
2018-05-31 20:57:01 +02:00
wandererfan ea5617ee01 Initialize #pts for LWPolyLine 2018-05-31 20:57:01 +02:00
luz.paz 79a4aa3ef4 Misc. typos
Found via `codespell`
[skip ci]
2018-05-31 12:50:58 -04:00
Abdullah Tahiri bf03c7bcb1 Sketcher: Empty list means all geometry for Python addCopy addRectangularArray and addMove 2018-05-31 14:36:21 +02:00
Abdullah Tahiri 39e82c79f6 Sketcher: New tool bar icon under the copy command to move 2018-05-31 14:35:54 +02:00
Abdullah Tahiri 7c586b6c1a Sketcher: move icon art 2018-05-31 14:35:14 +02:00
Abdullah Tahiri cffa76b0cc Sketcher: Python support for moving Geometry 2018-05-31 14:34:58 +02:00
Abdullah Tahiri 7df7667774 Sketcher: Moving Geometry Support 2018-05-31 14:34:31 +02:00
Abdullah Tahiri ec6eaa509d Sketcher: Improved B-Spline creation 2018-05-31 14:33:58 +02:00
Abdullah Tahiri 4805927170 Sketcher: Extend existing rendering order for lines to points 2018-05-31 14:31:29 +02:00
Abdullah Tahiri dccb86a5db Sketcher: Optional extended naming for constraints widget giving first-second-third information 2018-05-31 14:29:00 +02:00
wmayer 78b7510ee1 fix inconsistent default parameters, fix warnings 2018-05-31 13:47:31 +02:00
wmayer 4a80564783 fix cmake warning due to inconsistent naming 2018-05-31 13:44:03 +02:00
wmayer 3cb6890bcc suppress warning C4996 2018-05-31 13:42:35 +02:00
wmayer 717abd0cf3 fix string 2018-05-31 13:27:38 +02:00
wmayer d4354af79b fix const correctness 2018-05-31 13:15:31 +02:00
wmayer 63cefaf4a6 fix const correctness 2018-05-31 12:49:23 +02:00
Abdullah Tahiri 8d7622b4a9 Sketcher: error message when trying to increase the degree of not-a-bspline fixes #3471 2018-05-31 11:42:24 +02:00
Abdullah Tahiri bfef80f9c0 Sketcher: bspline knot increase wrong string fixes #3470 2018-05-31 11:42:11 +02:00
Abdullah Tahiri 8a31a6c5b4 Tests: Update test to remove redundants that failed to be detected with the old solver 2018-05-31 11:41:59 +02:00
Abdullah Tahiri 60a57107cf Sketcher: fix failure to notify solver issues, like redundancies, when using setUpSketch in SketchObject 2018-05-31 11:41:48 +02:00
Abdullah Tahiri 61b1a15524 Fix MatrixIndexType 2018-05-31 11:41:37 +02:00
Abdullah Tahiri 03c3539dbf GCS: Improvement in redundant constraint detection
==================================================

The solver uses some heuristics to determine the "redundant to remove" and notify it to the user.

Basically it would pick the solver redundant constraint that affects most groups of redundants (popularity contest).

In the simple cases, all the redundants are equally popular and the popularity contest is untied by using the tagid (let say for simplicity it is the number at sketcher level Constraint3, the tagid=3).

This means that in simple cases, the solver systematically decides that the redundant constraint to handle from those showing a linear dependency is the one appearing the last.

This commits changes the way to untie the popularity contest, by giving more priority to those sketcher constraints that need a lower number of solver constraints (in other words,
those constraints that remove a lower amount of DoF). In case of tie, the tagid is then used to break the tie.

At least:
fixes #3434
fixes #1557
2018-05-31 11:41:26 +02:00
Abdullah Tahiri 9e901dbc59 GCS: Fix report view formating and duplicated endline 2018-05-31 11:41:16 +02:00
Abdullah Tahiri d75be15f64 Sketch: DoF finder icon/resource file 2018-05-31 11:41:04 +02:00
Abdullah Tahiri f7a7d2bade Sketcher Toolbar: Removing DoF finder from the toolbar, as it can be accessed from the solver messages now
- Renaming of command
2018-05-31 11:40:53 +02:00
Abdullah Tahiri 14c7349e2e Sketcher: DoF finder command while using the default SparseQR
=============================================================

- Modification to transparently switch from SparseQR to DenseQR and back to SparseQR when using the DoF finder command.
- Command Tools dof finder command name change
2018-05-31 11:40:40 +02:00
Abdullah Tahiri 1d63ed717a Sketcher: Support for clickable DoFs to launch DoF finder 2018-05-31 11:40:28 +02:00
Abdullah Tahiri 9926105643 Solver: solver sketch level support for driven constraints and parameters
- Support for addition of driving information to GCS constraints
- Support for keeping track of value parameters of driven constraints
- Support for getting which QR algoritm is being used at GCS level
2018-05-31 11:40:16 +02:00
Abdullah Tahiri 858f4cb85b GCS: Full detection of dependent parameters with Dense Full Household pivoting QR decomposition
- Improve Debug information.
- Support for addition of constraints with driving information for the solver constraints.
- Removal of the driven constraints from the Jacobian for QR decomposition
- Removal of the value freewheeling parameter from the Jacobian for QR decomposition
- Full detection of dependent parameters where DoF are present for Dense QR.
2018-05-31 11:40:05 +02:00
Abdullah Tahiri d531e98eac GCS: Support for solver constraints to store driven/driving status 2018-05-31 11:39:53 +02:00
Abdullah Tahiri ce4503ae40 Sketcher: New Command to select geometric elements with dependent parameters 2018-05-31 11:39:41 +02:00
Abdullah Tahiri 6f7e06fa49 GCS: Extension of solver geometric elements to store whether they have dependent parameters 2018-05-31 11:39:28 +02:00
Abdullah Tahiri ed25902e12 Solver: Solver Sketch level dependent parameters and solver geometric element management 2018-05-31 11:39:15 +02:00
Abdullah Tahiri 2e70d9c75f GCS: Solver dependent parameters retrieval 2018-05-31 11:39:02 +02:00
looooo 8e2c682a3d fix windows problem:
https://forum.freecadweb.org/viewtopic.php?f=4&t=29014
2018-05-31 11:02:33 +02:00
looooo d38fabf264 cmake:occt: add fallback 2018-05-31 11:02:33 +02:00
looooo baed57f01a conda: osx configuration 2018-05-31 11:02:33 +02:00
Mark Ganson TheMarkster 2c982e0c45 Remove extra definition of obj.IntervalZ
Remove extra definition of obj.IntervalZ in Draft array object.

Was:
obj.IntervalZ = Vector(0,0,1)
obj.IntervalZ = Vector(0,0,0)

Now:
obj.IntervalZ = Vector(0,0,1)
2018-05-31 10:58:58 +02:00
Yorik van Havre 262d7c0cd0 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-05-30 19:07:48 -03:00
wandererfan 2760dabb3c Format Dxf Group Codes as 3 chars 2018-05-30 19:06:58 -03:00
wmayer 009b18a553 expose function to Python to get optimal bounding box 2018-05-30 21:27:49 +02:00
wmayer b8fca77c5a respect settings of locatation navicube when creating a new view 2018-05-30 09:45:44 +02:00
wandererfan 3b02ff2a94 Fix typo in AddonManager 2018-05-29 09:57:10 +02:00
wmayer b54f0353b0 revert commit d1588052ff 2018-05-29 09:38:23 +02:00
wandererfan 73d597710f Write Dimension Blocks to Dxf file 2018-05-28 19:54:45 +02:00
wandererfan 064a261cc2 Add Header with version to dxf output file 2018-05-28 19:54:45 +02:00
wandererfan a6e9eec5ad Avoid Qt warning re mdi window not in workspace 2018-05-28 13:27:11 -04:00
wandererfan c96d72bd67 Ignore selection changes while closing Page 2018-05-28 13:26:26 -04:00
Janne Keränen 6781a8167f Correct small bug in CompoundFilter in command line
Without this, CompoundFilter does not work in Python script in non-GUI-mode.
See:
https://forum.freecadweb.org/viewtopic.php?f=10&t=27593&p=222303
and
https://www.freecadweb.org/tracker/view.php?id=3381
2018-05-28 16:55:15 +02:00
Przemo Firszt 1a71777f5f Fix base number of commits
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-05-28 16:51:53 +02:00
wandererfan 0ea75683f1 Fix #3477 Unintended Deletion
- original fix for #3477 presented message box for each
  inactive selected item.  Now it presents 1 message box
  per document, like the check for deletion of linked
  objects.
2018-05-28 16:46:31 +02:00
pekkaroi 8b0b3df76c PathSimulator, fix typo false->False 2018-05-28 10:27:53 -03:00
pekkaroi 1a3996783e Improve backwards compatibility 2018-05-28 10:12:07 -03:00
pekkaroi 0c90118cb3 Cleaning 2018-05-28 10:12:06 -03:00
pekkaroi 3895c9a492 Improved naming of the new parameters 2018-05-28 10:12:06 -03:00
pekkaroi 1aa8601e07 Add IgnoreAbove parameter to not generate ramp above certain heights 2018-05-28 10:12:03 -03:00
looooo 432daa95c5 simplify cmake-setup of netgen and occt
using default cmake-configs to access cmake-variables
2018-05-28 14:23:05 +02:00
Bernd Hahnebach 6476cf4c6b FEM: mesh netgen command, fix meshing while task panel is opened 2018-05-28 12:22:11 +02:00
Bernd Hahnebach fbf96728b8 FEM: material editor, add it to materials menue 2018-05-28 08:58:17 +02:00
Bernd Hahnebach 24a21ce83f FEM: menue entries, add submenue for materials 2018-05-28 08:58:17 +02:00
Bernd Hahnebach c7879c28fe FEM: selection widget module, fix console print message 2018-05-28 08:58:17 +02:00
Bernd Hahnebach be28744829 FEM: Python VP, add return variable to unSetEdit methods and improve reseting the edit mode 2018-05-28 08:58:17 +02:00
Bernd Hahnebach 7512fb5628 FEM: material widget, add button to fix material property editing 2018-05-28 08:58:10 +02:00
Abdullah Tahiri 468946bcde Sketcher: Fix crash on applying dimensional constraint to external element 2018-05-27 19:43:05 +02:00
wmayer d1588052ff (tmp.) switch off Web module when building with Qt5 2018-05-27 19:03:26 +02:00
Przemo Firszt db902b4622 Add fedora spec and support files
That will allow automatic fedora builds using COPR

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2018-05-27 18:46:58 +02:00
wmayer 0425c7f3c8 fixes #0003493: Python Shape.isClosed() returns false for any solid, including primitive Parts 2018-05-27 15:10:44 +02:00
wmayer 4b089f9667 fix inconsistency with default value of random shape color 2018-05-26 18:52:58 +02:00
wmayer 7c010ab9a4 implement option to change corner of navi cube 2018-05-26 18:51:53 +02:00
wmayer d15c7d0673 + option to disable navi cube
+ handle destruction of GL context in 3d viewer class
+ fix for OpenGL error message: 'Texture is not valid in the current context. Texture has not been destroyed'
2018-05-26 15:33:45 +02:00
wmayer 865f83b574 remove unrealiable implementation of ViewNormalToSketchPlaneCmd 2018-05-26 15:33:45 +02:00
wmayer ddf881a1db make NaviCube working for Qt4 and Qt5 2018-05-26 15:33:45 +02:00
wmayer ba99fff1d9 fix Qt5 build failure 2018-05-26 15:33:45 +02:00
Kustaa Nyholm 13a4f84145 First Qt5 compatible NaviCube attempt 2018-05-26 15:33:45 +02:00
Yorik van Havre 934603b604 Draft: Fixed draft2sketch not working with ellipses 2018-05-25 18:48:04 -03:00
Mark Ganson TheMarkster e0ef642d24 fix copy/paste error, add back 3 lines
Good catch, Yorik.  I never intended to remove those lines.  Must have happened when I was editing the documentation string.
2018-05-25 17:26:00 -03:00
Mark Ganson TheMarkster f9212edc6d Update Draft.py 2018-05-25 17:26:00 -03:00
Mark Ganson TheMarkster e74a18f09c Update Draft.py 2018-05-25 17:26:00 -03:00
DeepSOIC 0c4c04156c Part: fix imports of Show.TempoVis 2018-05-25 17:24:57 -03:00
DeepSOIC 78f054f09f Show: improve container support 2018-05-25 17:24:57 -03:00
DeepSOIC 0511284f08 Show: toggle support for sketch clipping plane 2018-05-25 17:24:57 -03:00
DeepSOIC 7edfe0f26e Show: fixes 2018-05-25 17:24:57 -03:00
Abdullah Tahiri ab478f947c Sketcher: Section Command enabling the clipping planes 2018-05-25 17:24:57 -03:00
Abdullah Tahiri c3f0513cca Sketcher: Section view artwork 2018-05-25 17:24:57 -03:00
DeepSOIC bd442192fb Show: fix forgotten cmakelists 2018-05-25 17:24:57 -03:00
DeepSOIC 75ba527311 Show: more fixes 2018-05-25 17:24:57 -03:00
DeepSOIC 1bf9da8a2a TempoVis: Clip Plane Support 2018-05-25 17:24:57 -03:00
wmayer e4cea7f3ca fix possible stack overflow when finishing edit mode 2018-05-24 19:37:16 +02:00
looooo 9fb122008b 2to3: port some missing print statements 2018-05-23 19:13:54 +02:00
looooo ab3ec6cc73 py2 fix: open doesn't accept encoding attribute 2018-05-23 19:13:54 +02:00
looooo 71dd8934a7 add python syntax checker 2018-05-23 19:13:54 +02:00
looooo c801808bed python syntax checker: remove some strange leading characters 2018-05-23 19:13:54 +02:00
looooo 8e8d0d0cba py3: Import: 2to3 2018-05-23 19:13:54 +02:00
looooo 25bd2d2ab1 py3: tools: 2to3 2018-05-23 19:13:54 +02:00
looooo ec22a90789 py3: fem: fix gmsh bytes problem 2018-05-23 19:13:54 +02:00
wmayer 4682b4fd25 fix -Wparentheses-equality 2018-05-23 18:40:47 +02:00
Bernd Hahnebach 2ef1d2f363 FEM: geometric selection widget, more errors as popups, better clear selection 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 253b3a5233 FEM: geometric selection widget, check to only allow to select one geometric shpape type for the list 2018-05-23 17:59:29 +02:00
Bernd Hahnebach fa484c65d3 FEM: default display mode, name it Default as it is done in all other FEM obj where a Default display mode is needed 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 5ac8431a17 FEM: selection observer, move class into selection widgets module 2018-05-23 17:59:29 +02:00
Bernd Hahnebach c574fb2760 FEM: Python obj VP, code formating 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 964ede3f4c FEM: Python geometry selection class, use it for material obj 2018-05-23 17:59:29 +02:00
Bernd Hahnebach eb88c9045c FEM: Python geometry selection class, use it for gmsh mesh boundary layer 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 6a2ac85d59 FEM: Python geometry selection class, use it for gmsh mesh group 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 5f66ca215a FEM: Python geometry selection class, adapt it to Solid selection and use it for gmsh mesh region 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 366af6d778 FEM: Python geometry selection class, use it for fluid 1D obj 2018-05-23 17:59:29 +02:00
Bernd Hahnebach faf6e52000 FEM: Python geometry selection class, use it for beamsection obj and rotation obj 2018-05-23 17:59:29 +02:00
Bernd Hahnebach c84077ba44 FEM: Python geometry selection class, make it useable for Vertex, Edge and Face 2018-05-23 17:59:29 +02:00
Bernd Hahnebach c20994358c FEM: implement a geometry reference selection class, use it for shell thickness obj 2018-05-23 17:59:29 +02:00
joha2 24452df93e FEM: fenics #0003038: this fixes the CellFunction type to get access to the measures correctly 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 50724bbe50 FEM: some Python constraint VP, add import of FemGui to get the icon in TreeView when there is no analysis and Fem is not loaded 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 103371f571 FEM: menue entries and tool bars, code formating 2018-05-23 17:59:29 +02:00
Bernd Hahnebach bf671db126 FEM: menu entries, add one for electrostatic potetial 2018-05-23 17:59:29 +02:00
Bernd Hahnebach f06132d3e8 FEM: result and gmsh mesh obj, do not load FEM wb on double click. Only the analysis container should have this 2018-05-23 17:59:29 +02:00
Bernd Hahnebach c997755ad1 FEM: Python object VP, add a pop up if a task panel is open while another one will be opened 2018-05-23 17:59:29 +02:00
Bernd Hahnebach ae4a97d3d2 FEM: Python constraints, do not open a new constraint if another task panel is open 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 243fd83d96 FEM: electrostatic potential objeckt, fix module title 2018-05-23 17:59:29 +02:00
Bernd Hahnebach c5a9fc5a0f FEM: constraint gear and pulley VP, remove unnecessary error logs 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 23089bea99 FEM: result object, better grouping in result properties, this does not break compatibility 2018-05-23 17:59:29 +02:00
Bernd Hahnebach eb1acda987 FEM: unit tests, add some comment 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 0c6ed4db13 Material: fix some units in various material cards 2018-05-23 17:59:29 +02:00
Bernd Hahnebach d47f298537 FEM: commands, add recomputes and replace App and Gui wie FreeCAD and FreeCADGui 2018-05-23 17:59:29 +02:00
Bernd Hahnebach a4bb93d559 FEM: Python VP objects without task panel, proper prevent edit mode 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 5f37a30230 FEM: Python reference selection task panel, fix initial selection and selection after delete an item 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 16e70d9719 FEM: Python constraints with ref shapes, add right click to delete all ref shape at once 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 545ec31adf FEM: gmsh mesh obj, implement drag and drop for its childs 2018-05-23 17:59:29 +02:00
Bernd Hahnebach fa6bb2183c FEM: gmsh mesh obj, fix initialization of mesh group list 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 59c67f4b7c FEM: C++ constraints, clear selection on unsetEdit, same system as it is on Python constraints 2018-05-23 17:59:29 +02:00
Bernd Hahnebach fab0b40614 FEM: Python constraints, hide meshes while constraint task panel is opened 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 830d521e93 FEM: python task panel with solid reference shapes, make solids better visible on click if they are in Compound or BooleanFragment 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 458a4be12f FEM: meshtools and dependent modules, add error message for retrieving solid elements if out of range 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 1e497ebd8e FEM: code formating, no space after ( 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 2e8a919627 FEM: material task panel, use same name system for all gemetrical elements 2018-05-23 17:59:29 +02:00
Bernd Hahnebach 4dea888fda FEM: python objects task panel, clear selection on task panel close 2018-05-23 17:59:29 +02:00
Bernd Hahnebach f5fe86a39b FEM: material task panel, add some TODO comment 2018-05-23 17:59:29 +02:00
Markus Lampert 48aa0ba3d2 Fixed TC modality in post processor driver. 2018-05-23 17:25:42 +02:00
wandererfan 2dd0f1f8f6 Export Diametric Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan b7f4fe9368 Export Radial Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan 4a1b6601da Export Angular Dim to Dxf 2018-05-21 19:36:16 -04:00
wandererfan 490b7fc197 Export Linear Dim to Dxf 2018-05-21 19:36:16 -04:00
Yorik van Havre 4f5e304d64 Fixed wrong encoding in App.openTransaction 2018-05-21 12:11:46 -03:00
Abdullah Tahiri c039bfb011 Sketcher: Snap polyline arcs to 45 degrees pressing ctrl fixes #3472 2018-05-21 10:45:13 -03:00
luz.paz 7a09a5774e More misc. typos 2018-05-19 12:17:52 -04:00
luz.paz c4474f1879 Add source comment typo fix 2018-05-19 12:06:34 -04:00
luz.paz ed1470e3d2 whitespace cleanup 2018-05-19 12:06:34 -04:00
luz.paz 6e64b4f75d Misc. typos 2018-05-19 12:06:34 -04:00
Yorik van Havre ac6ae007b2 Remember background type in Tools->Save picture dialog 2018-05-18 10:46:21 -03:00
wandererfan afdd30b137 Fix delayed painting
- Annotation and Image were not being painted
  immediately, but had to wait for a page
  refresh.
2018-05-16 18:58:10 -04:00
wandererfan 09f607c5fc Remove debugging messages 2018-05-16 18:58:10 -04:00
wandererfan a2e1826a9a Fix DrawProjGroup Positioning
- DrawPage was not including DPG in list of all
  views, so DPG was not being positioned properly.
2018-05-16 18:58:10 -04:00
wandererfan 84c40aa69b export TD Annotation to Dxf 2018-05-16 18:58:10 -04:00
wandererfan fa28bf97ea Export Points to Dxf 2018-05-16 18:58:10 -04:00
Yorik van Havre 622cb9d2f7 Draft: added ConvertDraftSketches() convenience function to convert App::Annotations to the new Draft Text object 2018-05-16 16:27:12 -03:00
Yorik van Havre 8fd89533a8 Select items already present in PropertyLinkList edit dialog 2018-05-16 14:58:33 -03:00
sgrogan 46a91630b6 Fix Dice3DS nested directory for non-installed build 2018-05-16 11:15:26 -03:00
Yorik van Havre 39e3508b3f Arch: Added combobox with presets in multimaterial layer names 2018-05-15 22:28:12 -03:00
wandererfan 57b7f3389a Fix selection when multiple pages 2018-05-15 21:50:48 +02:00
wandererfan 2a0c65137f Fix message for empty detail area 2018-05-15 21:50:48 +02:00
wandererfan 89a7b2a92f Fix selection for radius Dims
- selection of ellipse curves was allowed
  but not supported for radius dims.
2018-05-15 21:50:48 +02:00
wandererfan ea87335842 Fix CCW ellipse arcs 2018-05-15 21:50:48 +02:00
Markus Lampert 7f965554b8 Fixed abs usage for doubles - thanks to clang warnings. 2018-05-15 21:45:58 +02:00
Yorik van Havre 4cb93bf669 Draft: More streamlined console output 2018-05-14 18:57:57 -03:00
Yorik van Havre a711474552 Draft: Show in-command shortcuts on buttons and in console 2018-05-14 18:57:28 -03:00
Yorik van Havre 891682a412 Draft: Added 'Flatten' context menu entry to Draft Wires 2018-05-14 16:49:25 -03:00
Yorik van Havre ea0df1e212 Arch: Added CutMargin property to section planes 2018-05-14 12:34:14 -03:00
wmayer 753f514d3b proper fix to keep nodes order intact when exporting to UNV format
For more detailed information have a look here:
https://forum.freecadweb.org/viewtopic.php?f=10&t=27744&sid=9a966f15219a156c83f12be7ac055791&start=70#p233460
2018-05-13 18:05:07 +02:00
Yorik van Havre 0b3f02ec5b Arch: Window placement now keeps orientation from last face hovered. Much, much easier to place windows in walls now 2018-05-13 12:45:40 -03:00
Yorik van Havre 9763696216 Arch: Added convenience function ArchComponent.convertOldComponents to convert the Role property to IfcRole 2018-05-11 23:14:41 -03:00
Yorik van Havre 30476e951d Arch: Renamed Role property to IfcRole 2018-05-11 12:01:55 -03:00
Yorik van Havre 89bee2c83c Draft: Catch deleted objects in DraftGui.todo 2018-05-11 12:01:22 -03:00
wandererfan 26d7d74725 Convert deprecated boost::signal to signals2 2018-05-11 10:32:24 -03:00
wandererfan eefaaa58db Eliminate some redundant executes
- excessive calls to DrawView::execute were
  slowing data entry in PropertyEditor.
2018-05-11 10:32:24 -03:00
Gabriel Souza Franco 4594583613 Fix compilation with GCC 8 2018-05-11 10:20:35 -03:00
Markus Lampert 186df52382 Cleaned up translation. 2018-05-11 10:18:56 -03:00
Markus Lampert de9b157a94 Updated copyright 2018-05-11 10:18:56 -03:00
Markus Lampert 4adae91abe Setting rotation center for the job on change. 2018-05-11 10:18:56 -03:00
Markus Lampert 6fe32862ba Maintain center of rotation for compound objects. 2018-05-11 10:18:56 -03:00
sliptonic 5103b74bff Set Path Center. Depends on mlampert's rotation vis 2018-05-11 10:18:56 -03:00
sliptonic 454d86b20d fixed feed rate for angular moves 2018-05-11 10:18:56 -03:00
sliptonic bf51263a2b Path rename dressup
for name standard compliance
2018-05-11 10:18:56 -03:00
sliptonic f933570035 Initial Commit 2018-05-11 10:18:56 -03:00
Markus Lampert 1bdda1c472 Fixed rotation axis rendering for B and C. 2018-05-11 10:18:56 -03:00
Markus Lampert d720ef1d12 Add support for rotation center to ViewProviderPath. 2018-05-11 10:18:56 -03:00
Markus Lampert 49d016e2ae Fixed inch scaling 2018-05-11 10:18:56 -03:00
Markus Lampert e637bfda25 Added center property to Path to deal with rendering rotational axis. 2018-05-11 10:18:56 -03:00
Markus Lampert 7ec797757b Added support for G20/G21 to g-code import. 2018-05-11 10:18:56 -03:00
Markus Lampert 17cca2a1fd Added g-code A parameter support to drilling cycle. 2018-05-11 10:18:56 -03:00
Markus Lampert 2ff14529af A g-code parameter support for G2/G3 2018-05-11 10:18:56 -03:00
Markus Lampert f425a8a28e PathViewProvider support for A parameter in G0 and G1. 2018-05-11 10:18:56 -03:00
Shai Seger 15c2b9a28c fix FreeCad crash when no tool is assigned to an operation 2018-05-11 10:17:16 -03:00
luz.paz 9b907e3ac4 Added missing comma 2018-05-11 10:02:56 -03:00
luz.paz 6656d9c6de follow-up source typos 2018-05-11 10:02:56 -03:00
luz.paz 420c2d7c03 Source typos fixes 2018-05-11 10:02:56 -03:00
Yorik van Havre d9314b756e Draft: Draft Text now uses its own python object instead of App::Annotation 2018-05-10 17:43:16 -03:00
Yorik van Havre 32f089f284 Arch: optimizing block walls 2018-05-10 16:32:43 -03:00
Yorik van Havre b5ffabace2 Arch: All Arch objects can now have any IFC type(role) 2018-05-10 10:42:06 -03:00
Yorik van Havre b3fb790d54 Draft: Added reference mode to Draft Scale task panel 2018-05-09 22:38:51 -03:00
Yorik van Havre c360263582 Arch/Draft: Make sure an active doc exists before creating objects 2018-05-08 16:07:55 -03:00
Gaël Écorchard 176eb8c66e [AddonManager] Add github support
- Add support for installing macros from https://github.com/FreeCAD/FreeCAD-addons.git.
- Macros which have the same name on git and on the wiki are not
  repeated.
2018-05-08 15:47:16 -03:00
Gaël Écorchard 6597b446cb [AddonManager] Save macros without 'Macro_' prefix
- Save macros without 'Macro_' prefix.
- Installed macros are recognized with or without this prefix.
- Prepare the ground for integration of the code fetching macros from
  github.
2018-05-08 15:47:16 -03:00
Pablo Gil d25b8ed402 Stylesheets: updated and upgraded to full SVG design 2018-05-08 10:06:03 +02:00
Yorik van Havre 8e017399ab Arch: Added a new 'beam mode' to draw structure objects 2018-05-07 23:21:53 -03:00
Markus Lampert d9b8d61550 Expose task panel layout through preferences. 2018-05-07 12:20:10 -03:00
looooo a91a544c15 draft: fix snapping with images 2018-05-07 12:18:43 -03:00
Yorik van Havre 710692718c Arch: Optimized Arch panel waves generation 2018-05-07 10:41:17 -03:00
wmayer cb4a5ee180 set exception message when returning with 0 2018-05-05 22:44:29 +02:00
Shai Seger 8d4f31f021 fix bug tracker issue id:0003450 : Freecad crash when simulating without operations. 2018-05-04 00:59:16 +03:00
Yorik van Havre 7fa81fd2e6 Draft: Fixed syntax error 2018-05-03 10:46:00 -03:00
wandererfan 650fed9795 Point Draft importDXF to Mod/Import/ImpExpDxf
- also add "deprecated" message to DraftUtils.readDXF
2018-05-02 22:09:46 +02:00
Markus Lampert 78b72c6d4e Only setting Path.Area curve accuracy if it is not, and also set it when Preferences get saved. 2018-05-02 22:07:17 +02:00
luz.paz d4fa4ec21e removed newline altogether 2018-05-02 15:48:01 -04:00
luz.paz 6de9a32066 Used QChar::fromLatin1('\n') instead 2018-05-02 14:57:49 -04:00
luz.paz 5cd5c6ad8c Added QString::fromUtf8("\n") 2018-05-02 00:50:06 -04:00
luz.paz 86469bd5de revert some spacing changes 2018-05-02 00:50:06 -04:00
luz.paz a529ba1787 Crowdin: more fixes 2018-05-02 00:50:06 -04:00
luz.paz bc0a885518 Draft: move newlines out of translations 2018-05-02 00:50:06 -04:00
luz.paz fb224b0090 Crowdin: fix in different WBs 2018-05-02 00:50:06 -04:00
Yorik van Havre 4604bd9456 Merge pull request #1435 from WandererFan/newDxf2ModImport
Move Dxf functions to Mod/Import Ph2
2018-05-01 19:10:31 -03:00
wandererfan cb12b0eda0 Add Export Page as Dxf to TD Gui 2018-05-01 13:22:02 -04:00
wandererfan fe6c07b24f Add writeDXFObject to Import
- add a function to write DocumentObject(s) to Dxf file.
- all caller to specifiy parameter source to ImpExpDxf
  functions.
2018-05-01 13:22:02 -04:00
wmayer 717a4a50a2 increase memory memory on MSVC to fix internal compiler error 2018-05-01 12:15:57 +02:00
Yorik van Havre 52f4375625 Arch: Added setting to limit areas calculations for large objects 2018-04-30 17:39:11 -03:00
Yorik van Havre fff7c03287 Arch: Window presets now include windows and doors from Parts Library, if available 2018-04-30 14:34:36 -03:00
Markus Lampert 1a2868b534 Changed grbl feed rate output to mm/min. 2018-04-30 09:54:08 +02:00
luz.paz 0dead11c3e Spreadsheet: typo fixes 2018-04-30 08:30:20 +02:00
wmayer 271740d0aa fix version check for cmake < 3.7 2018-04-30 08:16:15 +02:00
Richard Shaw 9ec568ddfc Detect pycxx version and add source for version 7 and greater. 2018-04-29 20:56:49 +02:00
Bernd Hahnebach c9f6855fc4 FEM: typos, can't hardly belive there still are some ... 2018-04-29 20:40:15 +02:00
luz.paz d8eed1f922 FEM: Clarity fix of term 'dia' as 'diameter' 2018-04-29 20:40:15 +02:00
luz.paz ba9dba4b26 FEM: typo fixes 2018-04-29 20:40:15 +02:00
wmayer 983f2472a8 more fixes for flatmesh
+ fix gcc warning
+ add conversion function for boost.python
+ switch build off by default due to travis build failure for Py3
2018-04-29 14:50:41 +02:00
wmayer 7ceb9721e3 check for minimum Eigen3 version to build flatmesh module 2018-04-29 13:58:38 +02:00
wmayer 2fcc354461 fix several warnings:
-Winconsistent-missing-override
-Wsign-compare
-Wmaybe-uninitialized
-Wmissing-braces
2018-04-29 13:28:36 +02:00
wmayer c32ca39b3e suppress warning 4275 2018-04-29 12:55:28 +02:00
wmayer ae9305f498 fix warning -Winconsistent-missing-override 2018-04-29 11:50:04 +02:00
wmayer a83d0e6121 support occ version < 7.0 for mesh flattening 2018-04-29 11:38:15 +02:00
wmayer 620768b8a1 fix export of base class 2018-04-29 11:01:07 +02:00
wmayer 5a7bc3376d disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-29 11:00:28 +02:00
wandererfan 09e85f7ef1 Add include for TColgp_Array1OfPnt
- Travis/Appveyor use oce-0.15 vs devl
   environment occ7.2.
2018-04-29 10:12:31 +02:00
wandererfan 33c77a5462 Add View and Page Dxf export 2018-04-29 10:12:31 +02:00
wandererfan ddac40afbd Move Dxf function to Mod/Import Ph1
- move HeeksCAD dxf import/export code from Draft to
  Mod/Import. This first phase moves dxf.cpp and
  DraftDxf.cpp to Mod/Import and adds dxfWrite functionality
  to DraftDxf.cpp.
2018-04-29 10:12:31 +02:00
wmayer d1c0c431ba include missing headers due to updated occ version 2018-04-29 08:39:53 +02:00
wmayer 6aeab22842 add switch to toggle building of flat mesh module 2018-04-29 00:03:05 +02:00
wmayer 77a6470107 implement optional Python binding for flatmesh using boost 2018-04-28 22:27:09 +02:00
wmayer af4e530035 minor fixes 2018-04-28 15:55:37 +02:00
wmayer 3affc2da9d make sure MeshPart still builds without smesh 2018-04-28 15:33:41 +02:00
wmayer 31cee58df6 fix crash when entering quit() in Python console for Py3 2018-04-28 12:13:42 +02:00
wmayer 68cc427b00 Improve handling of external smesh
+ add SMESH_version.h.cmake to set full version number instead of using compiler define
+ do not set include path of smesh globally
+ do not set library path of smesh globally
+ do not set HAVE_NETGEN define globally
+ improve using debug and release libs of smesh for MSVC
2018-04-28 12:10:55 +02:00
looooo 2092afe07f make finding smesh optional 2018-04-28 12:05:30 +02:00
looooo 547cc9f36c external smesh: use version info
for precompiler conditionals
2018-04-28 12:05:30 +02:00
looooo 21cdc9ea4a port to smesh 8.3
using #ifdef EXTERNAL_SMESH for the diff
2018-04-28 12:05:30 +02:00
wmayer 5941a32f71 fix Linux build failure 2018-04-27 14:47:19 +02:00
wmayer d34847f755 improve icon theme handling 2018-04-27 13:27:45 +02:00
looooo 48f5be7328 flatmesh: missing include
+ do not show flatmesh-gui if flatmesh is not available
2018-04-27 09:12:41 +02:00
wmayer 900ec439d1 do not show F2 as short cuts for renaming on macOS as it doesn't work 2018-04-26 12:57:59 +02:00
Yorik van Havre 0599879e21 Arch: Further encoding bugfix in IFC exporter 2018-04-25 11:22:02 -03:00
Yorik van Havre 059e4e65dc Merge branch 'randomshapecolor' of https://github.com/dulouie/FreeCAD into dul 2018-04-25 09:45:12 -03:00
luz.paz 505488c4f9 Misc. typos
Found via `codespell`
2018-04-25 09:41:33 -03:00
looooo 8c0b574661 conda: update circle-ci build 2018-04-25 09:38:12 -03:00
looooo 01beecc7a0 draft: fix diameter-dimension 2018-04-25 09:38:12 -03:00
Yorik van Havre aa14ed6ba8 Arch: Added 4-pane window preset 2018-04-25 09:37:01 -03:00
wandererfan 5ccb7e7d37 Add some debug and util routines. 2018-04-25 11:09:39 +02:00
wandererfan 00f36d78e4 Update Page display when View removed.
- if a View is removed from a Page, but not from
  the document, its graphic remains on the display.
  This change checks if graphic has an associated
  View on this Page.
2018-04-25 11:09:39 +02:00
wandererfan 371c7e4588 Ensure Section face redrawn on update 2018-04-25 11:09:39 +02:00
wandererfan a40996016f Add #3337 Arbitrary Dimension 2018-04-25 11:09:39 +02:00
wandererfan c3d56ca36e Fix exterior angle arc and value 2018-04-25 11:09:39 +02:00
wandererfan 4cd563b5c2 Remove duplicate code/save Dim line geom 2018-04-25 11:09:39 +02:00
luz.paz d671478717 Doxygen: fix broken link in freecadweb.org/api page + update all links to https://
Fixes #3442 (https://freecadweb.org/tracker/view.php?id=3442)
2018-04-25 11:05:46 +02:00
luz.paz 5f7df347f8 Path: misc. source comment typos 2018-04-25 11:03:10 +02:00
luz.paz 13db1e5349 Crowdin: Path string fixes 2018-04-25 11:03:10 +02:00
DeepSOIC 2c78478b5c Part: fix compoundfilter's items property tooltip
reported by chrisb:
https://forum.freecadweb.org/viewtopic.php?f=3&t=28299#p229889
2018-04-25 10:58:30 +02:00
wmayer 61db1afe44 fix crash when using space mouse on Windows and built with Qt5 2018-04-25 10:58:14 +02:00
Yorik van Havre 1e2b9758cc Arch: Fixed encoding bug in ifc exporter 2018-04-23 19:08:51 -03:00
Yorik van Havre 786054fd22 Fixed ArchDetail example 2018-04-23 13:20:43 -03:00
wmayer a099eb3caf Improvements on mesh flattening commands:
comment out import of pivy because it's not used and pivy.graphics isn't available on all platforms
Add MeshPart_ prefix to command names for consistency reasons and to make Qt help working correctly
When adding commands to Mesh workbench make sure the commands could be created beforehand to avoid annoying warnings
2018-04-23 11:09:26 +02:00
looooo c518744e39 cmake stuff 2018-04-23 09:56:23 +02:00
looooo 37fb72e508 nullspace 2018-04-23 09:56:23 +02:00
lo 08b329c9b5 add area relaxing method:
not yet working
2018-04-23 09:56:23 +02:00
lo 8188705821 add edge relaxing method 2018-04-23 09:56:23 +02:00
looooo 18b6544883 win: pybind11: workaround for strdup 2018-04-23 09:56:23 +02:00
looooo 7df027c88b change pybind11/boost handlinG 2018-04-23 09:56:23 +02:00
looooo 8c448e370c openscad py3 fixes 2018-04-23 09:56:23 +02:00
looooo d8d79c908e win fixes + pybind11 improvementS 2018-04-23 09:56:23 +02:00
looooo 74cd8706a0 MeshFlattening: fixes for windows 2018-04-23 09:56:23 +02:00
looooo 76b66159b3 MeshFlattening: add function to unwrap face 2018-04-23 09:56:23 +02:00
looooo 2329ac38e8 MeshFlattening: add function to unwrap mesh 2018-04-23 09:56:23 +02:00
looooo e1247dcb48 MeshFlattener: boundary extractor 2018-04-23 09:56:23 +02:00
looooo ce33e2dbe2 MeshFlattening: initial commit 2018-04-23 09:56:23 +02:00
looooo 05b8004001 hide python code displayed @ startup 2018-04-23 09:44:48 +02:00
wandererfan 40919896e7 Add getAllViews() method to DrawPagePy 2018-04-23 07:55:38 +02:00
wandererfan f13689753c Fix #3367: view/data pane is unselected
- error in coordination of Tree & QGraphicsScene
  selection logic caused Feature to become
  unselected during update.
2018-04-23 07:55:38 +02:00
wandererfan 4f3f620720 Coverity fixes
CID 174671
CID 174670
CID 174669
CID 174668
CID 174667
CID 174664
2018-04-23 07:55:38 +02:00
wmayer a4ae54f65a remove unneeded cmake switch 2018-04-22 21:22:36 +02:00
wmayer 33b883acb2 fix broken layout in view color panel 2018-04-22 11:02:04 +02:00
looooo 1f121a17c4 py3: Spreadsheet use Unicode instead of bytes 2018-04-22 07:53:20 +02:00
looooo 7da2d6ebbc py3: rebar-fix 2018-04-22 07:53:20 +02:00
looooo 77895f959d py3: draft fixes (grid)
integer-division (please remember using // for integer division ;)
+ use same color for arrow and line
2018-04-22 07:53:20 +02:00
wandererfan 5d1fa67230 Fix add ArchSection w/ multiple Pages 2018-04-22 07:44:41 +02:00
Abdullah Tahiri dc79d4172d Sketcher: fix menu periodic bspline call 2018-04-22 07:39:15 +02:00
Eivind Kvedalen ae7bef9978 Expressions: Fixed issue #3432; aggregate functions sometimes ignore some of their arguments.
Also updated regression tests in Spreadsheet module.
2018-04-21 22:33:54 +02:00
wmayer b440dc830b behave like standard Python interpreter in console mode if no file name is passed 2018-04-21 16:42:54 +02:00
Arne 519d02dd00 ViewProviderGeometryObject: set default random shape color to false 2018-04-21 13:51:51 +02:00
Arne 8958aaae59 Merge branch 'randomshapecolor' of https://github.com/dulouie/FreeCAD into randomshapecolor 2018-04-21 13:41:13 +02:00
dulouie d8b5b6938d fix small layout issues 2018-04-21 13:33:40 +02:00
Arne Schmidt 492f5057e2 random shapecolor with toggle in settings dialog 2018-04-21 13:33:40 +02:00
Peter Lama 68f25713d3 Fix finding boost python >= 1.67
Boost >= 1.67 requires a version suffix (on macOS at least)
2018-04-21 11:24:36 +02:00
wmayer 3c9e6b038e fix requesting boost python component for version >= 1.67.0 2018-04-21 11:12:45 +02:00
wmayer 52443a1b1b fix minor uic warning 2018-04-20 17:00:29 +02:00
Yorik van Havre 10e33d03f8 Active container (light gray) and edit (yellow) colors in Tree view are now changeable in prefs->display->colors 2018-04-19 18:25:48 -03:00
Jan Beich 869b5c8918 Explicitly link against -lpthread on Unix
/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_init
>>> referenced by src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp
>>>               src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/SMESH_Mesh.cpp.o:(boost::condition_variable::condition_variable())

/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_setclock
>>> referenced by src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp
>>>               src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/SMESH_Mesh.cpp.o:(boost::condition_variable::condition_variable())

/usr/bin/ld.lld: error: undefined symbol: pthread_condattr_destroy
>>> referenced by src/3rdParty/salomesmesh/src/SMESH/SMESH_Mesh.cpp
>>>               src/3rdParty/salomesmesh/CMakeFiles/SMESH.dir/src/SMESH/SMESH_Mesh.cpp.o:(boost::condition_variable::condition_variable())
2018-04-19 15:38:37 +02:00
wmayer 6ac274b081 minor fixes in FindPyCXX check 2018-04-18 19:52:43 +02:00
wmayer 01a26172c2 disable Py::Exception(const std::string&) constructor as it will be removed in future PyCXX versions 2018-04-18 19:45:07 +02:00
wmayer 840c9e8b3c prepare for PyCXX 7.0 2018-04-18 19:20:50 +02:00
Yorik van Havre c4aaef4033 fixed missing py2 case 2018-04-18 10:05:49 -03:00
Adrian Schröter 04a8bf6a29 fix syntax error for python3 2018-04-18 10:05:49 -03:00
Adrian Schröter 5b744ae05b fix runtime error creating a wire from string with python3
Tested against version 0.17
2018-04-18 10:05:49 -03:00
wmayer 3297399542 fix possible crash when saving preferences 2018-04-17 19:44:26 +02:00
wmayer 5326d15ed2 improve handling if PySide(2) is not installed 2018-04-17 19:10:01 +02:00
Yorik van Havre c16813f4e8 Arch: Fixed wrong wall base wire orientation 2018-04-17 11:58:30 -03:00
Yorik van Havre 9551e2bf7d Part: Added icon to Simple Copy command 2018-04-17 11:39:07 -03:00
Yorik van Havre 514058a023 Arch: Fixed leftover encoding bug (backported to 0.17) 2018-04-17 11:18:23 -03:00
Yorik van Havre 4f1c3a9714 Draft: Fixed snapping to shapes inside a moved Part container - fixes #3392 2018-04-17 11:14:40 -03:00
Peter Lama 72d334d867 Fix #3426: Hierarchical step export not working with occt 7.2 2018-04-17 10:19:52 -03:00
looooo 18a7bad3bd py3: fem: some additional fixes 2018-04-17 10:18:32 -03:00
Yorik van Havre e6727e8062 Merge branch 'master' of github.com:FreeCAD/FreeCAD 2018-04-17 10:17:10 -03:00
luz.paz 5293cede21 Revert changes per yorik 2018-04-17 10:16:28 -03:00
luz.paz 25b58a1a8c Arch: Residual trailing \n chars removed from translate() 2018-04-17 10:16:28 -03:00
luz.paz 90c6689722 Arch: translation fixes
Adding Arch WB translation string corrections/refinements
2018-04-17 10:16:28 -03:00
wmayer c582b069ba fix compiler warnings with py3 and msvc 2018-04-16 18:24:53 +02:00
wmayer a29e8725b4 fix compiler warnings with Py3 2018-04-16 13:51:04 +02:00
wmayer 6858146c8a don't make existence of PySide2 mandatory 2018-04-16 13:50:38 +02:00
wmayer 7ed84a6590 workaround for bug in VS 2013 that occurs at Python init time 2018-04-15 19:05:06 +02:00
wmayer 4adeb7702d extend API of smooth command to allow to run different algorithms 2018-04-14 18:44:03 +02:00
DeepSOIC 8a7525f620 PartDesign: fix #2758 Datum Point persistence, again 2018-04-14 15:48:56 +02:00
looooo cab320be4b py3: addon-manager 2018-04-14 10:40:31 +02:00
looooo d977014992 py3: fix dxf import 2018-04-14 10:40:31 +02:00
looooo be5ea8391c PySide2: qApp -> QApplication 2018-04-14 10:40:31 +02:00
looooo 0bd9f17baf py3: port ship to py3 imports 2018-04-14 10:40:31 +02:00
triplus f3a514b44b Deploy Travis builds to 0.18
https://forum.freecadweb.org/viewtopic.php?p=227147#p227242
2018-04-13 09:44:30 -03:00
DeepSOIC 646111495d App: fix py return of propertyLinkSubList
fixes #0002602

Now, it won't bunch up same object entries if they are not adjacent. I.e., same object  can appear twice and more, for example:
[(object1, ('Edge2', 'Edge3')), (object2, ('Edge1',)), (object1, ('Edge4', 'Edge5'))]

Complete bunching causes information loss, and it's impossible to fix the bug with keeping the bunching complete.
2018-04-13 09:42:26 -03:00
Yorik van Havre 04a7f566fe Merge pull request #1402 from luzpaz/drafttools-fix-newline
Follow-up fix for e0161f4652
2018-04-12 13:22:19 -03:00
luz.paz 1207b56814 Follow-up fix for e0161f4652
e0161f4652
ref: https://github.com/FreeCAD/FreeCAD/commit/e0161f46526d323be24c4ac99225bd1e888c2878#commitcomment-28542412
2018-04-12 09:37:40 -04:00
Yorik van Havre d96cc9dbd4 Arch: Fixed wall clone icon 2018-04-11 10:55:37 -03:00
Yorik van Havre 50ef6e1747 Arch: Added blocking system to walls 2018-04-11 10:55:37 -03:00
WandererFan f95117c706 Sync TechDraw what's this with Wiki page names 2018-04-11 10:53:42 -03:00
WandererFan 973e0e4bdd Align TechDraw menu and toolbars 2018-04-11 10:53:42 -03:00
luz.paz e0161f4652 [For v0.18]Draft: add translation() + move \n out of translation strings 2018-04-11 10:51:13 -03:00
luz.paz 0884b353a6 [For v0.18]PartDesign: translation fixes
ref: https://crowdin.com/translate/freecad/564/en-sv#6502053
[skip ci]
2018-04-11 10:49:56 -03:00
Yorik van Havre 7101d9a89d Arch: small bugfix in Rebar 2018-04-10 14:39:53 -03:00
Alexander Pravdin 2400fe64b4 Draft: dimension and extension lines overshoots 2018-04-10 19:28:40 +02:00
sliptonic 8aba6f1d5a Path: Reword menu items from 'partial' to 'supplemental'
fixes #3383
2018-04-10 19:22:44 +02:00
lorenz f0a91a89ee python3: ConfigParser -> RawConfigParser
"%"-symbol makes problems with python3
2018-04-10 15:12:24 +02:00
wmayer 130c44521f start v0.18 development 2018-04-10 13:03:26 +02:00
sL1pKn07 018b41032a [For v018] Fix build with Qt5 beta
Seems need add some headers for build with incoming Qt 5.11 (Tested with 5.11.0beta2)
2018-04-10 12:59:41 +02:00
wmayer aa0f6b54d4 fixes #0003424: 'basic_string::_M_construct null not valid' when opening a v0.16 project with v0.17 2018-04-10 10:51:34 +02:00
dulouie e48fbc8c82 Merge branch 'randomshapecolor' of https://github.com/dulouie/FreeCAD into randomshapecolor 2018-03-01 21:48:50 +01:00
dulouie 95e8071e55 fix small layout issues 2018-03-01 21:48:15 +01:00
dulouie 09852a1e86 Merge branch 'master' into randomshapecolor 2018-03-01 15:30:22 +01:00
Arne Schmidt 389a00e1aa random shapecolor with toggle in settings dialog 2018-03-01 01:26:51 +01:00
4126 changed files with 709852 additions and 504009 deletions
+4
View File
@@ -34,3 +34,7 @@ OpenSCAD_rc.py
/\.idea/
.tags
tags
/\.vscode/
# crowdin file
src/Tools/freecad.zip
+31 -16
View File
@@ -19,12 +19,14 @@
##
env:
global:
- FREECAD_RELEASE="0.17"
- FREECAD_RELEASE="0.18"
- DEPLOY_RELEASE=${DEPLOY_RELEASE:-$FREECAD_RELEASE}
- CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}
- OSX_PORTS_CACHE=${OSX_PORTS_CACHE:-FreeCAD/FreeCAD-ports-cache}
- DEPLOY=${DEPLOY:-0}
matrix:
# chunk.io key (if needed, obtain it with Yorik, PrzemoF, Kunda1)
secure: MJu0ZU/9Yqut6bUkHoSrXTV/c/WhCLR0KnHKCsnEU081PYoukzH6ngzgKk7/trAH2In080d/ra4B2OmTNl/LAgV6DXKFY9dO1aG8QwcrHgaMPf0pHYUy/OfwQSFYFByQDV2OEMAHcIWc/dtNkzK2QUi44Kn7d0GtSEiN4s816lriWtjg0vmEGAU8MjvcAGss4gKyn05Xm1NUCYPKgpgIHsywLbpE76lv0eOYoosEuKv5Q9Pb4FMQts02+JUlqE8eY4ZZ3nV8iQbgIDdseOSA7Ixn05zWjU/ZRZ74TrYxMnzfUAwQcJe9OcqoESq+pPWQt5HYG66VmeVxQim1gmsiDASH51U/nswKt0Q4bISj3tVk0YZMFV8Ax+SzPvLEmFZJQGfgO1mg7HdNcz9N9G5JHPawrV19DwYIEFbAw8MCSAoIXFOcPQZUWXCbtjm7NO9vCjMrqyVJMDD9L8omvQajHoajuHbOT8KB250gFokeLj3z8yu++Tz+IrZX5inUMrXsARVt/ALXpi8rJPXmoFMpMUjyWmDPqPWlnqUhLtTtEtKpuOWP8ZnWVwkg4QYOUhCy95C1okJSGkG+ylHWncWfY4mS+UBT525laoh+GOhH+sRW+p2xkI21xGFRqg1oHjjgY1yIYF6nnSHPzxMBRYmZwagyXsjkFG5FPMWR2oYk0Yg
cache:
ccache: true
@@ -35,6 +37,10 @@ python:
# Inject osx build into matrix - needed to specify image/dist
matrix:
allow_failures:
- python: 3.7
- os: osx
fast_finish: true # https://blog.travis-ci.com/2013-11-27-fast-finishing-builds
include:
- os: linux
dist: trusty
@@ -57,8 +63,16 @@ matrix:
- CMAKE_OPTS="-DBUILD_FEM_NETGEN=ON"
- PYTHON_MAJOR_VERSION=3
- language: python
python: 3.7
dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069)
before_install: true
install: python3 -m pip install flake8
# fail the build if there are Python syntax errors or undefined names
script: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# macOS build is failing. See: https://forum.freecadweb.org/viewtopic.php?f=10&t=32272
- os: osx
osx_image: xcode7.3
compiler: clang
env:
- CMAKE_OPTS="-DBUILD_FEM_NETGEN=ON" QT=Qt5
@@ -83,7 +97,8 @@ before_install:
"linux")
sudo apt-get update -qq
sudo apt-get install -y doxygen \
sudo apt-get install -y --no-install-recommends \
doxygen \
libboost1.55-dev \
libboost-filesystem1.55-dev \
libboost-program-options1.55-dev \
@@ -125,24 +140,24 @@ before_install:
swig \
libvtk6-dev \
libmed-dev \
libmedc-dev \
libmedc-dev \
asciidoc
#Install Eigen 3.3.3 to reduce compiler warnings
curl -L "http://bitbucket.org/eigen/eigen/get/3.3.3.tar.gz" | tar xvz && cd eigen-*
mkdir build && cd build
cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON ..
sudo make -j2 install
cd ${TRAVIS_BUILD_DIR}
# Make sure dpkg is upgraded for Ubuntu 14.04 (required for eigen3)
sudo apt-get install -y dpkg
#Install ccache to reduce successive build times (use 3.2.5+ to avoid spurious warnings)
curl -L "https://codeload.github.com/ccache/ccache/tar.gz/v3.2.5" | tar xvz && cd ccache-*
# Use latest Eigen3 package
curl -L http://security.ubuntu.com/ubuntu/pool/universe/e/eigen3/libeigen3-dev_3.3.4-4_all.deb -o libeigen3.deb \
&& sudo dpkg -i libeigen3.deb
# Install ccache to reduce successive build times (use newer version to minimize issues)
# XXX: ccache <=3.4.3 always builds manuals, requiring asciidoc/xsltproc
# XXX: 3.4.4 might have --disable-man (at least its present in their git)
sudo apt install -y xsltproc
curl -L "https://codeload.github.com/ccache/ccache/tar.gz/v3.4.3" | tar xvz && cd ccache-*
./autogen.sh && ./configure CC=gcc && sudo make install
cd ${TRAVIS_BUILD_DIR}
#Patch the system - there is a bug related to invalid location of libs on ubuntu 12.04
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/i386-linux-gnu
sudo find /usr/lib -name libpq.so -exec ln -s {} /usr/lib/libpq.so ';'
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
+135 -158
View File
@@ -1,17 +1,16 @@
cmake_minimum_required(VERSION 3.3 FATAL_ERROR)
project(FreeCAD_trunk)
set(PACKAGE_NAME "FreeCAD")
set(PACKAGE_VERSION_NAME "Vulcan")
set(PACKAGE_VERSION_MAJOR "0")
set(PACKAGE_VERSION_MINOR "17")
set(PACKAGE_VERSION_PATCH "10000")
set(PACKAGE_VERSION_MINOR "18")
set(PACKAGE_VERSION_PATCH "13500")
set(FREECAD_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}")
set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE_VERSION_PATCH}")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
if(POLICY CMP0020)
@@ -19,11 +18,14 @@ if(COMMAND cmake_policy)
endif(POLICY CMP0020)
# added in cmake 3.0
if(POLICY CMP0050)
cmake_policy(SET CMP0050 OLD)
cmake_policy(SET CMP0050 NEW)
endif(POLICY CMP0050)
if (POLICY CMP0045)
cmake_policy(SET CMP0045 NEW)
endif(POLICY CMP0045)
if (POLICY CMP0072)
cmake_policy(SET CMP0072 OLD)
endif(POLICY CMP0072)
endif(COMMAND cmake_policy)
find_program(CCACHE_PROGRAM ccache) #This check should occur before project()
@@ -47,14 +49,6 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cMake")
# set(RELEASE_MAIN_OUTPUT_PATH ${CMAKE_BINARY_DIR}/src/Main/Release)
#endif(CMAKE_CFG_INTDIR STREQUAL .)
if(WIN32)
set(PLATFORM_CP xcopy /Y /S)
set(PLATFORM_MK mkdir)
else(WIN32)
set(PLATFORM_CP cp)
set(PLATFORM_MK mkdir -p)
endif(WIN32)
if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
set(CMAKE_COMPILER_IS_CLANGXX TRUE)
endif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
@@ -110,9 +104,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
# get linker errors as soon as possible and not at runtime e.g. for modules
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-undefined,error")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-undefined,error")
elseif(UNIX)
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
endif()
endif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)
@@ -149,7 +143,7 @@ endif(WIN32)
SET(CMAKE_INSTALL_DATADIR data CACHE PATH "Output directory for data and resource files")
SET(CMAKE_INSTALL_INCLUDEDIR include CACHE PATH "Output directory for header files")
SET(CMAKE_INSTALL_DOCDIR doc CACHE PATH "Output directory for documentation and license files")
# Don't set it without manual adaption of LibDir variable in src/App/FreeCADInit.py
# Don't set it without manual adoption of LibDir variable in src/App/FreeCADInit.py
SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries")
if(NOT WIN32)
@@ -174,14 +168,17 @@ MESSAGE(STATUS "datadir: ${CMAKE_INSTALL_DATADIR}")
MESSAGE(STATUS "docdir: ${CMAKE_INSTALL_DOCDIR}")
MESSAGE(STATUS "includedir: ${CMAKE_INSTALL_INCLUDEDIR}")
MESSAGE(STATUS "libdir: ${CMAKE_INSTALL_LIBDIR}")
MESSAGE(STATUS "cmake: ${CMAKE_VERSION}")
# ==============================================================================
# == Win32 is default behaviour use the LibPack copied in Source tree ==========
if(MSVC)
OPTION(FREECAD_RELEASE_PDB "Create PDB file for Release version." OFF)
OPTION(FREECAD_RELEASE_PDB "Create PDB files for Release version." ON)
OPTION(FREECAD_RELEASE_SEH "Enable Structured Exception Handling for Release version." ON)
OPTION(FREECAD_LIBPACK_USE "Use the LibPack to Build FreeCAD (only Win32 so far)." ON)
OPTION(FREECAD_LIBPACK_USEPYSIDE "Use PySide in LibPack rather to PyQt and Swig." ON)
set(FREECAD_LIBPACK_DIR ${CMAKE_SOURCE_DIR} CACHE PATH "Directory of the FreeCAD LibPack")
OPTION(BUILD_USE_PCH "Activate precompiled headers where it's used." ON)
else(MSVC)
OPTION(FREECAD_LIBPACK_USE "Use the LibPack to Build FreeCAD (only Win32 so far)." OFF)
set(FREECAD_LIBPACK_DIR "" CACHE PATH "Directory of the FreeCAD LibPack")
@@ -192,14 +189,14 @@ endif(MSVC)
# Switch to build FreeCAD with Qt5
OPTION(BUILD_QT5 "Build with Qt5." OFF)
OPTION(BUILD_QT5_WEBKIT "Build with Qt5." ON)
OPTION(BUILD_GUI "Build FreeCAD Gui. Otherwise you have only the command line and the Python import module." ON)
OPTION(FREECAD_MAINTAINERS_BUILD "Build FreeCAD for Maintainers, with Docu and 3rd party libs. On Windows the Installer is built." OFF)
OPTION(FREECAD_USE_EXTERNAL_ZIPIOS "Use system installed zipios++ instead of the bundled." OFF)
OPTION(FREECAD_USE_EXTERNAL_SMESH "Use system installed smesh instead of the bundled." OFF)
OPTION(FREECAD_USE_EXTERNAL_KDL "Use system installed orocos-kdl instead of the bundled." OFF)
OPTION(FREECAD_USE_FREETYPE "Builds the features using FreeType libs" ON)
OPTION(FREECAD_BUILD_DEBIAN "Prepare for a build of a Debian package" OFF)
OPTION(BUILD_WITH_CONDA "Set ON if you build freecad with conda" OFF)
OPTION(OCCT_CMAKE_FALLBACK "disable usage of occt-config files" OFF)
if (WIN32 OR APPLE)
OPTION(FREECAD_USE_QT_FILEDIALOG "Use Qt's file dialog instead of the native one." OFF)
else()
@@ -262,6 +259,7 @@ OPTION(BUILD_JTREADER "Build the FreeCAD jt reader module" OFF)
OPTION(BUILD_MATERIAL "Build the FreeCAD material module" ON)
OPTION(BUILD_MESH "Build the FreeCAD mesh module" ON)
OPTION(BUILD_MESH_PART "Build the FreeCAD mesh part module" ON)
OPTION(BUILD_FLAT_MESH "Build the FreeCAD flat mesh module" OFF)
OPTION(BUILD_OPENSCAD "Build the FreeCAD openscad module" ON)
OPTION(BUILD_PART "Build the FreeCAD part module" ON)
OPTION(BUILD_PART_DESIGN "Build the FreeCAD part design module" ON)
@@ -343,6 +341,7 @@ REQUIRES_MODS(BUILD_IMPORT BUILD_PART)
REQUIRES_MODS(BUILD_INSPECTION BUILD_MESH BUILD_POINTS BUILD_PART)
REQUIRES_MODS(BUILD_JTREADER BUILD_MESH)
REQUIRES_MODS(BUILD_MESH_PART BUILD_PART BUILD_MESH BUILD_SMESH)
REQUIRES_MODS(BUILD_FLAT_MESH BUILD_MESH_PART)
REQUIRES_MODS(BUILD_OPENSCAD BUILD_MESH_PART BUILD_DRAFT)
REQUIRES_MODS(BUILD_PART_DESIGN BUILD_SKETCHER)
REQUIRES_MODS(BUILD_PATH BUILD_PART BUILD_ROBOT)
@@ -381,16 +380,6 @@ if(FREECAD_LIBPACK_USE)
IF(FREECAD_LIBPACK_CHECKFILE_CLBUNDLER)
set(FREECAD_LIBPACK_VERSION "CLbundler" CACHE STRING "Displays if the libpack has been found" FORCE)
include(cMake/UseLibPackCLbundler.cmake)
ELSEIF(FREECAD_LIBPACK_CHECKFILE6X)
set(FREECAD_LIBPACK_VERSION "6.x" CACHE STRING "Displays if the libpack has been found" FORCE)
include(cMake/UseLibPack6x.cmake)
ELSEIF(FREECAD_LIBPACK_CHECKFILE7X)
set(FREECAD_LIBPACK_VERSION "7.x" CACHE STRING "Displays if the libpack has been found" FORCE)
include(cMake/UseLibPack7x.cmake)
ELSEIF(FREECAD_LIBPACK_CHECKFILE8X)
set(FREECAD_LIBPACK_VERSION "8.x" CACHE STRING "Displays if the libpack has been found" FORCE)
include(cMake/UseLibPack8x.cmake)
set(SWIG_EXECUTABLE ${FREECAD_LIBPACK_DIR}/tools/swigwin-1.3.40/swig.exe CACHE STRING "Swig" FORCE)
ELSEIF(FREECAD_LIBPACK_CHECKFILE9X)
set(FREECAD_LIBPACK_VERSION "9.x" CACHE STRING "Displays if the libpack has been found" FORCE)
include(cMake/UseLibPack9x.cmake)
@@ -448,7 +437,7 @@ if(NOT FREECAD_LIBPACK_USE OR FREECAD_LIBPACK_CHECKFILE_CLBUNDLER)
set(Python_ADDITIONAL_VERSIONS "2.7")
# For building on OS X
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT BUILD_WITH_CONDA)
# If the user doesn't tell us which package manager they're using
if(NOT DEFINED MACPORTS_PREFIX AND NOT DEFINED HOMEBREW_PREFIX)
@@ -558,7 +547,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif(NOT DEFINED PYTHON_LIBRARY)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin" AND NOT BUILD_WITH_CONDA)
find_package(PythonInterp REQUIRED)
set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
@@ -589,23 +578,39 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_package(PCL REQUIRED COMPONENTS common kdtree features surface io filters segmentation sample_consensus)
endif(FREECAD_USE_PCL)
# -------------------------------- PyBind11 -----------------------------
# necessary for flat-mesh feature
OPTION(FREECAD_USE_PYBIND11 "Use pybind11" OFF)
if (FREECAD_USE_PYBIND11)
find_package(pybind11 REQUIRED)
endif()
# -------------------------------- Boost --------------------------------
SET(_boost_TEST_VERSIONS ${Boost_ADDITIONAL_VERSIONS})
set (BOOST_COMPONENTS filesystem program_options regex system thread)
find_package(Boost ${BOOST_MIN_VERSION}
COMPONENTS filesystem program_options regex signals system thread REQUIRED)
COMPONENTS ${BOOST_COMPONENTS} REQUIRED)
if(UNIX AND NOT APPLE)
# Boost.Thread 1.67+ headers reference pthread_condattr_*
list(APPEND Boost_LIBRARIES pthread)
endif()
IF(NOT Boost_FOUND)
MESSAGE(FATAL_ERROR "========================================\n"
"boost not found, install the components:\n"
" * filesystem\n"
" * program_options\n"
" * regex\n"
" * signals\n"
" * system\n"
" * thread\n"
"========================================\n")
set (NO_BOOST_COMPONENTS)
foreach (comp ${BOOST_COMPONENTS})
string(TOUPPER ${comp} uppercomp)
if (NOT Boost_${uppercomp}_FOUND)
list(APPEND NO_BOOST_COMPONENTS ${comp})
endif()
endforeach()
MESSAGE(FATAL_ERROR "=============================================\n"
"Required components:\n"
" ${BOOST_COMPONENTS}\n"
"Not found, install the components:\n"
" ${NO_BOOST_COMPONENTS}\n"
"=============================================\n")
ENDIF(NOT Boost_FOUND)
# -------------------------------- XercesC --------------------------------
@@ -638,6 +643,13 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Salome SMESH sources are under src/3rdParty now
IF(BUILD_SMESH)
# set the internal smesh version:
# see src/3rdParty/salomonemesh/CMakeLists.txt and commit https://github.com/FreeCAD/FreeCAD/commit/666a3e5 and https://forum.freecadweb.org/viewtopic.php?f=10&t=30838
set(SMESH_VERSION_MAJOR 7)
set(SMESH_VERSION_MINOR 7)
set(SMESH_VERSION_PATCH 1)
set(SMESH_VERSION_TWEAK 0)
#if we use smesh we definitely also need vtk, no matter of external or internal smesh
set (VTK_COMPONENTS
vtkCommonCore
@@ -655,7 +667,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# check which modules are available
if(UNIX OR WIN32)
find_package(VTK COMPONENTS vtkCommonCore REQUIRED NO_MODULE)
list(APPEND VTK_COMPONENTS vtkIOMPIParallel vtkParallelMPI vtkhdf5)
list(APPEND VTK_COMPONENTS vtkIOMPIParallel vtkParallelMPI vtkhdf5 vtkFiltersParallelDIY2 vtkRenderingCore vtkInteractionStyle vtkRenderingFreeType vtkRenderingOpenGL2)
foreach(_module ${VTK_COMPONENTS})
list (FIND VTK_MODULES_ENABLED ${_module} _index)
if (${_index} GREATER -1)
@@ -664,7 +676,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endforeach()
endif()
# don't check VERSION 6 as this would exlude VERSION 7
# don't check VERSION 6 as this would exclude VERSION 7
if(AVAILABLE_VTK_COMPONENTS)
message(STATUS "VTK components: ${AVAILABLE_VTK_COMPONENTS}")
find_package(VTK COMPONENTS ${AVAILABLE_VTK_COMPONENTS} REQUIRED NO_MODULE)
@@ -690,12 +702,23 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
list(REMOVE_ITEM VTK_LIBRARIES "optimized" "debug")
if(NOT FREECAD_USE_EXTERNAL_SMESH)
find_package(MEDFile REQUIRED)
# See https://www.hdfgroup.org/HDF5/release/cmakebuild.html
if (WIN32)
find_package(HDF5 COMPONENTS NO_MODULE REQUIRED static)
else()
find_package(PkgConfig)
pkg_search_module(HDF5 hdf5-serial)
FILE(READ ${meddotH} TMPTXT)
STRING(FIND "${TMPTXT}" "#define MED_HAVE_MPI" matchres)
if(${matchres} EQUAL -1)
message(STATUS "We guess that libmed was built using hdf5-serial version")
set(HDF5_VARIANT "hdf5-serial")
else()
message(STATUS "We guess that libmed was built using hdf5-openmpi version")
set(HDF5_VARIANT "hdf5-openmpi")
set(HDF5_PREFER_PARALLEL TRUE) # if pkg-config fails, find_package(HDF5) needs this
endif()
pkg_search_module(HDF5 ${HDF5_VARIANT})
if(NOT HDF5_FOUND)
find_package(HDF5 REQUIRED)
else()
@@ -704,7 +727,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
link_libraries(${HDF5_LIBRARIES})
find_file(Hdf5dotH hdf5.h PATHS ${HDF5_INCLUDE_DIRS} NO_DEFAULT_PATH)
if(NOT Hdf5dotH)
message( FATAL_ERROR "hdf5-serial not found in an error message above.")
message( FATAL_ERROR "${HDF5_VARIANT} development header not found.")
endif()
endif()
check_include_file_cxx(hdf5.h HDF5_FOUND)
@@ -722,10 +745,12 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
message( WARNING "mpi.h was not found. Check for error above.")
endif()
endif()
find_package(MEDFile REQUIRED)
set(SMESH_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/3rdParty/salomesmesh/inc)
else()
find_package(SMESH)
else(NOT FREECAD_USE_EXTERNAL_SMESH)
find_package(SMESH CONFIG)
set (SMESH_INCLUDE_DIR ${SMESH_INCLUDE_PATH})
SET(EXTERNAL_SMESH_LIBS ${SMESH_LIBRARIES})
if(NOT SMESH_FOUND)
message(ERROR "================\n"
"SMESH not found.\n"
@@ -733,7 +758,9 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()
include_directories(${SMESH_INCLUDE_DIR})
endif()
set(SMESH_FOUND TRUE)
configure_file(SMESH_Version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/SMESH_Version.h)
ENDIF(BUILD_SMESH)
# -------------------------------- Netgen --------------------------------
@@ -766,6 +793,12 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
"=================\n")
ENDIF(NOT EIGEN3_FOUND)
if (${EIGEN3_VERSION} VERSION_LESS "3.3.1")
message(WARNING "Disable module flatmesh because it requires "
"minimum Eigen3 version 3.3.1 but version ${EIGEN3_VERSION} was found")
set (BUILD_FLAT_MESH OFF)
endif()
# -------------------------------- Qt --------------------------------
if (NOT BUILD_QT5)
@@ -838,7 +871,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_package(Qt5UiTools)
find_package(Qt5Network)
find_package(Qt5Concurrent)
if (BUILD_QT5_WEBKIT)
if (BUILD_WEB)
find_package(Qt5WebKitWidgets)
endif()
endif(BUILD_GUI)
@@ -893,7 +926,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if(OPENGL_GLU_FOUND)
find_package_message(OPENGL_GLU
"Found OpenGLU: ${OPENGL_glu_LIBRARY}"
"[${OPENGL_glu_LIBRARY}][${OEPNGL_INCLUDE_DIR}]")
"[${OPENGL_glu_LIBRARY}][${OPENGL_INCLUDE_DIR}]")
else(OPENGL_GLU_FOUND)
message(FATAL_ERROR "======================\n"
"GLU library not found.\n"
@@ -927,8 +960,8 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
SET(PYTHON_CONFIG_SUFFIX -python2.7 CACHE STRING "Shiboken cmake file suffix. If left empty, system default will be used: <ShibokenConfigPYTHON_CONFIG_SUFFIX.cmake>")
SET(PYTHON_BASENAME -python2.7 CACHE STRING "Same as PYTHON_SUFFIX but for PySide. If left empty, PYTHON_SUFFIX will be used: <PySideConfigPYTHON_BASENAME.cmake>")
else()
SET(PYTHON_CONFIG_SUFFIX "" CACHE STRING "Shiboken cmake file suffix. If left empty, system default will be used: <ShibokenConfigPYTHON_CONFIG_SUFFIX.cmake>")
SET(PYTHON_BASENAME "" CACHE STRING "Same as PYTHON_SUFFIX but for PySide. If left empty, PYTHON_SUFFIX will be used: <PySideConfigPYTHON_BASENAME.cmake>")
#SET(PYTHON_CONFIG_SUFFIX "" CACHE STRING "Shiboken cmake file suffix. If left empty, system default will be used: <ShibokenConfigPYTHON_CONFIG_SUFFIX.cmake>")
#SET(PYTHON_BASENAME "" CACHE STRING "Same as PYTHON_SUFFIX but for PySide. If left empty, PYTHON_SUFFIX will be used: <PySideConfigPYTHON_BASENAME.cmake>")
endif()
if(DEFINED MACPORTS_PREFIX)
@@ -936,21 +969,45 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
find_package(PySide REQUIRED HINTS "${PYTHON_LIBRARY_DIR}/cmake")
endif(DEFINED MACPORTS_PREFIX)
find_package(Shiboken2)# REQUIRED
find_package(Shiboken2 QUIET)# REQUIRED
if (Shiboken2_FOUND)
# Shiboken2 config file was found but it may use the wrong Python version
# Try to get the matching config suffix and repeat finding the package
if (PYTHON_VERSION_MAJOR LESS 3)
set(SHIBOKEN_PATTERN -python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
else()
set(SHIBOKEN_PATTERN .cpython-${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR})
endif()
file(GLOB SHIBOKEN_CONFIG "${Shiboken2_DIR}/Shiboken2Config${SHIBOKEN_PATTERN}*.cmake")
if (SHIBOKEN_CONFIG)
get_filename_component(SHIBOKEN_CONFIG_SUFFIX ${SHIBOKEN_CONFIG} NAME)
string(SUBSTRING ${SHIBOKEN_CONFIG_SUFFIX} 15 -1 SHIBOKEN_CONFIG_SUFFIX)
string(REPLACE ".cmake" "" PYTHON_CONFIG_SUFFIX ${SHIBOKEN_CONFIG_SUFFIX})
MESSAGE(STATUS "PYTHON_CONFIG_SUFFIX: ${PYTHON_CONFIG_SUFFIX}")
find_package(Shiboken2 QUIET)
endif()
endif()
if(NOT SHIBOKEN_INCLUDE_DIR)
MESSAGE(FATAL_ERROR "====================\n"
"shiboken2 not found.\n"
"====================\n")
MESSAGE("====================\n"
"shiboken2 not found.\n"
"====================\n")
endif(NOT SHIBOKEN_INCLUDE_DIR)
find_package(PySide2)# REQUIRED
find_package(PySide2 QUIET)# REQUIRED
if(NOT PYSIDE_INCLUDE_DIR)
MESSAGE(FATAL_ERROR "==================\n"
"PySide2 not found.\n"
"==================\n")
MESSAGE("==================\n"
"PySide2 not found.\n"
"==================\n")
endif(NOT PYSIDE_INCLUDE_DIR)
find_package(PySide2Tools REQUIRED) # PySide2 utilities (pyside2-uic & pyside2-rcc)
find_package(PySide2Tools QUIET) #REQUIRED # PySide2 utilities (pyside2-uic & pyside2-rcc)
if(NOT PYSIDE2_TOOLS_FOUND)
MESSAGE("=======================\n"
"PySide2Tools not found.\n"
"=======================\n")
endif(NOT PYSIDE2_TOOLS_FOUND)
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/Ext/PySide)
file(WRITE ${CMAKE_BINARY_DIR}/Ext/PySide/__init__.py "# PySide wrapper\n"
@@ -963,17 +1020,18 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
"from PySide2.QtWidgets import *\n"
"QHeaderView.setResizeMode = QHeaderView.setSectionResizeMode\n")
file(WRITE ${CMAKE_BINARY_DIR}/Ext/PySide/QtSvg.py "from PySide2.QtSvg import *\n")
file(WRITE ${CMAKE_BINARY_DIR}/Ext/PySide/QtUiTools.py "from PySide2.QtUiTools import *\n")
if(APPLE)
if(APPLE AND NOT BUILD_WITH_CONDA)
INSTALL(
DIRECTORY
DIRECTORY
${CMAKE_BINARY_DIR}/Ext/PySide
DESTINATION
MacOS
)
else()
INSTALL(
DIRECTORY
DIRECTORY
${CMAKE_BINARY_DIR}/Ext/PySide
DESTINATION
Ext
@@ -984,10 +1042,10 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# Below are two variables that can be left empty for standard python 3 version,
# but must be set by the user for different python versions such as 2.7, 3.5 ...
if (PYTHON_VERSION_MAJOR LESS 3)
SET(PYTHON_SUFFIX -python2.7 CACHE STRING "Shiboken cmake file suffix. If left empty, system default will be used: <ShibokenConfigPYTHON_SUFFIX.cmake>")
SET(PYTHON_CONFIG_SUFFIX -python2.7 CACHE STRING "Shiboken cmake file suffix. If left empty, system default will be used: <ShibokenConfigPYTHON_CONFIG_SUFFIX.cmake>")
SET(PYTHON_BASENAME -python2.7 CACHE STRING "Same as PYTHON_SUFFIX but for PySide. If left empty, PYTHON_SUFFIX will be used: <PySideConfigPYTHON_BASENAME.cmake>")
else()
SET(PYTHON_SUFFIX "" CACHE STRING "Shiboken cmake file suffix. If left empty, system default will be used: <ShibokenConfigPYTHON_SUFFIX.cmake>")
SET(PYTHON_CONFIG_SUFFIX "" CACHE STRING "Shiboken cmake file suffix. If left empty, system default will be used: <ShibokenConfigPYTHON_CONFIG_SUFFIX.cmake>")
SET(PYTHON_BASENAME "" CACHE STRING "Same as PYTHON_SUFFIX but for PySide. If left empty, PYTHON_SUFFIX will be used: <PySideConfigPYTHON_BASENAME.cmake>")
endif()
@@ -1073,8 +1131,8 @@ ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
IF(MSVC)
# set default compiler settings
SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa")
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG /Zm128")
SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zm150")
SET (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFC_DEBUG /Zm150 /bigobj")
# set default libs
SET (CMAKE_C_STANDARD_LIBRARIES "kernel32.lib user32.lib gdi32.lib winspool.lib SHFolder.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib winmm.lib comsupp.lib Ws2_32.lib dbghelp.lib ")
set (CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_C_STANDARD_LIBRARIES}")
@@ -1086,6 +1144,9 @@ IF(MSVC)
set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi")
set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG")
ENDIF(FREECAD_RELEASE_PDB)
IF(FREECAD_RELEASE_SEH)
SET (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /EHa")
ENDIF(FREECAD_RELEASE_SEH)
# Mark 32 bit executables large address aware so they can use > 2GB address space
# NOTE: This setting only has an effect on machines with at least 3GB of RAM, although it sets the linker option it doesn't set the linker switch 'Enable Large Addresses'
@@ -1124,102 +1185,17 @@ add_subdirectory(data)
# ================================================================================
# == Packaging ===================================================================
if(FREECAD_MAINTAINERS_BUILD AND NOT WIN32)
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "An extensible Open Source CAx program")
set(CPACK_PACKAGE_VENDOR "FreeCAD development team")
if(WIN32)
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.Win32")
else(WIN32)
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.Linux")
endif(WIN32)
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/copying.lib")
set(CPACK_PACKAGE_VERSION_MAJOR ${PACKAGE_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PACKAGE_VERSION_MINOR})
set(CPACK_PACKAGE_VERSION_PATCH ${PACKAGE_VERSION_PATCH})
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${PACKAGE_NAME}-${PACKAGE_VERSION})
#for debian: 'cmake .. -DFREECAD_MAINTAINERS_BUILD=TRUE -DCPACK_GENERATOR="DEB"'
IF( CMAKE_SIZEOF_VOID_P EQUAL 4 )
set(PKG_ARCH i386)
ELSE( CMAKE_SIZEOF_VOID_P EQUAL 4 )
set(PKG_ARCH amd64)
ENDIF( CMAKE_SIZEOF_VOID_P EQUAL 4 )
set(CPACK_DEBIAN_PACKAGE_SECTION "science")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "python, oce | opencascade, libqtgui4, libcoin60, libxerces-c3.1, zlib1g, libboost-dev, libeigen2-dev")
set(CPACK_PACKAGE_CONTACT "<root@localhost>")
set(CPACK_PACKAGE_FILE_NAME "${PACKAGE_NAME}-${PACKAGE_VERSION}_${PKG_ARCH}")
if(WIN32)
set(CPACK_GENERATOR "ZIP")
set(CPACK_SOURCE_GENERATOR "ZIP")
else(WIN32)
if( CPACK_GENERATOR STREQUAL "" )
set(CPACK_GENERATOR "TGZ")
set(CPACK_SOURCE_GENERATOR "TGZ")
endif()
endif(WIN32)
file(GLOB DOT ".*")
file(GLOB TILD "*~")
set(CPACK_SOURCE_IGNORE_FILES
"${DOT}"
"${TILD}"
".a$"
".am$"
".in$"
".bat$"
".o$"
".so$"
".m4$"
"/_build/"
"/_cmake/"
"/.deps/"
"/.svn/"
"/CMakeFiles/"
"/CVS/"
"/autom4te.cache/"
"/build/"
"/debian/"
"/debug/"
"/docs/"
"/m4/"
"/qt-build/"
"/CxImage/"
"/WindowsInstaller/"
"AdditionalInfo.txt$"
"CMakeCache.txt$"
"Makefile$"
"\\\\.sh$"
"_CPack_"
"config.h$"
"config.log$"
"config.status$"
"configure$"
"configure.ac$"
"Doxyfile"
"html$"
"stamp-h1$"
".swp$"
"tar.bz2"
"tar.gz"
"~$"
)
set(CPACK_SOURCE_STRIP_FILES "")
include(CPack)
#ADD_CUSTOM_TARGET(DIST make package_source)
endif(FREECAD_MAINTAINERS_BUILD AND NOT WIN32)
#add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
add_custom_target(dist-git
#add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
add_custom_target(dist-git
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/Tools/makedist.py
--srcdir=${CMAKE_SOURCE_DIR} --bindir=${CMAKE_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
add_custom_target(distdfsg-git
)
add_custom_target(distdfsg-git
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/Tools/makedist.py
--srcdir=${CMAKE_SOURCE_DIR} --bindir=${CMAKE_BINARY_DIR} --dfsg
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
)
if(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
add_custom_target(distcheck-git
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/src/Tools/makedist.py
@@ -1233,6 +1209,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
)
endif(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
# Print message to start build process
if (${CMAKE_BUILD_TOOL} MATCHES "make")
MESSAGE("=======================================\n"
+7 -8
View File
@@ -1,5 +1,4 @@
Changelog you find now here:
http://www.freecadweb.org/tracker/changelog_page.php
Note: Future changelog now located at: http://www.freecadweb.org/tracker/changelog_page.php
Version: 0.14
* Python path messed up after installation
@@ -62,7 +61,7 @@ Version: 0.14
* Draft Dimensions due not observe Dimension Precision on FreeCAD Windows
* invalid DXF export
* Port wiki, phpbb and mantis to self-hosted
* Crash propably in MeshPart
* Crash probably in MeshPart
* Part.BSplineCurve: allow to set degree and mutliplicites when calling constructor.
* FeaturePython objects should be able to define how POVray output is generated
* Losing Snap when Object is getting more complex.
@@ -751,7 +750,7 @@ Version: V0.1B78 Date: Sun Nov 23 13:15:15 2003 +++++++++++++++++++++++++++++++
Version: V0.1B77 Date: Fri Nov 14 14:56:14 2003 +++++++++++++++++++++++++++++++
* Finished Setup stuff
* Removed all relativ paths
* Removed all relative paths
* config HomePath is now not in bin anymore
* all config files one dir up
* FC runs now from every directory
@@ -906,7 +905,7 @@ Version: V0.1B50 Date: Fri Apr 04 22:10:24 2003 +++++++++++++++++++++++++++++++
* some work on the Linux port
Version: V0.1B49 Date: Thu Apr 03 22:45:35 2003 +++++++++++++++++++++++++++++++
* Master redisign of the window system, not yet full working
* Master redesign of the window system, not yet full working
Version: V0.1B48 Date: Sun Mar 30 15:06:23 2003 +++++++++++++++++++++++++++++++
* Big patch from Werner about:
@@ -952,10 +951,10 @@ Version: V0.1B39 Date: Mon Mar 03 12:32:14 2003 +++++++++++++++++++++++++++++++
Version: V0.1B38 Date: Thu Feb 27 22:19:35 2003 +++++++++++++++++++++++++++++++
* fix of memory leack in CmdBar (werner)
* start rebulding FCCommand framework
* start rebuilding FCCommand framework
Version: V0.1B37 Date: Tue Feb 25 20:29:19 2003 +++++++++++++++++++++++++++++++
* massiv improved costomize dialog (werner)
* massively improved customize dialog (werner)
- sorting position of toolbars
Version: V0.1B36 Date: Sat Feb 22 18:12:19 2003 +++++++++++++++++++++++++++++++
@@ -1013,7 +1012,7 @@ Version: V0.1B26 Date: Tue Jan 21 05:59:01 2003 +++++++++++++++++++++++++++++++
Version: V0.1B25 Date: Sun Jan 19 18:20:51 2003 +++++++++++++++++++++++++++++++
* Big Linux port patch from Vaclav
- some fixes on implicite type conversion (Vaclav)
- some fixes on implicit type conversion (Vaclav)
- moving all .cxx to .cpp mainly in gui
- moving DlgCusomizeImpl to Imp
- and InitGui to GuiInit
-5
View File
@@ -1,8 +1,3 @@
NOTE! The LGPL below is copyrighted by the Free Software Foundation, but
the instance of code that it refers to (the FreeCAD libraries) are copyrighted
by the authors who actually wrote it.
---------------------------------------------------------------------------
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
+3 -3
View File
@@ -36,11 +36,11 @@ Other options are described at the [wiki Download page](http://www.freecadweb.or
Build Status <img src="https://blog.travis-ci.com/images/travis-mascot-200px.png" height="30"/>
------------
| Master | 0.16 | Translation |
| Master | 0.17 | Translation |
|:------:|:----:|:-----------:|
|[![Master][freecad-master-status]][travis-branches]|[![0.16][freecad-0.16-status]][travis-branches]|[![Crowdin](https://d322cqt584bo4o.cloudfront.net/freecad/localized.svg)](https://crowdin.com/project/freecad)|
|[![Master][freecad-master-status]][travis-branches]|[![0.17][freecad-0.17-status]][travis-branches]|[![Crowdin](https://d322cqt584bo4o.cloudfront.net/freecad/localized.svg)](https://crowdin.com/project/freecad)|
[freecad-0.16-status]: https://travis-ci.org/FreeCAD/FreeCAD.svg?branch=0.16
[freecad-0.17-status]: https://travis-ci.org/FreeCAD/FreeCAD.svg?branch=releases/FreeCAD-0-17
[freecad-master-status]: https://travis-ci.org/FreeCAD/FreeCAD.svg?branch=master
[travis-branches]: https://travis-ci.org/FreeCAD/FreeCAD/branches
[travis-builds]: https://travis-ci.org/FreeCAD/FreeCAD/builds
+12
View File
@@ -0,0 +1,12 @@
#ifndef SMESH_VERSION_H
#define SMESH_VERSION_H
/* SMESH_Version.h. Generated from SMESH_Version.h.cmake by cmake. */
// SMESH version
#define SMESH_VERSION_MAJOR ${SMESH_VERSION_MAJOR}
#define SMESH_VERSION_MINOR ${SMESH_VERSION_MINOR}
#define SMESH_VERSION_PATCH ${SMESH_VERSION_PATCH}
#define SMESH_VERSION_TWEAK ${SMESH_VERSION_TWEAK}
#endif // SMESH_VERSION_H
+2 -2
View File
@@ -26,14 +26,14 @@ IF (COIN3D_FOUND)
)
IF( EXISTS ${COIN3D_DOC_PATH})
message(STATUS "Coin3D doc is installed")
find_file(COIN3D_DOC_TAGFILE coin.tag
find_file(COIN3D_DOC_TAGFILE coin.tag Coin.tag
${COIN3D_DOC_PATH}
)
IF( EXISTS ${COIN3D_DOC_TAGFILE})
SET( COIN3D_DOC_FOUND "YES"
)
ELSE( EXISTS ${COIN3D_DOC_TAGFILE})
find_file(COIN3D_DOC_TAGFILE_GZ coin.tag.gz
find_file(COIN3D_DOC_TAGFILE_GZ coin.tag.gz Coin.tag.gz
${COIN3D_DOC_PATH}
)
IF( EXISTS ${COIN3D_DOC_TAGFILE_GZ})
+5 -1
View File
@@ -40,7 +40,11 @@ IF(MEDFILE_ROOT_DIR)
LIST(APPEND CMAKE_PREFIX_PATH "${MEDFILE_ROOT_DIR}")
ENDIF(MEDFILE_ROOT_DIR)
FIND_PATH(MEDFILE_INCLUDE_DIRS med.h)
FIND_PATH(MEDFILE_INCLUDE_DIRS med.h PATH_SUFFIXES med)
FIND_FILE(meddotH med.h PATHS ${MEDFILE_INCLUDE_DIRS} NO_DEFAULT_PATH)
IF(NOT meddotH)
MESSAGE(FATAL_ERROR "med.h not found, please install development header-files for libmedc")
ENDIF(NOT meddotH)
#FIND_PROGRAM(MDUMP mdump)
FIND_LIBRARY(MEDFILE_C_LIBRARIES NAMES medC)
FIND_LIBRARY(MEDFILE_F_LIBRARIES NAMES med)
+137 -142
View File
@@ -1,5 +1,5 @@
# Try to find nglib/netgen
#
#
# Optional input NETGENDATA is path to the netgen libsrc source tree - this is
# required due to some headers not being installed by netgen.
#
@@ -12,165 +12,160 @@
#
# See also: http://git.salome-platform.org/gitweb/?p=NETGENPLUGIN_SRC.git;a=summary
SET(NETGEN_DEFINITIONS -DNO_PARALLEL_THREADS -DOCCGEOMETRY)
IF(DEFINED MACPORTS_PREFIX OR DEFINED HOMEBREW_PREFIX)
# We haven't supported Netgen prior to 5.3.1 on MacOS, and the current
# plan is for the next Netgen version to be 6.1 (currently unreleased).
IF(DEFINED HOMEBREW_PREFIX)
SET(NGLIB_PREFIX ${HOMEBREW_PREFIX})
ELSE(DEFINED HOMEBREW_PREFIX)
SET(NGLIB_PREFIX ${MACPORTS_PREFIX})
ENDIF(DEFINED HOMEBREW_PREFIX)
find_package(Netgen CONFIG)
if(Netgen_FOUND)
set(NGLIB_INCLUDE_DIR ${NETGEN_INCLUDE_DIRS})
set(NGLIB_LIBRARIES nglib)
set(NETGEN_DEFINITIONS -DNO_PARALLEL_THREADS -DOCCGEOMETRY)
# for external smesh only the following two variables are needed:
set(NETGEN_FOUND True)
set(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS})
FIND_PATH(NGLIB_INCLUDE_DIR nglib.h ${NGLIB_PREFIX}/include)
else(Netgen_FOUND)
FIND_LIBRARY(NGLIB_LIBNGLIB nglib ${NGLIB_PREFIX}/lib)
FIND_LIBRARY(NGLIB_LIBMESH mesh ${NGLIB_PREFIX}/lib)
FIND_LIBRARY(NGLIB_LIBOCC occ ${NGLIB_PREFIX}/lib)
FIND_LIBRARY(NGLIB_LIBINTERFACE interface ${NGLIB_PREFIX}/lib)
SET(NGLIB_LIBRARIES ${NGLIB_LIBNGLIB} ${NGLIB_LIBMESH}
${NGLIB_LIBOCC} ${NGLIB_LIBINTERFACE})
IF(NOT NETGENDATA)
SET(NETGENDATA ${NGLIB_PREFIX}/include/netgen)
ENDIF(NOT NETGENDATA)
SET(NETGEN_DEFINITIONS -DNO_PARALLEL_THREADS -DOCCGEOMETRY)
ELSEIF(WIN32)
FIND_PATH(NGLIB_INCLUDE_DIR NAMES nglib.h PATHS ${NETGEN_INCLUDEDIR})
SET(NETGEN_LIBS nglib mesh occ interface)
SET(NGLIB_LIBRARIES "")
FOREACH(it ${NETGEN_LIBS})
FIND_LIBRARY(NGLIB ${it} PATHS ${NETGEN_LIBDIR})
FIND_LIBRARY(NGLIBD ${it}d PATHS ${NETGEN_LIBDIR})
IF(NGLIBD AND NGLIB)
SET(NG_LIB optimized ${NGLIB}
debug ${NGLIBD})
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NG_LIB})
UNSET(NGLIB CACHE)
UNSET(NGLIBD CACHE)
ELSEIF(NGLIB)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB})
UNSET(NGLIB CACHE)
ENDIF()
ENDFOREACH()
IF(DEFINED MACPORTS_PREFIX OR DEFINED HOMEBREW_PREFIX)
# We haven't supported Netgen prior to 5.3.1 on MacOS, and the current
# plan is for the next Netgen version to be 6.1 (currently unreleased).
IF(DEFINED HOMEBREW_PREFIX)
SET(NGLIB_PREFIX ${HOMEBREW_PREFIX})
ELSE(DEFINED HOMEBREW_PREFIX)
SET(NGLIB_PREFIX ${MACPORTS_PREFIX})
ENDIF(DEFINED HOMEBREW_PREFIX)
IF(NOT NETGENDATA)
SET(NETGENDATA netgen)
ENDIF(NOT NETGENDATA)
FIND_PATH(NGLIB_INCLUDE_DIR nglib.h ${NGLIB_PREFIX}/include)
ELSE(DEFINED MACPORTS_PREFIX OR DEFINED HOMEBREW_PREFIX)
IF(NETGEN_ROOT)
SET(NETGEN_INCLUDEDIR ${NETGEN_ROOT}/include)
SET(NETGEN_LIBDIR ${NETGEN_ROOT}/lib)
# allow to customize if NETGEN_ROOT is used
IF(NOT NETGENDATA)
SET(NETGENDATA ${NETGEN_ROOT}/libsrc)
ENDIF(NOT NETGENDATA)
ENDIF()
FIND_LIBRARY(NGLIB_LIBNGLIB nglib ${NGLIB_PREFIX}/lib)
FIND_LIBRARY(NGLIB_LIBMESH mesh ${NGLIB_PREFIX}/lib)
FIND_LIBRARY(NGLIB_LIBOCC occ ${NGLIB_PREFIX}/lib)
FIND_LIBRARY(NGLIB_LIBINTERFACE interface ${NGLIB_PREFIX}/lib)
SET(NGLIB_LIBRARIES ${NGLIB_LIBNGLIB} ${NGLIB_LIBMESH}
${NGLIB_LIBOCC} ${NGLIB_LIBINTERFACE})
FIND_PATH(NGLIB_INCLUDE_DIR NAMES nglib.h PATHS ${NETGEN_INCLUDEDIR} /usr/include)
FIND_LIBRARY(NGLIB_LIBNGLIB nglib PATHS ${NETGEN_LIBDIR} /usr/lib /usr/local/lib)
SET(NGLIB_LIBRARIES ${NGLIB_LIBNGLIB})
FIND_LIBRARY(NGLIB_LIBMESH mesh PATHS ${NETGEN_LIBDIR} /usr/lib /usr/local/lib)
IF(NGLIB_LIBMESH)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB_LIBMESH})
ENDIF()
FIND_LIBRARY(NGLIB_LIBOCC occ PATHS ${NETGEN_LIBDIR} /usr/lib /usr/local/lib)
IF(NGLIB_LIBOCC)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB_LIBOCC})
ENDIF()
FIND_LIBRARY(NGLIB_LIBINTERFACE interface PATHS ${NETGEN_LIBDIR} /usr/lib /usr/local/lib)
IF(NGLIB_LIBINTERFACE)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB_LIBINTERFACE})
ENDIF()
IF(NOT NETGENDATA)
SET(NETGENDATA ${NGLIB_PREFIX}/include/netgen)
ENDIF(NOT NETGENDATA)
IF(NOT NETGENDATA)
SET(NETGENDATA /usr/share/netgen/libsrc)
ENDIF(NOT NETGENDATA)
ELSEIF(WIN32)
FIND_PATH(NGLIB_INCLUDE_DIR NAMES nglib.h PATHS ${NETGEN_INCLUDEDIR})
SET(NETGEN_LIBS nglib mesh occ interface)
SET(NGLIB_LIBRARIES "")
FOREACH(it ${NETGEN_LIBS})
FIND_LIBRARY(NGLIB ${it} PATHS ${NETGEN_LIBDIR})
FIND_LIBRARY(NGLIBD ${it}d PATHS ${NETGEN_LIBDIR})
IF(NGLIBD AND NGLIB)
SET(NG_LIB optimized ${NGLIB}
debug ${NGLIBD})
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NG_LIB})
UNSET(NGLIB CACHE)
UNSET(NGLIBD CACHE)
ELSEIF(NGLIB)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB})
UNSET(NGLIB CACHE)
ENDIF()
ENDFOREACH()
ENDIF(DEFINED MACPORTS_PREFIX OR DEFINED HOMEBREW_PREFIX)
IF(NOT NETGENDATA)
SET(NETGENDATA netgen)
ENDIF(NOT NETGENDATA)
FIND_PATH(NETGEN_DIR_include NAMES mydefs.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/include)
FIND_PATH(NETGEN_DIR_csg NAMES csg.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/csg)
FIND_PATH(NETGEN_DIR_gen NAMES array.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/general)
FIND_PATH(NETGEN_DIR_geom2d NAMES geom2dmesh.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/geom2d)
FIND_PATH(NETGEN_DIR_gprim NAMES gprim.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/gprim)
FIND_PATH(NETGEN_DIR_la NAMES linalg.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/linalg)
FIND_PATH(NETGEN_DIR_mesh NAMES meshing.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/meshing)
FIND_PATH(NETGEN_DIR_occ NAMES occgeom.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/occ)
FIND_PATH(NETGEN_DIR_stlgeom NAMES stlgeom.hpp PATHS ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR} ${NETGENDATA}/stlgeom)
ELSE(DEFINED MACPORTS_PREFIX OR DEFINED HOMEBREW_PREFIX)
IF(NETGEN_ROOT)
SET(NETGEN_INCLUDEDIR ${NETGEN_ROOT}/include)
SET(NETGEN_LIBDIR ${NETGEN_ROOT}/lib)
# allow to customize if NETGEN_ROOT is used
IF(NOT NETGENDATA)
SET(NETGENDATA ${NETGEN_ROOT}/libsrc)
ENDIF(NOT NETGENDATA)
ENDIF()
IF(NOT NGLIB_INCLUDE_DIR AND NOT NETGEN_DIR_include)
MESSAGE(STATUS "Cannot find NETGEN header files.")
ELSE()
file(STRINGS ${NETGEN_DIR_include}/mydefs.hpp NETGEN_VERSION
REGEX "#define PACKAGE_VERSION.*"
)
if (NETGEN_VERSION)
string(REGEX MATCHALL "[0-9]+" NETGEN_VERSION ${NETGEN_VERSION})
list(LENGTH NETGEN_VERSION NETGEN_VERSION_COUNT)
list(GET NETGEN_VERSION 0 NETGEN_VERSION_MAJOR)
if(NETGEN_VERSION_COUNT GREATER 1)
list(GET NETGEN_VERSION 1 NETGEN_VERSION_MINOR)
else()
set(NETGEN_VERSION_MINOR 0)
endif()
else() # workaround for netgen 6.2 and newer. currently there is no easy way to detect the version
# better use "find_package(netgen CONFIG REQUIRED)"
set(NETGEN_VERSION_MAJOR 6)
set(NETGEN_VERSION_MINOR 2)
endif()
ENDIF()
FIND_PATH(NGLIB_INCLUDE_DIR NAMES nglib.h PATHS ${NETGEN_INCLUDEDIR} /usr/include /usr/include/netgen-mesher)
FIND_LIBRARY(NGLIB_LIBNGLIB nglib PATHS ${NETGEN_LIBDIR} /usr/lib /usr/lib64 /usr/local/lib)
SET(NGLIB_LIBRARIES ${NGLIB_LIBNGLIB})
FIND_LIBRARY(NGLIB_LIBMESH NAMES mesh ngmesh PATHS ${NETGEN_LIBDIR} /usr/lib /usr/lib64 /usr/local/lib)
IF(NGLIB_LIBMESH)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB_LIBMESH})
ENDIF()
FIND_LIBRARY(NGLIB_LIBOCC NAMES occ ngocc PATHS ${NETGEN_LIBDIR} /usr/lib /usr/lib64 /usr/local/lib)
IF(NGLIB_LIBOCC)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB_LIBOCC})
ENDIF()
FIND_LIBRARY(NGLIB_LIBINTERFACE NAMES interface nginterface PATHS ${NETGEN_LIBDIR} /usr/lib /usr/lib64 /usr/local/lib)
IF(NGLIB_LIBINTERFACE)
SET(NGLIB_LIBRARIES ${NGLIB_LIBRARIES} ${NGLIB_LIBINTERFACE})
ENDIF()
IF(NOT NGLIB_LIBRARIES)
MESSAGE(STATUS "Cannot find NETGEN library.")
ENDIF()
IF(NOT NETGENDATA)
SET(NETGENDATA /usr/share/netgen/libsrc)
ENDIF(NOT NETGENDATA)
IF(NGLIB_INCLUDE_DIR AND NGLIB_LIBRARIES)
SET(NETGEN_FOUND TRUE)
SET(NETGEN_INCLUDE_DIRS ${NETGEN_DIR_include} ${NGLIB_INCLUDE_DIR}
${NETGEN_DIR_csg} ${NETGEN_DIR_gen} ${NETGEN_DIR_geom2d}
${NETGEN_DIR_gprim} ${NETGEN_DIR_la} ${NETGEN_DIR_mesh}
${NETGEN_DIR_occ} ${NETGEN_DIR_stlgeom})
LIST(REMOVE_DUPLICATES NETGEN_INCLUDE_DIRS)
MATH(EXPR NETGEN_VERSION "(${NETGEN_VERSION_MAJOR} << 16) + (${NETGEN_VERSION_MINOR} << 8)")
MATH(EXPR NETGEN_VERSION_62 "(6 << 16) + (2 << 8)")
IF(NOT NETGEN_VERSION LESS NETGEN_VERSION_62) # Version >= 6.2
# NETGEN v6.2 or newer requires c++1y/c++14
include(CheckCXXCompilerFlag)
check_cxx_compiler_flag("-std=c++14" HAS_CPP14_FLAG)
check_cxx_compiler_flag("-std=c++1y" HAS_CPP1Y_FLAG)
if(HAS_CPP14_FLAG)
set(NETGEN_CXX_FLAGS "-std=c++14")
elseif(HAS_CPP1Y_FLAG)
set(NETGEN_CXX_FLAGS "-std=c++1y")
else()
# message(FATAL_ERROR "Unsupported compiler -- C++1y support or newer required!")
message(STATUS "can not detect c++1y support, but will try to build with c++1y")
set(NETGEN_CXX_FLAGS "-std=c++1y")
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
ENDIF(DEFINED MACPORTS_PREFIX OR DEFINED HOMEBREW_PREFIX)
FIND_PATH(NETGEN_DIR_include NAMES mydefs.hpp NO_DEFAULT_PATH PATHS ${NGLIB_INCLUDE_DIR}/include ${NETGENDATA}/include ${NETGEN_INCLUDEDIR} ${NGLIB_INCLUDE_DIR})
IF(NOT NGLIB_INCLUDE_DIR AND NOT NETGEN_DIR_include)
MESSAGE(STATUS "Cannot find NETGEN header files.")
ELSE()
file(STRINGS ${NETGEN_DIR_include}/mydefs.hpp NETGEN_VERSION
REGEX "#define PACKAGE_VERSION.*"
)
ENDIF()
IF(NOT NGLIB_LIBRARIES)
MESSAGE(STATUS "Cannot find NETGEN library.")
ENDIF()
IF(NGLIB_INCLUDE_DIR AND NGLIB_LIBRARIES)
SET(Netgen_FOUND TRUE)
SET(NETGEN_INCLUDE_DIRS ${NETGEN_DIR_include} ${NGLIB_INCLUDE_DIR})
LIST(REMOVE_DUPLICATES NETGEN_INCLUDE_DIRS)
ELSE()
SET(Netgen_FOUND FALSE)
ENDIF()
endif(Netgen_FOUND)
# Package-provided cMake file is not enough
IF(Netgen_FOUND)
IF(NETGEN_VERSION)
string(REGEX MATCHALL "[0-9]+" NETGEN_VERSION_expr ${NETGEN_VERSION})
list(LENGTH NETGEN_VERSION_expr NETGEN_VERSION_COUNT)
list(GET NETGEN_VERSION_expr 0 NETGEN_VERSION_MAJOR)
IF(NETGEN_VERSION_COUNT GREATER 1)
list(GET NETGEN_VERSION_expr 1 NETGEN_VERSION_MINOR)
ELSE()
set(NETGEN_VERSION_MINOR 0)
ENDIF()
ELSE() # workaround for netgen 6.2 and newer. currently there is no easy way to detect the version
# better use "find_package(netgen CONFIG REQUIRED)"
set(NETGEN_VERSION_MAJOR 6)
set(NETGEN_VERSION_MINOR 2)
ENDIF()
MATH(EXPR NETGEN_VERSION_C "(${NETGEN_VERSION_MAJOR} << 16) + (${NETGEN_VERSION_MINOR} << 8)")
MATH(EXPR NETGEN_VERSION_62 "(6 << 16) + (2 << 8)")
IF(NOT NETGEN_VERSION_C LESS NETGEN_VERSION_62) # Version >= 6.2
IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Clang sometimes fails to include <cstdio>
include(CMakePushCheckState)
cmake_push_check_state(RESET)
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${NETGEN_CXX_FLAGS}")
check_cxx_source_compiles("#include <cstdio>\nint main(){}" CSTDIO_INCLUDE_TRY1)
if(NOT CSTDIO_INCLUDE_TRY1)
# Ugly hack to make <stdio.h> building gets function
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -U__cplusplus -D__cplusplus=201103L")
check_cxx_source_compiles("#include <cstdio>\nint main(){}" CSTDIO_INCLUDE_TRY2)
if(NOT CSTDIO_INCLUDE_TRY2)
message(FATAL_ERROR "Cannot #include <cstdio>.")
else()
set(NETGEN_CXX_FLAGS "${NETGEN_CXX_FLAGS} -U__cplusplus -D__cplusplus=201103L")
endif()
endif()
cmake_pop_check_state()
endif()
IF(NOT CSTDIO_INCLUDE_TRY1)
# Ugly hack to make <stdio.h> building gets function
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -U__cplusplus -D__cplusplus=201103L")
check_cxx_source_compiles("#include <cstdio>\nint main(){}" CSTDIO_INCLUDE_TRY2)
IF(NOT CSTDIO_INCLUDE_TRY2)
message(FATAL_ERROR "Cannot #include <cstdio>.")
ELSE()
set(NETGEN_CXX_FLAGS "${NETGEN_CXX_FLAGS} -U__cplusplus -D__cplusplus=201103L")
ENDIF()
ENDIF()
cmake_pop_check_state()
ENDIF()
MESSAGE(STATUS "Found NETGEN version ${NETGEN_VERSION_MAJOR}.${NETGEN_VERSION_MINOR}, calculated: ${NETGEN_VERSION}")
LIST(APPEND NETGEN_DEFINITIONS -DNETGEN_VERSION=${NETGEN_VERSION})
ELSE()
SET(NETGEN_FOUND FALSE)
ENDIF()
MESSAGE(STATUS "Found NETGEN version ${NETGEN_VERSION_MAJOR}.${NETGEN_VERSION_MINOR}, calculated: ${NETGEN_VERSION_C}")
LIST(APPEND NETGEN_DEFINITIONS -DNETGEN_VERSION=${NETGEN_VERSION_C})
ENDIF()
+45 -32
View File
@@ -34,9 +34,41 @@ if(OCE_FOUND)
set(OCC_INCLUDE_DIR ${OCE_INCLUDE_DIRS})
#set(OCC_LIBRARY_DIR ${OCE_LIBRARY_DIR})
else(OCE_FOUND) #look for OpenCASCADE
if(WIN32)
if(CYGWIN OR MINGW)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
# we first try to find opencascade directly:
if(NOT OCCT_CMAKE_FALLBACK)
find_package(OpenCASCADE CONFIG QUIET)
endif(NOT OCCT_CMAKE_FALLBACK)
if(OpenCASCADE_FOUND)
set(OCC_FOUND ${OpenCASCADE_FOUND})
set(OCC_INCLUDE_DIR ${OpenCASCADE_INCLUDE_DIR})
set(OCC_LIBRARY_DIR ${OpenCASCADE_LIBRARY_DIR})
set(OCC_LIBRARIES ${OpenCASCADE_LIBRARIES})
set(OCC_OCAF_LIBRARIES TKCAF TKXCAF)
else(OpenCASCADE_FOUND)
if(WIN32)
if(CYGWIN OR MINGW)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
/usr/include/opencascade
/usr/local/include/opencascade
/opt/opencascade/include
/opt/opencascade/inc
)
FIND_LIBRARY(OCC_LIBRARY TKernel
/usr/lib
/usr/local/lib
/opt/opencascade/lib
)
else(CYGWIN OR MINGW)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/include"
)
FIND_LIBRARY(OCC_LIBRARY TKernel
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/lib"
)
endif(CYGWIN OR MINGW)
else(WIN32)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
/usr/include/occt
/usr/include/opencascade
/usr/local/include/opencascade
/opt/opencascade/include
@@ -47,35 +79,16 @@ else(OCE_FOUND) #look for OpenCASCADE
/usr/local/lib
/opt/opencascade/lib
)
else(CYGWIN OR MINGW)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/include"
)
FIND_LIBRARY(OCC_LIBRARY TKernel
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\SIM\\OCC\\2;Installation Path]/lib"
)
endif(CYGWIN OR MINGW)
else(WIN32)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
/usr/include/opencascade
/usr/local/include/opencascade
/opt/opencascade/include
/opt/opencascade/inc
)
FIND_LIBRARY(OCC_LIBRARY TKernel
/usr/lib
/usr/local/lib
/opt/opencascade/lib
)
endif(WIN32)
if(OCC_LIBRARY)
GET_FILENAME_COMPONENT(OCC_LIBRARY_DIR ${OCC_LIBRARY} PATH)
IF(NOT OCC_INCLUDE_DIR)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
${OCC_LIBRARY_DIR}/../inc
)
ENDIF()
endif(OCC_LIBRARY)
endif(WIN32)
if(OCC_LIBRARY)
GET_FILENAME_COMPONENT(OCC_LIBRARY_DIR ${OCC_LIBRARY} PATH)
IF(NOT OCC_INCLUDE_DIR)
FIND_PATH(OCC_INCLUDE_DIR Standard_Version.hxx
${OCC_LIBRARY_DIR}/../inc
)
ENDIF()
endif(OCC_LIBRARY)
endif(OpenCASCADE_FOUND)
endif(OCE_FOUND)
if(OCC_INCLUDE_DIR)
+41 -22
View File
@@ -27,13 +27,13 @@ if(PYCXX_INCLUDE_DIR)
if(NOT EXISTS "${PYCXX_INCLUDE_DIR}/CXX/Config.hxx")
if(PyCXX_FIND_REQUIRED)
MESSAGE(FATAL_ERROR
"PyCXX: could not find CXX/Config.hxx in PYCXX_INCLUDE_DIR "
"${PYCXX_INCLUDE_DIR}")
"PyCXX: could not find CXX/Config.hxx in PYCXX_INCLUDE_DIR "
"${PYCXX_INCLUDE_DIR}")
else(PyCXX_FIND_REQUIRED)
MESSAGE(WARNING
"PyCXX: could not find CXX/Config.hxx in PYCXX_INCLUDE_DIR "
"${PYCXX_INCLUDE_DIR}")
unset(PYCXX_FOUND)
"PyCXX: could not find CXX/Config.hxx in PYCXX_INCLUDE_DIR "
"${PYCXX_INCLUDE_DIR}")
unset(PYCXX_FOUND)
endif(PyCXX_FIND_REQUIRED)
endif(NOT EXISTS "${PYCXX_INCLUDE_DIR}/CXX/Config.hxx")
else(PYCXX_INCLUDE_DIR)
@@ -44,11 +44,11 @@ else(PYCXX_INCLUDE_DIR)
if(NOT PYCXX_INCLUDE_DIR)
if(PyCXX_FIND_REQUIRED)
MESSAGE(FATAL_ERROR
"PyCXX not found; please set PYCXX_INCLUDE_DIR to "
"the location of CXX/Config.hxx")
"PyCXX not found; please set PYCXX_INCLUDE_DIR to "
"the location of CXX/Config.hxx")
else(PyCXX_FIND_REQUIRED)
MESSAGE(STATUS "PyCXX not found")
unset(PYCXX_FOUND)
unset(PYCXX_FOUND)
endif(PyCXX_FIND_REQUIRED)
endif(NOT PYCXX_INCLUDE_DIR)
endif(PYCXX_INCLUDE_DIR)
@@ -58,14 +58,14 @@ if(PYCXX_SOURCE_DIR)
# source directory specified, they'd better be there
if(NOT EXISTS "${PYCXX_SOURCE_DIR}/cxxextensions.c")
if(PyCXX_FIND_REQUIRED)
MESSAGE(FATAL_ERROR
"PyCXX: cxxextensions.c not found in PYCXX_INCLUDE_DIR "
"${PYCXX_INCLUDE_DIR}")
MESSAGE(FATAL_ERROR
"PyCXX: cxxextensions.c not found in PYCXX_SOURCE_DIR "
"${PYCXX_SOURCE_DIR}")
else(PyCXX_FIND_REQUIRED)
MESSAGE(WARNING
"PyCXX: cxxextensions.c not found in PYCXX_INCLUDE_DIR "
"${PYCXX_INCLUDE_DIR}")
unset(PYCXX_FOUND)
"PyCXX: cxxextensions.c not found in PYCXX_SOURCE_DIR "
"${PYCXX_SOURCE_DIR}")
unset(PYCXX_FOUND)
endif(PyCXX_FIND_REQUIRED)
endif(NOT EXISTS "${PYCXX_SOURCE_DIR}/cxxextensions.c")
else(PYCXX_SOURCE_DIR)
@@ -79,29 +79,48 @@ else(PYCXX_SOURCE_DIR)
"${CMAKE_CURRENT_LIST_DIR}/../CXX")
if(NOT PYCXX_SOURCE_DIR)
if(PyCXX_FIND_REQUIRED)
MESSAGE(FATAL_ERROR
"PyCXX not found; please set PYCXX_SOURCE_DIR to "
"the location of cxxextensions.c")
MESSAGE(FATAL_ERROR
"PyCXX not found; please set PYCXX_SOURCE_DIR to "
"the location of cxxextensions.c")
else(PyCXX_FIND_REQUIRED)
MESSAGE(STATUS "PyCXX not found")
unset(PYCXX_FOUND)
unset(PYCXX_FOUND)
endif(PyCXX_FIND_REQUIRED)
endif(NOT PYCXX_SOURCE_DIR)
endif(PYCXX_SOURCE_DIR)
# Find PyCXX Version
if(PYCXX_INCLUDE_DIR AND PYCXX_SOURCE_DIR)
file(READ ${PYCXX_INCLUDE_DIR}/CXX/Version.hxx PYCXX_VERSION_H)
foreach(item IN ITEMS MAJOR MINOR PATCH)
string(REGEX REPLACE
".*#define[ \t]+PYCXX_VERSION_${item}[ \t]+([0-9]+).*"
"\\1" PYCXX_VERSION_${item}
"${PYCXX_VERSION_H}"
)
endforeach()
set(PYCXX_VERSION ${PYCXX_VERSION_MAJOR}.${PYCXX_VERSION_MINOR}.${PYCXX_VERSION_PATCH})
endif()
# see what we've got
if(PYCXX_FOUND)
MESSAGE(STATUS "PyCXX found:")
MESSAGE(STATUS " Headers: ${PYCXX_INCLUDE_DIR}")
MESSAGE(STATUS " Sources: ${PYCXX_SOURCE_DIR}")
MESSAGE(STATUS " Version: ${PYCXX_VERSION}")
# Build the list of sources for convenience
set(PYCXX_SOURCES
${PYCXX_SOURCE_DIR}/cxxextensions.c
${PYCXX_SOURCE_DIR}/cxx_extensions.cxx
${PYCXX_SOURCE_DIR}/cxxsupport.cxx
${PYCXX_SOURCE_DIR}/IndirectPythonInterface.cxx
${PYCXX_SOURCE_DIR}/cxxextensions.c
${PYCXX_SOURCE_DIR}/cxx_extensions.cxx
${PYCXX_SOURCE_DIR}/cxxsupport.cxx
${PYCXX_SOURCE_DIR}/IndirectPythonInterface.cxx
)
if(NOT ${PYCXX_VERSION} VERSION_LESS 7.0.0)
list(APPEND PYCXX_SOURCES
${PYCXX_SOURCE_DIR}/cxx_exceptions.cxx)
add_definitions(-DPYCXX_6_2_COMPATIBILITY)
endif()
else(PYCXX_FOUND)
MESSAGE(STATUS "PyCXX not found")
endif(PYCXX_FOUND)
+22 -20
View File
@@ -31,21 +31,22 @@ MACRO(PYSIDE_WRAP_UI outfiles)
#ADD_CUSTOM_TARGET(${it} ALL
# DEPENDS ${outfile}
#)
if(WIN32)
if(WIN32 OR APPLE)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${PYSIDE2UICBINARY} ${infile} -o ${outfile}
MAIN_DEPENDENCY ${infile}
)
else(WIN32)
else()
# Especially on Open Build Service we don't want changing date like
# pyside2-uic generates in comments at beginning.
EXECUTE_PROCESS(
COMMAND ${PYSIDE2UICBINARY} ${infile}
COMMAND sed "/^# /d"
OUTPUT_FILE ${outfile}
# pyside2-uic generates in comments at beginning., which is why
# we follow the tool command with in-place sed.
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND "${PYSIDE2UICBINARY}" "${infile}" -o "${outfile}"
COMMAND sed -i "/^# /d" "${outfile}"
MAIN_DEPENDENCY "${infile}"
)
endif(WIN32)
SET(${outfiles} ${${outfiles}} ${outfile})
endif()
list(APPEND ${outfiles} ${outfile})
ENDFOREACH(it)
ENDMACRO (PYSIDE_WRAP_UI)
@@ -53,25 +54,26 @@ MACRO(PYSIDE_WRAP_RC outfiles)
FOREACH(it ${ARGN})
GET_FILENAME_COMPONENT(outfile ${it} NAME_WE)
GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/${outfile}_rc.py)
SET(outfile "${CMAKE_CURRENT_BINARY_DIR}/${outfile}_rc.py")
#ADD_CUSTOM_TARGET(${it} ALL
# DEPENDS ${outfile}
#)
if(WIN32)
if(WIN32 OR APPLE)
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND ${PYSIDE2RCCBINARY} ${infile} -o ${outfile}
MAIN_DEPENDENCY ${infile}
)
else(WIN32)
else()
# Especially on Open Build Service we don't want changing date like
# pyside2-rcc generates in comments at beginning.
EXECUTE_PROCESS(
COMMAND ${PYSIDE2RCCBINARY} ${infile}
COMMAND sed "/^# /d"
OUTPUT_FILE ${outfile}
)
endif(WIN32)
SET(${outfiles} ${${outfiles}} ${outfile})
# pyside-rcc generates in comments at beginning, which is why
# we follow the tool command with in-place sed.
ADD_CUSTOM_COMMAND(OUTPUT "${outfile}"
COMMAND "${PYSIDE2RCCBINARY}" "${infile}" ${PY_ATTRIBUTE} -o "${outfile}"
COMMAND sed -i "/^# /d" "${outfile}"
MAIN_DEPENDENCY "${infile}"
)
endif()
list(APPEND ${outfiles} ${outfile})
ENDFOREACH(it)
ENDMACRO (PYSIDE_WRAP_RC)
+16 -14
View File
@@ -38,14 +38,15 @@ MACRO(PYSIDE_WRAP_UI outfiles)
)
else(WIN32)
# Especially on Open Build Service we don't want changing date like
# pyside-uic generates in comments at beginning.
EXECUTE_PROCESS(
COMMAND ${PYSIDEUIC4BINARY} ${infile}
COMMAND sed "/^# /d"
OUTPUT_FILE ${outfile}
# pyside-uic generates in comments at beginning, which is why
# we follow the tool command with in-place sed.
ADD_CUSTOM_COMMAND(OUTPUT ${outfile}
COMMAND "${PYSIDEUIC4BINARY}" "${infile}" -o "${outfile}"
COMMAND sed -i "/^# /d" "${outfile}"
MAIN_DEPENDENCY "${infile}"
)
endif(WIN32)
SET(${outfiles} ${${outfiles}} ${outfile})
list(APPEND ${outfiles} ${outfile})
ENDFOREACH(it)
ENDMACRO (PYSIDE_WRAP_UI)
@@ -53,7 +54,7 @@ MACRO(PYSIDE_WRAP_RC outfiles)
FOREACH(it ${ARGN})
GET_FILENAME_COMPONENT(outfile ${it} NAME_WE)
GET_FILENAME_COMPONENT(infile ${it} ABSOLUTE)
SET(outfile ${CMAKE_CURRENT_BINARY_DIR}/${outfile}_rc.py)
SET(outfile "${CMAKE_CURRENT_BINARY_DIR}/${outfile}_rc.py")
#ADD_CUSTOM_TARGET(${it} ALL
# DEPENDS ${outfile}
#)
@@ -69,14 +70,15 @@ MACRO(PYSIDE_WRAP_RC outfiles)
)
else(WIN32)
# Especially on Open Build Service we don't want changing date like
# pyside-rcc generates in comments at beginning.
EXECUTE_PROCESS(
COMMAND ${PYSIDERCC4BINARY} ${infile} ${PY_ATTRIBUTE}
COMMAND sed "/^# /d"
OUTPUT_FILE ${outfile}
)
# pyside-rcc generates in comments at beginning, which is why
# we follow the tool command with in-place sed.
ADD_CUSTOM_COMMAND(OUTPUT "${outfile}"
COMMAND "${PYSIDERCC4BINARY}" "${infile}" ${PY_ATTRIBUTE} -o "${outfile}"
COMMAND sed -i "/^# /d" "${outfile}"
MAIN_DEPENDENCY "${infile}"
)
endif(WIN32)
SET(${outfiles} ${${outfiles}} ${outfile})
list(APPEND ${outfiles} ${outfile})
ENDFOREACH(it)
ENDMACRO (PYSIDE_WRAP_RC)
+131 -133
View File
@@ -3,164 +3,162 @@ include (CheckCXXSourceRuns)
# ================================================================================
# == Macros, mostly for special targets ==========================================
MACRO(COPY_IF_DIFFERENT FROM_DIR TO_DIR FILES TARGETS TAGS)
# Macro to implement copy_if_different for a list of files
# Arguments -
# FROM_DIR - this is the source directory
# TO_DIR - this is the destination directory
# FILES - names of the files to copy
# TODO: add globing.
# TARGETS - List of targets
# TAGS - Since only the file name is used
# to generate rules, pre-pend a user
# supplied tag to prevent duplicate rule errors.
SET(AddTargets "")
FOREACH(SRC ${FILES})
GET_FILENAME_COMPONENT(SRCFILE ${SRC} NAME)
# Command to copy the files to ${STEP1}/src, if changed.
SET(TARGET "${TAGS}/${SRCFILE}")
IF("${FROM_DIR}" STREQUAL "")
SET(FROM ${SRC})
ELSE("${FROM_DIR}" STREQUAL "")
SET(FROM ${FROM_DIR}/${SRC})
ENDIF("${FROM_DIR}" STREQUAL "")
IF("${TO_DIR}" STREQUAL "")
SET(TO ${SRCFILE})
ELSE("${TO_DIR}" STREQUAL "")
SET(TO ${TO_DIR}/${SRCFILE})
ENDIF("${TO_DIR}" STREQUAL "")
ADD_CUSTOM_COMMAND(
OUTPUT ${TARGET}
COMMAND ${CMAKE_COMMAND}
ARGS -E copy_if_different ${FROM} ${TO}
COMMENT "Copying ${SRCFILE} ${TO_DIR}"
)
SET(AddTargets ${AddTargets} ${TARGET})
ENDFOREACH(SRC ${FILES})
SET(${TARGETS} ${AddTargets})
ENDMACRO(COPY_IF_DIFFERENT FROM_DIR TO_DIR FILES TARGETS TAGS)
MACRO (fc_copy_sources target_name outpath)
if(BUILD_VERBOSE_GENERATION)
set(fc_details " (fc_copy_sources called from ${CMAKE_CURRENT_SOURCE_DIR})")
else()
set(fc_details "")
endif()
foreach(it ${ARGN})
file(TO_NATIVE_PATH "${outpath}/${it}" outfile)
get_filename_component(infile ${it} ABSOLUTE)
get_filename_component(outfile ${outfile} ABSOLUTE)
add_file_dependencies(${infile} ${outfile})
get_filename_component(outfile "${outpath}/${it}" ABSOLUTE)
add_file_dependencies("${infile}" "${outfile}")
ADD_CUSTOM_COMMAND(
SOURCE ${infile}
COMMAND ${CMAKE_COMMAND}
ARGS -E copy ${infile} ${outfile}
TARGET ${target_name}
OUTPUTS ${outfile}
COMMAND "${CMAKE_COMMAND}" -E copy "${infile}" "${outfile}"
OUTPUT "${outfile}"
COMMENT "Copying ${infile} to ${outfile}${fc_details}"
MAIN_DEPENDENCY "${infile}"
)
endforeach(it)
ADD_CUSTOM_COMMAND(
SOURCE ${target_name}
TARGET ${target_name}
DEPENDS ${ARGN}
)
ENDMACRO(fc_copy_sources)
MACRO (fc_copy_file_if_different inputfile outputfile)
if (EXISTS ${inputfile})
if (EXISTS ${outputfile})
execute_process(
COMMAND ${CMAKE_COMMAND} -E compare_files ${inputfile}
${outputfile}
RESULT_VARIABLE DIFFERENT_FILES
OUTPUT_QUIET
ERROR_QUIET
)
if (DIFFERENT_FILES)
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${inputfile}"
"${outputfile}")
endif()
else()
execute_process(COMMAND "${CMAKE_COMMAND}" -E copy "${inputfile}"
"${outputfile}")
endif()
endif()
ENDMACRO(fc_copy_file_if_different)
MACRO (fc_target_copy_resource target_name inpath outpath)
# Macro to copy a list of files into a nested directory structure
# Arguments -
# target_name - name of the target the files will be added to
# inpath - name of the source directory
# outpath - name of the destination directory
# ARGN - a list of relative file names that will be copied
#
# If a relative file name is foo/bar.txt then the foo directory
# part will be kept so that the destination file name will be
# ${outpath}/foo/bar.txt
#
if(BUILD_VERBOSE_GENERATION)
set(fc_details " (fc_target_copy_resource called from ${CMAKE_CURRENT_SOURCE_DIR})")
else()
set(fc_details "")
endif()
foreach(it ${ARGN})
file(TO_NATIVE_PATH "${inpath}/${it}" infile)
file(TO_NATIVE_PATH "${outpath}/${it}" outfile)
get_filename_component(infile ${infile} ABSOLUTE)
get_filename_component(outfile ${outfile} ABSOLUTE)
add_file_dependencies(${infile} ${outfile})
get_filename_component(infile "${inpath}/${it}" ABSOLUTE)
get_filename_component(outfile "${outpath}/${it}" ABSOLUTE)
add_file_dependencies("${infile}" "${outfile}")
ADD_CUSTOM_COMMAND(
SOURCE ${infile}
COMMAND ${CMAKE_COMMAND}
ARGS -E copy ${infile} ${outfile}
TARGET ${target_name}
OUTPUTS ${outfile}
COMMAND "${CMAKE_COMMAND}" -E copy "${infile}" "${outfile}"
OUTPUT "${outfile}"
COMMENT "Copying ${infile} to ${outfile}${fc_details}"
MAIN_DEPENDENCY "${infile}"
)
endforeach(it)
ADD_CUSTOM_COMMAND(
SOURCE ${target_name}
TARGET ${target_name}
DEPENDS ${ARGN}
)
ENDMACRO(fc_target_copy_resource)
macro(copy_to_local_output_paths SOURCE_PATHS)
if(CMAKE_CFG_INTDIR STREQUAL .)
# No Debug/Release output paths
set(DEBUG_LOCAL_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
set(RELEASE_LOCAL_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
else(CMAKE_CFG_INTDIR STREQUAL .)
#set(DEBUG_LOCAL_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/Debug)
#set(RELEASE_LOCAL_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/Release)
set(DEBUG_LOCAL_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
set(RELEASE_LOCAL_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
endif(CMAKE_CFG_INTDIR STREQUAL .)
file(TO_NATIVE_PATH ${SOURCE_PATHS} NATIVE_SOURCE)
file(TO_NATIVE_PATH ${DEBUG_LOCAL_OUTPUT_PATH}/ NATIVE_DEBUG_DESTINATION)
file(TO_NATIVE_PATH ${RELEASE_LOCAL_OUTPUT_PATH}/ NATIVE_RELESE_DESTINATION)
message(STATUS "${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_DEBUG_DESTINATION}")
execute_process(
COMMAND ${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_DEBUG_DESTINATION}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if(NOT ${DEBUG_LOCAL_OUTPUT_PATH} STREQUAL ${RELEASE_LOCAL_OUTPUT_PATH})
message(STATUS "${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_RELESE_DESTINATION}")
execute_process(
COMMAND ${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_RELESE_DESTINATION}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endif(NOT ${DEBUG_LOCAL_OUTPUT_PATH} STREQUAL ${RELEASE_LOCAL_OUTPUT_PATH})
endmacro(copy_to_local_output_paths)
macro(copy_to_main_output_paths SOURCE_PATHS)
file(TO_NATIVE_PATH ${SOURCE_PATHS} NATIVE_SOURCE)
file(TO_NATIVE_PATH ${DEBUG_MAIN_OUTPUT_PATH}/ NATIVE_DEBUG_DESTINATION)
file(TO_NATIVE_PATH ${RELEASE_MAIN_OUTPUT_PATH}/ NATIVE_RELESE_DESTINATION)
message(STATUS "${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_DEBUG_DESTINATION}")
execute_process(
COMMAND ${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_DEBUG_DESTINATION}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
if(NOT ${DEBUG_MAIN_OUTPUT_PATH} STREQUAL ${RELEASE_MAIN_OUTPUT_PATH})
message(STATUS "${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_RELESE_DESTINATION}")
execute_process(
COMMAND ${PLATFORM_CP} ${NATIVE_SOURCE} ${NATIVE_RELESE_DESTINATION}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endif(NOT ${DEBUG_MAIN_OUTPUT_PATH} STREQUAL ${RELEASE_MAIN_OUTPUT_PATH})
endmacro(copy_to_main_output_paths)
MACRO (fc_target_copy_resource_flat target_name inpath outpath)
# Macro to copy a list of files into a flat directory structure
# Arguments -
# target_name - name of the target the files will be added to
# inpath - name of the source directory
# outpath - name of the destination directory
# ARGN - a list of relative file names that will be copied
#
# If a relative file name is foo/bar.txt then the foo directory
# part will be removed so that the destination file name will be
# ${outpath}/bar.txt
#
if(BUILD_VERBOSE_GENERATION)
set(fc_details " (fc_target_copy_resource_flat called from ${CMAKE_CURRENT_SOURCE_DIR})")
else()
set(fc_details "")
endif()
foreach(it ${ARGN})
get_filename_component(infile "${inpath}/${it}" ABSOLUTE)
get_filename_component(outfile "${it}" NAME)
get_filename_component(outfile "${outpath}/${outfile}" ABSOLUTE)
add_file_dependencies("${infile}" "${outfile}")
ADD_CUSTOM_COMMAND(
COMMAND "${CMAKE_COMMAND}" -E copy "${infile}" "${outfile}"
OUTPUT "${outfile}"
COMMENT "Copying ${infile} to ${outfile}${fc_details}"
MAIN_DEPENDENCY "${infile}"
)
endforeach(it)
ADD_CUSTOM_COMMAND(
TARGET ${target_name}
DEPENDS ${ARGN}
)
ENDMACRO(fc_target_copy_resource_flat)
# It would be a bit cleaner to generate these files in ${CMAKE_CURRENT_BINARY_DIR}
macro(generate_from_xml BASE_NAME)
file(TO_NATIVE_PATH ${CMAKE_SOURCE_DIR}/src/Tools/generate.py TOOL_PATH)
file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${BASE_NAME}.xml SOURCE_PATH)
set(TOOL_PATH "${CMAKE_SOURCE_DIR}/src/Tools/generate.py")
file(TO_NATIVE_PATH "${TOOL_PATH}" TOOL_NATIVE_PATH)
file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/${BASE_NAME}.xml" SOURCE_NATIVE_PATH)
file(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR}/${BASE_NAME}.cpp SOURCE_CPP_PATH)
set(SOURCE_CPP_PATH "${CMAKE_CURRENT_BINARY_DIR}/${BASE_NAME}.cpp" )
# BASE_NAME may include also a path name
GET_FILENAME_COMPONENT(OUTPUT_PATH ${SOURCE_CPP_PATH} PATH)
if (NOT EXISTS ${SOURCE_CPP_PATH})
GET_FILENAME_COMPONENT(OUTPUT_PATH "${SOURCE_CPP_PATH}" PATH)
file(TO_NATIVE_PATH "${OUTPUT_PATH}" OUTPUT_NATIVE_PATH)
if(NOT EXISTS "${SOURCE_CPP_PATH}")
# assures the source files are generated at least once
message(STATUS "${SOURCE_CPP_PATH}")
execute_process(COMMAND ${PYTHON_EXECUTABLE} ${TOOL_PATH} --outputPath ${OUTPUT_PATH} ${SOURCE_PATH}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "${TOOL_NATIVE_PATH}" --outputPath "${OUTPUT_NATIVE_PATH}" "${SOURCE_NATIVE_PATH}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
)
endif (NOT EXISTS ${SOURCE_CPP_PATH})
endif()
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${BASE_NAME}.h ${CMAKE_CURRENT_BINARY_DIR}/${BASE_NAME}.cpp
COMMAND ${PYTHON_EXECUTABLE} ${TOOL_PATH} --outputPath ${OUTPUT_PATH} ${BASE_NAME}.xml
MAIN_DEPENDENCY ${BASE_NAME}.xml
DEPENDS ${CMAKE_SOURCE_DIR}/src/Tools/generateTemplates/templateClassPyExport.py
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT Building ${BASE_NAME}.h/.cpp out of ${BASE_NAME}.xml
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${BASE_NAME}.h" "${CMAKE_CURRENT_BINARY_DIR}/${BASE_NAME}.cpp"
COMMAND ${PYTHON_EXECUTABLE} "${TOOL_NATIVE_PATH}" --outputPath "${OUTPUT_NATIVE_PATH}" ${BASE_NAME}.xml
MAIN_DEPENDENCY "${BASE_NAME}.xml"
DEPENDS
"${CMAKE_SOURCE_DIR}/src/Tools/generateTemplates/templateClassPyExport.py"
"${TOOL_PATH}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMENT "Building ${BASE_NAME}.h/.cpp out of ${BASE_NAME}.xml"
)
endmacro(generate_from_xml)
macro(generate_from_py BASE_NAME OUTPUT_FILE)
file(TO_NATIVE_PATH ${CMAKE_SOURCE_DIR}/src/Tools/PythonToCPP.py TOOL_PATH)
file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${BASE_NAME}.py SOURCE_PATH)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT_FILE}
COMMAND ${PYTHON_EXECUTABLE} ${TOOL_PATH} ${SOURCE_PATH} ${OUTPUT_FILE}
MAIN_DEPENDENCY ${BASE_NAME}.py
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT Building files out of ${BASE_NAME}.py)
set(TOOL_PATH "${CMAKE_SOURCE_DIR}/src/Tools/PythonToCPP.py")
file(TO_NATIVE_PATH "${TOOL_PATH}" TOOL_NATIVE_PATH)
file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/${BASE_NAME}.py" SOURCE_NATIVE_PATH)
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${OUTPUT_FILE}"
COMMAND "${PYTHON_EXECUTABLE}" "${TOOL_NATIVE_PATH}" "${SOURCE_NATIVE_PATH}" "${OUTPUT_FILE}"
MAIN_DEPENDENCY "${CMAKE_CURRENT_SOURCE_DIR}/${BASE_NAME}.py"
DEPENDS "${TOOL_PATH}"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
COMMENT "Building files out of ${BASE_NAME}.py")
endmacro(generate_from_py)
@@ -236,15 +234,15 @@ MACRO(SET_BIN_DIR ProjectName OutputName)
if(WIN32)
set_target_properties(${ProjectName} PROPERTIES DEBUG_OUTPUT_NAME ${OutputName}_d)
else(WIN32)
# FreeCADBase, SMDS, Driver, MEFISTO2 and area-native libs don't depend on parts from CMAKE_INSTALL_LIBDIR
if(NOT ${ProjectName} MATCHES "^(FreeCADBase|SMDS|Driver|MEFISTO2|area-native)$")
if(${ARGC} STREQUAL 4)
set_property(TARGET ${ProjectName} APPEND PROPERTY INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}${ARGV3})
else(${ARGC} STREQUAL 4)
set_property(TARGET ${ProjectName} APPEND PROPERTY INSTALL_RPATH ${CMAKE_INSTALL_LIBDIR})
endif()
endif()
endif(WIN32)
# FreeCADBase, SMDS, Driver, MEFISTO2 and area-native libs don't depend on parts from CMAKE_INSTALL_LIBDIR
if(NOT ${ProjectName} MATCHES "^(FreeCADBase|SMDS|Driver|MEFISTO2|area-native)$")
if(${ARGC} STREQUAL 4)
set_property(TARGET ${ProjectName} APPEND PROPERTY INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}${ARGV3})
else(${ARGC} STREQUAL 4)
set_property(TARGET ${ProjectName} APPEND PROPERTY INSTALL_RPATH ${CMAKE_INSTALL_LIBDIR})
endif()
endif()
endif(WIN32)
ENDMACRO(SET_BIN_DIR)
# Set python prefix & suffix together
@@ -255,8 +253,8 @@ MACRO(SET_PYTHON_PREFIX_SUFFIX ProjectName)
if(WIN32)
set_target_properties(${ProjectName} PROPERTIES SUFFIX ".pyd")
# 0000661: cmake build on Mac OS: dealing with dylib versus so
elseif(APPLE)
# 0000661: cmake build on Mac OS: dealing with dylib versus so
elseif(APPLE)
set_target_properties(${ProjectName} PROPERTIES SUFFIX ".so")
endif(WIN32)
ENDMACRO(SET_PYTHON_PREFIX_SUFFIX)
ENDMACRO(SET_PYTHON_PREFIX_SUFFIX)
+42 -4
View File
@@ -7,10 +7,48 @@ set(OCE_DIR ${FREECAD_LIBPACK_DIR}/lib/cmake CACHE PATH "" FORCE)
set(SWIG_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/swig/swig.exe CACHE FILEPATH "Swig" FORCE)
set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe CACHE FILEPATH "" FORCE)
set(PYTHON_LIBRARY ${FREECAD_LIBPACK_DIR}/lib/python27.lib CACHE FILEPATH "" FORCE)
set(PYTHON_DEBUG_LIBRARY ${FREECAD_LIBPACK_DIR}/lib/python27_d.lib CACHE FILEPATH "" FORCE)
set(PYTHON_INCLUDE_DIR ${FREECAD_LIBPACK_DIR}/include/python2.7 CACHE PATH "" FORCE)
#set(PYTHON_EXECUTABLE ${FREECAD_LIBPACK_DIR}/bin/python.exe CACHE FILEPATH "" FORCE)
#set(PYTHON_LIBRARY ${FREECAD_LIBPACK_DIR}/lib/python27.lib CACHE FILEPATH "" FORCE)
#set(PYTHON_DEBUG_LIBRARY ${FREECAD_LIBPACK_DIR}/lib/python27_d.lib CACHE FILEPATH "" FORCE)
#set(PYTHON_INCLUDE_DIR ${FREECAD_LIBPACK_DIR}/include/python2.7 CACHE PATH "" FORCE)
if (BUILD_QT5)
# default Qt5 stuff
# Set paths to cmake config files for each Qt module
set(Qt5_ROOT_DIR ${FREECAD_LIBPACK_DIR} CACHE PATH "")
set (Qt5_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5 CACHE PATH "")
set (Qt5AxBase_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5AxBase CACHE PATH "")
set (Qt5AxContainer_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5AxContainer CACHE PATH "")
set (Qt5AxServer_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5AxServer CACHE PATH "")
set (Qt5Concurrent_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Concurrent CACHE PATH "")
set (Qt5Core_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Core CACHE PATH "")
set (Qt5DBus_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5DBus CACHE PATH "")
set (Qt5Designer_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Designer CACHE PATH "")
set (Qt5Gui_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Gui CACHE PATH "")
set (Qt5Help_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Help CACHE PATH "")
set (Qt5LinguistTools_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5LinguistTools CACHE PATH "")
set (Qt5Multimedia_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Multimedia CACHE PATH "")
set (Qt5MultimediaWidgets_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5MultimediaWidgets CACHE PATH "")
set (Qt5Network_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Network CACHE PATH "")
set (Qt5OpenGL_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5OpenGL CACHE PATH "")
set (Qt5OpenGLExtensions_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5OpenGLExtensions CACHE PATH "")
set (Qt5PrintSupport_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5PrintSupport CACHE PATH "")
set (Qt5Qml_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Qml CACHE PATH "")
set (Qt5Quick_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Quick CACHE PATH "")
set (Qt5QuickTest_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5QuickTest CACHE PATH "")
set (Qt5QuickWidgets_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5QuickWidgets CACHE PATH "")
set (Qt5Sql_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Sql CACHE PATH "")
set (Qt5Svg_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Svg CACHE PATH "")
set (Qt5Test_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Test CACHE PATH "")
set (Qt5UiPlugin_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5UiPlugin CACHE PATH "")
set (Qt5UiTools_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5UiTools CACHE PATH "")
set (Qt5Widgets_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Widgets CACHE PATH "")
set (Qt5Xml_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5Xml CACHE PATH "")
set (Qt5XmlPatterns_DIR ${Qt5_ROOT_DIR}/lib/cmake/Qt5XmlPatterns CACHE PATH "")
endif (BUILD_QT5)
find_library(XercesC_LIBRARIES xerces-c_3 "${FREECAD_LIBPACK_DIR}/lib")
find_library(XercesC_DEBUG_LIBRARIES xerces-c_3D "${FREECAD_LIBPACK_DIR}/lib")
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+22 -17
View File
@@ -1,23 +1,28 @@
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_PREFIX_PATH=$PREFIX \
-DBUILD_QT5=ON \
-DNETGENDATA=$PREFIX/include/netgen \
-DNETGEN_INCLUDEDIR=$PREFIX/include/netgen \
-DNGLIB_INCLUDE_DIR=$PREFIX/include/nglib \
-DOCC_INCLUDE_DIR=$PREFIX/include/opencascade \
-DOCC_LIBRARY_DIR=$PREFIX/lib \
-DOCC_LIBRARIES=$PREFIX/lib CACHE PATH \
-DFREECAD_USE_OCC_VARIANT="Official Version" \
-DOCC_OCAF_LIBRARIES=$PREFIX/lib CACHE PATH \
-DSWIG_DIR=$PREFIX/share/swig/3.0.8 \
-DSWIG_EXECUTABLE=$PREFIX/bin/swig \
-DPYTHON_EXECUTABLE=$PYTHON \
-DBUILD_FEM_NETGEN=YES \
-DUSE_BOOST_PYTHON=NO \
cmake -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=$PREFIX \
-D CMAKE_PREFIX_PATH=$PREFIX \
-D CMAKE_LIBRARY_PATH=$PREFIX/lib \
-D BUILD_QT5=ON \
-D NETGENDATA=$PREFIX/include/netgen \
-D NETGEN_INCLUDEDIR=$PREFIX/include/netgen \
-D NGLIB_INCLUDE_DIR=$PREFIX/include/nglib \
-D OCC_INCLUDE_DIR=$PREFIX/include/opencascade \
-D OCC_LIBRARY_DIR=$PREFIX/lib \
-D OCC_LIBRARIES=$PREFIX/lib CACHE PATH \
-D FREECAD_USE_OCC_VARIANT="Official Version" \
-D OCC_OCAF_LIBRARIES=$PREFIX/lib CACHE PATH \
-D SWIG_DIR=$PREFIX/share/swig/3.0.8 \
-D SWIG_EXECUTABLE=$PREFIX/bin/swig \
-D PYTHON_EXECUTABLE=$PYTHON \
-D BUILD_FEM_NETGEN=YES \
-D USE_BOOST_PYTHON=NO \
-D FREECAD_USE_PYBIND11=YES \
-D BUILD_ENABLE_CXX11=ON \
-D SMESH_INCLUDE_DIR=$PREFIX/include/smesh \
-D FREECAD_USE_EXTERNAL_SMESH=ON \
/source
make -j${CPU_COUNT} 2>&1 | tee output.txt
+22 -18
View File
@@ -1,38 +1,41 @@
package:
name: freecad_daily
version: 0.17
version: 0.18
build:
number: 0
requirements:
build:
- nomkl # [unix]
- toolchain
- gcc # [unix]
- vc 14 # [win and py>=35]
- ninja # [win and py>=35]
- ninja
- cmake
- nomkl # [unix]
- swig
- eigen
- boost-cpp 1.66.0
- pybind11 # [unix]
- boost 1.66.0 # [win]
- pybind11 # [unix]
- python
- matplotlib
- coin3d
- pivy
- qt 5.*
- pyside2 2.0.0.dev0 py36_0 # [unix]
- pyside2 2.0.0.dev0 py36_vc14_0 # [win]
- qt 5.6.*
- pyside2 5.6.*
- occt 7.2.0
- netgen
- vtk 8.*
- libmed
- smesh
- netgen # [not win32]
- vtk 8.1.*
- hdf5
- xerces-c 3.2.0
- xerces-c 3.2.*
- zlib 1.2.*
- doxygen
- git
- libglu # [linux]
run:
- libgcc # [unix]
- vc 14 # [win and py>=35]
- boost-cpp 1.66.0
- boost 1.66.0 # [win]
@@ -41,16 +44,17 @@ requirements:
- matplotlib
- coin3d
- pivy
- qt 5.*
- pyside2
- occt
- netgen
- vtk 8.*
- libmed
- xerces-c 3.2.0
- qt 5.6.*
- pyside2 5.6.*
- occt 7.2.0
- vtk 8.1.*
- smesh
- netgen # [not win32]
- xerces-c 3.2.*
- zlib 1.2*
- git
- calculix # [unix]
- libglu # [linux]
about:
summary: freecad
-305
View File
@@ -1,305 +0,0 @@
freecad (0.15-1precise3) precise; urgency=low
* control: added netgen-headers to Build Depends.
-- Normand Chamberland <gemnoc@gmail.com> Sat, 04 Apr 2015 11:14:23 -0400
freecad (0.15-1precise2) precise; urgency=low
* control: added pyside-tools to build deps, broke down python-pyside depends
-- Normand Chamberland <gemnoc@gmail.com> Thu, 06 Nov 2014 22:10:44 -0500
freecad (0.15-1precise1) precise; urgency=low
* Bumped version number as per upstream version
-- Normand Chamberland <gemnoc@gmail.com> Thu, 07 Aug 2014 11:34:39 -0400
freecad (0.14-1precise2) precise; urgency=low
* Set new version number.
-- Werner Mayer <wmayer@users.sourceforge.net> Sat, 13 Jul 2013 12:53:55 +0200
freecad (0.13-1precise2) precise; urgency=low
* Fix hard dependency on libgl1-mesa-glx preventing installation on
Ubuntu 12.04.2 with LTSEnablementStack. Removal of shlibs.local file
and libgl1-mesa-dev deleted from BuildDeps.
* Removed version number from libsoqt4-dev BD.
-- Normand Chamberland <gemnoc@gmail.com> Sun, 05 May 2013 18:31:47 -0400
freecad (0.13-1precise1) precise; urgency=low
* New release for Ubuntu 12.04 (precise)
-- Normand Chamberland <gemnoc@gmail.com> Sun, 06 May 2012 14:38:12 -0400
freecad (0.11.3729.dfsg-2) unstable; urgency=low
* Add gfortran and libopencascade-visualization-dev to BD
to fix FTBFS (closes: #622694)
* Add libqtwebkit-dev to BD (closes: #618241)
* Delete quilt from BD and corresponding changes in rules.
* Add description to freecad-occ650.patch
* Delete encoding string from .desktop
* Fix some spelling errors, pointed out by lintian.
-- Anton Gladky <gladky.anton@gmail.com> Thu, 14 Apr 2011 10:23:25 +0100
freecad (0.11.3729.dfsg-1) unstable; urgency=low
[ Denis Barbier ]
* Merge OpenCASCADE 6.5.0 compatibility patch (closes: #617545).
[ Adam C. Powell, IV ]
* New upstream (closes: #622213, #618241).
* Changed to source format 3.0 (quilt).
* Added patch target which forces autotools to run, and automake and autoconf
are now in Build-Depends (closes: #607181).
* Set aside src/Build/Version.h to prevent build problems.
* Does not install .la files (closes: #621298).
* Boost 1.46 compatibility patch (closes: #621877).
* Set aside files which autotools modifies so clean works.
* Added libtool to Build-Depends (thanks: PICCA Frédéric-Emmanuel).
* Bumped Standards-Version, no changes needed.
-- "Adam C. Powell, IV" <hazelsct@debian.org> Tue, 12 Apr 2011 23:40:30 -0400
freecad (0.10.3247.dfsg-2ubuntu3) natty; urgency=low
* Fix build failure with ld --as-needed.
-- Matthias Klose <doko@ubuntu.com> Wed, 15 Dec 2010 01:12:39 +0100
freecad (0.10.3247.dfsg-2ubuntu2) natty; urgency=low
* Rebuild with python 2.7 as the python default.
-- Matthias Klose <doko@ubuntu.com> Thu, 09 Dec 2010 16:46:45 +0000
freecad (0.10.3247.dfsg-2ubuntu1) natty; urgency=low
* Merge from debian unstable. Remaining changes:
- build on libqtwebkit-dev for qtwebkit transition
-- Bhavani Shankar <bhavi@ubuntu.com> Wed, 20 Oct 2010 08:40:53 +0530
freecad (0.10.3247.dfsg-2) unstable; urgency=low
* control:
- Update to standars-version 3.9.0.
- Remove libblas-dev, libatlas-dev from build-deps.
* Add debian/shlibs.local file containing the correct binary dep
to libsoqt4-20 (closes: #575239).
* copyright: Add a verbatim copy of Tiddlywiki BSD license. Fixes
the lintian warning copyright-refers-to-deprecated-bsd-license-file.
* Add kFreeBSD portability fixes. Thanks to Petr Salinger
<Petr.Salinger@seznam.cz> for the patch (closes: #592461).
-- Teemu Ikonen <tpikonen@gmail.com> Wed, 18 Aug 2010 19:34:36 +0200
freecad (0.10.3247.dfsg-1ubuntu2) maverick; urgency=low
* Rebuild on libqtwebkit-dev for qtwebkit transition
-- Jonathan Riddell <jriddell@ubuntu.com> Wed, 21 Jul 2010 10:06:31 +0100
freecad (0.10.3247.dfsg-1ubuntu1) maverick; urgency=low
* Merge from Debian unstable, remaining changes:
- debian/control: Build-Depends on libqt4-webkit-dev due to
QtWebKit is no longer part of libqt4-dev (LP: #604078)
-- Artur Rona <ari-tczew@tlen.pl> Sat, 10 Jul 2010 21:06:47 +0200
freecad (0.10.3247.dfsg-1) unstable; urgency=low
* New upstream version (closes: #582627)
* Add debian/source/format file with contents "1.0".
* Use freecad.xpm as icon in menu and desktop files.
* copyright: Add licensing information for new files in this release.
* src/Base/Makefile.in, src/Gui/Makefile.in: Do not remove *.tab.c files
in make distclean target.
* control:
- Add build-dep to libeigen2-dev.
- Update to standards-version 3.8.4.
-- Teemu Ikonen <tpikonen@gmail.com> Mon, 05 Jul 2010 15:07:49 +0200
freecad (0.9.2646.5.dfsg-1ubuntu1) maverick; urgency=low
* Add build-dep on libqt4-webkit-dev to fix FTBFS with Qt 4.7
-- Scott Kitterman <scott@kitterman.com> Sat, 19 Jun 2010 00:37:12 -0400
freecad (0.9.2646.5.dfsg-1) unstable; urgency=low
* Add 'dfsg' extension to upstream version, upstream sources are unchanged.
* Remove libgl1-mesa-dev build-dep, rely on libcoin to pull in GL libraries.
* Change build-dep libatlas-headers to libatlas-dev (closes: #577309).
-- Teemu Ikonen <tpikonen@gmail.com> Fri, 14 May 2010 17:20:35 +0200
freecad (0.9.2646.5-1) unstable; urgency=low
* New upstream version (closes: #561696).
* Added swig to Build-Depends (closes: #563523, #563772).
* Removed python-opencv from Build-Depends and Recommends (closes: #560768).
-- Adam C. Powell, IV <hazelsct@debian.org> Mon, 11 Jan 2010 08:48:33 -0500
freecad (0.9.2646.4-1) unstable; urgency=low
* New upstream version (closes: #559849, #559846).
-- Adam C. Powell, IV <hazelsct@debian.org> Fri, 11 Dec 2009 20:21:32 -0500
freecad (0.9.2646.3-1) unstable; urgency=low
* New upstream version. Removes TiddlySaver.jar, fixes help problems.
-- Teemu Ikonen <tpikonen@gmail.com> Thu, 03 Dec 2009 19:39:27 +0100
freecad (0.9.2646-1) unstable; urgency=low
[ Werner Mayer ]
* New upstream release
* In-source copy of PyCXX has been dropped (closes: #547936)
* In-source copy of zipios++ has been dropped (closes: #547941)
* Change build-dependency on python2.5-dev to python-dev
* Add freecad-doc binary package
* Remove Suggestion of a chm viewer, suggest freecad-doc instead
[ Teemu Ikonen ]
* Add override to dh_compress
* Add versioned build-deb to debhelper (>= 7.0.50)
* Add build-deps to libzipios++-dev and python-cxx-dev.
-- Teemu Ikonen <tpikonen@gmail.com> Tue, 17 Nov 2009 14:22:00 +0100
freecad (0.8.2237-2) unstable; urgency=low
* Added libboost-python-dev to Build-Depends (closes: #549738).
* Added myself to uploaders list.
* Bumped Standards-Version.
-- Adam C. Powell, IV <hazelsct@debian.org> Thu, 12 Nov 2009 12:02:42 -0500
freecad (0.8.2237-1) unstable; urgency=low
* New Upstream release
-- Teemu Ikonen <tpikonen@gmail.com> Thu, 16 Jul 2009 18:37:41 +0200
freecad (0.7.1658-1) UNRELEASED; urgency=low
* New upstream release
-- Teemu Ikonen <tpikonen@gmail.com> Mon, 20 Oct 2008 15:35:58 +0200
freecad (0.7.1514-1) UNRELEASED; urgency=low
* New upstream version
* Add more stuff to the copyright file
* control: add build-dep to python-central
-- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
freecad (0.7.1350-1hardy1) UNRELEASED; urgency=low
* Package for Ubuntu 8.04 (Hardy Heron)
-- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
freecad (0.7.1350-1gutsy1) UNRELEASED; urgency=low
* Backport to Ubuntu 7.10 (Gutsy Gibbon)
-- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
freecad (0.7.1350-1feisty1) UNRELEASED; urgency=low
* Backport to Ubuntu 7.04 (Feisty Fawn)
-- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
freecad (0.7.1350-1) UNRELEASED; urgency=low
* New upstream release from sf.net
* Import to debian-science repository at git.debian.org
* control:
- Update to standards-version 3.7.3
- Add Vcs-* fields pointing to git.debian.org
- Improve descriptions
* Convert copyright to (pseudo) machine readable format, audit source
* Fix categories in .desktop file
* Change Section to Science/Engineering in .doc-base and menu files
* rules: do not ignore errors on clean target, add dh_desktop call
-- Teemu Ikonen <tpikonen@gmail.com> Tue, 05 Aug 2008 18:58:07 +0200
freecad (0.7.1344-1ubuntu2) UNRELEASED; urgency=low
* New package with fixed self-dependency problem
-- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
freecad (0.7.1344-1ubuntu1) UNRELEASED; urgency=low
* New debian package for Feisty
-- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
freecad (0.7.1344-1) UNRELEASED; urgency=low
* Write patch file to make builds with OpenCASCADE libs inside but with no
dependency to libopencascade6.2
-- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
freecad (0.7.1343-1) UNRELEASED; urgency=low
* Embed required OpenCASCADE libs into this package as long as no official
Debian package is available
-- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
freecad (0.7.1342-1) UNRELEASED; urgency=low
* Switch to new versioning scheme of OpenCASCADE packages
-- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
freecad (0.7.1316-1) UNRELEASED; urgency=low
* Support of pivy (Python binding for Coin/SoQt)
* Support of PyQt4
* General support of SWIG modules
-- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
freecad (0.7.1031-1) UNRELEASED; urgency=low
* Qt4 port finished
* Support of Python binding for Qt4
* Support of Python binding for Coin
* Support of entirely in Python written modules
* Added support of model driven architecture for Python binding
* Use boost's signal/slot mechanism to update data
-- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
freecad (0.7.645-1) UNRELEASED; urgency=low
* Qt4 port started
-- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
freecad (0.6.472-1) UNRELEASED; urgency=low
* Initial Release
-- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
-1
View File
@@ -1 +0,0 @@
7
-69
View File
@@ -1,69 +0,0 @@
Source: freecad
Section: science
Priority: extra
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Uploaders: Teemu Ikonen <tpikonen@gmail.com>, "Adam C. Powell, IV" <hazelsct@debian.org>, Anton Gladky <gladky.anton@gmail.com>
Vcs-Browser: http://git.debian.org/?p=debian-science/packages/freecad.git
Vcs-Git: git://git.debian.org/git/debian-science/packages/freecad.git
Homepage: http://www.freecadweb.org/
Build-Depends: debhelper (>= 7.0.50~), cmake,
libboost-dev, libboost-date-time-dev, libboost-filesystem-dev,
libboost-graph-dev, libboost-iostreams-dev, libboost-program-options-dev,
libboost-regex-dev, libboost-serialization-dev, libboost-signals-dev,
libboost-thread-dev, libboost-python-dev, python-dev, python-support,
libqt4-dev, libxt-dev, libxext-dev, libxmu-dev, libxi-dev, libx11-dev,
libcoin60-dev, libsoqt4-dev, libeigen3-dev,
zlib1g-dev, libxerces-c2-dev, liboce-foundation-dev,
liboce-modeling-dev, liboce-ocaf-dev, liboce-visualization-dev,
python-cxx-dev, libswscale-dev, libzipios++-dev, swig, gfortran,
f2c, libqtwebkit-dev, libspnav-dev, libfreetype6-dev, libfreeimage-dev,
libpyside-dev, libshiboken-dev, pyside-tools, netgen-headers
Standards-Version: 3.9.3
Package: freecad
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-pyside.qtcore,
python-pyside.qtsvg, python-pyside.qtuitools
Recommends: python-pivy, python
Suggests: freecad-doc
Description: Extensible Open Source CAx program (beta)
FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
It features some key concepts like macro recording, workbenches, ability
to run as a server and dynamically loadable application extensions and
it is designed to be platform independent.
.
Currently, FreeCAD can import and display CAD models in IGES, STEP, and
BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
Editing and modeling features are currently somewhat limited.
Package: freecad-dev
Architecture: any
Section: libdevel
Depends: ${shlibs:Depends}, ${misc:Depends}, freecad (= ${binary:Version})
Description: FreeCAD development files
FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
It features some key concepts like macro recording, workbenches, ability
to run as a server and dynamically loadable application extensions and
it is designed to be platform independent.
For more details see http://sourceforge.net/projects/free-cad
.
This package contains headers and symlinks necessary to
develop modules for FreeCAD.
Package: freecad-doc
Architecture: all
Section: doc
Depends: ${misc:Depends}, qt4-dev-tools
Description: FreeCAD documentation
FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
It features some key concepts like macro recording, workbenches, ability
to run as a server and dynamically loadable application extensions and
it is designed to be platform independent.
For more details see http://sourceforge.net/projects/free-cad
.
This package contains the FreeCAD documentation.
.
The documentation is provided in Qt's new help format;
the new help format version can be viewed in conjunction with the Qt Assistant
found in the qt4-dev-tools package.
-275
View File
@@ -1,275 +0,0 @@
Format: http://dep.debian.net/deps/dep5/
Upstream-Contact: Werner Mayer <wmayer@users.sourceforge.net>
X-Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
X-Packaged-Date: 2006-09-26_16:55:15+02:00
Source: http://sourceforge.net/projects/free-cad
Files: *
Copyright: 2001-2009 Jürgen Riegel <juergen.riegel@web.de>,
Werner Mayer <wmayer@users.sourceforge.net>
License: LGPL-2+
This package is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
.
You should have received a copy of the GNU Lesser General Public
License along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
.
On Debian systems, the complete text of the GNU Lesser General Public
License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
Files: src/3rdParty/boost/numeric/bindings/*
Copyright: 2002-2008 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
Andreas Kloeckner, Jeremy Conlin, Thomas Klimpel, Fabien Dekeyser,
Quoc-Cuong Pham, Si-Lab b.v.b.a., Joerg Walter
License: other-boost-1.0
Boost Software License - Version 1.0 - August 17th, 2003
.
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
.
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
Files: src/3rdParty/boost/numeric/bindings/lapack/lapack.hpp,
src/3rdParty/boost/numeric/bindings/traits/std_valarray.hpp
Copyright: 2003 Toon Knapen, Kresimir Fresl, Karl Meerbergen
License: other
* Permission to copy, modify, use and distribute this software
* for any non-commercial or commercial purpose is granted provided
* that this license appear on all copies of the software source code.
*
* Authors assume no responsibility whatsoever for its use and makes
* no guarantees about its quality, correctness or reliability.
*
* KF acknowledges the support of the Faculty of Civil Engineering,
* University of Zagreb, Croatia.
Files: src/Base/Base64.*
Copyright: 2004-2008 Rene Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
License: other
This source code is provided 'as-is', without any express or implied
warranty. In no event will the author be held liable for any damages
arising from the use of this software.
.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
.
1. The origin of this source code must not be misrepresented; you must not
claim that you wrote the original source code. If you use this source code
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original source code.
.
3. This notice may not be removed or altered from any source distribution.
Files: src/Base/fdstream.hpp
Copyright: 2001 Nicolai M. Josuttis
License: other
Permission to copy, use, modify, sell and distribute this software
is granted provided this copyright notice appears in all copies.
This software is provided "as is" without express or implied
warranty, and with no claim as to its suitability for any purpose.
Files: src/Base/gzstream.*
Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
License: LGPL-2.1+
Files: src/Base/PyTools.*
Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
License: other
Permission to use, copy, modify, and distribute this software
for any purpose and without fee is hereby granted. This software
is provided on an as is basis, without warranties of any kind.
Files: src/Doc/Start_Page.html
Copyright: 2004-2009 UnaMesa Association
License: BSD
Copyright (c) UnaMesa Association 2004-2009
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
.
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
.
Neither the name of the UnaMesa Association nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS
IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Files: src/Doc/Start_Page.html
Copyright: 2009 John Resig
License: GPL-2 or MIT
On Debian systems, the complete text of the GNU General Public License
version 2 can be found in '/usr/share/common-licenses/GPL-2'.
License: MIT
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Files: src/Doc/Start_Page.html
Copyright: 2009 The Dojo Foundation, http://sizzlejs.com/
License: GPL-2 or MIT or BSD
Files: src/Gui/iisTaskPanel/src/*
Copyright: http://www.ii-system.com
License: LGPL
Files: src/Mod/Draft/*
Copyright: Yorik van Havre, Werner Mayer, Martin Burbaum
License: GPL-2+
Files: src/Mod/Draft/draftlibs/dxf*
Copyright: 2005-2008 Ed Blake, Remigiusz Fiedler, Stani Michiels
License: GPL-2+
Files: src/Mod/Draft/WorkingPlane.py
Copyright: 2009-2010 Ken Cline <cline@frii.com>
License: GPL-2+
Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
src/Mod/Mesh/App/Core/*
Copyright: 2005 Imetric 3D GmbH
License: LGPL-2+
Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
License: LGPL-2+
Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*
Copyright: 2005 Berthold Grupp
License: LGPL-2+
Files: src/Mod/Mesh/BuildRegularGeoms.py
Copyright: 2005 Berthold Grupp
License: LGPL
Files: src/Mod/Image/App/ImageBase.*, src/Mod/Image/Gui/GLImageBox.*,
src/Mod/Image/Gui/ImageView.*, src/Mod/Image/Gui/XpmImages.h
Copyright: 2004 Imetric 3D GmbH
License: LGPL-2+
Files: src/Mod/Mesh/App/Core/tritritest.h
Copyright: 1997 Tomas Moller <tam@cs.lth.se>
License: other
tritritest.h has no licensing information, but Tomas Moller replied
the following, when asked about it:
.
The code is free to use for anyone and any projects, but I give no
warranties.
Files: src/Mod/Mesh/App/WildMagic4/*
Copyright: 1998-2007 David Eberly http://www.geometrictools.com
License: LGPL-2.1+
Files: src/Mod/Part/App/edgecluster.*
Copyright: 2010 Joachim Zettler <Joachim.Zettler@gmx.de>
License: LGPL-2+
Files: src/Mod/Raytracing/App/resources/*
Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
Juergen Riegel <juergen.riegel@web.de>
License: LGPL-2+
Files: src/Mod/Sketcher/App/sketchflat/*
Copyright: 2008 Jonathan Westhues
License: GPL-3+
On Debian systems, the complete text of the GNU General Public License
version 3 can be found in '/usr/share/common-licenses/GPL-3'.
Files: src/Mod/Sketcher/App/sketchsolve_cp/*
Copyright: 2009 Jonathan George
License: BSD
Files: src/Mod/Test/unittestgui.py
Copyright: 1999-2001 Steve Purcell
License: PSF
This module is free software, and you may redistribute it and/or modify
it under the same terms as Python itself, so long as this copyright message
and disclaimer are retained in their original form.
.
IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
.
THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
Files: src/Mod/Part/MakeBottle.py, src/Tools/*
Copyright: 2002-2008 Jürgen Riegel <juergen.riegel@web.de>,
Werner Mayer <wmayer@users.sourceforge.net>
License: GPL-2+
Files: src/Tools/generateBase/generateDS.py
Copyright: 2003 Dave Kuhlman
License: MIT
Files: debian/*
Copyright: 2007-2009 Werner Mayer <wmayer@users.sourceforge.net>,
Teemu Ikonen <tpikonen@gmail.com>
License: LGPL-2+
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-997
View File
@@ -1,997 +0,0 @@
--- freecad-0.8.2237.orig/debian/changelog
+++ freecad-0.8.2237/debian/changelog
@@ -0,0 +1,155 @@
+freecad (0.8.2237-1intrepid1) intrepid; urgency=low
+
+ * New release for Ubuntu 8.10 (Intrepid Ibex)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 11 Jul 2009 20:36:40 +0200
+
+freecad (0.7.2008-1intrepid1) intrepid; urgency=low
+
+ * New release for Ubuntu 8.10 (Intrepid Ibex)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 21 Mar 2009 19:23:57 +0100
+
+freecad (0.7.1779-1intrepid1) intrepid; urgency=low
+
+ * New release for Ubuntu 8.10 (Intrepid Ibex)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 14 Dec 2008 15:20:54 +0200
+
+freecad (0.7.1658-1intrepid1) intrepid; urgency=low
+
+ * New release for Ubuntu 8.10 (Intrepid Ibex)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 12 Oct 2008 16:20:54 +0200
+
+freecad (0.7.1658-1hardy1) hardy; urgency=low
+
+ * New release for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 11 Oct 2008 18:45:20 +0200
+
+freecad (0.7.1658-1gutsy1) gutsy; urgency=low
+
+ * New release for Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 11 Oct 2008 15:56:27 +0200
+
+freecad (0.7.1525-1feisty1) feisty; urgency=low
+
+ * Activate MIME support in rules file
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 5 Aug 2008 21:27:46 +0200
+
+freecad (0.7.1522-1feisty1) feisty; urgency=low
+
+ * Package for Ubuntu 7.04 (Feisty Fawn)
+ * Abstract interface for geometric data types
+ * Avoid flickering of cursor when cutting several meshes at once
+ * Update to the latest debian policy version 3.7.3
+ * Several bugs fixed with Python GIL
+ * Providing a dev package for freecad
+ * Make TopoDS_Shape and Geom_Geometry classes accessible from Python
+ * Make Python interface for algorithms on shapes and geometries
+ * Support of mesh segments
+ * Add test/annotation object
+ * Add simple measurement facility
+ * Remove OpenCascade dependency in Mesh module
+ * Thumbnail facility added
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 04 Aug 2008 20:11:20 +0200
+
+freecad (0.7.1514-1) unstable; urgency=low
+
+ * New upstream version
+ * Add more stuff to the copyright file
+ * control: add build-dep to python-central
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
+
+freecad (0.7.1350-1hardy1) hardy; urgency=low
+
+ * Package for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
+
+freecad (0.7.1350-1gutsy1) gutsy; urgency=low
+
+ * Backport to Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
+
+freecad (0.7.1350-1feisty1) feisty; urgency=low
+
+ * Backport to Ubuntu 7.04 (Feisty Fawn)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
+
+freecad (0.7.1350-1) unstable; urgency=low
+
+ * Official release for version 0.7
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Fri, 23 May 2008 23:39:47 +0200
+
+freecad (0.7.1344-1ubuntu2) feisty; urgency=low
+
+ * New package with fixed self-dependency problem
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
+
+freecad (0.7.1344-1ubuntu1) feisty; urgency=low
+
+ * New debian package for Feisty
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
+
+freecad (0.7.1344-1) unstable; urgency=low
+
+ * Write patch file to make builds with OpenCASCADE libs inside but with no
+ dependency to libopencascade6.2
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
+
+freecad (0.7.1343-1) unstable; urgency=low
+
+ * Embed required OpenCASCADE libs into this package as long as no official
+ Debian package is available
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
+
+freecad (0.7.1342-1) unstable; urgency=low
+
+ * Switch to new versioning scheme of OpenCASCADE packages
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
+
+freecad (0.7.1316-1) unstable; urgency=low
+
+ * Support of pivy (Python binding for Coin/SoQt)
+ * Support of PyQt4
+ * General support of SWIG modules
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
+
+freecad (0.7.1031-1) unstable; urgency=low
+
+ * Qt4 port finished
+ * Support of Python binding for Qt4
+ * Support of Python binding for Coin
+ * Support of entirely in Python written modules
+ * Added support of model driven architecture for Python binding
+ * Use boost's signal/slot mechanism to update data
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
+
+freecad (0.7.645-1) unstable; urgency=low
+
+ * Qt4 port started
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
+
+freecad (0.6.472-1) unstable; urgency=low
+
+ * Initial Release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
+
--- freecad-0.8.2237.orig/debian/menu
+++ freecad-0.8.2237/debian/menu
@@ -0,0 +1,6 @@
+?package(freecad):needs="X11"\
+ section="Applications/Science/Engineering"\
+ title="FreeCAD"\
+ command="/usr/bin/freecad"\
+ icon="/usr/share/freecad/FCIcon.xpm"
+
--- freecad-0.8.2237.orig/debian/freecad.doc-base
+++ freecad-0.8.2237/debian/freecad.doc-base
@@ -0,0 +1,14 @@
+Document: freecad
+Title: FreeCAD Manual
+Author: Werner Mayer
+Abstract: An extensible Open Source CAx program for Unix/X11
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+Section: Science/Engineering
+
+Format: text
+Files: /usr/share/doc/freecad/README.Linux.gz
+
--- freecad-0.8.2237.orig/debian/compat
+++ freecad-0.8.2237/debian/compat
@@ -0,0 +1 @@
+5
--- freecad-0.8.2237.orig/debian/freecad.links
+++ freecad-0.8.2237/debian/freecad.links
@@ -0,0 +1,3 @@
+usr/lib/freecad/bin/FreeCAD usr/bin/freecad
+usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
+usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
--- freecad-0.8.2237.orig/debian/copyright
+++ freecad-0.8.2237/debian/copyright
@@ -0,0 +1,393 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Upstream-Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-Date: 2006-09-26_16:55:15+02:00
+Original-Source-Location: http://sourceforge.net/projects/free-cad
+
+Files: *
+Copyright: 2001-2008 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: LGPL-2+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: src/3rdParty/ANN/*
+Copyright: 1997-2005 University of Maryland and Sunil Arya and David Mount
+License: LGPL-2.1+
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: src/3rdParty/atlas/clapack.h
+Copyright: 1999 R. Clint Whaley
+License: BSD-3
+ On Debian systems, the complete text of the Three-clause BSD license
+ can be found in `/usr/share/common-licenses/BSD'.
+
+Files: src/3rdParty/boost/numeric/bindings/*
+Copyright: 2002-2004 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
+ Andreas Kloeckner, Matthias Troyer
+License: other
+ Permission to copy, modify, use and distribute this software
+ for any non-commercial or commercial purpose is granted provided
+ that this license appear on all copies of the software source code.
+ .
+ Author assumes no responsibility whatsoever for its use and makes
+ no guarantees about its quality, correctness or reliability.
+ .
+ Kresimir Fresl acknowledges the support of the Faculty of Civil Engineering,
+ University of Zagreb, Croatia.
+
+Files: src/3rdParty/boost/numeric/bindings/amos/*,
+ src/3rdParty/boost/numeric/bindings/blas/*,
+ src/3rdParty/boost/numeric/bindings/traits/config.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/fortran.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/matrix_raw.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/symm_herm_raw.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/vector_raw.hpp,
+Copyright: 2002-2003 Toon Knapen, Kresimir Fresl, Si-Lab b.v.b.a, Joerg Walter
+License: other
+ Permission to use, copy, modify, distribute and sell this software
+ and its documentation for any purpose is hereby granted without fee,
+ provided that the above copyright notice appear in all copies and
+ that both that copyright notice and this permission notice appear
+ in supporting documentation. The authors make no representations
+ about the suitability of this software for any purpose.
+ It is provided "as is" without express or implied warranty.
+
+Files: src/3rdParty/boost/numeric/bindings/traits/type.h
+Copyright: 2000,2001,2002,2003 Si-Lab b.v.b.a. and Toon Knapen
+License: other-non-free
+ * License is hereby granted to use and modify this software
+ * as long as this copyright notice is retained and modifications
+ * are clearly marked.
+ * This License does not permit you to redistribute this software.
+
+Files: src/3rdParty/boost/numeric/bindings/lapack/steqr.hpp,
+ src/3rdParty/boost/numeric/bindings/lapack/sytrd.hpp
+Copyright: 2007 Karl Meerbergen
+License: other
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/OCCAdaptMesh/*
+Copyright: 1991-2000 Matra Datavision SA, 2001-2004 Open CASCADE SA
+License: other
+ This file is part of the Open CASCADE Technology software.
+ .
+ This software may be distributed and/or modified under the terms and
+ conditions of the Open CASCADE Public License as defined by Open CASCADE SA
+ and appearing in the file LICENSE included in the packaging of this file.
+ .
+ This software is distributed on an "AS IS" basis, without warranty of any
+ kind, and Open CASCADE SA hereby disclaims all such warranties,
+ including without limitation, any warranties of merchantability, fitness
+ for a particular purpose or non-infringement. Please see the License for
+ the specific terms and conditions governing rights and limitations under the
+ License.
+
+Files: src/3rdParty/Pivy/*
+Copyright: 2002-2007 Systems in Motion
+License: other
+ Permission to use, copy, modify, and distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Files: src/Base/gzstream.*
+Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
+License: LGPL-2.1+
+
+Files: src/Base/PyCXX/*
+Copyright: ???
+License: ???
+
+Files: src/Base/PyTools.h
+Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
+License: other
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. This software
+ is provided on an as is basis, without warranties of any kind.
+
+Files: src/Base/zipios/*
+Copyright: 2000 Thomas Søndergaard
+License: LGPL-2+
+
+Files: src/Base/zipios/directory.*
+Copyright: 1998 Dietmar Kuehl, Claas Solutions GmbH
+License: other
+ Permission to use, copy, modify, distribute and sell this
+ software for any purpose is hereby granted without fee, provided
+ that the above copyright notice appears in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation. Dietmar Kuehl and Claas Solutions make no
+ representations about the suitability of this software for any
+ purpose. It is provided "as is" without express or implied warranty.
+
+Files: src/Gui/SoFCOffscreenRenderer.cpp
+Copyright: ???
+License: ???
+/*
+ * wrjpgcom.c
+ *
+ * Copyright (C) 1994, Thomas G. Lane.
+ * This file is part of the Independent JPEG Group's software.
+ * For conditions of distribution and use, see the accompanying README file.
+ *
+ * This file contains a very simple stand-alone application that inserts
+ * user-supplied text as a COM (comment) marker in a JFIF file.
+ * This may be useful as an example of the minimum logic needed to parse
+ * JPEG markers.
+ */
+
+Files: src/Mod/Cam/App/*
+Copyright: 2007 Joachim Zettler <Joachim.Zettler@gmx.de>,
+ Human Rezai <human@mytum.de>,
+ Mohamad Najib Muhammad Noor <najib_bean@yahoo.co.uk>,
+ Stephane Routelous <stephane.routelous@exotk.org>,
+ Jürgen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
+ src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
+ src/Mod/Mesh/App/Core/*
+Copyright: 2005 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
+ src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
+Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*,
+Copyright: 2005 Berthold Grupp
+License: LGPL-2+
+
+Files: src/Mod/Mesh/BuildRegularGeoms.py
+Copyright: 2005 Berthold Grupp
+License: ???
+
+Files: src/Mod/Drawing/Gui/DrawingView.*, src/Mod/Image/App/ImageBase.*,
+ src/Mod/Image/Gui/GLImageBox.*, src/Mod/Image/Gui/ImageView.*,
+ src/Mod/Image/Gui/XpmImages.h
+Copyright: ??? Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/triangle.cpp, src/Mod/Mesh/App/Core/triangle.h,
+ src/3rdParty/OCCAdaptMesh/src/TriangleAdapt/triangleAdapt.c,
+ src/3rdParty/OCCAdaptMesh/Include/triangleAdapt.h
+Copyright: 1993, 1995, 1997, 1998, 2002, 2005 Jonathan Richard Shewchuk
+License: other-non-free
+ /* This program may be freely redistributed under the condition that the *
+ /* copyright notices (including this entire header and the copyright *
+ /* notice printed when the `-h' switch is selected) are not removed, and *
+ /* no compensation is received. Private, research, and institutional *
+ /* use is free. You may distribute modified versions of this code UNDER *
+ /* THE CONDITION THAT THIS CODE AND ANY MODIFICATIONS MADE TO IT IN THE *
+ /* SAME FILE REMAIN UNDER COPYRIGHT OF THE ORIGINAL AUTHOR, BOTH SOURCE *
+ /* AND OBJECT CODE ARE MADE FREELY AVAILABLE WITHOUT CHARGE, AND CLEAR *
+ /* NOTICE IS GIVEN OF THE MODIFICATIONS. Distribution of this code as *
+ /* part of a commercial system is permissible ONLY BY DIRECT ARRANGEMENT *
+ /* WITH THE AUTHOR. (If you are not directly supplying this code to a *
+ /* customer, and you are instead telling them how they can obtain it for *
+ /* free, then you are not required to make any arrangement with me.) *
+
+Files: src/Mod/Mesh/App/Core/tritritest.h
+Copyright: 1997 Tomas Moller
+License: ???
+
+Files: src/Mod/Mesh/App/WildMagic4/*
+Copyright: 1998-2007 David Eberly http://www.geometrictools.com
+License: LGPL-2.1+
+
+Files: src/Mod/Raytracing/App/resources/*
+Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
+ Juergen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Mod/Test/unittestgui.py
+Copyright: 1999-2001 Steve Purcell
+License: PSF
+ This module is free software, and you may redistribute it and/or modify
+ it under the same terms as Python itself, so long as this copyright message
+ and disclaimer are retained in their original form.
+ .
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+ SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+ THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+Files: src/Tools/ImageTools/ImageConv/CmdLine.*,
+ src/Tools/ImageTools/ImageConv/cmdline.htm
+Copyright: 1999 Chris Losinger, Smaller Animals Software
+ http://www.smalleranimals.com
+License: ZLIB
+ This software is provided 'as-is', without any express
+ or implied warranty. In no event will the authors be
+ held liable for any damages arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software
+ for any purpose, including commercial applications, and
+ to alter it and redistribute it freely, subject to the
+ following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented;
+ you must not claim that you wrote the original software.
+ If you use this software in a product, an acknowledgment
+ in the product documentation would be appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such,
+ and must not be misrepresented as being the original software.
+ .
+ 3. This notice may not be removed or altered from any source
+ distribution.
+
+Files: src/Tools/generateBase/generateDS.py
+Copyright: 2003 Dave Kuhlman
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/atlas/cblas.h,
+ src/3rdParty/boost/numeric/bindings/traits/algorithm.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/transpose.hpp
+ src/3rdParty/boost/numeric/bindings/traits/type.hpp
+ src/App/ComplexGeoDataPyImp.cpp,
+ src/App/DocumentObjectPyImp.cpp
+ src/App/DocumentPyImp.cpp
+ src/App/Doxygen.cpp
+ src/App/FeaturePyImp.cpp
+ src/App/PreCompiled.cpp
+ src/App/PreCompiled.h
+ src/App/PropertyContainerPyImp.cpp
+ src/Base/BaseClassPyImp.cpp
+ src/Base/BoundBoxPyImp.cpp
+ src/Base/Doxygen.cpp
+ src/Base/PersistancePyImp.cpp
+ src/Base/PreCompiled.cpp
+ src/Base/PreCompiled.h
+ src/Base/PyExport.h
+ src/Base/PyTools.c
+ src/Base/VectorPyImp.cpp
+ src/Base/zipios/meta-iostreams.h
+ src/Gui/InventorAll.h
+ src/Gui/PreCompiled.cpp
+ src/Gui/PreCompiled.h
+ src/Gui/Qt4All.h
+ src/Gui/SoFCBoundingBox.cpp
+ src/Gui/SoFCBoundingBox.h
+ src/Mod/Cam/App/PreCompiled.h
+ src/Mod/Cam/App/PreCompiled.cpp
+ src/Mod/Cam/Gui/PreCompiled.h
+ src/Mod/Cam/Gui/PreCompiled.cpp
+ src/Mod/Drawing/App/PreCompiled.h
+ src/Mod/Drawing/App/PreCompiled.cpp
+ src/Mod/Drawing/Gui/PreCompiled.h
+ src/Mod/Drawing/Gui/PreCompiled.cpp
+ src/Mod/Drawing/Gui/AppDrawingGui.cpp
+ src/Mod/Image/App/CaptureClass.h
+ src/Mod/Image/App/PreCompiled.h
+ src/Mod/Image/App/CaptureClass.cpp
+ src/Mod/Image/App/PreCompiled.cpp
+ src/Mod/Image/Gui/PreCompiled.h
+ src/Mod/Image/Gui/PreCompiled.cpp
+ src/Mod/Import/App/PreCompiled.h
+ src/Mod/Import/App/PreCompiled.cpp
+ src/Mod/Import/Gui/PreCompiled.h
+ src/Mod/Import/Gui/PreCompiled.cpp
+ src/Mod/JtReader/App/PreCompiled.h
+ src/Mod/JtReader/App/JtReader.h
+ src/Mod/JtReader/App/PreCompiled.cpp
+ src/Mod/Mesh/App/Doxygen.cpp
+ src/Mod/Mesh/App/PreCompiled.h
+ src/Mod/Mesh/App/MeshPointPyImp.cpp
+ src/Mod/Mesh/App/PreCompiled.cpp
+ src/Mod/Mesh/Gui/Doxygen.cpp
+ src/Mod/Mesh/Gui/PreCompiled.h
+ src/Mod/Mesh/Gui/PreCompiled.cpp
+ src/Mod/Part/App/TopoShapeFacePyImp.cpp
+ src/Mod/Part/App/OpenCascadeAll.h
+ src/Mod/Part/App/PreCompiled.h
+ src/Mod/Part/App/TopoShapePyImp.cpp
+ src/Mod/Part/App/PreCompiled.cpp
+ src/Mod/Part/App/PartFeaturePyImp.cpp
+ src/Mod/Part/Gui/PreCompiled.h
+ src/Mod/Part/Gui/PreCompiled.cpp
+ src/Mod/Points/App/PreCompiled.h
+ src/Mod/Points/App/PreCompiled.cpp
+ src/Mod/Points/Gui/AppPointsGui.cpp
+ src/Mod/Points/Gui/PreCompiled.h
+ src/Mod/Points/Gui/PreCompiled.cpp
+ src/Mod/Raytracing/App/PreCompiled.h
+ src/Mod/Raytracing/App/PreCompiled.cpp
+ src/Mod/Raytracing/Gui/AppRaytracingGui.cpp
+ src/Mod/Raytracing/Gui/Command.cpp src
+ src/Mod/Raytracing/Gui/PreCompiled.h
+ src/Mod/Raytracing/Gui/PreCompiled.cpp
+ src/Mod/Test/Gui/PreCompiled.h
+ src/Mod/Test/Gui/PreCompiled.cpp
+Copyright: Not marked
+License: ???
--- freecad-0.8.2237.orig/debian/freecad.desktop
+++ freecad-0.8.2237/debian/freecad.desktop
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Name[de]=FreeCAD
+Comment=Feature based Parametric Modeler
+Comment[de]=Feature-basierter parametrischer Modellierer
+GenericName=CAD Application
+GenericName[de]=CAD-Anwendung
+Exec=/usr/bin/freecad %F
+Path=/usr/lib/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/FCIcon.xpm
+Categories=Graphics;Science;Engineering
+StartupNotify=true
+GenericName[de_DE]=Feature-basierter parametrischer Modellierer
+Comment[de_DE]=Feature-basierter parametrischer Modellierer
+MimeType=application/x-extension-fcstd
--- freecad-0.8.2237.orig/debian/control
+++ freecad-0.8.2237/debian/control
@@ -0,0 +1,50 @@
+Source: freecad
+Section: x11
+Priority: optional
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Homepage: http://sourceforge.net/projects/free-cad
+Build-Depends: debhelper (>= 5), autotools-dev, libc6-dev (>= 2.1.3),
+ libstdc++6, libboost1.35-dev, libboost-date-time1.35-dev, libboost-filesystem1.35-dev,
+ libboost-graph1.35-dev, libboost-iostreams1.35-dev, libboost-program-options1.35-dev,
+ libboost-regex1.35-dev, libboost-serialization1.35-dev, libboost-signals1.35-dev, libboost-system1.35-dev,
+ zlib1g-dev, libxerces27-dev | libxerces-c2-dev,
+ libxt-dev, libxmu-dev, libxi-dev, libx11-dev, libxext-dev,
+ libqt4-dev, libsoqt4-dev, libcoin40-dev, libgl1-mesa-dev,
+ python2.5-dev, python, python-central (>= 0.5.6),
+ libgts-dev, libcv-dev, libopencascade-dev
+Standards-Version: 3.7.3
+XS-Python-Version: current
+
+Package: freecad
+Architecture: any
+Section: science
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+XB-Python-Version: ${python:Versions}
+Conflicts: freecad (<= 0.6.472-1)
+Suggests: gnochm | kchmviewer | kchmviewer-nokde | xchm, python-opencv
+Description: An extensible Open Source CAx program (alpha)
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ .
+ Currently, FreeCAD can import and display CAD models in IGES, STEP, and
+ BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
+ Editing and modeling features are currently somewhat limited.
+
+Package: freecad-dev
+Architecture: any
+Section: libdevel
+Depends: freecad (>= ${source:Version})
+XB-Python-Version: ${python:Versions}
+Description: FreeCAD development files
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the libtool .la files, headers and symlinks necessary to
+ develop modules for FreeCAD.
+
+
--- freecad-0.8.2237.orig/debian/freecad.sharedmimeinfo
+++ freecad-0.8.2237/debian/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
--- freecad-0.8.2237.orig/debian/docs
+++ freecad-0.8.2237/debian/docs
@@ -0,0 +1,2 @@
+ChangeLog.txt
+README.Linux
--- freecad-0.8.2237.orig/debian/README.Debian
+++ freecad-0.8.2237/debian/README.Debian
@@ -0,0 +1,6 @@
+freecad for Debian
+------------------
+
+- First Debian package for FreeCAD.
+
+ -- Werner Mayer <wmayer@users.sourceforge.net>, Tue, 26 Sep 2006 16:55:15 +0200
--- freecad-0.8.2237.orig/debian/freecad.1
+++ freecad-0.8.2237/debian/freecad.1
@@ -0,0 +1,73 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+freecad \- An extensible Open Source CAx program for Unix/X11
+.SH SYNOPSIS
+.B freecad
+.RI [ options ] " files"
+.br
+.B freecadcmd
+.RI [ options ] " files"
+.SH DESCRIPTION
+.B FreeCAD
+is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
+some key concepts like macro recording, workbenches, ability to run as a
+server and dynamically loadable application extensions and it is designed
+to be platform independent.
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+.SH USAGE
+\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of the options supported by \fBfreecad\fR is included below.
+.SS "Generic options"
+.TP
+\fB\-h, \-\-help\fR
+Show summary of options.
+.TP
+\fB\-v, \-\-version\fR
+Show version of program.
+.TP
+\fB\-c, \-\-console\fR
+Start in console mode.
+.TP
+\fB\-\-response\-file\fR \fIarg\fR
+Can be specified with '@name', too.
+
+.SS "Configuration"
+.TP
+\fB\-l, \-\-write\-log\fR
+Write a log file.
+.TP
+\fB\-t, \-\-run\-test\fR \fIarg\fR
+Test level.
+.TP
+\fB\-M, \-\-module\-path\fR \fIarg\fR
+Additional module path.
+.TP
+\fB\-P, \-\-python\-path\fR \fIarg\fR
+Additional Python path.
+.SH SEE ALSO
+To get more information about \fBFreeCAD\fR, please visit \fIhttps://freecadweb.org/wiki\fR
+.SH BUGS
+To report a bug, please visit \fIhttps://freecadweb.org/tracker/\fR
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.8.2237.orig/debian/rules
+++ freecad-0.8.2237/debian/rules
@@ -0,0 +1,143 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing ReverseEngineering Complete
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: autogen.sh
+ chmod u+x autogen.sh
+ ./autogen.sh
+
+config.status: configure
+ dh_testdir
+# Add here commands to configure the package.
+ ./configure --with-occ-include=/usr/include/opencascade --with-occ-lib=/usr/lib \
+--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+--prefix=/usr/lib/freecad --mandir=/usr/share/man \
+--infodir=/usr/share/info --datadir=/usr/share/freecad \
+--includedir=/usr/include/freecad \
+CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+
+# Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/freecad.sgml > freecad.1
+
+ touch $@
+
+# Add here commands to clean up after the build process.
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ [ ! -f Makefile ] || $(MAKE) distclean
+ rm -f configure
+ dh_clean
+ find -name 'Makefile.in' | xargs rm -f
+ find -name '*.pyc' | xargs rm -f
+ find -name 'moc_*.cpp' | xargs rm -f
+ find -name '*.lo' | xargs rm -f
+ find -name '*.deps' | xargs rm -rf
+ find -name '*.libs' | xargs rm -rf
+ rm -f stamp-h1 aclocal.m4 config.guess config.sub depcomp install-sh
+ rm -f ltmain.sh missing config.log libtool
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+# Add here commands to install the package into debian/tmp/freecad.
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/freecad
+
+# install the core system
+ dh_install -pfreecad debian/tmp/freecad/usr/share/* usr/share/
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/share usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/bin usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/FreeCAD.so usr/lib/freecad/lib
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/lib*.so.* usr/lib/freecad/lib
+
+# install the modules
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/$(MODULE)*.so usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so.* usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/*.py usr/lib/freecad/Mod/$(MODULE);)
+
+# special treating of Draft module
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.py usr/lib/freecad/Mod/Draft
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.svg usr/lib/freecad/Mod/Draft
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.ui usr/lib/freecad/Mod/Draft
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/draftlibs/*.py usr/lib/freecad/Mod/Draft/draftlibs
+
+# special treating of Test module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/lib*.so.* usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/*.py usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/QtUnitGui.so usr/lib/freecad/Mod/Test
+
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/include/* usr/include
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.la usr/lib/freecad/lib
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.so usr/lib/freecad/lib
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.la usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so usr/lib/freecad/Mod/$(MODULE);)
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog.txt
+ dh_installdocs
+ dh_installexamples
+ dh_install debian/freecad.desktop usr/share/applications
+ dh_install debian/mime/freecad-thumbnailer usr/bin
+ dh_install debian/mime/freecad.schemas etc/gconf/schemas
+ dh_gconf -pfreecad
+ dh_desktop
+ dh_installmenu
+ dh_installmime
+ dh_pycentral
+# dh_installinfo
+# dh_installman debian/freecad.1
+ dh_installman debian/freecad.1 debian/mime/freecad-thumbnailer.1
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- freecad-0.8.2237.orig/debian/mime/freecad-thumbnailer.1
+++ freecad-0.8.2237/debian/mime/freecad-thumbnailer.1
@@ -0,0 +1,20 @@
+.TH FREECAD 1 "August 04, 2008" freecad "Linux User's Manual"
+.SH NAME
+freecad-thumbnailer \- A thumbnailer for FreeCAD project files
+.SH SYNOPSIS
+\fBfreecad-thumbnailer\fP [ -s \fIsize\fP ] \fIinput file\fP \fIoutput file\fP
+.SH DESCRIPTION
+\fBfreecad-thumbnailer\fP
+is a Python script that extracts an embedded thumbnail from a FreeCAD project file.
+If no thumbnail is embedded then nothing happens. According to the specification of
+freedesktop.org the thumbnail image is a PNG file. The required \fBinput file\fP argument
+specifies the project file where the thumbnail should be extracted from and the
+\fBoutput file\fP specifies the file where the thumbnail should be written to.
+.SH OPTIONS
+.TP
+\fB-s \fIsize\fR
+Specify the size of the image in pixel.
+.SH "SEE ALSO"
+freecad(1), freecadcmd(1)
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.8.2237.orig/debian/mime/freecad.schemas
+++ freecad-0.8.2237/debian/mime/freecad.schemas
@@ -0,0 +1,30 @@
+<gconfschemafile>
+ <schemalist>
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-extension-fcstd/enable</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-extension-fcstd/enable</applyto>
+ <owner>freecad</owner>
+ <type>bool</type>
+ <default>true</default>
+ <locale name="C">
+ <short>Enable thumbnailing of FreeCAD documents.</short>
+ <long>Enable thumbnailing of FreeCAD documents.</long>
+ </locale>
+ </schema>
+
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-extension-fcstd/command</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-extension-fcstd/command</applyto>
+ <owner>freecad</owner>
+ <type>string</type>
+ <default>/usr/bin/freecad-thumbnailer -s %s %u %o</default>
+ <locale name="C">
+ <short>Thumbnail command for documents from FreeCAD.</short>
+ <long>Valid command plus arguments for freecad-thumbnailer.</long>
+ </locale>
+ </schema>
+
+ </schemalist>
+</gconfschemafile>
--- freecad-0.8.2237.orig/debian/mime/freecad-thumbnailer
+++ freecad-0.8.2237/debian/mime/freecad-thumbnailer
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+
+import sys, zipfile, md5
+import getopt
+import gnomevfs
+
+opt,par = getopt.getopt(sys.argv[1:],'-s:')
+inpfile = gnomevfs.get_local_path_from_uri(par[0])
+outfile = par[1]
+
+try:
+ zfile=zipfile.ZipFile(inpfile)
+ files=zfile.namelist()
+ # check for meta-file if it's really a FreeCAD document
+ if files[0] != "Document.xml":
+ sys.exit(1)
+
+ image="thumbnails/Thumbnail.png"
+ if image in files:
+ image=zfile.read(image)
+ thumb=open(outfile,"wb")
+ thumb.write(image)
+ thumb.close()
+except:
+ sys.exit(1)
+
-997
View File
@@ -1,997 +0,0 @@
--- freecad-0.8.2237.orig/debian/control
+++ freecad-0.8.2237/debian/control
@@ -0,0 +1,50 @@
+Source: freecad
+Section: x11
+Priority: optional
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Homepage: http://sourceforge.net/projects/free-cad
+Build-Depends: debhelper (>= 5), autotools-dev, libc6-dev (>= 2.1.3),
+ libstdc++6, libboost1.37-dev, libboost-date-time1.37-dev, libboost-filesystem1.37-dev,
+ libboost-graph1.37-dev, libboost-iostreams1.37-dev, libboost-program-options1.37-dev,
+ libboost-regex1.37-dev, libboost-serialization1.37-dev, libboost-signals1.37-dev, libboost-system1.37-dev,
+ zlib1g-dev, libxerces27-dev | libxerces-c2-dev,
+ libxt-dev, libxmu-dev, libxi-dev, libx11-dev, libxext-dev,
+ libqt4-dev, libsoqt4-dev, libcoin40-dev, libgl1-mesa-dev,
+ python2.5-dev, python, python-central (>= 0.5.6),
+ libgts-dev, libcv-dev, libopencascade-dev
+Standards-Version: 3.8.0
+XS-Python-Version: current
+
+Package: freecad
+Architecture: any
+Section: science
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+XB-Python-Version: ${python:Versions}
+Conflicts: freecad (<= 0.6.472-1)
+Suggests: gnochm | kchmviewer | kchmviewer-nokde | xchm, python-opencv
+Description: An extensible Open Source CAx program (alpha)
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ .
+ Currently, FreeCAD can import and display CAD models in IGES, STEP, and
+ BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
+ Editing and modeling features are currently somewhat limited.
+
+Package: freecad-dev
+Architecture: any
+Section: libdevel
+Depends: freecad (>= ${source:Version}), ${misc:Depends}
+XB-Python-Version: ${python:Versions}
+Description: FreeCAD development files
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the libtool .la files, headers and symlinks necessary to
+ develop modules for FreeCAD.
+
+
--- freecad-0.8.2237.orig/debian/freecad.sharedmimeinfo
+++ freecad-0.8.2237/debian/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
--- freecad-0.8.2237.orig/debian/freecad.links
+++ freecad-0.8.2237/debian/freecad.links
@@ -0,0 +1,3 @@
+usr/lib/freecad/bin/FreeCAD usr/bin/freecad
+usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
+usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
--- freecad-0.8.2237.orig/debian/copyright
+++ freecad-0.8.2237/debian/copyright
@@ -0,0 +1,393 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Upstream-Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-Date: 2006-09-26_16:55:15+02:00
+Original-Source-Location: http://sourceforge.net/projects/free-cad
+
+Files: *
+Copyright: 2001-2008 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: LGPL-2+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: src/3rdParty/ANN/*
+Copyright: 1997-2005 University of Maryland and Sunil Arya and David Mount
+License: LGPL-2.1+
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: src/3rdParty/atlas/clapack.h
+Copyright: 1999 R. Clint Whaley
+License: BSD-3
+ On Debian systems, the complete text of the Three-clause BSD license
+ can be found in `/usr/share/common-licenses/BSD'.
+
+Files: src/3rdParty/boost/numeric/bindings/*
+Copyright: 2002-2004 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
+ Andreas Kloeckner, Matthias Troyer
+License: other
+ Permission to copy, modify, use and distribute this software
+ for any non-commercial or commercial purpose is granted provided
+ that this license appear on all copies of the software source code.
+ .
+ Author assumes no responsibility whatsoever for its use and makes
+ no guarantees about its quality, correctness or reliability.
+ .
+ Kresimir Fresl acknowledges the support of the Faculty of Civil Engineering,
+ University of Zagreb, Croatia.
+
+Files: src/3rdParty/boost/numeric/bindings/amos/*,
+ src/3rdParty/boost/numeric/bindings/blas/*,
+ src/3rdParty/boost/numeric/bindings/traits/config.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/fortran.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/matrix_raw.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/symm_herm_raw.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/vector_raw.hpp,
+Copyright: 2002-2003 Toon Knapen, Kresimir Fresl, Si-Lab b.v.b.a, Joerg Walter
+License: other
+ Permission to use, copy, modify, distribute and sell this software
+ and its documentation for any purpose is hereby granted without fee,
+ provided that the above copyright notice appear in all copies and
+ that both that copyright notice and this permission notice appear
+ in supporting documentation. The authors make no representations
+ about the suitability of this software for any purpose.
+ It is provided "as is" without express or implied warranty.
+
+Files: src/3rdParty/boost/numeric/bindings/traits/type.h
+Copyright: 2000,2001,2002,2003 Si-Lab b.v.b.a. and Toon Knapen
+License: other-non-free
+ * License is hereby granted to use and modify this software
+ * as long as this copyright notice is retained and modifications
+ * are clearly marked.
+ * This License does not permit you to redistribute this software.
+
+Files: src/3rdParty/boost/numeric/bindings/lapack/steqr.hpp,
+ src/3rdParty/boost/numeric/bindings/lapack/sytrd.hpp
+Copyright: 2007 Karl Meerbergen
+License: other
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/OCCAdaptMesh/*
+Copyright: 1991-2000 Matra Datavision SA, 2001-2004 Open CASCADE SA
+License: other
+ This file is part of the Open CASCADE Technology software.
+ .
+ This software may be distributed and/or modified under the terms and
+ conditions of the Open CASCADE Public License as defined by Open CASCADE SA
+ and appearing in the file LICENSE included in the packaging of this file.
+ .
+ This software is distributed on an "AS IS" basis, without warranty of any
+ kind, and Open CASCADE SA hereby disclaims all such warranties,
+ including without limitation, any warranties of merchantability, fitness
+ for a particular purpose or non-infringement. Please see the License for
+ the specific terms and conditions governing rights and limitations under the
+ License.
+
+Files: src/3rdParty/Pivy/*
+Copyright: 2002-2007 Systems in Motion
+License: other
+ Permission to use, copy, modify, and distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Files: src/Base/gzstream.*
+Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
+License: LGPL-2.1+
+
+Files: src/Base/PyCXX/*
+Copyright: ???
+License: ???
+
+Files: src/Base/PyTools.h
+Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
+License: other
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. This software
+ is provided on an as is basis, without warranties of any kind.
+
+Files: src/Base/zipios/*
+Copyright: 2000 Thomas Søndergaard
+License: LGPL-2+
+
+Files: src/Base/zipios/directory.*
+Copyright: 1998 Dietmar Kuehl, Claas Solutions GmbH
+License: other
+ Permission to use, copy, modify, distribute and sell this
+ software for any purpose is hereby granted without fee, provided
+ that the above copyright notice appears in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation. Dietmar Kuehl and Claas Solutions make no
+ representations about the suitability of this software for any
+ purpose. It is provided "as is" without express or implied warranty.
+
+Files: src/Gui/SoFCOffscreenRenderer.cpp
+Copyright: ???
+License: ???
+/*
+ * wrjpgcom.c
+ *
+ * Copyright (C) 1994, Thomas G. Lane.
+ * This file is part of the Independent JPEG Group's software.
+ * For conditions of distribution and use, see the accompanying README file.
+ *
+ * This file contains a very simple stand-alone application that inserts
+ * user-supplied text as a COM (comment) marker in a JFIF file.
+ * This may be useful as an example of the minimum logic needed to parse
+ * JPEG markers.
+ */
+
+Files: src/Mod/Cam/App/*
+Copyright: 2007 Joachim Zettler <Joachim.Zettler@gmx.de>,
+ Human Rezai <human@mytum.de>,
+ Mohamad Najib Muhammad Noor <najib_bean@yahoo.co.uk>,
+ Stephane Routelous <stephane.routelous@exotk.org>,
+ Jürgen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
+ src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
+ src/Mod/Mesh/App/Core/*
+Copyright: 2005 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
+ src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
+Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*,
+Copyright: 2005 Berthold Grupp
+License: LGPL-2+
+
+Files: src/Mod/Mesh/BuildRegularGeoms.py
+Copyright: 2005 Berthold Grupp
+License: ???
+
+Files: src/Mod/Drawing/Gui/DrawingView.*, src/Mod/Image/App/ImageBase.*,
+ src/Mod/Image/Gui/GLImageBox.*, src/Mod/Image/Gui/ImageView.*,
+ src/Mod/Image/Gui/XpmImages.h
+Copyright: ??? Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/triangle.cpp, src/Mod/Mesh/App/Core/triangle.h,
+ src/3rdParty/OCCAdaptMesh/src/TriangleAdapt/triangleAdapt.c,
+ src/3rdParty/OCCAdaptMesh/Include/triangleAdapt.h
+Copyright: 1993, 1995, 1997, 1998, 2002, 2005 Jonathan Richard Shewchuk
+License: other-non-free
+ /* This program may be freely redistributed under the condition that the *
+ /* copyright notices (including this entire header and the copyright *
+ /* notice printed when the `-h' switch is selected) are not removed, and *
+ /* no compensation is received. Private, research, and institutional *
+ /* use is free. You may distribute modified versions of this code UNDER *
+ /* THE CONDITION THAT THIS CODE AND ANY MODIFICATIONS MADE TO IT IN THE *
+ /* SAME FILE REMAIN UNDER COPYRIGHT OF THE ORIGINAL AUTHOR, BOTH SOURCE *
+ /* AND OBJECT CODE ARE MADE FREELY AVAILABLE WITHOUT CHARGE, AND CLEAR *
+ /* NOTICE IS GIVEN OF THE MODIFICATIONS. Distribution of this code as *
+ /* part of a commercial system is permissible ONLY BY DIRECT ARRANGEMENT *
+ /* WITH THE AUTHOR. (If you are not directly supplying this code to a *
+ /* customer, and you are instead telling them how they can obtain it for *
+ /* free, then you are not required to make any arrangement with me.) *
+
+Files: src/Mod/Mesh/App/Core/tritritest.h
+Copyright: 1997 Tomas Moller
+License: ???
+
+Files: src/Mod/Mesh/App/WildMagic4/*
+Copyright: 1998-2007 David Eberly http://www.geometrictools.com
+License: LGPL-2.1+
+
+Files: src/Mod/Raytracing/App/resources/*
+Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
+ Juergen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Mod/Test/unittestgui.py
+Copyright: 1999-2001 Steve Purcell
+License: PSF
+ This module is free software, and you may redistribute it and/or modify
+ it under the same terms as Python itself, so long as this copyright message
+ and disclaimer are retained in their original form.
+ .
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+ SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+ THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+Files: src/Tools/ImageTools/ImageConv/CmdLine.*,
+ src/Tools/ImageTools/ImageConv/cmdline.htm
+Copyright: 1999 Chris Losinger, Smaller Animals Software
+ http://www.smalleranimals.com
+License: ZLIB
+ This software is provided 'as-is', without any express
+ or implied warranty. In no event will the authors be
+ held liable for any damages arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software
+ for any purpose, including commercial applications, and
+ to alter it and redistribute it freely, subject to the
+ following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented;
+ you must not claim that you wrote the original software.
+ If you use this software in a product, an acknowledgment
+ in the product documentation would be appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such,
+ and must not be misrepresented as being the original software.
+ .
+ 3. This notice may not be removed or altered from any source
+ distribution.
+
+Files: src/Tools/generateBase/generateDS.py
+Copyright: 2003 Dave Kuhlman
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/atlas/cblas.h,
+ src/3rdParty/boost/numeric/bindings/traits/algorithm.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/transpose.hpp
+ src/3rdParty/boost/numeric/bindings/traits/type.hpp
+ src/App/ComplexGeoDataPyImp.cpp,
+ src/App/DocumentObjectPyImp.cpp
+ src/App/DocumentPyImp.cpp
+ src/App/Doxygen.cpp
+ src/App/FeaturePyImp.cpp
+ src/App/PreCompiled.cpp
+ src/App/PreCompiled.h
+ src/App/PropertyContainerPyImp.cpp
+ src/Base/BaseClassPyImp.cpp
+ src/Base/BoundBoxPyImp.cpp
+ src/Base/Doxygen.cpp
+ src/Base/PersistancePyImp.cpp
+ src/Base/PreCompiled.cpp
+ src/Base/PreCompiled.h
+ src/Base/PyExport.h
+ src/Base/PyTools.c
+ src/Base/VectorPyImp.cpp
+ src/Base/zipios/meta-iostreams.h
+ src/Gui/InventorAll.h
+ src/Gui/PreCompiled.cpp
+ src/Gui/PreCompiled.h
+ src/Gui/Qt4All.h
+ src/Gui/SoFCBoundingBox.cpp
+ src/Gui/SoFCBoundingBox.h
+ src/Mod/Cam/App/PreCompiled.h
+ src/Mod/Cam/App/PreCompiled.cpp
+ src/Mod/Cam/Gui/PreCompiled.h
+ src/Mod/Cam/Gui/PreCompiled.cpp
+ src/Mod/Drawing/App/PreCompiled.h
+ src/Mod/Drawing/App/PreCompiled.cpp
+ src/Mod/Drawing/Gui/PreCompiled.h
+ src/Mod/Drawing/Gui/PreCompiled.cpp
+ src/Mod/Drawing/Gui/AppDrawingGui.cpp
+ src/Mod/Image/App/CaptureClass.h
+ src/Mod/Image/App/PreCompiled.h
+ src/Mod/Image/App/CaptureClass.cpp
+ src/Mod/Image/App/PreCompiled.cpp
+ src/Mod/Image/Gui/PreCompiled.h
+ src/Mod/Image/Gui/PreCompiled.cpp
+ src/Mod/Import/App/PreCompiled.h
+ src/Mod/Import/App/PreCompiled.cpp
+ src/Mod/Import/Gui/PreCompiled.h
+ src/Mod/Import/Gui/PreCompiled.cpp
+ src/Mod/JtReader/App/PreCompiled.h
+ src/Mod/JtReader/App/JtReader.h
+ src/Mod/JtReader/App/PreCompiled.cpp
+ src/Mod/Mesh/App/Doxygen.cpp
+ src/Mod/Mesh/App/PreCompiled.h
+ src/Mod/Mesh/App/MeshPointPyImp.cpp
+ src/Mod/Mesh/App/PreCompiled.cpp
+ src/Mod/Mesh/Gui/Doxygen.cpp
+ src/Mod/Mesh/Gui/PreCompiled.h
+ src/Mod/Mesh/Gui/PreCompiled.cpp
+ src/Mod/Part/App/TopoShapeFacePyImp.cpp
+ src/Mod/Part/App/OpenCascadeAll.h
+ src/Mod/Part/App/PreCompiled.h
+ src/Mod/Part/App/TopoShapePyImp.cpp
+ src/Mod/Part/App/PreCompiled.cpp
+ src/Mod/Part/App/PartFeaturePyImp.cpp
+ src/Mod/Part/Gui/PreCompiled.h
+ src/Mod/Part/Gui/PreCompiled.cpp
+ src/Mod/Points/App/PreCompiled.h
+ src/Mod/Points/App/PreCompiled.cpp
+ src/Mod/Points/Gui/AppPointsGui.cpp
+ src/Mod/Points/Gui/PreCompiled.h
+ src/Mod/Points/Gui/PreCompiled.cpp
+ src/Mod/Raytracing/App/PreCompiled.h
+ src/Mod/Raytracing/App/PreCompiled.cpp
+ src/Mod/Raytracing/Gui/AppRaytracingGui.cpp
+ src/Mod/Raytracing/Gui/Command.cpp src
+ src/Mod/Raytracing/Gui/PreCompiled.h
+ src/Mod/Raytracing/Gui/PreCompiled.cpp
+ src/Mod/Test/Gui/PreCompiled.h
+ src/Mod/Test/Gui/PreCompiled.cpp
+Copyright: Not marked
+License: ???
--- freecad-0.8.2237.orig/debian/freecad.desktop
+++ freecad-0.8.2237/debian/freecad.desktop
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Name[de]=FreeCAD
+Comment=Feature based Parametric Modeler
+Comment[de]=Feature-basierter parametrischer Modellierer
+GenericName=CAD Application
+GenericName[de]=CAD-Anwendung
+Exec=/usr/bin/freecad %F
+Path=/usr/lib/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/FCIcon.xpm
+Categories=Graphics;Science;Engineering
+StartupNotify=true
+GenericName[de_DE]=Feature-basierter parametrischer Modellierer
+Comment[de_DE]=Feature-basierter parametrischer Modellierer
+MimeType=application/x-extension-fcstd
--- freecad-0.8.2237.orig/debian/compat
+++ freecad-0.8.2237/debian/compat
@@ -0,0 +1 @@
+5
--- freecad-0.8.2237.orig/debian/freecad.doc-base
+++ freecad-0.8.2237/debian/freecad.doc-base
@@ -0,0 +1,14 @@
+Document: freecad
+Title: FreeCAD Manual
+Author: Werner Mayer
+Abstract: An extensible Open Source CAx program for Unix/X11
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+Section: Science/Engineering
+
+Format: text
+Files: /usr/share/doc/freecad/README.Linux.gz
+
--- freecad-0.8.2237.orig/debian/changelog
+++ freecad-0.8.2237/debian/changelog
@@ -0,0 +1,155 @@
+freecad (0.8.2237-1jaunty1) jaunty; urgency=low
+
+ * New release for Ubuntu 9.04 (Jackalope Jaunty)
+
+ -- Werner Mayer <werner@users.sourceforge.net> Sat, 11 Jul 2009 21:59:53 +0200
+
+freecad (0.7.2008-1jaunty1) intrepid; urgency=low
+
+ * New release for Ubuntu 9.04 (Jackalope Jaunty)
+
+ -- Werner Mayer <werner@users.sourceforge.net> Sat, 21 Mar 2009 19:23:57 +0100
+
+freecad (0.7.1779-1intrepid1) intrepid; urgency=low
+
+ * New release for Ubuntu 8.10 (Intrepid Ibex)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 14 Dec 2008 15:20:54 +0200
+
+freecad (0.7.1658-1intrepid1) intrepid; urgency=low
+
+ * New release for Ubuntu 8.10 (Intrepid Ibex)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 12 Oct 2008 16:20:54 +0200
+
+freecad (0.7.1658-1hardy1) hardy; urgency=low
+
+ * New release for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 11 Oct 2008 18:45:20 +0200
+
+freecad (0.7.1658-1gutsy1) gutsy; urgency=low
+
+ * New release for Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 11 Oct 2008 15:56:27 +0200
+
+freecad (0.7.1525-1feisty1) feisty; urgency=low
+
+ * Activate MIME support in rules file
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 5 Aug 2008 21:27:46 +0200
+
+freecad (0.7.1522-1feisty1) feisty; urgency=low
+
+ * Package for Ubuntu 7.04 (Feisty Fawn)
+ * Abstract interface for geometric data types
+ * Avoid flickering of cursor when cutting several meshes at once
+ * Update to the latest debian policy version 3.7.3
+ * Several bugs fixed with Python GIL
+ * Providing a dev package for freecad
+ * Make TopoDS_Shape and Geom_Geometry classes accessible from Python
+ * Make Python interface for algorithms on shapes and geometries
+ * Support of mesh segments
+ * Add test/annotation object
+ * Add simple measurement facility
+ * Remove OpenCascade dependency in Mesh module
+ * Thumbnail facility added
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 04 Aug 2008 20:11:20 +0200
+
+freecad (0.7.1514-1) unstable; urgency=low
+
+ * New upstream version
+ * Add more stuff to the copyright file
+ * control: add build-dep to python-central
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
+
+freecad (0.7.1350-1hardy1) hardy; urgency=low
+
+ * Package for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
+
+freecad (0.7.1350-1gutsy1) gutsy; urgency=low
+
+ * Backport to Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
+
+freecad (0.7.1350-1feisty1) feisty; urgency=low
+
+ * Backport to Ubuntu 7.04 (Feisty Fawn)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
+
+freecad (0.7.1350-1) unstable; urgency=low
+
+ * Official release for version 0.7
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Fri, 23 May 2008 23:39:47 +0200
+
+freecad (0.7.1344-1ubuntu2) feisty; urgency=low
+
+ * New package with fixed self-dependency problem
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
+
+freecad (0.7.1344-1ubuntu1) feisty; urgency=low
+
+ * New debian package for Feisty
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
+
+freecad (0.7.1344-1) unstable; urgency=low
+
+ * Write patch file to make builds with OpenCASCADE libs inside but with no
+ dependency to libopencascade6.2
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
+
+freecad (0.7.1343-1) unstable; urgency=low
+
+ * Embed required OpenCASCADE libs into this package as long as no official
+ Debian package is available
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
+
+freecad (0.7.1342-1) unstable; urgency=low
+
+ * Switch to new versioning scheme of OpenCASCADE packages
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
+
+freecad (0.7.1316-1) unstable; urgency=low
+
+ * Support of pivy (Python binding for Coin/SoQt)
+ * Support of PyQt4
+ * General support of SWIG modules
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
+
+freecad (0.7.1031-1) unstable; urgency=low
+
+ * Qt4 port finished
+ * Support of Python binding for Qt4
+ * Support of Python binding for Coin
+ * Support of entirely in Python written modules
+ * Added support of model driven architecture for Python binding
+ * Use boost's signal/slot mechanism to update data
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
+
+freecad (0.7.645-1) unstable; urgency=low
+
+ * Qt4 port started
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
+
+freecad (0.6.472-1) unstable; urgency=low
+
+ * Initial Release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
+
--- freecad-0.8.2237.orig/debian/freecad.1
+++ freecad-0.8.2237/debian/freecad.1
@@ -0,0 +1,73 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+freecad \- An extensible Open Source CAx program for Unix/X11
+.SH SYNOPSIS
+.B freecad
+.RI [ options ] " files"
+.br
+.B freecadcmd
+.RI [ options ] " files"
+.SH DESCRIPTION
+.B FreeCAD
+is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
+some key concepts like macro recording, workbenches, ability to run as a
+server and dynamically loadable application extensions and it is designed
+to be platform independent.
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+.SH USAGE
+\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of the options supported by \fBfreecad\fR is included below.
+.SS "Generic options"
+.TP
+\fB\-h, \-\-help\fR
+Show summary of options.
+.TP
+\fB\-v, \-\-version\fR
+Show version of program.
+.TP
+\fB\-c, \-\-console\fR
+Start in console mode.
+.TP
+\fB\-\-response\-file\fR \fIarg\fR
+Can be specified with '@name', too.
+
+.SS "Configuration"
+.TP
+\fB\-l, \-\-write\-log\fR
+Write a log file.
+.TP
+\fB\-t, \-\-run\-test\fR \fIarg\fR
+Test level.
+.TP
+\fB\-M, \-\-module\-path\fR \fIarg\fR
+Additional module path.
+.TP
+\fB\-P, \-\-python\-path\fR \fIarg\fR
+Additional Python path.
+.SH SEE ALSO
+To get more information about \fBFreeCAD\fR, please visit \fIhttps://freecadweb.org/wiki\fR
+.SH BUGS
+To report a bug, please visit \fIhttps://freecadweb.org/tracker/\fR
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.8.2237.orig/debian/rules
+++ freecad-0.8.2237/debian/rules
@@ -0,0 +1,143 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing ReverseEngineering Complete
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: autogen.sh
+ chmod u+x autogen.sh
+ ./autogen.sh
+
+config.status: configure
+ dh_testdir
+# Add here commands to configure the package.
+ ./configure --with-occ-include=/usr/include/opencascade --with-occ-lib=/usr/lib \
+--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+--prefix=/usr/lib/freecad --mandir=/usr/share/man \
+--infodir=/usr/share/info --datadir=/usr/share/freecad \
+--includedir=/usr/include/freecad \
+CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+
+# Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/freecad.sgml > freecad.1
+
+ touch $@
+
+# Add here commands to clean up after the build process.
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ [ ! -f Makefile ] || $(MAKE) distclean
+ rm -f configure
+ dh_clean
+ find -name 'Makefile.in' | xargs rm -f
+ find -name '*.pyc' | xargs rm -f
+ find -name 'moc_*.cpp' | xargs rm -f
+ find -name '*.lo' | xargs rm -f
+ find -name '*.deps' | xargs rm -rf
+ find -name '*.libs' | xargs rm -rf
+ rm -f stamp-h1 aclocal.m4 config.guess config.sub depcomp install-sh
+ rm -f ltmain.sh missing config.log libtool
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+# Add here commands to install the package into debian/tmp/freecad.
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/freecad
+
+# install the core system
+ dh_install -pfreecad debian/tmp/freecad/usr/share/* usr/share/
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/share usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/bin usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/FreeCAD.so usr/lib/freecad/lib
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/lib*.so.* usr/lib/freecad/lib
+
+# install the modules
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/$(MODULE)*.so usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so.* usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/*.py usr/lib/freecad/Mod/$(MODULE);)
+
+# special treating of Draft module
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.py usr/lib/freecad/Mod/Draft
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.svg usr/lib/freecad/Mod/Draft
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.ui usr/lib/freecad/Mod/Draft
+# dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/draftlibs/*.py usr/lib/freecad/Mod/Draft/draftlibs
+
+# special treating of Test module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/lib*.so.* usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/*.py usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/QtUnitGui.so usr/lib/freecad/Mod/Test
+
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/include/* usr/include
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.la usr/lib/freecad/lib
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.so usr/lib/freecad/lib
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.la usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so usr/lib/freecad/Mod/$(MODULE);)
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog.txt
+ dh_installdocs
+ dh_installexamples
+ dh_install debian/freecad.desktop usr/share/applications
+ dh_install debian/mime/freecad-thumbnailer usr/bin
+ dh_install debian/mime/freecad.schemas etc/gconf/schemas
+ dh_gconf -pfreecad
+ dh_desktop
+ dh_installmenu
+ dh_installmime
+ dh_pycentral
+# dh_installinfo
+# dh_installman debian/freecad.1
+ dh_installman debian/freecad.1 debian/mime/freecad-thumbnailer.1
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- freecad-0.8.2237.orig/debian/menu
+++ freecad-0.8.2237/debian/menu
@@ -0,0 +1,6 @@
+?package(freecad):needs="X11"\
+ section="Applications/Science/Engineering"\
+ title="FreeCAD"\
+ command="/usr/bin/freecad"\
+ icon="/usr/share/freecad/FCIcon.xpm"
+
--- freecad-0.8.2237.orig/debian/README.Debian
+++ freecad-0.8.2237/debian/README.Debian
@@ -0,0 +1,6 @@
+freecad for Debian
+------------------
+
+- First Debian package for FreeCAD.
+
+ -- Werner Mayer <wmayer@users.sourceforge.net>, Tue, 26 Sep 2006 16:55:15 +0200
--- freecad-0.8.2237.orig/debian/docs
+++ freecad-0.8.2237/debian/docs
@@ -0,0 +1,2 @@
+ChangeLog.txt
+README.Linux
--- freecad-0.8.2237.orig/debian/mime/freecad.schemas
+++ freecad-0.8.2237/debian/mime/freecad.schemas
@@ -0,0 +1,30 @@
+<gconfschemafile>
+ <schemalist>
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-extension-fcstd/enable</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-extension-fcstd/enable</applyto>
+ <owner>freecad</owner>
+ <type>bool</type>
+ <default>true</default>
+ <locale name="C">
+ <short>Enable thumbnailing of FreeCAD documents.</short>
+ <long>Enable thumbnailing of FreeCAD documents.</long>
+ </locale>
+ </schema>
+
+
+ <schema>
+ <key>/schemas/desktop/gnome/thumbnailers/application@x-extension-fcstd/command</key>
+ <applyto>/desktop/gnome/thumbnailers/application@x-extension-fcstd/command</applyto>
+ <owner>freecad</owner>
+ <type>string</type>
+ <default>/usr/bin/freecad-thumbnailer -s %s %u %o</default>
+ <locale name="C">
+ <short>Thumbnail command for documents from FreeCAD.</short>
+ <long>Valid command plus arguments for freecad-thumbnailer.</long>
+ </locale>
+ </schema>
+
+ </schemalist>
+</gconfschemafile>
--- freecad-0.8.2237.orig/debian/mime/freecad-thumbnailer
+++ freecad-0.8.2237/debian/mime/freecad-thumbnailer
@@ -0,0 +1,26 @@
+#!/usr/bin/python
+
+import sys, zipfile, md5
+import getopt
+import gnomevfs
+
+opt,par = getopt.getopt(sys.argv[1:],'-s:')
+inpfile = gnomevfs.get_local_path_from_uri(par[0])
+outfile = par[1]
+
+try:
+ zfile=zipfile.ZipFile(inpfile)
+ files=zfile.namelist()
+ # check for meta-file if it's really a FreeCAD document
+ if files[0] != "Document.xml":
+ sys.exit(1)
+
+ image="thumbnails/Thumbnail.png"
+ if image in files:
+ image=zfile.read(image)
+ thumb=open(outfile,"wb")
+ thumb.write(image)
+ thumb.close()
+except:
+ sys.exit(1)
+
--- freecad-0.8.2237.orig/debian/mime/freecad-thumbnailer.1
+++ freecad-0.8.2237/debian/mime/freecad-thumbnailer.1
@@ -0,0 +1,20 @@
+.TH FREECAD 1 "August 04, 2008" freecad "Linux User's Manual"
+.SH NAME
+freecad-thumbnailer \- A thumbnailer for FreeCAD project files
+.SH SYNOPSIS
+\fBfreecad-thumbnailer\fP [ -s \fIsize\fP ] \fIinput file\fP \fIoutput file\fP
+.SH DESCRIPTION
+\fBfreecad-thumbnailer\fP
+is a Python script that extracts an embedded thumbnail from a FreeCAD project file.
+If no thumbnail is embedded then nothing happens. According to the specification of
+freedesktop.org the thumbnail image is a PNG file. The required \fBinput file\fP argument
+specifies the project file where the thumbnail should be extracted from and the
+\fBoutput file\fP specifies the file where the thumbnail should be written to.
+.SH OPTIONS
+.TP
+\fB-s \fIsize\fR
+Specify the size of the image in pixel.
+.SH "SEE ALSO"
+freecad(1), freecadcmd(1)
+.SH AUTHOR
+This manual page was written by Werner Mayer.
-736
View File
@@ -1,736 +0,0 @@
--- freecad-0.9.2646.orig/debian/compat
+++ freecad-0.9.2646/debian/compat
@@ -0,0 +1 @@
+7
--- freecad-0.9.2646.orig/debian/rules
+++ freecad-0.9.2646/debian/rules
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing ReverseEngineering Complete
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: autogen.sh
+ dh_testdir
+ chmod u+x autogen.sh
+ ./autogen.sh
+
+config.status: configure
+ dh_testdir
+ ./configure --with-occ-include=/usr/include/opencascade \
+--with-occ-lib=/usr/lib \
+--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+--prefix=/usr/lib/freecad --mandir=/usr/share/man \
+--infodir=/usr/share/info --datadir=/usr/share/freecad \
+--includedir=/usr/include/freecad --docdir=/usr/share/doc/freecad \
+CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch $@
+
+clean:
+ dh clean
+ rm -f build-stamp
+ find -name '*.pyc' | xargs rm -f
+ find -name 'moc_*.cpp' | xargs rm -f
+ find -name '*.lo' | xargs rm -f
+ find -name '*.deps' | xargs rm -rf
+ find -name '*.libs' | xargs rm -rf
+ rm -f stamp-h1 config.log libtool
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/freecad
+ # Remove testing modules we don't want to have in the deb
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/_TEMPLATE_
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/TemplatePyMod
+ # install the core system
+ dh_install -pfreecad debian/tmp/freecad/usr/share/freecad/* usr/share/freecad/
+ #dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/share usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/bin usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/FreeCAD.so usr/lib/freecad/lib
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/lib*.so.* usr/lib/freecad/lib
+ dh_install debian/freecad.desktop usr/share/applications
+ dh_installman debian/freecad.1
+ dh_installchangelogs ChangeLog.txt
+ # install the modules
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/$(MODULE)*.so usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so.* usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/*.py usr/lib/freecad/Mod/$(MODULE);)
+ # special treating of Draft module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.py usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.svg usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.ui usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/draftlibs/*.py usr/lib/freecad/Mod/Draft/draftlibs
+ # special treating of Test module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/lib*.so.* usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/*.py usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/QtUnitGui.so usr/lib/freecad/Mod/Test
+
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/include/* usr/include
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.la usr/lib/freecad/lib
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.so usr/lib/freecad/lib
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.la usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so usr/lib/freecad/Mod/$(MODULE);)
+
+ # install the help system
+ dh_install -pfreecad-doc debian/tmp/freecad/usr/share/doc/* usr/share/doc/
+ touch install-stamp
+
+binary-indep: build install
+ # We have nothing to do by default.
+
+binary-arch: build install
+ dh binary-arch
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- freecad-0.9.2646.orig/debian/copyright
+++ freecad-0.9.2646/debian/copyright
@@ -0,0 +1,294 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Upstream-Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-Date: 2006-09-26_16:55:15+02:00
+Original-Source-Location: http://sourceforge.net/projects/free-cad
+
+Files: *
+Copyright: 2001-2009 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: LGPL-2+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: src/3rdParty/boost/numeric/bindings/*
+Copyright: 2002-2008 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
+ Andreas Kloeckner, Jeremy Conlin, Thomas Klimpel, Fabien Dekeyser,
+ Quoc-Cuong Pham, Si-Lab b.v.b.a., Joerg Walter
+License: other-boost-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/boost/numeric/bindings/lapack/lapack.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/std_valarray.hpp
+Copyright: 2003 Toon Knapen, Kresimir Fresl, Karl Meerbergen
+License: other
+ * Permission to copy, modify, use and distribute this software
+ * for any non-commercial or commercial purpose is granted provided
+ * that this license appear on all copies of the software source code.
+ *
+ * Authors assume no responsibility whatsoever for its use and makes
+ * no guarantees about its quality, correctness or reliability.
+ *
+ * KF acknowledges the support of the Faculty of Civil Engineering,
+ * University of Zagreb, Croatia.
+
+Files: src/Base/Base64.*
+Copyright: 2004-2008 Rene Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
+License: other
+ This source code is provided 'as-is', without any express or implied
+ warranty. In no event will the author be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this source code must not be misrepresented; you must not
+ claim that you wrote the original source code. If you use this source code
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original source code.
+ .
+ 3. This notice may not be removed or altered from any source distribution.
+
+Files: src/Base/fdstream.hpp
+Copyright: 2001 Nicolai M. Josuttis
+License: other
+ Permission to copy, use, modify, sell and distribute this software
+ is granted provided this copyright notice appears in all copies.
+ This software is provided "as is" without express or implied
+ warranty, and with no claim as to its suitability for any purpose.
+
+Files: src/Base/gzstream.*
+Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
+License: LGPL-2.1+
+
+Files: src/Base/PyTools.*
+Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
+License: other
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. This software
+ is provided on an as is basis, without warranties of any kind.
+
+Files: src/Base/zipios/*
+Copyright: 2000 Thomas Søndergaard
+License: LGPL-2+
+
+Files: src/Base/zipios/directory.*
+Copyright: 1998 Dietmar Kuehl, Claas Solutions GmbH
+License: other
+ Permission to use, copy, modify, distribute and sell this
+ software for any purpose is hereby granted without fee, provided
+ that the above copyright notice appears in all copies and that
+ both that copyright notice and this permission notice appear in
+ supporting documentation. Dietmar Kuehl and Claas Solutions make no
+ representations about the suitability of this software for any
+ purpose. It is provided "as is" without express or implied warranty.
+
+Files: src/CXX/*
+Copyright: 1998-2007 The Regents of the University of California
+License: BSD-3
+ Copyright (c) 1998 - 2007
+ The Regents of the University of California
+ Produced at the Lawrence Livermore National Laboratory
+ Written by Geoff Furnish, Paul F. Dubois, Barry A. Scott
+ UCRL-CODE-227018
+ All rights reserved.
+ .
+ This file is part of PyCXX. For details, see http://cxx.sourceforge.net.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ - Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the disclaimer below.
+ - Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the disclaimer (as noted below) in the
+ documentation and/or materials provided with the distribution.
+ - Neither the name of the UC/LLNL nor the names of its contributors may be
+ used to endorse or promote products derived from this software without
+ specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OF THE UNIVERSITY OF CALIFORNIA,
+ THE U.S. DEPARTMENT OF ENERGY OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ .
+ Additional BSD Notice
+ .
+ 1. This notice is required to be provided under our contract with the U.S.
+ Department of Energy (DOE). This work was produced at the University of
+ California, Lawrence Livermore National Laboratory under Contract No.
+ W-7405-ENG-48 with the DOE.
+ .
+ 2. Neither the United States Government nor the University of California
+ nor any of their employees, makes any warranty, express or implied, or
+ assumes any liability or responsibility for the accuracy, completeness,
+ or usefulness of any information, apparatus, product, or process disclosed,
+ or represents that its use would not infringe privately-owned rights.
+ .
+ 3. Also, reference herein to any specific commercial products, process, or
+ services by trade name, trademark, manufacturer or otherwise does not
+ necessarily constitute or imply its endorsement, recommendation, or
+ favoring by the United States Government or the University of California.
+ The views and opinions of authors expressed herein do not necessarily
+ state or reflect those of the United States Government or the University
+ of California, and shall not be used for advertising or product endorsement
+ purposes.
+
+Files: src/Gui/iisTaskPanel/src/*
+Copyright: http://www.ii-system.com
+License: LGPL
+
+Files: src/Mod/Draft/*
+Copyright: Yorik van Havre, Werner Mayer, Martin Burbaum
+License: GPL-2+
+
+Files: src/Mod/Draft/draftlibs/dxf*
+Copyright: 2005-2008 Ed Blake, Remigiusz Fiedler, Stani Michiels
+License: GPL-2+
+
+Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
+ src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
+ src/Mod/Mesh/App/Core/*
+Copyright: 2005 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
+ src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
+Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*
+Copyright: 2005 Berthold Grupp
+License: LGPL-2+
+
+Files: src/Mod/Mesh/BuildRegularGeoms.py
+Copyright: 2005 Berthold Grupp
+License: LGPL
+
+Files: src/Mod/Image/App/ImageBase.*, src/Mod/Image/Gui/GLImageBox.*,
+ src/Mod/Image/Gui/ImageView.*, src/Mod/Image/Gui/XpmImages.h
+Copyright: 2004 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/tritritest.h
+Copyright: 1997 Tomas Moller <tam@cs.lth.se>
+License: other
+ tritritest.h has no licensing information, but Tomas Moller replied
+ the following, when asked about it:
+ .
+ The code is free to use for anyone and any projects, but I give no
+ warranties.
+
+Files: src/Mod/Mesh/App/WildMagic4/*
+Copyright: 1998-2007 David Eberly http://www.geometrictools.com
+License: LGPL-2.1+
+
+Files: src/Mod/Raytracing/App/resources/*
+Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
+ Juergen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Mod/Sketcher/App/sketchflat/*
+Copyright: 2008 Jonathan Westhues
+License: GPL-3+
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in '/usr/share/common-licenses/GPL-3'.
+
+Files: src/Mod/Test/unittestgui.py
+Copyright: 1999-2001 Steve Purcell
+License: PSF
+ This module is free software, and you may redistribute it and/or modify
+ it under the same terms as Python itself, so long as this copyright message
+ and disclaimer are retained in their original form.
+ .
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+ SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+ THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+Files: src/Mod/Part/MakeBottle.py, src/Tools/*
+Copyright: 2002-2008 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in '/usr/share/common-licenses/GPL-2'.
+
+Files: src/Tools/generateBase/generateDS.py
+Copyright: 2003 Dave Kuhlman
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2007-2009 Werner Mayer <wmayer@users.sourceforge.net>,
+ Teemu Ikonen <tpikonen@gmail.com>
+License: LGPL-2+
--- freecad-0.9.2646.orig/debian/freecad.links
+++ freecad-0.9.2646/debian/freecad.links
@@ -0,0 +1,3 @@
+usr/lib/freecad/bin/FreeCAD usr/bin/freecad
+usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
+usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
--- freecad-0.9.2646.orig/debian/freecad.1
+++ freecad-0.9.2646/debian/freecad.1
@@ -0,0 +1,73 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+freecad \- An extensible Open Source CAx program for Unix/X11
+.SH SYNOPSIS
+.B freecad
+.RI [ options ] " files"
+.br
+.B freecadcmd
+.RI [ options ] " files"
+.SH DESCRIPTION
+.B FreeCAD
+is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
+some key concepts like macro recording, workbenches, ability to run as a
+server and dynamically loadable application extensions and it is designed
+to be platform independent.
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+.SH USAGE
+\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of the options supported by \fBfreecad\fR is included below.
+.SS "Generic options"
+.TP
+\fB\-h, \-\-help\fR
+Show summary of options.
+.TP
+\fB\-v, \-\-version\fR
+Show version of program.
+.TP
+\fB\-c, \-\-console\fR
+Start in console mode.
+.TP
+\fB\-\-response\-file\fR \fIarg\fR
+Can be specified with '@name', too.
+
+.SS "Configuration"
+.TP
+\fB\-l, \-\-write\-log\fR
+Write a log file.
+.TP
+\fB\-t, \-\-run\-test\fR \fIarg\fR
+Test level.
+.TP
+\fB\-M, \-\-module\-path\fR \fIarg\fR
+Additional module path.
+.TP
+\fB\-P, \-\-python\-path\fR \fIarg\fR
+Additional Python path.
+.SH SEE ALSO
+To get more information about \fBFreeCAD\fR, please visit \fIhttps://freecadweb.org/wiki\fR
+.SH BUGS
+To report a bug, please visit \fIhttps://freecadweb.org/tracker/\fR
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.9.2646.orig/debian/changelog
+++ freecad-0.9.2646/debian/changelog
@@ -0,0 +1,130 @@
+freecad (0.9.2646-1karmic) karmic; urgency=low
+
+
+ * New upstream release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 14 Nov 2009 22:00:00 +0200
+
+freecad (0.8.2237-2) unstable; urgency=low
+
+ * Added libboost-python-dev to Build-Depends (closes: #549738).
+ * Added myself to uploaders list.
+ * Bumped Standards-Version.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Thu, 12 Nov 2009 12:02:42 -0500
+
+freecad (0.8.2237-1) unstable; urgency=low
+
+ * New Upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 16 Jul 2009 18:37:41 +0200
+
+freecad (0.7.1658-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Mon, 20 Oct 2008 15:35:58 +0200
+
+freecad (0.7.1514-1) UNRELEASED; urgency=low
+
+ * New upstream version
+ * Add more stuff to the copyright file
+ * control: add build-dep to python-central
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
+
+freecad (0.7.1350-1hardy1) UNRELEASED; urgency=low
+
+ * Package for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
+
+freecad (0.7.1350-1gutsy1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
+
+freecad (0.7.1350-1feisty1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.04 (Feisty Fawn)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
+
+freecad (0.7.1350-1) UNRELEASED; urgency=low
+
+ * New upstream release from sf.net
+ * Import to debian-science repository at git.debian.org
+ * control:
+ - Update to standards-version 3.7.3
+ - Add Vcs-* fields pointing to git.debian.org
+ - Improve descriptions
+ * Convert copyright to (pseudo) machine readable format, audit source
+ * Fix categories in .desktop file
+ * Change Section to Science/Engineering in .doc-base and menu files
+ * rules: do not ignore errors on clean target, add dh_desktop call
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 05 Aug 2008 18:58:07 +0200
+
+freecad (0.7.1344-1ubuntu2) UNRELEASED; urgency=low
+
+ * New package with fixed self-dependency problem
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
+
+freecad (0.7.1344-1ubuntu1) UNRELEASED; urgency=low
+
+ * New debian package for Feisty
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
+
+freecad (0.7.1344-1) UNRELEASED; urgency=low
+
+ * Write patch file to make builds with OpenCASCADE libs inside but with no
+ dependency to libopencascade6.2
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
+
+freecad (0.7.1343-1) UNRELEASED; urgency=low
+
+ * Embed required OpenCASCADE libs into this package as long as no official
+ Debian package is available
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
+
+freecad (0.7.1342-1) UNRELEASED; urgency=low
+
+ * Switch to new versioning scheme of OpenCASCADE packages
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
+
+freecad (0.7.1316-1) UNRELEASED; urgency=low
+
+ * Support of pivy (Python binding for Coin/SoQt)
+ * Support of PyQt4
+ * General support of SWIG modules
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
+
+freecad (0.7.1031-1) UNRELEASED; urgency=low
+
+ * Qt4 port finished
+ * Support of Python binding for Qt4
+ * Support of Python binding for Coin
+ * Support of entirely in Python written modules
+ * Added support of model driven architecture for Python binding
+ * Use boost's signal/slot mechanism to update data
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
+
+freecad (0.7.645-1) UNRELEASED; urgency=low
+
+ * Qt4 port started
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
+
+freecad (0.6.472-1) UNRELEASED; urgency=low
+
+ * Initial Release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
+
--- freecad-0.9.2646.orig/debian/control
+++ freecad-0.9.2646/debian/control
@@ -0,0 +1,66 @@
+Source: freecad
+Section: science
+Priority: extra
+Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Teemu Ikonen <tpikonen@gmail.com>, "Adam C. Powell, IV" <hazelsct@debian.org>
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/freecad.git
+Vcs-Git: git://git.debian.org/git/debian-science/packages/freecad.git
+Homepage: http://juergen-riegel.net/FreeCAD/Docu/index.php?title=Main_Page
+Build-Depends: debhelper (>= 7), autotools-dev,
+ libboost-dev, libboost-date-time-dev, libboost-filesystem-dev,
+ libboost-graph-dev, libboost-iostreams-dev, libboost-program-options-dev,
+ libboost-regex-dev, libboost-serialization-dev, libboost-signals-dev,
+ libboost-python-dev, python-dev, python-opencv, python-support,
+ libqt4-dev, libxt-dev, libxext-dev, libxmu-dev, libxi-dev, libx11-dev,
+ libcoin60-dev, libsoqt4-dev (>= 1.4.2~svn20090224), libgl1-mesa-dev,
+ libgts-bin, libgts-dev, libcv-dev, zlib1g-dev, libxerces-c2-dev,
+ libopencascade-foundation-dev, libopencascade-modeling-dev,
+ libswscale-dev, libblas-dev, libatlas-headers, python-cxx-dev, libzipios++-dev
+Standards-Version: 3.8.3
+
+Package: freecad
+Architecture: any
+Section: science
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-pivy, python-qt4
+Suggests: freecad-doc, python-opencv
+Description: An extensible Open Source CAx program (alpha)
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ .
+ Currently, FreeCAD can import and display CAD models in IGES, STEP, and
+ BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
+ Editing and modeling features are currently somewhat limited.
+
+Package: freecad-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, freecad (= ${binary:Version})
+Description: FreeCAD development files
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the libtool .la files, headers and symlinks necessary to
+ develop modules for FreeCAD.
+
+Package: freecad-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, qt4-dev-tools
+Description: FreeCAD documentation
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the FreeCAD documentation.
+ .
+ The documentation is provided in Qt's new help format;
+ the new help format version can be viewed in conjunction with the Qt Assistant
+ found in the qt4-dev-tools package.
+
--- freecad-0.9.2646.orig/debian/freecad.desktop
+++ freecad-0.9.2646/debian/freecad.desktop
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Name[de]=FreeCAD
+Comment=Feature based Parametric Modeler
+Comment[de]=Feature-basierter parametrischer Modellierer
+GenericName=CAD Application
+GenericName[de]=CAD-Anwendung
+Exec=/usr/bin/freecad %F
+Path=/usr/lib/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/FCIcon.xpm
+Categories=Graphics;Science;Engineering
+StartupNotify=true
+GenericName[de_DE]=Feature-basierter parametrischer Modellierer
+Comment[de_DE]=Feature-basierter parametrischer Modellierer
+MimeType=application/x-extension-fcstd
--- freecad-0.9.2646.orig/debian/menu
+++ freecad-0.9.2646/debian/menu
@@ -0,0 +1,6 @@
+?package(freecad):needs="X11"\
+ section="Applications/Science/Engineering"\
+ title="FreeCAD"\
+ command="/usr/bin/freecad"\
+ icon="/usr/share/freecad/FCIcon.xpm"
+
--- freecad-0.9.2646.orig/debian/freecad.sharedmimeinfo
+++ freecad-0.9.2646/debian/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
-892
View File
@@ -1,892 +0,0 @@
--- freecad-0.11.4446.orig/debian/changelog
+++ freecad-0.11.4446/debian/changelog
@@ -0,0 +1,239 @@
+freecad (0.11.4446-1lucid1) lucid; urgency=low
+
+ * New release for Ubuntu 10.04.2 LTS (lucid)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 27 Apr 2011 10:59:21 +0200
+
+freecad (0.11.4446-1lucid1) lucid; urgency=low
+
+ * New release for Ubuntu 10.04.2 LTS (lucid)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 27 Apr 2011 10:47:15 +0200
+
+freecad (0.11.3729.dfsg-2) unstable; urgency=low
+
+ * Add gfortran and libopencascade-visualization-dev to BD
+ to fix FTBFS (closes: #622694)
+ * Add libqtwebkit-dev to BD (closes: #618241)
+ * Delete quilt from BD and corresponding changes in rules.
+ * Add description to freecad-occ650.patch
+ * Delete encoding string from .desktop
+ * Fix some spelling errors, pointed out by lintian.
+
+ -- Anton Gladky <gladky.anton@gmail.com> Thu, 14 Apr 2011 10:23:25 +0100
+
+freecad (0.11.3729.dfsg-1) unstable; urgency=low
+
+ [ Denis Barbier ]
+ * Merge OpenCASCADE 6.5.0 compatibility patch (closes: #617545).
+
+ [ Adam C. Powell, IV ]
+ * New upstream (closes: #622213, #618241).
+ * Changed to source format 3.0 (quilt).
+ * Added patch target which forces autotools to run, and automake and autoconf
+ are now in Build-Depends (closes: #607181).
+ * Set aside src/Build/Version.h to prevent build problems.
+ * Does not install .la files (closes: #621298).
+ * Boost 1.46 compatibility patch (closes: #621877).
+ * Set aside files which autotools modifies so clean works.
+ * Added libtool to Build-Depends (thanks: PICCA Frédéric-Emmanuel).
+ * Bumped Standards-Version, no changes needed.
+
+ -- "Adam C. Powell, IV" <hazelsct@debian.org> Tue, 12 Apr 2011 23:40:30 -0400
+
+freecad (0.10.3247.dfsg-2) unstable; urgency=low
+
+ * control:
+ - Update to standars-version 3.9.0.
+ - Remove libblas-dev, libatlas-dev from build-deps.
+ * Add debian/shlibs.local file containing the correct binary dep
+ to libsoqt4-20 (closes: #575239).
+ * copyright: Add a verbatim copy of Tiddlywiki BSD license. Fixes
+ the lintian warning copyright-refers-to-deprecated-bsd-license-file.
+ * Add kFreeBSD portability fixes. Thanks to Petr Salinger
+ <Petr.Salinger@seznam.cz> for the patch (closes: #592461).
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 18 Aug 2010 19:34:36 +0200
+
+freecad (0.10.3247.dfsg-1) unstable; urgency=low
+
+ * New upstream version (closes: #582627)
+ * Add debian/source/format file with contents "1.0".
+ * Use freecad.xpm as icon in menu and desktop files.
+ * copyright: Add licensing information for new files in this release.
+ * src/Base/Makefile.in, src/Gui/Makefile.in: Do not remove *.tab.c files
+ in make distclean target.
+ * control:
+ - Add build-dep to libeigen2-dev.
+ - Update to standards-version 3.8.4.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Mon, 05 Jul 2010 15:07:49 +0200
+
+freecad (0.9.2646.5.dfsg-1) unstable; urgency=low
+
+ * Add 'dfsg' extension to upstream version, upstream sources are unchanged.
+ * Remove libgl1-mesa-dev build-dep, rely on libcoin to pull in GL libraries.
+ * Change build-dep libatlas-headers to libatlas-dev (closes: #577309).
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Fri, 14 May 2010 17:20:35 +0200
+
+freecad (0.9.2646.5-1) unstable; urgency=low
+
+ * New upstream version (closes: #561696).
+ * Added swig to Build-Depends (closes: #563523, #563772).
+ * Removed python-opencv from Build-Depends and Recommends (closes: #560768).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Mon, 11 Jan 2010 08:48:33 -0500
+
+freecad (0.9.2646.4-1) unstable; urgency=low
+
+ * New upstream version (closes: #559849, #559846).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Fri, 11 Dec 2009 20:21:32 -0500
+
+freecad (0.9.2646.3-1) unstable; urgency=low
+
+ * New upstream version. Removes TiddlySaver.jar, fixes help problems.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 03 Dec 2009 19:39:27 +0100
+
+freecad (0.9.2646-1) unstable; urgency=low
+
+ [ Werner Mayer ]
+ * New upstream release
+ * In-source copy of PyCXX has been dropped (closes: #547936)
+ * In-source copy of zipios++ has been dropped (closes: #547941)
+ * Change build-dependency on python2.5-dev to python-dev
+ * Add freecad-doc binary package
+ * Remove Suggestion of a chm viewer, suggest freecad-doc instead
+
+ [ Teemu Ikonen ]
+ * Add override to dh_compress
+ * Add versioned build-deb to debhelper (>= 7.0.50)
+ * Add build-deps to libzipios++-dev and python-cxx-dev.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 17 Nov 2009 14:22:00 +0100
+
+freecad (0.8.2237-2) unstable; urgency=low
+
+ * Added libboost-python-dev to Build-Depends (closes: #549738).
+ * Added myself to uploaders list.
+ * Bumped Standards-Version.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Thu, 12 Nov 2009 12:02:42 -0500
+
+freecad (0.8.2237-1) unstable; urgency=low
+
+ * New Upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 16 Jul 2009 18:37:41 +0200
+
+freecad (0.7.1658-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Mon, 20 Oct 2008 15:35:58 +0200
+
+freecad (0.7.1514-1) UNRELEASED; urgency=low
+
+ * New upstream version
+ * Add more stuff to the copyright file
+ * control: add build-dep to python-central
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
+
+freecad (0.7.1350-1hardy1) UNRELEASED; urgency=low
+
+ * Package for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
+
+freecad (0.7.1350-1gutsy1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
+
+freecad (0.7.1350-1feisty1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.04 (Feisty Fawn)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
+
+freecad (0.7.1350-1) UNRELEASED; urgency=low
+
+ * New upstream release from sf.net
+ * Import to debian-science repository at git.debian.org
+ * control:
+ - Update to standards-version 3.7.3
+ - Add Vcs-* fields pointing to git.debian.org
+ - Improve descriptions
+ * Convert copyright to (pseudo) machine readable format, audit source
+ * Fix categories in .desktop file
+ * Change Section to Science/Engineering in .doc-base and menu files
+ * rules: do not ignore errors on clean target, add dh_desktop call
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 05 Aug 2008 18:58:07 +0200
+
+freecad (0.7.1344-1ubuntu2) UNRELEASED; urgency=low
+
+ * New package with fixed self-dependency problem
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
+
+freecad (0.7.1344-1ubuntu1) UNRELEASED; urgency=low
+
+ * New debian package for Feisty
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
+
+freecad (0.7.1344-1) UNRELEASED; urgency=low
+
+ * Write patch file to make builds with OpenCASCADE libs inside but with no
+ dependency to libopencascade6.2
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
+
+freecad (0.7.1343-1) UNRELEASED; urgency=low
+
+ * Embed required OpenCASCADE libs into this package as long as no official
+ Debian package is available
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
+
+freecad (0.7.1342-1) UNRELEASED; urgency=low
+
+ * Switch to new versioning scheme of OpenCASCADE packages
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
+
+freecad (0.7.1316-1) UNRELEASED; urgency=low
+
+ * Support of pivy (Python binding for Coin/SoQt)
+ * Support of PyQt4
+ * General support of SWIG modules
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
+
+freecad (0.7.1031-1) UNRELEASED; urgency=low
+
+ * Qt4 port finished
+ * Support of Python binding for Qt4
+ * Support of Python binding for Coin
+ * Support of entirely in Python written modules
+ * Added support of model driven architecture for Python binding
+ * Use boost's signal/slot mechanism to update data
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
+
+freecad (0.7.645-1) UNRELEASED; urgency=low
+
+ * Qt4 port started
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
+
+freecad (0.6.472-1) UNRELEASED; urgency=low
+
+ * Initial Release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
+
--- freecad-0.11.4446.orig/debian/shlibs.local
+++ freecad-0.11.4446/debian/shlibs.local
@@ -0,0 +1,2 @@
+libGL 1 libgl1-mesa-glx (>= 7.7.1-1)
+libSoQt4 20 libsoqt4-20 (>= 1.4.2~svn20090224)
--- freecad-0.11.4446.orig/debian/freecad.1
+++ freecad-0.11.4446/debian/freecad.1
@@ -0,0 +1,73 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+freecad \- An extensible Open Source CAx program for Unix/X11
+.SH SYNOPSIS
+.B freecad
+.RI [ options ] " files"
+.br
+.B freecadcmd
+.RI [ options ] " files"
+.SH DESCRIPTION
+.B FreeCAD
+is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
+some key concepts like macro recording, workbenches, ability to run as a
+server and dynamically loadable application extensions and it is designed
+to be platform independent.
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+.SH USAGE
+\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of the options supported by \fBfreecad\fR is included below.
+.SS "Generic options"
+.TP
+\fB\-h, \-\-help\fR
+Show summary of options.
+.TP
+\fB\-v, \-\-version\fR
+Show version of program.
+.TP
+\fB\-c, \-\-console\fR
+Start in console mode.
+.TP
+\fB\-\-response\-file\fR \fIarg\fR
+Can be specified with '@name', too.
+
+.SS "Configuration"
+.TP
+\fB\-l, \-\-write\-log\fR
+Write a log file.
+.TP
+\fB\-t, \-\-run\-test\fR \fIarg\fR
+Test level.
+.TP
+\fB\-M, \-\-module\-path\fR \fIarg\fR
+Additional module path.
+.TP
+\fB\-P, \-\-python\-path\fR \fIarg\fR
+Additional Python path.
+.SH SEE ALSO
+To get more information about \fBFreeCAD\fR, please visit \fIhttps://freecadweb.org/wiki\fR
+.SH BUGS
+To report a bug, please visit \fIhttps://freecadweb.org/tracker/\fR
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.11.4446.orig/debian/rules
+++ freecad-0.11.4446/debian/rules
@@ -0,0 +1,132 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing ReverseEngineering Complete Fem Robot Import Inspection
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+patch-stamp:
+ touch $@
+
+configure: autogen.sh patch-stamp
+ dh_testdir
+ #for autotools_mod_file in `find . -name Makefile.in` aclocal.m4 \
+ # configure m4/libtool.m4 m4/ltmain.sh m4/ltoptions.m4 \
+ # m4/ltversion.m4 m4/lt~obsolete.m4; do \
+ # cp -a $$autotools_mod_file $$autotools_mod_file.setaside; \
+ #done
+ chmod u+x autogen.sh
+ ./autogen.sh
+
+config.status: configure
+ dh_testdir
+ ./configure --with-occ-include=/usr/include/opencascade \
+--with-occ-lib=/usr/lib \
+--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+--prefix=/usr/lib/freecad --mandir=/usr/share/man \
+--infodir=/usr/share/info --datadir=/usr/share/freecad \
+--includedir=/usr/include/freecad --docdir=/usr/share/doc/freecad \
+CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+ touch src/Build/Version.h
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch $@
+
+clean:
+ mv src/Build/Version.h src/Build/Version.h.old
+ dh clean
+ mv src/Build/Version.h.old src/Build/Version.h
+ rm -f build-stamp
+ find -name '*.pyc' | xargs rm -f
+ find -name 'moc_*.cpp' | xargs rm -f
+ find -name '*.lo' | xargs rm -f
+ find -name '*.deps' | xargs rm -rf
+ find -name '*.libs' | xargs rm -rf
+ rm -f stamp-h1 config.log libtool 71
+ #if [ -e Makefile.in.setaside ]; then \
+ #for autotools_mod_file in `find . -name Makefile.in` aclocal.m4 \
+ # configure m4/libtool.m4 m4/ltmain.sh m4/ltoptions.m4 \
+ # m4/ltversion.m4 m4/lt~obsolete.m4; do \
+ # mv -f $$autotools_mod_file.setaside $$autotools_mod_file; \
+ #done; fi
+ dh clean
+ rm -f patch-stamp
+ #quilt pop -a
+ #rm -rf .pc/
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/freecad
+ # Remove testing modules we don't want to have in the deb
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/_TEMPLATE_
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/TemplatePyMod
+ # install the core system
+ dh_install -pfreecad debian/tmp/freecad/usr/share/freecad/* usr/share/freecad/
+ #dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/share usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/bin usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/FreeCAD.so usr/lib/freecad/lib
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/lib*.so.* usr/lib/freecad/lib
+ dh_install debian/freecad.desktop usr/share/applications
+ dh_installman debian/freecad.1
+ dh_installchangelogs ChangeLog.txt
+ # install the modules
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/$(MODULE)*.so usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so.* usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/*.py usr/lib/freecad/Mod/$(MODULE);)
+ # special treating of PartDesign module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/PartDesign/Scripts/*.py usr/lib/freecad/Mod/PartDesign/Scripts;)
+ # special treating of Draft module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.py usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/draftlibs/*.py usr/lib/freecad/Mod/Draft/draftlibs
+ # special treating of Test module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/lib*.so.* usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/*.py usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/QtUnitGui.so usr/lib/freecad/Mod/Test
+
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/include/* usr/include
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.so usr/lib/freecad/lib
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.la usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so usr/lib/freecad/Mod/$(MODULE);)
+
+ # install the help system
+ dh_install -pfreecad-doc debian/tmp/freecad/usr/share/doc/* usr/share/doc/
+ touch install-stamp
+
+override_dh_compress:
+ dh_compress -X.qch -X.qhc
+
+override_dh_makeshlibs:
+
+
+binary-indep: build install
+ dh binary-indep
+
+binary-arch: build install
+ dh binary-arch
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- freecad-0.11.4446.orig/debian/menu
+++ freecad-0.11.4446/debian/menu
@@ -0,0 +1,6 @@
+?package(freecad):needs="X11"\
+ section="Applications/Science/Engineering"\
+ title="FreeCAD"\
+ command="/usr/bin/freecad"\
+ icon="/usr/share/freecad/freecad.xpm"
+
--- freecad-0.11.4446.orig/debian/control
+++ freecad-0.11.4446/debian/control
@@ -0,0 +1,66 @@
+Source: freecad
+Section: science
+Priority: extra
+Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Teemu Ikonen <tpikonen@gmail.com>, "Adam C. Powell, IV" <hazelsct@debian.org>, Anton Gladky <gladky.anton@gmail.com>
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/freecad.git
+Vcs-Git: git://git.debian.org/git/debian-science/packages/freecad.git
+Homepage: http://juergen-riegel.net/FreeCAD/Docu/index.php?title=Main_Page
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev, libtool, automake,
+ autoconf, libboost-dev, libboost-date-time-dev, libboost-filesystem-dev,
+ libboost-graph-dev, libboost-iostreams-dev, libboost-program-options-dev,
+ libboost-regex-dev, libboost-serialization-dev, libboost-signals-dev,
+ libboost-python-dev, python-dev, python-support,
+ libqt4-dev, libxt-dev, libxext-dev, libxmu-dev, libxi-dev, libx11-dev,
+ libcoin60-dev, libsoqt4-dev (>= 1.4.2~svn20090224), libeigen2-dev, libeigen3-dev, libgl1-mesa-dev,
+ zlib1g-dev, libxerces-c2-dev, libopencascade-foundation-dev, libopencascade-modeling-dev,
+ libopencascade-visualization-dev, python-cxx-dev, libswscale-dev,
+ libzipios++-dev, swig, gfortran
+Standards-Version: 3.8.4
+
+Package: freecad
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Recommends: python-pivy
+Suggests: freecad-doc
+Description: Extensible Open Source CAx program (alpha)
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ .
+ Currently, FreeCAD can import and display CAD models in IGES, STEP, and
+ BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
+ Editing and modeling features are currently somewhat limited.
+
+Package: freecad-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, freecad (= ${binary:Version})
+Description: FreeCAD development files
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains headers and symlinks necessary to
+ develop modules for FreeCAD.
+
+Package: freecad-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, qt4-dev-tools
+Description: FreeCAD documentation
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the FreeCAD documentation.
+ .
+ The documentation is provided in Qt's new help format;
+ the new help format version can be viewed in conjunction with the Qt Assistant
+ found in the qt4-dev-tools package.
+
--- freecad-0.11.4446.orig/debian/freecad.sharedmimeinfo
+++ freecad-0.11.4446/debian/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
--- freecad-0.11.4446.orig/debian/compat
+++ freecad-0.11.4446/debian/compat
@@ -0,0 +1 @@
+7
--- freecad-0.11.4446.orig/debian/freecad.links
+++ freecad-0.11.4446/debian/freecad.links
@@ -0,0 +1,3 @@
+usr/lib/freecad/bin/FreeCAD usr/bin/freecad
+usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
+usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
--- freecad-0.11.4446.orig/debian/freecad.desktop
+++ freecad-0.11.4446/debian/freecad.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Version=1.0
+Name=FreeCAD
+Name[de]=FreeCAD
+Comment=Feature based Parametric Modeler
+Comment[de]=Feature-basierter parametrischer Modellierer
+GenericName=CAD Application
+GenericName[de]=CAD-Anwendung
+Exec=/usr/bin/freecad %F
+Path=/usr/lib/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/freecad.xpm
+Categories=Graphics;Science;Engineering
+StartupNotify=true
+GenericName[de_DE]=Feature-basierter parametrischer Modellierer
+Comment[de_DE]=Feature-basierter parametrischer Modellierer
+MimeType=application/x-extension-fcstd
--- freecad-0.11.4446.orig/debian/watch
+++ freecad-0.11.4446/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/free-cad/freecad_(.+)\.orig\.tar\.gz
--- freecad-0.11.4446.orig/debian/freecad-doc.doc-base
+++ freecad-0.11.4446/debian/freecad-doc.doc-base
@@ -0,0 +1,18 @@
+Document: freecad-development-documentation
+Title: FreeCAD development documentation
+Author: FreeCAD developers
+Abstract: FreeCAD is a general purpose Open Source 3D
+ CAD/MCAD/CAx/CAE/PLM modeler, aimed directly at mechanical engineering
+ and product design but also fits in a wider range of uses around
+ engineering, such as architecture or other engineering specialties.
+ It is a feature-based parametric modeler with a modular software
+ architecture which makes it easy to provide additional functionality
+ without modifying the core system.
+Section: Science/Engineering
+
+Format: HTML
+Index: /usr/share/doc/freecad/Start_Page.html
+Files: /usr/share/doc/freecad/*.q*
+
+Format: PDF
+Files: /usr/share/doc/freecad/kr_16.pdf.gz /usr/share/doc/freecad/kr_210_2.pdf.gz /usr/share/doc/freecad/kr_500_2.pdf.gz
--- freecad-0.11.4446.orig/debian/copyright
+++ freecad-0.11.4446/debian/copyright
@@ -0,0 +1,275 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+X-Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
+X-Packaged-Date: 2006-09-26_16:55:15+02:00
+Source: http://sourceforge.net/projects/free-cad
+
+Files: *
+Copyright: 2001-2009 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: LGPL-2+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: src/3rdParty/boost/numeric/bindings/*
+Copyright: 2002-2008 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
+ Andreas Kloeckner, Jeremy Conlin, Thomas Klimpel, Fabien Dekeyser,
+ Quoc-Cuong Pham, Si-Lab b.v.b.a., Joerg Walter
+License: other-boost-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/boost/numeric/bindings/lapack/lapack.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/std_valarray.hpp
+Copyright: 2003 Toon Knapen, Kresimir Fresl, Karl Meerbergen
+License: other
+ * Permission to copy, modify, use and distribute this software
+ * for any non-commercial or commercial purpose is granted provided
+ * that this license appear on all copies of the software source code.
+ *
+ * Authors assume no responsibility whatsoever for its use and makes
+ * no guarantees about its quality, correctness or reliability.
+ *
+ * KF acknowledges the support of the Faculty of Civil Engineering,
+ * University of Zagreb, Croatia.
+
+Files: src/Base/Base64.*
+Copyright: 2004-2008 Rene Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
+License: other
+ This source code is provided 'as-is', without any express or implied
+ warranty. In no event will the author be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this source code must not be misrepresented; you must not
+ claim that you wrote the original source code. If you use this source code
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original source code.
+ .
+ 3. This notice may not be removed or altered from any source distribution.
+
+Files: src/Base/fdstream.hpp
+Copyright: 2001 Nicolai M. Josuttis
+License: other
+ Permission to copy, use, modify, sell and distribute this software
+ is granted provided this copyright notice appears in all copies.
+ This software is provided "as is" without express or implied
+ warranty, and with no claim as to its suitability for any purpose.
+
+Files: src/Base/gzstream.*
+Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
+License: LGPL-2.1+
+
+Files: src/Base/PyTools.*
+Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
+License: other
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. This software
+ is provided on an as is basis, without warranties of any kind.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2004-2009 UnaMesa Association
+License: BSD
+ Copyright (c) UnaMesa Association 2004-2009
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ .
+ Neither the name of the UnaMesa Association nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS
+ IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2009 John Resig
+License: GPL-2 or MIT
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2009 The Dojo Foundation, http://sizzlejs.com/
+License: GPL-2 or MIT or BSD
+
+Files: src/Gui/iisTaskPanel/src/*
+Copyright: http://www.ii-system.com
+License: LGPL
+
+Files: src/Mod/Draft/*
+Copyright: Yorik van Havre, Werner Mayer, Martin Burbaum
+License: GPL-2+
+
+Files: src/Mod/Draft/draftlibs/dxf*
+Copyright: 2005-2008 Ed Blake, Remigiusz Fiedler, Stani Michiels
+License: GPL-2+
+
+Files: src/Mod/Draft/WorkingPlane.py
+Copyright: 2009-2010 Ken Cline <cline@frii.com>
+License: GPL-2+
+
+Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
+ src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
+ src/Mod/Mesh/App/Core/*
+Copyright: 2005 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
+ src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
+Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*
+Copyright: 2005 Berthold Grupp
+License: LGPL-2+
+
+Files: src/Mod/Mesh/BuildRegularGeoms.py
+Copyright: 2005 Berthold Grupp
+License: LGPL
+
+Files: src/Mod/Image/App/ImageBase.*, src/Mod/Image/Gui/GLImageBox.*,
+ src/Mod/Image/Gui/ImageView.*, src/Mod/Image/Gui/XpmImages.h
+Copyright: 2004 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/tritritest.h
+Copyright: 1997 Tomas Moller <tam@cs.lth.se>
+License: other
+ tritritest.h has no licensing information, but Tomas Moller replied
+ the following, when asked about it:
+ .
+ The code is free to use for anyone and any projects, but I give no
+ warranties.
+
+Files: src/Mod/Mesh/App/WildMagic4/*
+Copyright: 1998-2007 David Eberly http://www.geometrictools.com
+License: LGPL-2.1+
+
+Files: src/Mod/Part/App/edgecluster.*
+Copyright: 2010 Joachim Zettler <Joachim.Zettler@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Raytracing/App/resources/*
+Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
+ Juergen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Mod/Sketcher/App/sketchflat/*
+Copyright: 2008 Jonathan Westhues
+License: GPL-3+
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in '/usr/share/common-licenses/GPL-3'.
+
+Files: src/Mod/Sketcher/App/sketchsolve_cp/*
+Copyright: 2009 Jonathan George
+License: BSD
+
+Files: src/Mod/Test/unittestgui.py
+Copyright: 1999-2001 Steve Purcell
+License: PSF
+ This module is free software, and you may redistribute it and/or modify
+ it under the same terms as Python itself, so long as this copyright message
+ and disclaimer are retained in their original form.
+ .
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+ SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+ THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+Files: src/Mod/Part/MakeBottle.py, src/Tools/*
+Copyright: 2002-2008 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: GPL-2+
+
+Files: src/Tools/generateBase/generateDS.py
+Copyright: 2003 Dave Kuhlman
+License: MIT
+
+Files: debian/*
+Copyright: 2007-2009 Werner Mayer <wmayer@users.sourceforge.net>,
+ Teemu Ikonen <tpikonen@gmail.com>
+License: LGPL-2+
--- freecad-0.11.4446.orig/debian/source/format
+++ freecad-0.11.4446/debian/source/format
@@ -0,0 +1 @@
+1.0
--- freecad-0.11.4446.orig/debian/source/lintian-overrides
+++ freecad-0.11.4446/debian/source/lintian-overrides
@@ -0,0 +1,3 @@
+# Lintian thinks uploader Adam Powell's name violates policy
+freecad source: uploader-address-missing "Adam C. Powell
+freecad source: uploader-not-full-name IV"
-740
View File
@@ -1,740 +0,0 @@
--- freecad-0.11.3729.orig/debian/changelog
+++ freecad-0.11.3729/debian/changelog
@@ -0,0 +1,172 @@
+freecad (0.11.3729-1lucid1) lucid; urgency=low
+
+ * New release for Ubuntu 10.04.1 LTS (lucid)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 14 Nov 2010 18:09:17 +0100
+
+freecad (0.10.3139-1lucid1) lucid; urgency=low
+
+ * New release for Ubuntu 10.04 LTS (lucid)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 Apr 2010 23:43:06 +0200
+
+freecad (0.10.3139-1) unstable; urgency=low
+
+ * New upstream version (closes: #561696).
+ * Added swig to Build-Depends (closes: #563523, #563772).
+ * Removed python-opencv from Build-Depends and Recommends (closes: #560768).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Mon, 11 Jan 2010 08:48:33 -0500
+
+freecad (0.9.2646.4-1) unstable; urgency=low
+
+ * New upstream version (closes: #559849, #559846).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Fri, 11 Dec 2009 20:21:32 -0500
+
+freecad (0.9.2646.3-1) unstable; urgency=low
+
+ * New upstream version. Removes TiddlySaver.jar, fixes help problems.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 03 Dec 2009 19:39:27 +0100
+
+freecad (0.9.2646-1) unstable; urgency=low
+
+ [ Werner Mayer ]
+ * New upstream release
+ * In-source copy of PyCXX has been dropped (closes: #547936)
+ * In-source copy of zipios++ has been dropped (closes: #547941)
+ * Change build-dependency on python2.5-dev to python-dev
+ * Add freecad-doc binary package
+ * Remove Suggestion of a chm viewer, suggest freecad-doc instead
+
+ [ Teemu Ikonen ]
+ * Add override to dh_compress
+ * Add versioned build-deb to debhelper (>= 7.0.50)
+ * Add build-deps to libzipios++-dev and python-cxx-dev.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 17 Nov 2009 14:22:00 +0100
+
+freecad (0.8.2237-2) unstable; urgency=low
+
+ * Added libboost-python-dev to Build-Depends (closes: #549738).
+ * Added myself to uploaders list.
+ * Bumped Standards-Version.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Thu, 12 Nov 2009 12:02:42 -0500
+
+freecad (0.8.2237-1) unstable; urgency=low
+
+ * New Upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 16 Jul 2009 18:37:41 +0200
+
+freecad (0.7.1658-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Mon, 20 Oct 2008 15:35:58 +0200
+
+freecad (0.7.1514-1) UNRELEASED; urgency=low
+
+ * New upstream version
+ * Add more stuff to the copyright file
+ * control: add build-dep to python-central
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
+
+freecad (0.7.1350-1hardy1) UNRELEASED; urgency=low
+
+ * Package for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
+
+freecad (0.7.1350-1gutsy1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
+
+freecad (0.7.1350-1feisty1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.04 (Feisty Fawn)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
+
+freecad (0.7.1350-1) UNRELEASED; urgency=low
+
+ * New upstream release from sf.net
+ * Import to debian-science repository at git.debian.org
+ * control:
+ - Update to standards-version 3.7.3
+ - Add Vcs-* fields pointing to git.debian.org
+ - Improve descriptions
+ * Convert copyright to (pseudo) machine readable format, audit source
+ * Fix categories in .desktop file
+ * Change Section to Science/Engineering in .doc-base and menu files
+ * rules: do not ignore errors on clean target, add dh_desktop call
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 05 Aug 2008 18:58:07 +0200
+
+freecad (0.7.1344-1ubuntu2) UNRELEASED; urgency=low
+
+ * New package with fixed self-dependency problem
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
+
+freecad (0.7.1344-1ubuntu1) UNRELEASED; urgency=low
+
+ * New debian package for Feisty
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
+
+freecad (0.7.1344-1) UNRELEASED; urgency=low
+
+ * Write patch file to make builds with OpenCASCADE libs inside but with no
+ dependency to libopencascade6.2
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
+
+freecad (0.7.1343-1) UNRELEASED; urgency=low
+
+ * Embed required OpenCASCADE libs into this package as long as no official
+ Debian package is available
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
+
+freecad (0.7.1342-1) UNRELEASED; urgency=low
+
+ * Switch to new versioning scheme of OpenCASCADE packages
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
+
+freecad (0.7.1316-1) UNRELEASED; urgency=low
+
+ * Support of pivy (Python binding for Coin/SoQt)
+ * Support of PyQt4
+ * General support of SWIG modules
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
+
+freecad (0.7.1031-1) UNRELEASED; urgency=low
+
+ * Qt4 port finished
+ * Support of Python binding for Qt4
+ * Support of Python binding for Coin
+ * Support of entirely in Python written modules
+ * Added support of model driven architecture for Python binding
+ * Use boost's signal/slot mechanism to update data
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
+
+freecad (0.7.645-1) UNRELEASED; urgency=low
+
+ * Qt4 port started
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
+
+freecad (0.6.472-1) UNRELEASED; urgency=low
+
+ * Initial Release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
+
--- freecad-0.11.3729.orig/debian/shlibs.local
+++ freecad-0.11.3729/debian/shlibs.local
@@ -0,0 +1 @@
+libGL 1 libgl1-mesa-glx (>= 7.7.1-1)
--- freecad-0.11.3729.orig/debian/freecad.1
+++ freecad-0.11.3729/debian/freecad.1
@@ -0,0 +1,73 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+freecad \- An extensible Open Source CAx program for Unix/X11
+.SH SYNOPSIS
+.B freecad
+.RI [ options ] " files"
+.br
+.B freecadcmd
+.RI [ options ] " files"
+.SH DESCRIPTION
+.B FreeCAD
+is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
+some key concepts like macro recording, workbenches, ability to run as a
+server and dynamically loadable application extensions and it is designed
+to be platform independent.
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+.SH USAGE
+\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of the options supported by \fBfreecad\fR is included below.
+.SS "Generic options"
+.TP
+\fB\-h, \-\-help\fR
+Show summary of options.
+.TP
+\fB\-v, \-\-version\fR
+Show version of program.
+.TP
+\fB\-c, \-\-console\fR
+Start in console mode.
+.TP
+\fB\-\-response\-file\fR \fIarg\fR
+Can be specified with '@name', too.
+
+.SS "Configuration"
+.TP
+\fB\-l, \-\-write\-log\fR
+Write a log file.
+.TP
+\fB\-t, \-\-run\-test\fR \fIarg\fR
+Test level.
+.TP
+\fB\-M, \-\-module\-path\fR \fIarg\fR
+Additional module path.
+.TP
+\fB\-P, \-\-python\-path\fR \fIarg\fR
+Additional Python path.
+.SH SEE ALSO
+To get more information about \fBFreeCAD\fR, please visit \fIhttps://freecadweb.org/wiki\fR
+.SH BUGS
+To report a bug, please visit \fIhttps://freecadweb.org/tracker/\fR
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.11.3729.orig/debian/rules
+++ freecad-0.11.3729/debian/rules
@@ -0,0 +1,109 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing ReverseEngineering Complete Fem Robot
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: autogen.sh
+ dh_testdir
+ chmod u+x autogen.sh
+ ./autogen.sh
+
+config.status: configure
+ dh_testdir
+ ./configure --with-occ-include=/usr/include/opencascade \
+--with-occ-lib=/usr/lib \
+--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+--prefix=/usr/lib/freecad --mandir=/usr/share/man \
+--infodir=/usr/share/info --datadir=/usr/share/freecad \
+--includedir=/usr/include/freecad --docdir=/usr/share/doc/freecad \
+CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch $@
+
+clean:
+ dh clean
+ rm -f build-stamp
+ find -name '*.pyc' | xargs rm -f
+ find -name 'moc_*.cpp' | xargs rm -f
+ find -name '*.lo' | xargs rm -f
+ find -name '*.deps' | xargs rm -rf
+ find -name '*.libs' | xargs rm -rf
+ rm -f stamp-h1 config.log libtool
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/freecad
+ # Remove testing modules we don't want to have in the deb
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/_TEMPLATE_
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/TemplatePyMod
+ # install the core system
+ dh_install -pfreecad debian/tmp/freecad/usr/share/freecad/* usr/share/freecad/
+ #dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/share usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/bin usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/FreeCAD.so usr/lib/freecad/lib
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/lib*.so.* usr/lib/freecad/lib
+ dh_install debian/freecad.desktop usr/share/applications
+ dh_installman debian/freecad.1
+ dh_installchangelogs ChangeLog.txt
+ # install the modules
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/$(MODULE)*.so usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so.* usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/*.py usr/lib/freecad/Mod/$(MODULE);)
+ # special treating of PartDesign module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/PartDesign/Scripts/*.py usr/lib/freecad/Mod/PartDesign/Scripts;)
+ # special treating of Draft module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.py usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.svg usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.ui usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/draftlibs/*.py usr/lib/freecad/Mod/Draft/draftlibs
+ # special treating of Test module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/lib*.so.* usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/*.py usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/QtUnitGui.so usr/lib/freecad/Mod/Test
+
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/include/* usr/include
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.la usr/lib/freecad/lib
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.so usr/lib/freecad/lib
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.la usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so usr/lib/freecad/Mod/$(MODULE);)
+
+ # install the help system
+ dh_install -pfreecad-doc debian/tmp/freecad/usr/share/doc/* usr/share/doc/
+ touch install-stamp
+
+override_dh_compress:
+ dh_compress -X.qch -X.qhc
+
+binary-indep: build install
+ dh binary-indep
+
+binary-arch: build install
+ dh binary-arch
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- freecad-0.11.3729.orig/debian/menu
+++ freecad-0.11.3729/debian/menu
@@ -0,0 +1,6 @@
+?package(freecad):needs="X11"\
+ section="Applications/Science/Engineering"\
+ title="FreeCAD"\
+ command="/usr/bin/freecad"\
+ icon="/usr/share/freecad/freecad.xpm"
+
--- freecad-0.11.3729.orig/debian/control
+++ freecad-0.11.3729/debian/control
@@ -0,0 +1,67 @@
+Source: freecad
+Section: science
+Priority: extra
+Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Teemu Ikonen <tpikonen@gmail.com>, "Adam C. Powell, IV" <hazelsct@debian.org>
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/freecad.git
+Vcs-Git: git://git.debian.org/git/debian-science/packages/freecad.git
+Homepage: http://juergen-riegel.net/FreeCAD/Docu/index.php?title=Main_Page
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev,
+ libboost-dev, libboost-date-time-dev, libboost-filesystem-dev,
+ libboost-graph-dev, libboost-iostreams-dev, libboost-program-options-dev,
+ libboost-regex-dev, libboost-serialization-dev, libboost-signals-dev,
+ libboost-python-dev, python-dev, python-support,
+ libqt4-dev, libxt-dev, libxext-dev, libxmu-dev, libxi-dev, libx11-dev,
+ libcoin60-dev, libsoqt4-dev (>= 1.4.2~svn20090224), libgl1-mesa-dev,
+ zlib1g-dev, libxerces-c2-dev, libopencascade-visualization-dev,
+ libopencascade-foundation-dev, libopencascade-modeling-dev, python-cxx-dev,
+ libswscale-dev, libzipios++-dev, swig, libeigen2-dev, libeigen3-dev
+Standards-Version: 3.8.4
+
+Package: freecad
+Architecture: any
+Section: science
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Recommends: python-pivy
+Suggests: freecad-doc
+Description: An extensible Open Source CAx program (alpha)
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ .
+ Currently, FreeCAD can import and display CAD models in IGES, STEP, and
+ BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
+ Editing and modeling features are currently somewhat limited.
+
+Package: freecad-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, freecad (= ${binary:Version})
+Description: FreeCAD development files
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the libtool .la files, headers and symlinks necessary to
+ develop modules for FreeCAD.
+
+Package: freecad-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, qt4-dev-tools
+Description: FreeCAD documentation
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the FreeCAD documentation.
+ .
+ The documentation is provided in Qt's new help format;
+ the new help format version can be viewed in conjunction with the Qt Assistant
+ found in the qt4-dev-tools package.
+
--- freecad-0.11.3729.orig/debian/freecad.sharedmimeinfo
+++ freecad-0.11.3729/debian/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
--- freecad-0.11.3729.orig/debian/compat
+++ freecad-0.11.3729/debian/compat
@@ -0,0 +1 @@
+7
--- freecad-0.11.3729.orig/debian/freecad.links
+++ freecad-0.11.3729/debian/freecad.links
@@ -0,0 +1,3 @@
+usr/lib/freecad/bin/FreeCAD usr/bin/freecad
+usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
+usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
--- freecad-0.11.3729.orig/debian/freecad.desktop
+++ freecad-0.11.3729/debian/freecad.desktop
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Name[de]=FreeCAD
+Comment=Feature based Parametric Modeler
+Comment[de]=Feature-basierter parametrischer Modellierer
+GenericName=CAD Application
+GenericName[de]=CAD-Anwendung
+Exec=/usr/bin/freecad %F
+Path=/usr/lib/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/freecad.xpm
+Categories=Graphics;Science;Engineering
+StartupNotify=true
+GenericName[de_DE]=Feature-basierter parametrischer Modellierer
+Comment[de_DE]=Feature-basierter parametrischer Modellierer
+MimeType=application/x-extension-fcstd
--- freecad-0.11.3729.orig/debian/watch
+++ freecad-0.11.3729/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/free-cad/freecad_(.+)\.orig\.tar\.gz
--- freecad-0.11.3729.orig/debian/copyright
+++ freecad-0.11.3729/debian/copyright
@@ -0,0 +1,237 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+X-Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
+X-Packaged-Date: 2006-09-26_16:55:15+02:00
+Source: http://sourceforge.net/projects/free-cad
+
+Files: *
+Copyright: 2001-2009 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: LGPL-2+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: src/3rdParty/boost/numeric/bindings/*
+Copyright: 2002-2008 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
+ Andreas Kloeckner, Jeremy Conlin, Thomas Klimpel, Fabien Dekeyser,
+ Quoc-Cuong Pham, Si-Lab b.v.b.a., Joerg Walter
+License: other-boost-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/boost/numeric/bindings/lapack/lapack.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/std_valarray.hpp
+Copyright: 2003 Toon Knapen, Kresimir Fresl, Karl Meerbergen
+License: other
+ * Permission to copy, modify, use and distribute this software
+ * for any non-commercial or commercial purpose is granted provided
+ * that this license appear on all copies of the software source code.
+ *
+ * Authors assume no responsibility whatsoever for its use and makes
+ * no guarantees about its quality, correctness or reliability.
+ *
+ * KF acknowledges the support of the Faculty of Civil Engineering,
+ * University of Zagreb, Croatia.
+
+Files: src/Base/Base64.*
+Copyright: 2004-2008 Rene Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
+License: other
+ This source code is provided 'as-is', without any express or implied
+ warranty. In no event will the author be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this source code must not be misrepresented; you must not
+ claim that you wrote the original source code. If you use this source code
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original source code.
+ .
+ 3. This notice may not be removed or altered from any source distribution.
+
+Files: src/Base/fdstream.hpp
+Copyright: 2001 Nicolai M. Josuttis
+License: other
+ Permission to copy, use, modify, sell and distribute this software
+ is granted provided this copyright notice appears in all copies.
+ This software is provided "as is" without express or implied
+ warranty, and with no claim as to its suitability for any purpose.
+
+Files: src/Base/gzstream.*
+Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
+License: LGPL-2.1+
+
+Files: src/Base/PyTools.*
+Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
+License: other
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. This software
+ is provided on an as is basis, without warranties of any kind.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2004-2009 UnaMesa Association
+License: BSD
+ On Debian systems, the complete text of the BSD license
+ can be found in `/usr/share/common-licenses/BSD'.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2009 John Resig
+License: GPL-2 or MIT
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2009 The Dojo Foundation, http://sizzlejs.com/
+License: GPL-2 or MIT or BSD
+
+Files: src/Gui/iisTaskPanel/src/*
+Copyright: http://www.ii-system.com
+License: LGPL
+
+Files: src/Mod/Draft/*
+Copyright: Yorik van Havre, Werner Mayer, Martin Burbaum
+License: GPL-2+
+
+Files: src/Mod/Draft/draftlibs/dxf*
+Copyright: 2005-2008 Ed Blake, Remigiusz Fiedler, Stani Michiels
+License: GPL-2+
+
+Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
+ src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
+ src/Mod/Mesh/App/Core/*
+Copyright: 2005 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
+ src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
+Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*
+Copyright: 2005 Berthold Grupp
+License: LGPL-2+
+
+Files: src/Mod/Mesh/BuildRegularGeoms.py
+Copyright: 2005 Berthold Grupp
+License: LGPL
+
+Files: src/Mod/Image/App/ImageBase.*, src/Mod/Image/Gui/GLImageBox.*,
+ src/Mod/Image/Gui/ImageView.*, src/Mod/Image/Gui/XpmImages.h
+Copyright: 2004 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/tritritest.h
+Copyright: 1997 Tomas Moller <tam@cs.lth.se>
+License: other
+ tritritest.h has no licensing information, but Tomas Moller replied
+ the following, when asked about it:
+ .
+ The code is free to use for anyone and any projects, but I give no
+ warranties.
+
+Files: src/Mod/Mesh/App/WildMagic4/*
+Copyright: 1998-2007 David Eberly http://www.geometrictools.com
+License: LGPL-2.1+
+
+Files: src/Mod/Raytracing/App/resources/*
+Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
+ Juergen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Mod/Sketcher/App/sketchflat/*
+Copyright: 2008 Jonathan Westhues
+License: GPL-3+
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in '/usr/share/common-licenses/GPL-3'.
+
+Files: src/Mod/Test/unittestgui.py
+Copyright: 1999-2001 Steve Purcell
+License: PSF
+ This module is free software, and you may redistribute it and/or modify
+ it under the same terms as Python itself, so long as this copyright message
+ and disclaimer are retained in their original form.
+ .
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+ SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+ THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+Files: src/Mod/Part/MakeBottle.py, src/Tools/*
+Copyright: 2002-2008 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: GPL-2+
+
+Files: src/Tools/generateBase/generateDS.py
+Copyright: 2003 Dave Kuhlman
+License: MIT
+
+Files: debian/*
+Copyright: 2007-2009 Werner Mayer <wmayer@users.sourceforge.net>,
+ Teemu Ikonen <tpikonen@gmail.com>
+License: LGPL-2+
--- freecad-0.11.3729.orig/debian/source/format
+++ freecad-0.11.3729/debian/source/format
@@ -0,0 +1 @@
+1.0
-886
View File
@@ -1,886 +0,0 @@
--- freecad-0.12.4484.orig/debian/changelog
+++ freecad-0.12.4484/debian/changelog
@@ -0,0 +1,272 @@
+freecad (0.12.4484-1natty1) natty; urgency=low
+
+ * New release for Ubuntu 11.04 (natty)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 11 May 2011 22:55:03 +0200
+
+freecad (0.11.3729.dfsg-2) unstable; urgency=low
+
+ * Add gfortran and libopencascade-visualization-dev to BD
+ to fix FTBFS (closes: #622694)
+ * Add libqtwebkit-dev to BD (closes: #618241)
+ * Delete quilt from BD and corresponding changes in rules.
+ * Add description to freecad-occ650.patch
+ * Delete encoding string from .desktop
+ * Fix some spelling errors, pointed out by lintian.
+
+ -- Anton Gladky <gladky.anton@gmail.com> Thu, 14 Apr 2011 10:23:25 +0100
+
+freecad (0.11.3729.dfsg-1) unstable; urgency=low
+
+ [ Denis Barbier ]
+ * Merge OpenCASCADE 6.5.0 compatibility patch (closes: #617545).
+
+ [ Adam C. Powell, IV ]
+ * New upstream (closes: #622213, #618241).
+ * Changed to source format 3.0 (quilt).
+ * Added patch target which forces autotools to run, and automake and autoconf
+ are now in Build-Depends (closes: #607181).
+ * Set aside src/Build/Version.h to prevent build problems.
+ * Does not install .la files (closes: #621298).
+ * Boost 1.46 compatibility patch (closes: #621877).
+ * Set aside files which autotools modifies so clean works.
+ * Added libtool to Build-Depends (thanks: PICCA Frédéric-Emmanuel).
+ * Bumped Standards-Version, no changes needed.
+
+ -- "Adam C. Powell, IV" <hazelsct@debian.org> Tue, 12 Apr 2011 23:40:30 -0400
+
+freecad (0.10.3247.dfsg-2ubuntu3) natty; urgency=low
+
+ * Fix build failure with ld --as-needed.
+
+ -- Matthias Klose <doko@ubuntu.com> Wed, 15 Dec 2010 01:12:39 +0100
+
+freecad (0.10.3247.dfsg-2ubuntu2) natty; urgency=low
+
+ * Rebuild with python 2.7 as the python default.
+
+ -- Matthias Klose <doko@ubuntu.com> Thu, 09 Dec 2010 16:46:45 +0000
+
+freecad (0.10.3247.dfsg-2ubuntu1) natty; urgency=low
+
+ * Merge from debian unstable. Remaining changes:
+ - build on libqtwebkit-dev for qtwebkit transition
+
+ -- Bhavani Shankar <bhavi@ubuntu.com> Wed, 20 Oct 2010 08:40:53 +0530
+
+freecad (0.10.3247.dfsg-2) unstable; urgency=low
+
+ * control:
+ - Update to standars-version 3.9.0.
+ - Remove libblas-dev, libatlas-dev from build-deps.
+ * Add debian/shlibs.local file containing the correct binary dep
+ to libsoqt4-20 (closes: #575239).
+ * copyright: Add a verbatim copy of Tiddlywiki BSD license. Fixes
+ the lintian warning copyright-refers-to-deprecated-bsd-license-file.
+ * Add kFreeBSD portability fixes. Thanks to Petr Salinger
+ <Petr.Salinger@seznam.cz> for the patch (closes: #592461).
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 18 Aug 2010 19:34:36 +0200
+
+freecad (0.10.3247.dfsg-1ubuntu2) maverick; urgency=low
+
+ * Rebuild on libqtwebkit-dev for qtwebkit transition
+
+ -- Jonathan Riddell <jriddell@ubuntu.com> Wed, 21 Jul 2010 10:06:31 +0100
+
+freecad (0.10.3247.dfsg-1ubuntu1) maverick; urgency=low
+
+ * Merge from Debian unstable, remaining changes:
+ - debian/control: Build-Depends on libqt4-webkit-dev due to
+ QtWebKit is no longer part of libqt4-dev (LP: #604078)
+
+ -- Artur Rona <ari-tczew@tlen.pl> Sat, 10 Jul 2010 21:06:47 +0200
+
+freecad (0.10.3247.dfsg-1) unstable; urgency=low
+
+ * New upstream version (closes: #582627)
+ * Add debian/source/format file with contents "1.0".
+ * Use freecad.xpm as icon in menu and desktop files.
+ * copyright: Add licensing information for new files in this release.
+ * src/Base/Makefile.in, src/Gui/Makefile.in: Do not remove *.tab.c files
+ in make distclean target.
+ * control:
+ - Add build-dep to libeigen2-dev.
+ - Update to standards-version 3.8.4.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Mon, 05 Jul 2010 15:07:49 +0200
+
+freecad (0.9.2646.5.dfsg-1ubuntu1) maverick; urgency=low
+
+ * Add build-dep on libqt4-webkit-dev to fix FTBFS with Qt 4.7
+
+ -- Scott Kitterman <scott@kitterman.com> Sat, 19 Jun 2010 00:37:12 -0400
+
+freecad (0.9.2646.5.dfsg-1) unstable; urgency=low
+
+ * Add 'dfsg' extension to upstream version, upstream sources are unchanged.
+ * Remove libgl1-mesa-dev build-dep, rely on libcoin to pull in GL libraries.
+ * Change build-dep libatlas-headers to libatlas-dev (closes: #577309).
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Fri, 14 May 2010 17:20:35 +0200
+
+freecad (0.9.2646.5-1) unstable; urgency=low
+
+ * New upstream version (closes: #561696).
+ * Added swig to Build-Depends (closes: #563523, #563772).
+ * Removed python-opencv from Build-Depends and Recommends (closes: #560768).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Mon, 11 Jan 2010 08:48:33 -0500
+
+freecad (0.9.2646.4-1) unstable; urgency=low
+
+ * New upstream version (closes: #559849, #559846).
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Fri, 11 Dec 2009 20:21:32 -0500
+
+freecad (0.9.2646.3-1) unstable; urgency=low
+
+ * New upstream version. Removes TiddlySaver.jar, fixes help problems.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 03 Dec 2009 19:39:27 +0100
+
+freecad (0.9.2646-1) unstable; urgency=low
+
+ [ Werner Mayer ]
+ * New upstream release
+ * In-source copy of PyCXX has been dropped (closes: #547936)
+ * In-source copy of zipios++ has been dropped (closes: #547941)
+ * Change build-dependency on python2.5-dev to python-dev
+ * Add freecad-doc binary package
+ * Remove Suggestion of a chm viewer, suggest freecad-doc instead
+
+ [ Teemu Ikonen ]
+ * Add override to dh_compress
+ * Add versioned build-deb to debhelper (>= 7.0.50)
+ * Add build-deps to libzipios++-dev and python-cxx-dev.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 17 Nov 2009 14:22:00 +0100
+
+freecad (0.8.2237-2) unstable; urgency=low
+
+ * Added libboost-python-dev to Build-Depends (closes: #549738).
+ * Added myself to uploaders list.
+ * Bumped Standards-Version.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Thu, 12 Nov 2009 12:02:42 -0500
+
+freecad (0.8.2237-1) unstable; urgency=low
+
+ * New Upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 16 Jul 2009 18:37:41 +0200
+
+freecad (0.7.1658-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Mon, 20 Oct 2008 15:35:58 +0200
+
+freecad (0.7.1514-1) UNRELEASED; urgency=low
+
+ * New upstream version
+ * Add more stuff to the copyright file
+ * control: add build-dep to python-central
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
+
+freecad (0.7.1350-1hardy1) UNRELEASED; urgency=low
+
+ * Package for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
+
+freecad (0.7.1350-1gutsy1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
+
+freecad (0.7.1350-1feisty1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.04 (Feisty Fawn)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
+
+freecad (0.7.1350-1) UNRELEASED; urgency=low
+
+ * New upstream release from sf.net
+ * Import to debian-science repository at git.debian.org
+ * control:
+ - Update to standards-version 3.7.3
+ - Add Vcs-* fields pointing to git.debian.org
+ - Improve descriptions
+ * Convert copyright to (pseudo) machine readable format, audit source
+ * Fix categories in .desktop file
+ * Change Section to Science/Engineering in .doc-base and menu files
+ * rules: do not ignore errors on clean target, add dh_desktop call
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 05 Aug 2008 18:58:07 +0200
+
+freecad (0.7.1344-1ubuntu2) UNRELEASED; urgency=low
+
+ * New package with fixed self-dependency problem
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
+
+freecad (0.7.1344-1ubuntu1) UNRELEASED; urgency=low
+
+ * New debian package for Feisty
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
+
+freecad (0.7.1344-1) UNRELEASED; urgency=low
+
+ * Write patch file to make builds with OpenCASCADE libs inside but with no
+ dependency to libopencascade6.2
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
+
+freecad (0.7.1343-1) UNRELEASED; urgency=low
+
+ * Embed required OpenCASCADE libs into this package as long as no official
+ Debian package is available
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
+
+freecad (0.7.1342-1) UNRELEASED; urgency=low
+
+ * Switch to new versioning scheme of OpenCASCADE packages
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
+
+freecad (0.7.1316-1) UNRELEASED; urgency=low
+
+ * Support of pivy (Python binding for Coin/SoQt)
+ * Support of PyQt4
+ * General support of SWIG modules
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
+
+freecad (0.7.1031-1) UNRELEASED; urgency=low
+
+ * Qt4 port finished
+ * Support of Python binding for Qt4
+ * Support of Python binding for Coin
+ * Support of entirely in Python written modules
+ * Added support of model driven architecture for Python binding
+ * Use boost's signal/slot mechanism to update data
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
+
+freecad (0.7.645-1) UNRELEASED; urgency=low
+
+ * Qt4 port started
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
+
+freecad (0.6.472-1) UNRELEASED; urgency=low
+
+ * Initial Release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
+
--- freecad-0.12.4484.orig/debian/freecad.links
+++ freecad-0.12.4484/debian/freecad.links
@@ -0,0 +1,3 @@
+usr/lib/freecad/bin/FreeCAD usr/bin/freecad
+usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
+usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
--- freecad-0.12.4484.orig/debian/freecad.sharedmimeinfo
+++ freecad-0.12.4484/debian/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
--- freecad-0.12.4484.orig/debian/watch
+++ freecad-0.12.4484/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/free-cad/freecad_(.+)\.orig\.tar\.gz
--- freecad-0.12.4484.orig/debian/shlibs.local
+++ freecad-0.12.4484/debian/shlibs.local
@@ -0,0 +1,2 @@
+libGL 1 libgl1-mesa-glx (>= 7.7.1-1)
+libSoQt4 20 libsoqt4-20 (>= 1.4.2~svn20090224)
--- freecad-0.12.4484.orig/debian/freecad.1
+++ freecad-0.12.4484/debian/freecad.1
@@ -0,0 +1,73 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+freecad \- An extensible Open Source CAx program for Unix/X11
+.SH SYNOPSIS
+.B freecad
+.RI [ options ] " files"
+.br
+.B freecadcmd
+.RI [ options ] " files"
+.SH DESCRIPTION
+.B FreeCAD
+is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
+some key concepts like macro recording, workbenches, ability to run as a
+server and dynamically loadable application extensions and it is designed
+to be platform independent.
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+.SH USAGE
+\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of the options supported by \fBfreecad\fR is included below.
+.SS "Generic options"
+.TP
+\fB\-h, \-\-help\fR
+Show summary of options.
+.TP
+\fB\-v, \-\-version\fR
+Show version of program.
+.TP
+\fB\-c, \-\-console\fR
+Start in console mode.
+.TP
+\fB\-\-response\-file\fR \fIarg\fR
+Can be specified with '@name', too.
+
+.SS "Configuration"
+.TP
+\fB\-l, \-\-write\-log\fR
+Write a log file.
+.TP
+\fB\-t, \-\-run\-test\fR \fIarg\fR
+Test level.
+.TP
+\fB\-M, \-\-module\-path\fR \fIarg\fR
+Additional module path.
+.TP
+\fB\-P, \-\-python\-path\fR \fIarg\fR
+Additional Python path.
+.SH SEE ALSO
+To get more information about \fBFreeCAD\fR, please visit \fIhttps://freecadweb.org/wiki\fR
+.SH BUGS
+To report a bug, please visit \fIhttps://freecadweb.org/tracker/\fR
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.12.4484.orig/debian/rules
+++ freecad-0.12.4484/debian/rules
@@ -0,0 +1,113 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing ReverseEngineering Complete Fem Robot Import Inspection Arch
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: autogen.sh
+ dh_testdir
+ chmod u+x autogen.sh
+ ./autogen.sh
+
+config.status: configure
+ dh_testdir
+ ./configure --with-occ-include=/usr/include/opencascade \
+--with-occ-lib=/usr/lib \
+--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+--prefix=/usr/lib/freecad --mandir=/usr/share/man \
+--infodir=/usr/share/info --datadir=/usr/share/freecad \
+--includedir=/usr/include/freecad --docdir=/usr/share/doc/freecad \
+CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch $@
+
+clean:
+ dh clean
+ rm -f build-stamp
+ find -name '*.pyc' | xargs rm -f
+ find -name 'moc_*.cpp' | xargs rm -f
+ find -name '*.lo' | xargs rm -f
+ find -name '*.deps' | xargs rm -rf
+ find -name '*.libs' | xargs rm -rf
+ rm -f stamp-h1 config.log libtool
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/freecad
+ # Remove testing modules we don't want to have in the deb
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/_TEMPLATE_
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/TemplatePyMod
+ # install the core system
+ dh_install -pfreecad debian/tmp/freecad/usr/share/freecad/* usr/share/freecad/
+ #dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/share usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/bin usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/FreeCAD.so usr/lib/freecad/lib
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/lib*.so.* usr/lib/freecad/lib
+ dh_install debian/freecad.desktop usr/share/applications
+ dh_installman debian/freecad.1
+ dh_installchangelogs ChangeLog.txt
+ # install the modules
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/$(MODULE)*.so usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so.* usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/*.py usr/lib/freecad/Mod/$(MODULE);)
+ # special treating of PartDesign module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/PartDesign/Scripts/*.py usr/lib/freecad/Mod/PartDesign/Scripts;)
+ # special treating of Draft module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.py usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/draftlibs/*.py usr/lib/freecad/Mod/Draft/draftlibs
+ # special treating of Test module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/lib*.so.* usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/*.py usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/QtUnitGui.so usr/lib/freecad/Mod/Test
+
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/include/* usr/include
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.so usr/lib/freecad/lib
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so usr/lib/freecad/Mod/$(MODULE);)
+
+ # special treating of Arch module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Arch/*.py usr/lib/freecad/Mod/Arch
+
+ # install the help system
+ dh_install -pfreecad-doc debian/tmp/freecad/usr/share/doc/* usr/share/doc/
+ touch install-stamp
+
+override_dh_compress:
+ dh_compress -X.qch -X.qhc
+
+override_dh_makeshlibs:
+
+
+binary-indep: build install
+ dh binary-indep
+
+binary-arch: build install
+ dh binary-arch
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- freecad-0.12.4484.orig/debian/freecad.desktop
+++ freecad-0.12.4484/debian/freecad.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Version=1.0
+Name=FreeCAD
+Name[de]=FreeCAD
+Comment=Feature based Parametric Modeler
+Comment[de]=Feature-basierter parametrischer Modellierer
+GenericName=CAD Application
+GenericName[de]=CAD-Anwendung
+Exec=/usr/bin/freecad %F
+Path=/usr/lib/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/freecad.xpm
+Categories=Graphics;Science;Engineering
+StartupNotify=true
+GenericName[de_DE]=Feature-basierter parametrischer Modellierer
+Comment[de_DE]=Feature-basierter parametrischer Modellierer
+MimeType=application/x-extension-fcstd
--- freecad-0.12.4484.orig/debian/menu
+++ freecad-0.12.4484/debian/menu
@@ -0,0 +1,6 @@
+?package(freecad):needs="X11"\
+ section="Applications/Science/Engineering"\
+ title="FreeCAD"\
+ command="/usr/bin/freecad"\
+ icon="/usr/share/freecad/freecad.xpm"
+
--- freecad-0.12.4484.orig/debian/copyright
+++ freecad-0.12.4484/debian/copyright
@@ -0,0 +1,275 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+X-Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
+X-Packaged-Date: 2006-09-26_16:55:15+02:00
+Source: http://sourceforge.net/projects/free-cad
+
+Files: *
+Copyright: 2001-2009 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: LGPL-2+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: src/3rdParty/boost/numeric/bindings/*
+Copyright: 2002-2008 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
+ Andreas Kloeckner, Jeremy Conlin, Thomas Klimpel, Fabien Dekeyser,
+ Quoc-Cuong Pham, Si-Lab b.v.b.a., Joerg Walter
+License: other-boost-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/boost/numeric/bindings/lapack/lapack.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/std_valarray.hpp
+Copyright: 2003 Toon Knapen, Kresimir Fresl, Karl Meerbergen
+License: other
+ * Permission to copy, modify, use and distribute this software
+ * for any non-commercial or commercial purpose is granted provided
+ * that this license appear on all copies of the software source code.
+ *
+ * Authors assume no responsibility whatsoever for its use and makes
+ * no guarantees about its quality, correctness or reliability.
+ *
+ * KF acknowledges the support of the Faculty of Civil Engineering,
+ * University of Zagreb, Croatia.
+
+Files: src/Base/Base64.*
+Copyright: 2004-2008 Rene Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
+License: other
+ This source code is provided 'as-is', without any express or implied
+ warranty. In no event will the author be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this source code must not be misrepresented; you must not
+ claim that you wrote the original source code. If you use this source code
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original source code.
+ .
+ 3. This notice may not be removed or altered from any source distribution.
+
+Files: src/Base/fdstream.hpp
+Copyright: 2001 Nicolai M. Josuttis
+License: other
+ Permission to copy, use, modify, sell and distribute this software
+ is granted provided this copyright notice appears in all copies.
+ This software is provided "as is" without express or implied
+ warranty, and with no claim as to its suitability for any purpose.
+
+Files: src/Base/gzstream.*
+Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
+License: LGPL-2.1+
+
+Files: src/Base/PyTools.*
+Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
+License: other
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. This software
+ is provided on an as is basis, without warranties of any kind.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2004-2009 UnaMesa Association
+License: BSD
+ Copyright (c) UnaMesa Association 2004-2009
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ .
+ Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ .
+ Neither the name of the UnaMesa Association nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS
+ IS' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2009 John Resig
+License: GPL-2 or MIT
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: src/Doc/Start_Page.html
+Copyright: 2009 The Dojo Foundation, http://sizzlejs.com/
+License: GPL-2 or MIT or BSD
+
+Files: src/Gui/iisTaskPanel/src/*
+Copyright: http://www.ii-system.com
+License: LGPL
+
+Files: src/Mod/Draft/*
+Copyright: Yorik van Havre, Werner Mayer, Martin Burbaum
+License: GPL-2+
+
+Files: src/Mod/Draft/draftlibs/dxf*
+Copyright: 2005-2008 Ed Blake, Remigiusz Fiedler, Stani Michiels
+License: GPL-2+
+
+Files: src/Mod/Draft/WorkingPlane.py
+Copyright: 2009-2010 Ken Cline <cline@frii.com>
+License: GPL-2+
+
+Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
+ src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
+ src/Mod/Mesh/App/Core/*
+Copyright: 2005 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
+ src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
+Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*
+Copyright: 2005 Berthold Grupp
+License: LGPL-2+
+
+Files: src/Mod/Mesh/BuildRegularGeoms.py
+Copyright: 2005 Berthold Grupp
+License: LGPL
+
+Files: src/Mod/Image/App/ImageBase.*, src/Mod/Image/Gui/GLImageBox.*,
+ src/Mod/Image/Gui/ImageView.*, src/Mod/Image/Gui/XpmImages.h
+Copyright: 2004 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/tritritest.h
+Copyright: 1997 Tomas Moller <tam@cs.lth.se>
+License: other
+ tritritest.h has no licensing information, but Tomas Moller replied
+ the following, when asked about it:
+ .
+ The code is free to use for anyone and any projects, but I give no
+ warranties.
+
+Files: src/Mod/Mesh/App/WildMagic4/*
+Copyright: 1998-2007 David Eberly http://www.geometrictools.com
+License: LGPL-2.1+
+
+Files: src/Mod/Part/App/edgecluster.*
+Copyright: 2010 Joachim Zettler <Joachim.Zettler@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Raytracing/App/resources/*
+Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
+ Juergen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Mod/Sketcher/App/sketchflat/*
+Copyright: 2008 Jonathan Westhues
+License: GPL-3+
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in '/usr/share/common-licenses/GPL-3'.
+
+Files: src/Mod/Sketcher/App/sketchsolve_cp/*
+Copyright: 2009 Jonathan George
+License: BSD
+
+Files: src/Mod/Test/unittestgui.py
+Copyright: 1999-2001 Steve Purcell
+License: PSF
+ This module is free software, and you may redistribute it and/or modify
+ it under the same terms as Python itself, so long as this copyright message
+ and disclaimer are retained in their original form.
+ .
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+ SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+ THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+Files: src/Mod/Part/MakeBottle.py, src/Tools/*
+Copyright: 2002-2008 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: GPL-2+
+
+Files: src/Tools/generateBase/generateDS.py
+Copyright: 2003 Dave Kuhlman
+License: MIT
+
+Files: debian/*
+Copyright: 2007-2009 Werner Mayer <wmayer@users.sourceforge.net>,
+ Teemu Ikonen <tpikonen@gmail.com>
+License: LGPL-2+
--- freecad-0.12.4484.orig/debian/compat
+++ freecad-0.12.4484/debian/compat
@@ -0,0 +1 @@
+7
--- freecad-0.12.4484.orig/debian/control
+++ freecad-0.12.4484/debian/control
@@ -0,0 +1,67 @@
+Source: freecad
+Section: science
+Priority: extra
+Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Teemu Ikonen <tpikonen@gmail.com>, "Adam C. Powell, IV" <hazelsct@debian.org>, Anton Gladky <gladky.anton@gmail.com>
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/freecad.git
+Vcs-Git: git://git.debian.org/git/debian-science/packages/freecad.git
+Homepage: http://juergen-riegel.net/FreeCAD/Docu/index.php?title=Main_Page
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev, libtool, automake,
+ autoconf, libboost-dev, libboost-date-time-dev, libboost-filesystem-dev,
+ libboost-graph-dev, libboost-iostreams-dev, libboost-program-options-dev,
+ libboost-regex-dev, libboost-serialization-dev, libboost-signals-dev,
+ libboost-python-dev, python-dev, python-support,
+ libqt4-dev, libxt-dev, libxext-dev, libxmu-dev, libxi-dev, libx11-dev,
+ libcoin60-dev, libsoqt4-dev (>= 1.4.2~svn20090224), libeigen2-dev, libeigen3-dev, libgl1-mesa-dev,
+ zlib1g-dev, libxerces-c2-dev, libopencascade-foundation-dev,
+ libopencascade-modeling-dev, libopencascade-ocaf-dev,
+ libopencascade-visualization-dev, python-cxx-dev, libswscale-dev,
+ libzipios++-dev, swig, gfortran, libqtwebkit-dev
+Standards-Version: 3.9.1
+
+Package: freecad
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Recommends: python-pivy
+Suggests: freecad-doc
+Description: Extensible Open Source CAx program (alpha)
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ .
+ Currently, FreeCAD can import and display CAD models in IGES, STEP, and
+ BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
+ Editing and modeling features are currently somewhat limited.
+
+Package: freecad-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, freecad (= ${binary:Version})
+Description: FreeCAD development files
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains headers and symlinks necessary to
+ develop modules for FreeCAD.
+
+Package: freecad-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, qt4-dev-tools
+Description: FreeCAD documentation
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the FreeCAD documentation.
+ .
+ The documentation is provided in Qt's new help format;
+ the new help format version can be viewed in conjunction with the Qt Assistant
+ found in the qt4-dev-tools package.
+
--- freecad-0.12.4484.orig/debian/source/lintian-overrides
+++ freecad-0.12.4484/debian/source/lintian-overrides
@@ -0,0 +1,3 @@
+# Lintian thinks uploader Adam Powell's name violates policy
+freecad source: uploader-address-missing "Adam C. Powell
+freecad source: uploader-not-full-name IV"
--- freecad-0.12.4484.orig/debian/source/format
+++ freecad-0.12.4484/debian/source/format
@@ -0,0 +1 @@
+1.0
File diff suppressed because it is too large Load Diff
-682
View File
@@ -1,682 +0,0 @@
--- freecad-0.9.2646.orig/debian/compat
+++ freecad-0.9.2646/debian/compat
@@ -0,0 +1 @@
+7
--- freecad-0.9.2646.orig/debian/control
+++ freecad-0.9.2646/debian/control
@@ -0,0 +1,67 @@
+Source: freecad
+Section: science
+Priority: extra
+Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Teemu Ikonen <tpikonen@gmail.com>, "Adam C. Powell, IV" <hazelsct@debian.org>
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/freecad.git
+Vcs-Git: git://git.debian.org/git/debian-science/packages/freecad.git
+Homepage: http://juergen-riegel.net/FreeCAD/Docu/index.php?title=Main_Page
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev,
+ libboost-dev, libboost-date-time-dev, libboost-filesystem-dev,
+ libboost-graph-dev, libboost-iostreams-dev, libboost-program-options-dev,
+ libboost-regex-dev, libboost-serialization-dev, libboost-signals-dev,
+ libboost-python-dev, python-dev, python-opencv, python-support,
+ libqt4-dev, libxt-dev, libxext-dev, libxmu-dev, libxi-dev, libx11-dev,
+ libcoin60-dev, libsoqt4-dev (>= 1.4.2~svn20090224), libgl1-mesa-dev,
+ libgts-bin, libgts-dev, libcv-dev, zlib1g-dev, libxerces-c2-dev,
+ libopencascade-foundation-dev, libopencascade-modeling-dev, python-cxx-dev,
+ libswscale-dev, libblas-dev, libatlas-headers, libzipios++-dev
+Standards-Version: 3.8.3
+
+Package: freecad
+Architecture: any
+Section: science
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Recommends: python-pivy
+Suggests: freecad-doc, python-opencv
+Description: An extensible Open Source CAx program (alpha)
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ .
+ Currently, FreeCAD can import and display CAD models in IGES, STEP, and
+ BRep formats and meshes in STL, BMS, AST and Wavefront OBJ formats.
+ Editing and modeling features are currently somewhat limited.
+
+Package: freecad-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}, freecad (= ${binary:Version})
+Description: FreeCAD development files
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the libtool .la files, headers and symlinks necessary to
+ develop modules for FreeCAD.
+
+Package: freecad-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, qt4-dev-tools
+Description: FreeCAD documentation
+ FreeCAD is an Open Source CAx RAD based on OpenCasCade, Qt and Python.
+ It features some key concepts like macro recording, workbenches, ability
+ to run as a server and dynamically loadable application extensions and
+ it is designed to be platform independent.
+ For more details see http://sourceforge.net/projects/free-cad
+ .
+ This package contains the FreeCAD documentation.
+ .
+ The documentation is provided in Qt's new help format;
+ the new help format version can be viewed in conjunction with the Qt Assistant
+ found in the qt4-dev-tools package.
+
--- freecad-0.9.2646.orig/debian/rules
+++ freecad-0.9.2646/debian/rules
@@ -0,0 +1,109 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+MODULES = Part Mesh MeshPart PartDesign Sketcher Points Raytracing Image Drawing ReverseEngineering Complete
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure: autogen.sh
+ dh_testdir
+ chmod u+x autogen.sh
+ ./autogen.sh
+
+config.status: configure
+ dh_testdir
+ ./configure --with-occ-include=/usr/include/opencascade \
+--with-occ-lib=/usr/lib \
+--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+--prefix=/usr/lib/freecad --mandir=/usr/share/man \
+--infodir=/usr/share/info --datadir=/usr/share/freecad \
+--includedir=/usr/include/freecad --docdir=/usr/share/doc/freecad \
+CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+ $(MAKE)
+ touch $@
+
+clean:
+ dh clean
+ rm -f build-stamp
+ find -name '*.pyc' | xargs rm -f
+ find -name 'moc_*.cpp' | xargs rm -f
+ find -name '*.lo' | xargs rm -f
+ find -name '*.deps' | xargs rm -rf
+ find -name '*.libs' | xargs rm -rf
+ rm -f stamp-h1 config.log libtool
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/freecad
+ # Remove testing modules we don't want to have in the deb
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/_TEMPLATE_
+ rm -rf debian/tmp/freecad/usr/lib/freecad/Mod/TemplatePyMod
+ # install the core system
+ dh_install -pfreecad debian/tmp/freecad/usr/share/freecad/* usr/share/freecad/
+ #dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/share usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/bin usr/lib/freecad
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/FreeCAD.so usr/lib/freecad/lib
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/lib/lib*.so.* usr/lib/freecad/lib
+ dh_install debian/freecad.desktop usr/share/applications
+ dh_installman debian/freecad.1
+ dh_installchangelogs ChangeLog.txt
+ # install the modules
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/$(MODULE)*.so usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so.* usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/*.py usr/lib/freecad/Mod/$(MODULE);)
+ # special treating of Draft module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.py usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.svg usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/*.ui usr/lib/freecad/Mod/Draft
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Draft/draftlibs/*.py usr/lib/freecad/Mod/Draft/draftlibs
+ # special treating of Test module
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/lib*.so.* usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/*.py usr/lib/freecad/Mod/Test
+ dh_install -pfreecad debian/tmp/freecad/usr/lib/freecad/Mod/Test/QtUnitGui.so usr/lib/freecad/Mod/Test
+
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/include/* usr/include
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.la usr/lib/freecad/lib
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/lib/lib*.so usr/lib/freecad/lib
+ $(foreach MODULE,$(MODULES), \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.la usr/lib/freecad/Mod/$(MODULE); \
+ dh_install -pfreecad-dev debian/tmp/freecad/usr/lib/freecad/Mod/$(MODULE)/lib*.so usr/lib/freecad/Mod/$(MODULE);)
+
+ # install the help system
+ dh_install -pfreecad-doc debian/tmp/freecad/usr/share/doc/* usr/share/doc/
+ touch install-stamp
+
+override_dh_compress:
+ dh_compress -X.qch -X.qhc
+
+binary-indep: build install
+ dh binary-indep
+
+binary-arch: build install
+ dh binary-arch
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- freecad-0.9.2646.orig/debian/copyright
+++ freecad-0.9.2646/debian/copyright
@@ -0,0 +1,221 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Upstream-Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-By: Werner Mayer <wmayer@users.sourceforge.net>
+Packaged-Date: 2006-09-26_16:55:15+02:00
+Original-Source-Location: http://sourceforge.net/projects/free-cad
+
+Files: *
+Copyright: 2001-2009 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: LGPL-2+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, US
+ .
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2 can be found in `/usr/share/common-licenses/LGPL-2'.
+
+Files: src/3rdParty/boost/numeric/bindings/*
+Copyright: 2002-2008 Kresimir Fresl, Karl Meerbergen, Toon Knapen,
+ Andreas Kloeckner, Jeremy Conlin, Thomas Klimpel, Fabien Dekeyser,
+ Quoc-Cuong Pham, Si-Lab b.v.b.a., Joerg Walter
+License: other-boost-1.0
+ Boost Software License - Version 1.0 - August 17th, 2003
+ .
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by
+ this license (the "Software") to use, reproduce, display, distribute,
+ execute, and transmit the Software, and to prepare derivative works of the
+ Software, and to permit third-parties to whom the Software is furnished to
+ do so, all subject to the following:
+ .
+ The copyright notices in the Software and this entire statement, including
+ the above license grant, this restriction and the following disclaimer,
+ must be included in all copies of the Software, in whole or in part, and
+ all derivative works of the Software, unless such copies or derivative
+ works are solely in the form of machine-executable object code generated by
+ a source language processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+ SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+ FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+
+Files: src/3rdParty/boost/numeric/bindings/lapack/lapack.hpp,
+ src/3rdParty/boost/numeric/bindings/traits/std_valarray.hpp
+Copyright: 2003 Toon Knapen, Kresimir Fresl, Karl Meerbergen
+License: other
+ * Permission to copy, modify, use and distribute this software
+ * for any non-commercial or commercial purpose is granted provided
+ * that this license appear on all copies of the software source code.
+ *
+ * Authors assume no responsibility whatsoever for its use and makes
+ * no guarantees about its quality, correctness or reliability.
+ *
+ * KF acknowledges the support of the Faculty of Civil Engineering,
+ * University of Zagreb, Croatia.
+
+Files: src/Base/Base64.*
+Copyright: 2004-2008 Rene Nyffenegger <rene.nyffenegger@adp-gmbh.ch>
+License: other
+ This source code is provided 'as-is', without any express or implied
+ warranty. In no event will the author be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this source code must not be misrepresented; you must not
+ claim that you wrote the original source code. If you use this source code
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original source code.
+ .
+ 3. This notice may not be removed or altered from any source distribution.
+
+Files: src/Base/fdstream.hpp
+Copyright: 2001 Nicolai M. Josuttis
+License: other
+ Permission to copy, use, modify, sell and distribute this software
+ is granted provided this copyright notice appears in all copies.
+ This software is provided "as is" without express or implied
+ warranty, and with no claim as to its suitability for any purpose.
+
+Files: src/Base/gzstream.*
+Copyright: 2001 Deepak Bandyopadhyay, Lutz Kettner
+License: LGPL-2.1+
+
+Files: src/Base/PyTools.*
+Copyright: 1996-2000 Mark Lutz, and O'Reilly and Associates.
+License: other
+ Permission to use, copy, modify, and distribute this software
+ for any purpose and without fee is hereby granted. This software
+ is provided on an as is basis, without warranties of any kind.
+
+Files: src/Gui/iisTaskPanel/src/*
+Copyright: http://www.ii-system.com
+License: LGPL
+
+Files: src/Mod/Draft/*
+Copyright: Yorik van Havre, Werner Mayer, Martin Burbaum
+License: GPL-2+
+
+Files: src/Mod/Draft/draftlibs/dxf*
+Copyright: 2005-2008 Ed Blake, Remigiusz Fiedler, Stani Michiels
+License: GPL-2+
+
+Files: src/Base/BoundBox.h, src/Base/Swap.*, src/Base/Vector3D.*,
+ src/Base/ViewProj.h, src/Base/Matrix.*, src/Base/Tools2D.*,
+ src/Mod/Mesh/App/Core/*
+Copyright: 2005 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Projection.cpp, src/Mod/Mesh/App/Core/Projection.h,
+ src/Mod/Mesh/App/Core/Triangulation.cpp, src/Mod/Mesh/App/Core/Triangulation.h
+Copyright: 2005 Werner Mayer <werner.wm.mayer@gmx.de>
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/Builder.h, src/Mod/Mesh/App/Core/SetOperations.*
+Copyright: 2005 Berthold Grupp
+License: LGPL-2+
+
+Files: src/Mod/Mesh/BuildRegularGeoms.py
+Copyright: 2005 Berthold Grupp
+License: LGPL
+
+Files: src/Mod/Image/App/ImageBase.*, src/Mod/Image/Gui/GLImageBox.*,
+ src/Mod/Image/Gui/ImageView.*, src/Mod/Image/Gui/XpmImages.h
+Copyright: 2004 Imetric 3D GmbH
+License: LGPL-2+
+
+Files: src/Mod/Mesh/App/Core/tritritest.h
+Copyright: 1997 Tomas Moller <tam@cs.lth.se>
+License: other
+ tritritest.h has no licensing information, but Tomas Moller replied
+ the following, when asked about it:
+ .
+ The code is free to use for anyone and any projects, but I give no
+ warranties.
+
+Files: src/Mod/Mesh/App/WildMagic4/*
+Copyright: 1998-2007 David Eberly http://www.geometrictools.com
+License: LGPL-2.1+
+
+Files: src/Mod/Raytracing/App/resources/*
+Copyright: 2005 Georg Wiora <georg.wiora@quarkbox.de>,
+ Juergen Riegel <juergen.riegel@web.de>
+License: LGPL-2+
+
+Files: src/Mod/Sketcher/App/sketchflat/*
+Copyright: 2008 Jonathan Westhues
+License: GPL-3+
+ On Debian systems, the complete text of the GNU General Public License
+ version 3 can be found in '/usr/share/common-licenses/GPL-3'.
+
+Files: src/Mod/Test/unittestgui.py
+Copyright: 1999-2001 Steve Purcell
+License: PSF
+ This module is free software, and you may redistribute it and/or modify
+ it under the same terms as Python itself, so long as this copyright message
+ and disclaimer are retained in their original form.
+ .
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
+ SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF
+ THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS,
+ AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
+ SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+
+Files: src/Mod/Part/MakeBottle.py, src/Tools/*
+Copyright: 2002-2008 Jürgen Riegel <juergen.riegel@web.de>,
+ Werner Mayer <wmayer@users.sourceforge.net>
+License: GPL-2+
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in '/usr/share/common-licenses/GPL-2'.
+
+Files: src/Tools/generateBase/generateDS.py
+Copyright: 2003 Dave Kuhlman
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2007-2009 Werner Mayer <wmayer@users.sourceforge.net>,
+ Teemu Ikonen <tpikonen@gmail.com>
+License: LGPL-2+
--- freecad-0.9.2646.orig/debian/freecad.sharedmimeinfo
+++ freecad-0.9.2646/debian/freecad.sharedmimeinfo
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="application/x-extension-fcstd">
+ <sub-class-of type="application/zip"/>
+ <comment>FreeCAD document files</comment>
+ <glob pattern="*.fcstd"/>
+ </mime-type>
+</mime-info>
--- freecad-0.9.2646.orig/debian/freecad.desktop
+++ freecad-0.9.2646/debian/freecad.desktop
@@ -0,0 +1,19 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=FreeCAD
+Name[de]=FreeCAD
+Comment=Feature based Parametric Modeler
+Comment[de]=Feature-basierter parametrischer Modellierer
+GenericName=CAD Application
+GenericName[de]=CAD-Anwendung
+Exec=/usr/bin/freecad %F
+Path=/usr/lib/freecad
+Terminal=false
+Type=Application
+Icon=/usr/share/freecad/FCIcon.xpm
+Categories=Graphics;Science;Engineering
+StartupNotify=true
+GenericName[de_DE]=Feature-basierter parametrischer Modellierer
+Comment[de_DE]=Feature-basierter parametrischer Modellierer
+MimeType=application/x-extension-fcstd
--- freecad-0.9.2646.orig/debian/freecad.1
+++ freecad-0.9.2646/debian/freecad.1
@@ -0,0 +1,73 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+freecad \- An extensible Open Source CAx program for Unix/X11
+.SH SYNOPSIS
+.B freecad
+.RI [ options ] " files"
+.br
+.B freecadcmd
+.RI [ options ] " files"
+.SH DESCRIPTION
+.B FreeCAD
+is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
+some key concepts like macro recording, workbenches, ability to run as a
+server and dynamically loadable application extensions and it is designed
+to be platform independent.
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+.SH USAGE
+\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of the options supported by \fBfreecad\fR is included below.
+.SS "Generic options"
+.TP
+\fB\-h, \-\-help\fR
+Show summary of options.
+.TP
+\fB\-v, \-\-version\fR
+Show version of program.
+.TP
+\fB\-c, \-\-console\fR
+Start in console mode.
+.TP
+\fB\-\-response\-file\fR \fIarg\fR
+Can be specified with '@name', too.
+
+.SS "Configuration"
+.TP
+\fB\-l, \-\-write\-log\fR
+Write a log file.
+.TP
+\fB\-t, \-\-run\-test\fR \fIarg\fR
+Test level.
+.TP
+\fB\-M, \-\-module\-path\fR \fIarg\fR
+Additional module path.
+.TP
+\fB\-P, \-\-python\-path\fR \fIarg\fR
+Additional Python path.
+.SH SEE ALSO
+To get more information about \fBFreeCAD\fR, please visit \fIhttps://freecadweb.org/wiki\fR
+.SH BUGS
+To report a bug, please visit \fIhttps://freecadweb.org/tracker/\fR
+.SH AUTHOR
+This manual page was written by Werner Mayer.
--- freecad-0.9.2646.orig/debian/watch
+++ freecad-0.9.2646/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/free-cad/freecad_(.+)\.orig\.tar\.gz
--- freecad-0.9.2646.orig/debian/menu
+++ freecad-0.9.2646/debian/menu
@@ -0,0 +1,6 @@
+?package(freecad):needs="X11"\
+ section="Applications/Science/Engineering"\
+ title="FreeCAD"\
+ command="/usr/bin/freecad"\
+ icon="/usr/share/freecad/FCIcon.xpm"
+
--- freecad-0.9.2646.orig/debian/freecad.links
+++ freecad-0.9.2646/debian/freecad.links
@@ -0,0 +1,3 @@
+usr/lib/freecad/bin/FreeCAD usr/bin/freecad
+usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
+usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
--- freecad-0.9.2646.orig/debian/changelog
+++ freecad-0.9.2646/debian/changelog
@@ -0,0 +1,140 @@
+freecad (0.9.2646-1) unstable; urgency=low
+
+ [ Werner Mayer ]
+ * New upstream release
+ * In-source copy of PyCXX has been dropped (closes: #547936)
+ * In-source copy of zipios++ has been dropped (closes: #547941)
+ * Change build-dependency on python2.5-dev to python-dev
+ * Add freecad-doc binary package
+ * Remove Suggestion of a chm viewer, suggest freecad-doc instead
+
+ [ Teemu Ikonen ]
+ * Add override to dh_compress
+ * Add versioned build-deb to debhelper (>= 7.0.50)
+ * Add build-deps to libzipios++-dev and python-cxx-dev.
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 17 Nov 2009 14:22:00 +0100
+
+freecad (0.8.2237-2) unstable; urgency=low
+
+ * Added libboost-python-dev to Build-Depends (closes: #549738).
+ * Added myself to uploaders list.
+ * Bumped Standards-Version.
+
+ -- Adam C. Powell, IV <hazelsct@debian.org> Thu, 12 Nov 2009 12:02:42 -0500
+
+freecad (0.8.2237-1) unstable; urgency=low
+
+ * New Upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 16 Jul 2009 18:37:41 +0200
+
+freecad (0.7.1658-1) UNRELEASED; urgency=low
+
+ * New upstream release
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Mon, 20 Oct 2008 15:35:58 +0200
+
+freecad (0.7.1514-1) UNRELEASED; urgency=low
+
+ * New upstream version
+ * Add more stuff to the copyright file
+ * control: add build-dep to python-central
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Wed, 06 Aug 2008 18:25:02 +0200
+
+freecad (0.7.1350-1hardy1) UNRELEASED; urgency=low
+
+ * Package for Ubuntu 8.04 (Hardy Heron)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 29 May 2008 11:11:20 +0200
+
+freecad (0.7.1350-1gutsy1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.10 (Gutsy Gibbon)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 01:54:39 +0200
+
+freecad (0.7.1350-1feisty1) UNRELEASED; urgency=low
+
+ * Backport to Ubuntu 7.04 (Feisty Fawn)
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 24 May 2008 00:09:08 +0200
+
+freecad (0.7.1350-1) UNRELEASED; urgency=low
+
+ * New upstream release from sf.net
+ * Import to debian-science repository at git.debian.org
+ * control:
+ - Update to standards-version 3.7.3
+ - Add Vcs-* fields pointing to git.debian.org
+ - Improve descriptions
+ * Convert copyright to (pseudo) machine readable format, audit source
+ * Fix categories in .desktop file
+ * Change Section to Science/Engineering in .doc-base and menu files
+ * rules: do not ignore errors on clean target, add dh_desktop call
+ -- Teemu Ikonen <tpikonen@gmail.com> Tue, 05 Aug 2008 18:58:07 +0200
+
+freecad (0.7.1344-1ubuntu2) UNRELEASED; urgency=low
+
+ * New package with fixed self-dependency problem
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 15:34:34 +0200
+
+freecad (0.7.1344-1ubuntu1) UNRELEASED; urgency=low
+
+ * New debian package for Feisty
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Thu, 22 May 2008 11:04:06 +0200
+
+freecad (0.7.1344-1) UNRELEASED; urgency=low
+
+ * Write patch file to make builds with OpenCASCADE libs inside but with no
+ dependency to libopencascade6.2
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Wed, 21 May 2008 10:06:07 +0200
+
+freecad (0.7.1343-1) UNRELEASED; urgency=low
+
+ * Embed required OpenCASCADE libs into this package as long as no official
+ Debian package is available
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 20 May 2008 00:40:39 +0200
+
+freecad (0.7.1342-1) UNRELEASED; urgency=low
+
+ * Switch to new versioning scheme of OpenCASCADE packages
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 19 May 2008 23:55:31 +0200
+
+freecad (0.7.1316-1) UNRELEASED; urgency=low
+
+ * Support of pivy (Python binding for Coin/SoQt)
+ * Support of PyQt4
+ * General support of SWIG modules
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sat, 26 Apr 2008 13:51:25 +0200
+
+freecad (0.7.1031-1) UNRELEASED; urgency=low
+
+ * Qt4 port finished
+ * Support of Python binding for Qt4
+ * Support of Python binding for Coin
+ * Support of entirely in Python written modules
+ * Added support of model driven architecture for Python binding
+ * Use boost's signal/slot mechanism to update data
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 04 Jan 2008 13:50:37 +0200
+
+freecad (0.7.645-1) UNRELEASED; urgency=low
+
+ * Qt4 port started
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 24 Jul 2007 13:04:37 +0200
+
+freecad (0.6.472-1) UNRELEASED; urgency=low
+
+ * Initial Release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 26 Sep 2006 16:55:15 +0200
+
-207
View File
@@ -1,207 +0,0 @@
--- pivy-0.3.0.orig/interfaces/soqt.i
+++ pivy-0.3.0/interfaces/soqt.i
@@ -78,7 +78,7 @@
%include pivy_common_typemaps.i
/* import the pivy main interface file */
-%import coin.i
+%import(module="pivy") coin.i
/* typemaps to bridge against PyQt */
%typemap(out) QEvent * {
--- pivy-0.3.0.orig/debian/changelog
+++ pivy-0.3.0/debian/changelog
@@ -0,0 +1,5 @@
+pivy (0.3.0-1) unstable; urgency=low
+
+ * Initial release (Closes: #504617)
+
+ -- Teemu Ikonen <tpikonen@gmail.com> Thu, 13 Nov 2008 15:31:51 +0100
--- pivy-0.3.0.orig/debian/rules
+++ pivy-0.3.0/debian/rules
@@ -0,0 +1,62 @@
+#!/usr/bin/make -f
+
+CFLAGS = -Wall -g
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+ python setup.py build
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp install-stamp
+ python setup.py clean
+ dh_clean
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ python setup.py install --no-compile --root debian/python-pivy
+ #dh install --after dh_installdirs
+ touch install-stamp
+
+binary-indep: build install
+ #dh binary-indep
+
+binary-arch: build install
+ #dh binary-arch
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_desktop
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_pycentral
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- pivy-0.3.0.orig/debian/control
+++ pivy-0.3.0/debian/control
@@ -0,0 +1,25 @@
+Source: pivy
+Section: python
+Priority: extra
+Maintainer: Teemu Ikonen <tpikonen@gmail.com>
+Build-Depends: debhelper (>= 6), python-support, python-all-dev,
+ libsoqt4-dev, libcoin40-dev, libsimage-dev, swig
+Standards-Version: 3.8.0
+Homepage: http://pivy.coin3d.org/
+
+Package: python-pivy
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+Description: Coin binding for Python
+ Pivy is a Coin binding for Python. Coin is a high-level 3D graphics library
+ with a C++ Application Programming Interface. Coin uses scene-graph data
+ structures to render real-time graphics suitable for mostly all kinds of
+ scientific and engineering visualization applications.
+ Pivy allows:
+ .
+ * Development of Coin applications and extensions in Python
+ * Interactive modification of Coin programs from within the
+ Python interpreter at runtime
+ * Incorporation of Scripting Nodes into the scene graph which
+ are capable of executing Python code and callbacks
--- pivy-0.3.0.orig/debian/compat
+++ pivy-0.3.0/debian/compat
@@ -0,0 +1 @@
+6
--- pivy-0.3.0.orig/debian/pyversions
+++ pivy-0.3.0/debian/pyversions
@@ -0,0 +1 @@
+2.4-
--- pivy-0.3.0.orig/debian/pycompat
+++ pivy-0.3.0/debian/pycompat
@@ -0,0 +1 @@
+2
--- pivy-0.3.0.orig/debian/docs
+++ pivy-0.3.0/debian/docs
@@ -0,0 +1,6 @@
+NEWS
+README
+HACKING
+THANKS
+docs/ruby-inventor.txt
+
--- pivy-0.3.0.orig/debian/watch
+++ pivy-0.3.0/debian/watch
@@ -0,0 +1,10 @@
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# <Webpage URL> <string match>
+http://pivy.coin3d.org/download/pivy Pivy-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/pivy-(.*)\.tar\.gz
--- pivy-0.3.0.orig/debian/copyright
+++ pivy-0.3.0/debian/copyright
@@ -0,0 +1,58 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Upstream-Author: Tamer Fahmy <tamer@tammura.at>
+Packaged-By: Teemu Ikonen <tpikonen@gmail.com>
+Original-Source-Location: http://pivy.coin3d.org/download/pivy/releases/0.3.0/Pivy-0.3.0.tar.gz
+
+Files: *
+Copyright: 2002-2005 Tamer Fahmy <tamer@tammura.at>
+License: BSD-3
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: scons/*
+Copyright: 2001, 2002, 2003, 2004 The SCons Foundation
+License: other
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sublicense, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+ KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Files: debian/*
+Copyright: 2008 Teemu Ikonen <tpikonen@gmail.com>
+License: BSD-3
-181
View File
@@ -1,181 +0,0 @@
--- pythonocc-0.2.0.orig/src/environment.py
+++ pythonocc-0.2.0/src/environment.py
@@ -68,8 +68,8 @@
SWIG_FILES_PATH_MODULAR = os.path.join(os.getcwd(),'SWIG_src_modular_linux_darwin')
os.environ['CC'] = 'g++'
os.environ['CPP'] = 'g++'
- OCC_INC = '/usr/local/inc' # Ubuntu 8.04 Hardy default installation path for headers
- OCC_LIB = '/usr/local/lib' # Ubuntu 8.04 Hardy default installation path for libraries
+ OCC_INC = '/usr/include/opencascade' # Ubuntu 8.04 Hardy default installation path for headers
+ OCC_LIB = '/usr/lib' # Ubuntu 8.04 Hardy default installation path for libraries
SALOME_GEOM_INC = os.path.join(os.getcwd(),'..','ThirdPart','SalomeGeometry','inc')
SALOME_GEOM_LIB = os.path.join(os.getcwd(),'..','ThirdPart','SalomeGeometry','win32','lib')
GCC_XML_PATH = '/usr/bin' # Ubuntu 8.04 Hardy installation path for gccxml
--- pythonocc-0.2.0.orig/src/setup.py
+++ pythonocc-0.2.0/src/setup.py
@@ -167,19 +167,19 @@
#
# OpenCascade libs
#
-libraries = ['BinLPlugin', 'BinPlugin', 'BinXCAFPlugin', 'FWOSPlugin', 'mscmd', 'PTKernel',\
+libraries = ['BinLPlugin', 'BinPlugin', 'BinXCAFPlugin', 'FWOSPlugin', 'PTKernel',\
'StdLPlugin', 'StdPlugin', 'TKAdvTools', 'TKBin', 'TKBinL', 'TKBinTObj', 'TKBinXCAF',\
- 'TKBO', 'TKBool', 'TKBRep', 'TKCAF', 'TKCDF', 'TKCDLFront', 'TKCPPClient', 'TKCPPExt',\
- 'TKCPPIntExt', 'TKCPPJini', 'TKCSFDBSchema', 'TKDCAF', 'TKDraw', 'TKernel',\
- 'TKFeat', 'TKFillet', 'TKG2d', 'TKG3d', 'TKGeomAlgo', 'TKGeomBase', 'TKHLR', 'TKIDLFront',\
+ 'TKBO', 'TKBool', 'TKBRep', 'TKCAF', 'TKCDF', \
+ 'TKernel',\
+ 'TKFeat', 'TKFillet', 'TKG2d', 'TKG3d', 'TKGeomAlgo', 'TKGeomBase', 'TKHLR',\
'TKIGES', 'TKjcas','TKLCAF', 'TKMath', 'TKMesh', 'TKMeshVS', 'TKNIS', 'TKOffset',\
'TKOpenGl', 'TKPCAF', 'TKPLCAF', 'TKPrim', 'TKPShape', 'TKService', 'TKShapeSchema',\
'TKShHealing', 'TKStdLSchema', 'TKStdSchema', 'TKSTEP', 'TKSTEP209', 'TKSTEPAttr',\
- 'TKSTEPBase', 'TKSTL', 'TKTCPPExt', 'TKTObj', 'TKTObjDRAW', 'TKTopAlgo', 'TKTopTest',\
- 'TKV2d', 'TKV3d', 'TKViewerTest', 'TKVRML', 'TKWOK', 'TKWOKTcl', 'TKXCAF', 'TKXCAFSchema',\
- 'TKXDEDRAW', 'TKXDEIGES', 'TKXDESTEP', 'TKXMesh', 'TKXml', 'TKXmlL', 'TKXmlTObj',\
- 'TKXmlXCAF', 'TKXSBase', 'TKXSDRAW', 'wokcmd', 'wokdeliverysteps', 'wokdfltsteps',\
- 'wokobjssteps', 'wokorbixsteps', 'woksteps', 'woktoolscmd', 'wokutilscmd', 'XCAFPlugin',\
+ 'TKSTEPBase', 'TKSTL', 'TKTObj', 'TKTObjDRAW', 'TKTopAlgo',\
+ 'TKV2d', 'TKV3d', 'TKVRML', 'TKXCAF', 'TKXCAFSchema',\
+ 'TKXDEIGES', 'TKXDESTEP', 'TKXMesh', 'TKXml', 'TKXmlL', 'TKXmlTObj',\
+ 'TKXmlXCAF', 'TKXSBase',\
+ 'XCAFPlugin',\
'XmlLPlugin', 'XmlPlugin', 'XmlXCAFPlugin']
# Find the lib in OCC_LIB path and add it to the LIBS list
LIBS = []
@@ -298,4 +298,4 @@
if GENERATE_SWIG:
print "%i exported classes"%SWIG_generator.nb_exported_classes
final_time = time.time()
-print final_time-init_time
\ No newline at end of file
+print final_time-init_time
--- pythonocc-0.2.0.orig/debian/changelog
+++ pythonocc-0.2.0/debian/changelog
@@ -0,0 +1,6 @@
+pythonocc (0.2.0-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Tue, 12 Apr 2009 14:20:27 +0100
+
--- pythonocc-0.2.0.orig/debian/rules
+++ pythonocc-0.2.0/debian/rules
@@ -0,0 +1,76 @@
+#!/usr/bin/make -f
+
+CFLAGS = -Wall -g
+
+configure:
+ chmod 755 src/Display/OCCViewer.py
+ chmod 755 src/Display/wxDisplay.py
+ chmod 755 src/Display/wxSamplesGui.py
+ chmod 755 Utils/Image.py
+ chmod 644 gpl.txt
+ chmod 644 src/AUTHORS
+
+build: build-stamp
+build-stamp: configure
+ dh_testdir
+ cd src && python setup.py build
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp install-stamp
+ cd src && python setup.py clean
+ dh_clean
+ rm -rf src/build
+ rm -rf src/OCC
+ find -name '*.pyc' | xargs rm -rf
+ cd src/SWIG_src_modular_linux_darwin && find -name '*_wrap.cpp' | xargs rm -rf
+ cd src/Misc && find -name '*_wrap.cpp' | xargs rm -rf
+ cd src/Visualization && find -name '*_wrap.cpp' | xargs rm -rf
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ cd src && python setup.py install --no-compile --root ../debian/python-occ
+ #dh install --after dh_installdirs
+ touch install-stamp
+
+binary-indep: build install
+ #dh binary-indep
+
+binary-arch: build install
+ #dh binary-arch
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_desktop
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_pycentral
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- pythonocc-0.2.0.orig/debian/control
+++ pythonocc-0.2.0/debian/control
@@ -0,0 +1,17 @@
+Source: pythonocc
+Section: python
+Priority: extra
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Build-Depends: debhelper (>= 6), python, python-central, python-support, swig, libopencascade-dev
+Standards-Version: 3.7.3
+XS-Python-Version: current
+Homepage: http://pythonocc.org/
+
+Package: python-occ
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+XB-Python-Version: ${python:Versions}
+Provides: ${python:Provides}
+Description: Python binding for OpenCASCADE
+ pythonOCC is Python binding for OpenCASCADE.
+
--- pythonocc-0.2.0.orig/debian/compat
+++ pythonocc-0.2.0/debian/compat
@@ -0,0 +1 @@
+6
--- pythonocc-0.2.0.orig/debian/pyversions
+++ pythonocc-0.2.0/debian/pyversions
@@ -0,0 +1 @@
+2.4-
--- pythonocc-0.2.0.orig/debian/pycompat
+++ pythonocc-0.2.0/debian/pycompat
@@ -0,0 +1 @@
+2
--- pythonocc-0.2.0.orig/debian/copyright
+++ pythonocc-0.2.0/debian/copyright
@@ -0,0 +1,7 @@
+Files: *
+Copyright: 2008 Thomas Paviot <thomas.paviot@free.fr>
+License: GPL-3
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
-179
View File
@@ -1,179 +0,0 @@
--- pythonocc-0.3.0.orig/src/wrapper/environment.py
+++ pythonocc-0.3.0/src/wrapper/environment.py
@@ -126,8 +126,8 @@
OCC_INC = os.path.join(OCC_ROOT,'inc')
OCC_LIB = os.path.join(OCC_ROOT,'lib')
else:
- OCC_INC = '/usr/local/inc' # Ubuntu 8.04 Hardy default installation path for headers
- OCC_LIB = '/usr/local/lib' # Ubuntu 8.04 Hardy default installation path for libraries
+ OCC_INC = '/usr/include/opencascade' # Ubuntu 8.04 Hardy default installation path for headers
+ OCC_LIB = '/usr/lib' # Ubuntu 8.04 Hardy default installation path for libraries
SALOME_GEOM_LIB = '/opt/SalomeGeometry/lib'
GCC_XML_PATH = '/usr/bin' # Ubuntu 8.04 Hardy installation path for gccxml
PYGCCXML_DEFINES = ['HAVE_CONFIG_H','HAVE_LIMITS_H','CSFDB','OCC_CONVERT_SIGNALS','LIN','LININTEL','_GNU_SOURCE=1']
--- pythonocc-0.3.0.orig/src/setup.py
+++ pythonocc-0.3.0/src/setup.py
@@ -172,18 +172,18 @@
#
# OpenCascade libs
#
-libraries = ['BinLPlugin', 'BinPlugin', 'BinXCAFPlugin', 'FWOSPlugin', 'mscmd', 'PTKernel',\
+libraries = ['BinLPlugin', 'BinPlugin', 'BinXCAFPlugin', 'FWOSPlugin', 'PTKernel',\
'StdLPlugin', 'StdPlugin', 'TKAdvTools', 'TKBin', 'TKBinL', 'TKBinTObj', 'TKBinXCAF',\
- 'TKBO', 'TKBool', 'TKBRep', 'TKCAF', 'TKCDF', 'TKCDLFront', 'TKCPPClient', 'TKCPPExt',\
- 'TKCPPIntExt', 'TKCPPJini', 'TKCSFDBSchema', 'TKDCAF', 'TKDraw', 'TKernel',\
- 'TKFeat', 'TKFillet', 'TKG2d', 'TKG3d', 'TKGeomAlgo', 'TKGeomBase', 'TKHLR', 'TKIDLFront',\
+ 'TKBO', 'TKBool', 'TKBRep', 'TKCAF', 'TKCDF',\
+ 'TKernel',\
+ 'TKFeat', 'TKFillet', 'TKG2d', 'TKG3d', 'TKGeomAlgo', 'TKGeomBase', 'TKHLR',\
'TKIGES', 'TKjcas','TKLCAF', 'TKMath', 'TKMesh', 'TKMeshVS', 'TKNIS', 'TKOffset',\
'TKOpenGl', 'TKPCAF', 'TKPLCAF', 'TKPrim', 'TKPShape', 'TKService', 'TKShapeSchema',\
'TKShHealing', 'TKStdLSchema', 'TKStdSchema', 'TKSTEP', 'TKSTEP209', 'TKSTEPAttr',\
- 'TKSTEPBase', 'TKSTL', 'TKTCPPExt', 'TKTObj', 'TKTObjDRAW', 'TKTopAlgo', 'TKTopTest',\
- 'TKV2d', 'TKV3d', 'TKViewerTest', 'TKVRML', 'TKWOK', 'TKWOKTcl', 'TKXCAF', 'TKXCAFSchema',\
- 'TKXDEDRAW', 'TKXDEIGES', 'TKXDESTEP', 'TKXMesh', 'TKXml', 'TKXmlL', 'TKXmlTObj',\
- 'TKXmlXCAF', 'TKXSBase', 'TKXSDRAW', 'XCAFPlugin',\
+ 'TKSTEPBase', 'TKSTL', 'TKTObj', 'TKTObjDRAW', 'TKTopAlgo',\
+ 'TKV2d', 'TKV3d', 'TKVRML', 'TKXCAF', 'TKXCAFSchema',\
+ 'TKXDEIGES', 'TKXDESTEP', 'TKXMesh', 'TKXml', 'TKXmlL', 'TKXmlTObj',\
+ 'TKXmlXCAF', 'TKXSBase',\
'XmlLPlugin', 'XmlPlugin', 'XmlXCAFPlugin']
# Find the lib in OCC_LIB path and add it to the LIBS list
LIBS = []
--- pythonocc-0.3.0.orig/debian/changelog
+++ pythonocc-0.3.0/debian/changelog
@@ -0,0 +1,6 @@
+pythonocc (0.3.0-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Mon, 24 Aug 2009 12:41:48 +0200
+
--- pythonocc-0.3.0.orig/debian/rules
+++ pythonocc-0.3.0/debian/rules
@@ -0,0 +1,80 @@
+#!/usr/bin/make -f
+
+CFLAGS = -Wall -g
+
+configure:
+ chmod 755 src/addons/Display/OCCViewer.py
+ chmod 755 src/addons/Display/wxDisplay.py
+ chmod 755 src/addons/Display/wxSamplesGui.py
+ chmod 755 src/addons/Display/wxSamplesGui2d.py
+ chmod 755 src/addons/Utils/DataExchange/STL.py
+ chmod 755 src/addons/Utils/DataExchange/STEP.py
+ chmod 755 src/addons/Utils/Common.py
+ chmod 755 src/addons/Utils/Image.py
+ #chmod 644 src/AUTHORS
+
+build: build-stamp
+build-stamp: configure
+ dh_testdir
+ cd src && python setup.py build
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp install-stamp
+ cd src && python setup.py clean
+ dh_clean
+ rm -rf src/build
+ rm -rf src/OCC
+ find -name '*.pyc' | xargs rm -rf
+ cd src/wrapper && find -name '*.pyc' | xargs rm -rf
+ cd src/wrapper/Misc && find -name '*_wrap.cpp' | xargs rm -rf
+ cd src/wrapper/SWIG/linux_darwin && find -name '*_wrap.cpp' | xargs rm -rf
+ cd src/wrapper/Visualization && find -name '*_wrap.cpp' | xargs rm -rf
+
+install: build install-stamp
+install-stamp:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ cd src && python setup.py install --no-compile --root ../debian/python-occ
+ #dh install --after dh_installdirs
+ touch install-stamp
+
+binary-indep: build install
+ #dh binary-indep
+
+binary-arch: build install
+ #dh binary-arch
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_desktop
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_pycentral
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- pythonocc-0.3.0.orig/debian/control
+++ pythonocc-0.3.0/debian/control
@@ -0,0 +1,20 @@
+Source: pythonocc
+Section: python
+Priority: extra
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Build-Depends: debhelper (>= 6), python, python-central, python-support, swig, libopencascade-dev, salomegeom-dev
+Standards-Version: 3.7.3
+XS-Python-Version: current
+Homepage: http://pythonocc.org/
+
+Package: python-occ
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+XB-Python-Version: ${python:Versions}
+Provides: ${python:Provides}
+Description: A framework for agile CAD development
+ PythonOCC is a Python wrapper module for the
+ OpenCascade library. It contains python functions and classes
+ that will allow you to fully utilitize the OpenCascade library.
+ This version is built against OpenCascade 6.3.0.
+
--- pythonocc-0.3.0.orig/debian/compat
+++ pythonocc-0.3.0/debian/compat
@@ -0,0 +1 @@
+6
--- pythonocc-0.3.0.orig/debian/pyversions
+++ pythonocc-0.3.0/debian/pyversions
@@ -0,0 +1 @@
+2.4-
--- pythonocc-0.3.0.orig/debian/pycompat
+++ pythonocc-0.3.0/debian/pycompat
@@ -0,0 +1 @@
+2
--- pythonocc-0.3.0.orig/debian/copyright
+++ pythonocc-0.3.0/debian/copyright
@@ -0,0 +1,7 @@
+Files: *
+Copyright: 2008 Thomas Paviot <thomas.paviot@free.fr>
+License: GPL-3
+ .
+ On Debian systems, the complete text of the GNU General Public
+ License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
+
-299
View File
@@ -1,299 +0,0 @@
--- salomegeom-4.1.4.orig/adm/lin/Makefile.am
+++ salomegeom-4.1.4/adm/lin/Makefile.am
@@ -2,10 +2,10 @@
# geomdir = ./
# copy some files
-targetdir = $(prefix)
-dist_target_DATA = LICENCE.lgpl
+#targetdir = $(datadir)
+#dist_target_DATA = LICENCE.lgpl
-resourcedir = $(prefix)/resources
+resourcedir = $(datadir)/resources
dist_resource_DATA = $(srcdir)/resources/GUID.txt $(srcdir)/resources/ImportExport $(srcdir)/resources/Resources $(srcdir)/resources/ShHealing
@@ -16,7 +16,7 @@
AM_CPPFLAGS = -I$(CASROOT)/inc -I$(srcdir)/$(geomdir)inc/ -I$(srcdir)/$(geomdir)src/GEOMAlgo -I$(srcdir)/$(geomdir)src/BlockFix -I$(srcdir)/$(geomdir)src/GEOM -I$(srcdir)/$(geomdir)src/NMTTools -I$(srcdir)/$(geomdir)src/NMTDS
# set library names
-lib_LTLIBRARIES = libExchangeCSFDB.la libArchimede.la libNMTDS.la libNMTTools.la libGEOMAlgo.la libGEOMImpl.la libGEOM.la libExchangeBREP.la libExchangeIGES.la libExchangeSTEP.la libExchangeSTL.la libExchangeVRML.la libPartition.la libShHealOper.la libSketcher.la
+lib_LTLIBRARIES = libExchangeCSFDB.la libArchimede.la libNMTDS.la libNMTTools.la libGEOMAlgo.la libGEOM.la libShHealOper.la libExchangeBREP.la libExchangeIGES.la libExchangeSTEP.la libExchangeSTL.la libExchangeVRML.la libPartition.la libSketcher.la libGEOMImpl.la
# set global linker flags
AM_LDFLAGS = -version-info 1:0:0
@@ -24,24 +24,24 @@
uninstall-local:
-rm -rf $(DESTDIR)$(libdir)
-rm -rf $(DESTDIR)$(includedir)
- -rm -rf $(DESTDIR)$(prefix)/resources
- -rm $(DESTDIR)$(prefix)/env_geom.sh
+ -rm -rf $(DESTDIR)$(datadir)/resources
+ -rm $(DESTDIR)$(datadir)/env_geom.sh
install-exec-local:
- test -z "$(DESTDIR)$(prefix)" || $(mkdir_p) "$(DESTDIR)$(prefix)"
- @echo "#!/bin/bash" > $(DESTDIR)$(prefix)/env_geom.sh
- @echo "export GEOMROOT="$(prefix) >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "export CSF_ResourcesDefaults="$(prefix)/resources >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "if [ -z "LD_LIBRARY_PATH" ];" >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "then LD_LIBRARY_PATH="$(libdir)";" >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "else LD_LIBRARY_PATH="$(libdir)":\$$LD_LIBRARY_PATH;" >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "fi" >> $(DESTDIR)$(prefix)/env_geom.sh
- chmod a+x $(DESTDIR)$(prefix)/env_geom.sh
- test -z "$(DESTDIR)$(prefix)/resources" || $(mkdir_p) "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/GUID.txt "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/ImportExport "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/Resources "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/ShHealing "$(DESTDIR)$(prefix)/resources"
+ test -z "$(DESTDIR)$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)"
+ @echo "#!/bin/bash" > $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "export GEOMROOT="$(prefix) >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "export CSF_ResourcesDefaults="$(datadir)/resources >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "if [ -z "LD_LIBRARY_PATH" ];" >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "then LD_LIBRARY_PATH="$(libdir)";" >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "else LD_LIBRARY_PATH="$(libdir)":\$$LD_LIBRARY_PATH;" >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "fi" >> $(DESTDIR)$(datadir)/env_geom.sh
+ chmod a+x $(DESTDIR)$(datadir)/env_geom.sh
+ test -z "$(DESTDIR)$(datadir)/resources" || $(mkdir_p) "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/GUID.txt "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/ImportExport "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/Resources "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/ShHealing "$(DESTDIR)$(datadir)/resources"
# set ARCHIMDE sources
libArchimede_la_SOURCES = $(srcdir)/$(geomdir)src/Archimede/Archimede_VolumeSection.cpp
@@ -581,6 +581,26 @@
# libShHealOper_la_LDFLAGS = -version-info 0:0:0
# libSketcher_la_LDFLAGS = -version-info 0:0:0
+libArchimede_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKGeomAlgo -lTKGeomBase -lTKG3d -lTKMesh
+libExchangeBREP_la_LIBADD = -lTKMath -lTKernel -lTKBRep
+libExchangeCSFDB_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKPShape -lTKShapeSchema -lPTKernel
+libExchangeIGES_la_LIBADD = -lTKMath -lTKernel -lTKXSBase -lTKBRep -lTKIGES
+libExchangeSTEP_la_LIBADD = -lTKMath -lTKernel -lTKXSBase -lTKBRep -lTKSTEP
+libExchangeSTL_la_LIBADD = -lTKernel -lTKSTL
+libExchangeVRML_la_LIBADD = -lTKernel -lTKVRML
+libNMTDS_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBO
+libNMTTools_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBO -lTKG2d -lTKG3d -lTKGeomAlgo -lTKGeomBase -lTKTopAlgo -lNMTDS
+libGEOMAlgo_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBool -lTKBO -lTKG2d -lTKG3d -lTKGeomAlgo \
+ -lTKGeomBase -lTKTopAlgo -lTKMesh -lTKShHealing -lNMTDS -lNMTTools
+libGEOM_la_LIBADD = -lTKMath -lTKernel -lTKXSBase -lTKBRep -lTKCAF -lTKCDF -lTKLCAF -lTKXSBase \
+ -lTKAdvTools -lTKG2d
+libGEOMImpl_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKTopAlgo -lTKCAF -lTKOffset -lTKPrim -lTKShHealing \
+ -lTKBool -lTKBO -lTKMesh -lTKG2d -lTKG3d -lTKFillet -lTKGeomAlgo -lTKGeomBase -lTKLCAF \
+ -lGEOMAlgo -lGEOM -lArchimede -lShHealOper -lSketcher -ldl
+libPartition_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBool -lTKG2d -lTKG3d -lTKTopAlgo -lTKGeomAlgo -lTKGeomBase -lTKOffset
+libShHealOper_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBool -lTKShHealing -lTKTopAlgo -lTKG2d -lTKG3d -lTKGeomAlgo -lTKGeomBase -lTKLCAF
+libSketcher_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKTopAlgo -lTKG2d -lTKGeomAlgo
+
# include files to be copied to installdir/inc
include_HEADERS = $(srcdir)/$(geomdir)inc/Archimede_VolumeSection.hxx \
$(srcdir)/$(geomdir)inc/BlockFix_BlockFixAPI.hxx \
--- salomegeom-4.1.4.orig/debian/changelog
+++ salomegeom-4.1.4/debian/changelog
@@ -0,0 +1,6 @@
+salomegeom (4.1.4-5) unstable; urgency=low
+
+ * Initial release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 23 Aug 2009 17:12:19 +0200
+
--- salomegeom-4.1.4.orig/debian/rules
+++ salomegeom-4.1.4/debian/rules
@@ -0,0 +1,129 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+BUILD_DIR = adm/lin
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure:
+ chmod u-x resources/GUID.txt
+ chmod u-x resources/ImportExport
+ chmod u-x resources/Resources
+ chmod u-x resources/ShHealing
+ chmod u-x resources/ShHealingFullSet
+ cd $(BUILD_DIR) && \
+ autoreconf --install
+
+config.status: configure
+ dh_testdir
+# Add here commands to configure the package.
+ cd $(BUILD_DIR) && \
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+ --prefix=/usr --includedir=/usr/include/salomegeom \
+ --libdir=/usr/lib --datadir=/usr/share/salomegeom \
+ LDFLAGS="-Wl,-z,defs -L/usr/lib" \
+ CXXFLAGS="$(CXXFLAGS) -I/usr/include/opencascade"
+
+build: build-links build-stamp
+
+build-links:
+ dh_testdir
+ cd $(BUILD_DIR) && \
+ ln -s ../../inc inc && \
+ ln -s ../../resources resources && \
+ ln -s ../../src src
+
+build-stamp: config.status
+ dh_testdir
+
+# Add here commands to compile the package.
+ cd $(BUILD_DIR) && $(MAKE)
+ touch $@
+
+# Add here commands to clean up after the build process.
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean
+# We always get some strange symlinks in these directories which we must remove first
+ rm -f inc/inc
+ rm -f src/src
+ rm -f resources/resources
+ rm -f build-stamp
+ cd $(BUILD_DIR) && \
+ rm -f configure && \
+ rm -f inc resources src && \
+ find -name 'Makefile.in' | xargs rm -f && \
+ find -name 'Makefile' | xargs rm -f && \
+ find -name '*.o' | xargs rm -f && \
+ find -name '*.la' | xargs rm -f && \
+ find -name '*.lo' | xargs rm -f && \
+ find -name '*.deps' | xargs rm -rf && \
+ find -name '*.libs' | xargs rm -rf && \
+ rm -f stamp-h1 aclocal.m4 config.guess config.sub depcomp install-sh && \
+ rm -f ltmain.sh missing config.log libtool && \
+ rm -f config.h config.h.in config.status && \
+ rm -rf build-aux autom4te.cache
+
+install: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+# Add here commands to install the package into debian/salomegeom.
+ cd $(BUILD_DIR) && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/salomegeom
+
+# install the core system
+ dh_install -psalomegeom debian/tmp/salomegeom/usr/share/* usr/share/
+ dh_install -psalomegeom debian/tmp/salomegeom/usr/lib/lib*.so.* usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/lib/lib*.so usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/lib/lib*.la usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/lib/lib*.a usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/include/* usr/include
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_desktop
+# dh_installinfo
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
+
--- salomegeom-4.1.4.orig/debian/control
+++ salomegeom-4.1.4/debian/control
@@ -0,0 +1,26 @@
+Source: salomegeom
+Section: libs
+Priority: extra
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Build-Depends: cdbs, debhelper (>= 5), libopencascade-dev
+Standards-Version: 3.7.3
+
+Package: salomegeom
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: SALOME Geometry Module
+ A complete OpenCascade - OCAF based CAD framework.Note that this is not
+ the original SALOME GEOM project but an effort to create a standalone
+ framework based on the existing one from SALOME project, with the
+ addition of extra functionality.
+
+Package: salomegeom-dev
+Architecture: any
+Section: libdevel
+Depends: salomegeom (>= ${source:Version})
+Description: SALOME Geometry Module development files
+ A complete OpenCascade - OCAF based CAD framework.Note that this is not
+ the original SALOME GEOM project but an effort to create a standalone
+ framework based on the existing one from SALOME project, with the
+ addition of extra functionality.
+
--- salomegeom-4.1.4.orig/debian/compat
+++ salomegeom-4.1.4/debian/compat
@@ -0,0 +1 @@
+5
--- salomegeom-4.1.4.orig/debian/README.Debian
+++ salomegeom-4.1.4/debian/README.Debian
@@ -0,0 +1,6 @@
+salomegeom for Debian
+---------------------
+
+- First Debian package for SalomeGeom.
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 23 Aug 2009 17:12:19 +0200
--- salomegeom-4.1.4.orig/debian/docs
+++ salomegeom-4.1.4/debian/docs
@@ -0,0 +1 @@
+README.LINUX
--- salomegeom-4.1.4.orig/debian/copyright
+++ salomegeom-4.1.4/debian/copyright
@@ -0,0 +1,16 @@
+This package was debianized by Werner Mayer <wmayer@users.sourceforge.net> on
+Sun, 23 Aug 2009 17:12:19 +0200.
+
+It was downloaded from http://surfnet.dl.sourceforge.net/project/salomegeometry/salomegeometry/4.1.4_v5/geom-4.1.4.5.tar.gz
+
+Upstream Author:
+ Fotis Sioutis <sfotis@users.sourceforge.net>
+
+Copyright:
+ Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+
+License: LGPL-2.1
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
-307
View File
@@ -1,307 +0,0 @@
--- salomegeom-5.1.1.orig/adm/lin/Makefile.am
+++ salomegeom-5.1.1/adm/lin/Makefile.am
@@ -2,10 +2,10 @@
# geomdir = ./
# copy some files
-targetdir = $(prefix)
-dist_target_DATA = LICENCE.lgpl
+#targetdir = $(datadir)
+#dist_target_DATA = LICENCE.lgpl
-resourcedir = $(prefix)/resources
+resourcedir = $(datadir)/resources
dist_resource_DATA = $(srcdir)/resources/GUID.txt $(srcdir)/resources/ImportExport $(srcdir)/resources/Resources $(srcdir)/resources/ShHealing
@@ -16,7 +16,7 @@
AM_CPPFLAGS = -I$(CASROOT)/inc -I$(srcdir)/$(geomdir)inc/ -I$(srcdir)/$(geomdir)src/GEOMAlgo -I$(srcdir)/$(geomdir)src/BlockFix -I$(srcdir)/$(geomdir)src/GEOM -I$(srcdir)/$(geomdir)src/NMTTools -I$(srcdir)/$(geomdir)src/NMTDS
# set library names
-lib_LTLIBRARIES = libExchangeCSFDB.la libArchimede.la libNMTDS.la libNMTTools.la libGEOMAlgo.la libGEOMImpl.la libGEOM.la libExchangeBREP.la libExchangeIGES.la libExchangeSTEP.la libExchangeSTL.la libExchangeVRML.la libPartition.la libShHealOper.la libSketcher.la
+lib_LTLIBRARIES = libExchangeCSFDB.la libArchimede.la libNMTDS.la libNMTTools.la libGEOMAlgo.la libGEOM.la libShHealOper.la libExchangeBREP.la libExchangeIGES.la libExchangeSTEP.la libExchangeSTL.la libExchangeVRML.la libPartition.la libSketcher.la libGEOMImpl.la
# set global linker flags
AM_LDFLAGS = -version-info 1:0:0
@@ -24,24 +24,24 @@
uninstall-local:
-rm -rf $(DESTDIR)$(libdir)
-rm -rf $(DESTDIR)$(includedir)
- -rm -rf $(DESTDIR)$(prefix)/resources
- -rm $(DESTDIR)$(prefix)/env_geom.sh
+ -rm -rf $(DESTDIR)$(datadir)/resources
+ -rm $(DESTDIR)$(datadir)/env_geom.sh
install-exec-local:
- test -z "$(DESTDIR)$(prefix)" || $(mkdir_p) "$(DESTDIR)$(prefix)"
- @echo "#!/bin/bash" > $(DESTDIR)$(prefix)/env_geom.sh
- @echo "export GEOMROOT="$(prefix) >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "export CSF_ResourcesDefaults="$(prefix)/resources >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "if [ -z "LD_LIBRARY_PATH" ];" >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "then LD_LIBRARY_PATH="$(libdir)";" >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "else LD_LIBRARY_PATH="$(libdir)":\$$LD_LIBRARY_PATH;" >> $(DESTDIR)$(prefix)/env_geom.sh
- @echo "fi" >> $(DESTDIR)$(prefix)/env_geom.sh
- chmod a+x $(DESTDIR)$(prefix)/env_geom.sh
- test -z "$(DESTDIR)$(prefix)/resources" || $(mkdir_p) "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/GUID.txt "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/ImportExport "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/Resources "$(DESTDIR)$(prefix)/resources"
- cp $(srcdir)/resources/ShHealing "$(DESTDIR)$(prefix)/resources"
+ test -z "$(DESTDIR)$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)"
+ @echo "#!/bin/bash" > $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "export GEOMROOT="$(prefix) >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "export CSF_ResourcesDefaults="$(datadir)/resources >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "if [ -z "LD_LIBRARY_PATH" ];" >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "then LD_LIBRARY_PATH="$(libdir)";" >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "else LD_LIBRARY_PATH="$(libdir)":\$$LD_LIBRARY_PATH;" >> $(DESTDIR)$(datadir)/env_geom.sh
+ @echo "fi" >> $(DESTDIR)$(datadir)/env_geom.sh
+ chmod a+x $(DESTDIR)$(datadir)/env_geom.sh
+ test -z "$(DESTDIR)$(datadir)/resources" || $(mkdir_p) "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/GUID.txt "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/ImportExport "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/Resources "$(DESTDIR)$(datadir)/resources"
+ cp $(srcdir)/resources/ShHealing "$(DESTDIR)$(datadir)/resources"
# set ARCHIMDE sources
libArchimede_la_SOURCES = $(srcdir)/$(geomdir)src/Archimede/Archimede_VolumeSection.cpp
@@ -582,6 +582,26 @@
# libShHealOper_la_LDFLAGS = -version-info 0:0:0
# libSketcher_la_LDFLAGS = -version-info 0:0:0
+libArchimede_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKGeomAlgo -lTKGeomBase -lTKG3d -lTKMesh
+libExchangeBREP_la_LIBADD = -lTKMath -lTKernel -lTKBRep
+libExchangeCSFDB_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKPShape -lTKShapeSchema -lPTKernel
+libExchangeIGES_la_LIBADD = -lTKMath -lTKernel -lTKXSBase -lTKBRep -lTKIGES
+libExchangeSTEP_la_LIBADD = -lTKMath -lTKernel -lTKXSBase -lTKBRep -lTKSTEP
+libExchangeSTL_la_LIBADD = -lTKernel -lTKSTL
+libExchangeVRML_la_LIBADD = -lTKernel -lTKVRML
+libNMTDS_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBO
+libNMTTools_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBO -lTKG2d -lTKG3d -lTKGeomAlgo -lTKGeomBase -lTKTopAlgo -lNMTDS
+libGEOMAlgo_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBool -lTKBO -lTKG2d -lTKG3d -lTKGeomAlgo \
+ -lTKGeomBase -lTKTopAlgo -lTKMesh -lTKShHealing -lNMTDS -lNMTTools
+libGEOM_la_LIBADD = -lTKMath -lTKernel -lTKXSBase -lTKBRep -lTKCAF -lTKCDF -lTKLCAF -lTKXSBase \
+ -lTKAdvTools -lTKG2d
+libGEOMImpl_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKTopAlgo -lTKCAF -lTKOffset -lTKPrim -lTKShHealing \
+ -lTKBool -lTKBO -lTKMesh -lTKG2d -lTKG3d -lTKFillet -lTKGeomAlgo -lTKGeomBase -lTKLCAF \
+ -lGEOMAlgo -lGEOM -lArchimede -lShHealOper -lSketcher -ldl
+libPartition_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBool -lTKG2d -lTKG3d -lTKTopAlgo -lTKGeomAlgo -lTKGeomBase -lTKOffset
+libShHealOper_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKBool -lTKShHealing -lTKTopAlgo -lTKG2d -lTKG3d -lTKGeomAlgo -lTKGeomBase -lTKLCAF
+libSketcher_la_LIBADD = -lTKMath -lTKernel -lTKBRep -lTKTopAlgo -lTKG2d -lTKGeomAlgo
+
# include files to be copied to installdir/inc
include_HEADERS = $(srcdir)/$(geomdir)inc/Archimede_VolumeSection.hxx \
$(srcdir)/$(geomdir)inc/BlockFix_BlockFixAPI.hxx \
@@ -921,7 +941,6 @@
$(srcdir)/$(geomdir)inc/ShHealOper_RemoveInternalWires.hxx \
$(srcdir)/$(geomdir)inc/ShHealOper_Sewing.hxx \
$(srcdir)/$(geomdir)inc/ShHealOper_ShapeProcess.hxx \
-$(srcdir)/$(geomdir)inc/ShHealOper_SpiltCurve2d.hxx \
$(srcdir)/$(geomdir)inc/ShHealOper_SplitCurve2d.hxx \
$(srcdir)/$(geomdir)inc/ShHealOper_SplitCurve3d.hxx \
$(srcdir)/$(geomdir)inc/ShHealOper_Tool.hxx \
--- salomegeom-5.1.1.orig/debian/changelog
+++ salomegeom-5.1.1/debian/changelog
@@ -0,0 +1,6 @@
+salomegeom (5.1.1-6) unstable; urgency=low
+
+ * Initial release
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 23 Aug 2009 17:12:19 +0200
+
--- salomegeom-5.1.1.orig/debian/rules
+++ salomegeom-5.1.1/debian/rules
@@ -0,0 +1,129 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+BUILD_DIR = adm/lin
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+configure:
+ chmod u-x resources/GUID.txt
+ chmod u-x resources/ImportExport
+ chmod u-x resources/Resources
+ chmod u-x resources/ShHealing
+ chmod u-x resources/ShHealingFullSet
+ cd $(BUILD_DIR) && \
+ autoreconf --install
+
+config.status: configure
+ dh_testdir
+# Add here commands to configure the package.
+ cd $(BUILD_DIR) && \
+ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
+ --prefix=/usr --includedir=/usr/include/salomegeom \
+ --libdir=/usr/lib --datadir=/usr/share/salomegeom \
+ LDFLAGS="-Wl,-z,defs -L/usr/lib" \
+ CXXFLAGS="$(CXXFLAGS) -I/usr/include/opencascade"
+
+build: build-links build-stamp
+
+build-links:
+ dh_testdir
+ cd $(BUILD_DIR) && \
+ ln -s ../../inc inc && \
+ ln -s ../../resources resources && \
+ ln -s ../../src src
+
+build-stamp: config.status
+ dh_testdir
+
+# Add here commands to compile the package.
+ cd $(BUILD_DIR) && $(MAKE)
+ touch $@
+
+# Add here commands to clean up after the build process.
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean
+# We always get some strange symlinks in these directories which we must remove first
+ rm -f inc/inc
+ rm -f src/src
+ rm -f resources/resources
+ rm -f build-stamp
+ cd $(BUILD_DIR) && \
+ rm -f configure && \
+ rm -f inc resources src && \
+ find -name 'Makefile.in' | xargs rm -f && \
+ find -name 'Makefile' | xargs rm -f && \
+ find -name '*.o' | xargs rm -f && \
+ find -name '*.la' | xargs rm -f && \
+ find -name '*.lo' | xargs rm -f && \
+ find -name '*.deps' | xargs rm -rf && \
+ find -name '*.libs' | xargs rm -rf && \
+ rm -f stamp-h1 aclocal.m4 config.guess config.sub depcomp install-sh && \
+ rm -f ltmain.sh missing config.log libtool && \
+ rm -f config.h config.h.in config.status && \
+ rm -rf build-aux autom4te.cache
+
+install: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+# Add here commands to install the package into debian/salomegeom.
+ cd $(BUILD_DIR) && $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp/salomegeom
+
+# install the core system
+ dh_install -psalomegeom debian/tmp/salomegeom/usr/share/* usr/share/
+ dh_install -psalomegeom debian/tmp/salomegeom/usr/lib/lib*.so.* usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/lib/lib*.so usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/lib/lib*.la usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/lib/lib*.a usr/lib
+ dh_install -psalomegeom-dev debian/tmp/salomegeom/usr/include/* usr/include
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs
+ dh_installexamples
+ dh_desktop
+# dh_installinfo
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
+
--- salomegeom-5.1.1.orig/debian/control
+++ salomegeom-5.1.1/debian/control
@@ -0,0 +1,26 @@
+Source: salomegeom
+Section: libs
+Priority: extra
+Maintainer: Werner Mayer <wmayer@users.sourceforge.net>
+Build-Depends: cdbs, debhelper (>= 5), libopencascade-dev
+Standards-Version: 3.7.3
+
+Package: salomegeom
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: SALOME Geometry Module
+ A complete OpenCascade - OCAF based CAD framework.Note that this is not
+ the original SALOME GEOM project but an effort to create a standalone
+ framework based on the existing one from SALOME project, with the
+ addition of extra functionality.
+
+Package: salomegeom-dev
+Architecture: any
+Section: libdevel
+Depends: salomegeom (>= ${source:Version})
+Description: SALOME Geometry Module development files
+ A complete OpenCascade - OCAF based CAD framework.Note that this is not
+ the original SALOME GEOM project but an effort to create a standalone
+ framework based on the existing one from SALOME project, with the
+ addition of extra functionality.
+
--- salomegeom-5.1.1.orig/debian/compat
+++ salomegeom-5.1.1/debian/compat
@@ -0,0 +1 @@
+5
--- salomegeom-5.1.1.orig/debian/README.Debian
+++ salomegeom-5.1.1/debian/README.Debian
@@ -0,0 +1,6 @@
+salomegeom for Debian
+---------------------
+
+- First Debian package for SalomeGeom.
+
+ -- Werner Mayer <wmayer@users.sourceforge.net> Sun, 23 Aug 2009 17:12:19 +0200
--- salomegeom-5.1.1.orig/debian/docs
+++ salomegeom-5.1.1/debian/docs
@@ -0,0 +1 @@
+README.LINUX
--- salomegeom-5.1.1.orig/debian/copyright
+++ salomegeom-5.1.1/debian/copyright
@@ -0,0 +1,16 @@
+This package was debianized by Werner Mayer <wmayer@users.sourceforge.net> on
+Sun, 23 Aug 2009 17:12:19 +0200.
+
+It was downloaded from https://salomegeometry.svn.sourceforge.net/svnroot/salomegeometry/tags/5.1.1_v6
+
+Upstream Author:
+ Fotis Sioutis <sfotis@users.sourceforge.net>
+
+Copyright:
+ Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+ CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+
+License: LGPL-2.1
+ On Debian systems, the complete text of the GNU Lesser General Public
+ License version 2.1 can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
-7
View File
@@ -1,7 +0,0 @@
usr/share/icons/hicolor/16x16/apps
usr/share/icons/hicolor/32x32/apps
usr/share/icons/hicolor/48x48/apps
usr/share/icons/hicolor/64x64/apps
usr/share/icons/hicolor/scalable/apps
usr/share/icons/hicolor/64x64/mimetypes
-15
View File
@@ -1,15 +0,0 @@
Document: freecad-development-documentation
Title: FreeCAD development documentation
Author: FreeCAD developers
Abstract: FreeCAD is a general purpose Open Source 3D
CAD/MCAD/CAx/CAE/PLM modeler, aimed directly at mechanical engineering
and product design but also fits in a wider range of uses around
engineering, such as architecture or other engineering specialties.
It is a feature-based parametric modeler with a modular software
architecture which makes it easy to provide additional functionality
without modifying the core system.
Section: Science/Engineering
Format: HTML
Index: /usr/share/doc/freecad-doc/Start_Page.html
Files: /usr/share/doc/freecad-doc/*.q*
-1
View File
@@ -1 +0,0 @@
debian/tmp/usr/lib/freecad/doc/*
-73
View File
@@ -1,73 +0,0 @@
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH FREECAD 1 "July 25, 2007" freecad "Linux User's Manual"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
freecad \- An extensible Open Source CAx program for Unix/X11
.SH SYNOPSIS
.B freecad
.RI [ options ] " files"
.br
.B freecadcmd
.RI [ options ] " files"
.SH DESCRIPTION
.B FreeCAD
is an Open Source CAx RAD based on OpenCasCade, Qt and Python. It features
some key concepts like macro recording, workbenches, ability to run as a
server and dynamically loadable application extensions and it is designed
to be platform independent.
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
.SH USAGE
\fBfreecad\fR starts with a GUI while \fBfreecadcmd\fR is only a pure command line version that starts a Python interpreter.
.SH OPTIONS
These programs follow the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of the options supported by \fBfreecad\fR is included below.
.SS "Generic options"
.TP
\fB\-h, \-\-help\fR
Show summary of options.
.TP
\fB\-v, \-\-version\fR
Show version of program.
.TP
\fB\-c, \-\-console\fR
Start in console mode.
.TP
\fB\-\-response\-file\fR \fIarg\fR
Can be specified with '@name', too.
.SS "Configuration"
.TP
\fB\-l, \-\-write\-log\fR
Write a log file.
.TP
\fB\-t, \-\-run\-test\fR \fIarg\fR
Test level.
.TP
\fB\-M, \-\-module\-path\fR \fIarg\fR
Additional module path.
.TP
\fB\-P, \-\-python\-path\fR \fIarg\fR
Additional Python path.
.SH SEE ALSO
To get more information about \fBFreeCAD\fR, please visit \fIhttp://www.freecadweb.org\fR
.SH BUGS
To report a bug, please visit \fIhttp://www.freecadweb.org/tracker/my_view_page.php\fR
.SH AUTHOR
This manual page was written by Werner Mayer.
-22
View File
@@ -1,22 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
<id type="desktop">freecad.desktop</id>
<metadata_licence>CC-BY-3.0</metadata_licence>
<project_license>LGPL-2.1+</project_license>
<name>FreeCAD</name>
<summary>An open source parametric 3D CAD modeler</summary>
<description>
<p>FreeCAD is a parametric 3D modeler. Parametric modeling
allows you to easily modify your design by going back into
your model history and changing its parameters. FreeCAD is
open source (LGPL license) and completely modular, allowing
for very advanced extension and customization.</p>
<p>FreeCAD is multiplatform, and reads and writes many open
file formats such as STEP, IGES, STL and others.</p>
</description>
<screenshots>
<screenshot type="default" width="800" height="600">http://www.freecadweb.org/wiki/images/5/56/Freecad_jeep.png</screenshot>
</screenshots>
<url type="homepage">http://www.freecadweb.org</url>
<updatecontact>yorik@uncreated.net</updatecontact>
</application>
-6
View File
@@ -1,6 +0,0 @@
debian/freecad.desktop usr/share/applications
debian/menu usr/share/menu/freecad
usr/share/freecad
usr/lib/freecad/bin
usr/lib/freecad/Mod
usr/lib/freecad/lib
-3
View File
@@ -1,3 +0,0 @@
usr/lib/freecad/bin/FreeCAD usr/bin/freecad
usr/lib/freecad/bin/FreeCADCmd usr/bin/freecadcmd
usr/share/man/man1/freecad.1.gz usr/share/man/man1/freecadcmd.1.gz
-1
View File
@@ -1 +0,0 @@
freecad: binary-or-shlib-defines-rpath
-2
View File
@@ -1,2 +0,0 @@
debian/freecad.1
debian/mime/freecad-thumbnailer.1
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-extension-fcstd">
<!-- <sub-class-of type="application/zip"/> -->
<comment>FreeCAD document files</comment>
<glob pattern="*.fcstd"/>
</mime-type>
</mime-info>
-6
View File
@@ -1,6 +0,0 @@
?package(freecad):needs="X11"\
section="Applications/Science/Engineering"\
title="FreeCAD"\
command="/usr/bin/freecad"\
icon="/usr/share/freecad/freecad.xpm"
-20
View File
@@ -1,20 +0,0 @@
.TH FREECAD 1 "August 04, 2008" freecad "Linux User's Manual"
.SH NAME
freecad-thumbnailer \- A thumbnailer for FreeCAD project files
.SH SYNOPSIS
\fBfreecad-thumbnailer\fP [ -s \fIsize\fP ] \fIinput file\fP \fIoutput file\fP
.SH DESCRIPTION
\fBfreecad-thumbnailer\fP
is a Python script that extracts an embedded thumbnail from a FreeCAD project file.
If no thumbnail is embedded then nothing happens. According to the specification of
freedesktop.org the thumbnail image is a PNG file. The required \fBinput file\fP argument
specifies the project file where the thumbnail should be extracted from and the
\fBoutput file\fP specifies the file where the thumbnail should be written to.
.SH OPTIONS
.TP
\fB-s \fIsize\fR
Specify the size of the image in pixel.
.SH "SEE ALSO"
freecad(1), freecadcmd(1)
.SH AUTHOR
This manual page was written by Werner Mayer.
-30
View File
@@ -1,30 +0,0 @@
<gconfschemafile>
<schemalist>
<schema>
<key>/schemas/desktop/gnome/thumbnailers/application@x-extension-fcstd/enable</key>
<applyto>/desktop/gnome/thumbnailers/application@x-extension-fcstd/enable</applyto>
<owner>freecad</owner>
<type>bool</type>
<default>true</default>
<locale name="C">
<short>Enable thumbnailing of FreeCAD documents.</short>
<long>Enable thumbnailing of FreeCAD documents.</long>
</locale>
</schema>
<schema>
<key>/schemas/desktop/gnome/thumbnailers/application@x-extension-fcstd/command</key>
<applyto>/desktop/gnome/thumbnailers/application@x-extension-fcstd/command</applyto>
<owner>freecad</owner>
<type>string</type>
<default>/usr/bin/freecad-thumbnailer -s %s %u %o</default>
<locale name="C">
<short>Thumbnail command for documents from FreeCAD.</short>
<long>Valid command plus arguments for freecad-thumbnailer.</long>
</locale>
</schema>
</schemalist>
</gconfschemafile>
-4
View File
@@ -1,4 +0,0 @@
[Thumbnailer Entry]
TryExec=/usr/bin/freecad-thumbnailer
Exec=/usr/bin/freecad-thumbnailer -s %s %u %o
MimeType=application/x-extension-fcstd;
-40
View File
@@ -1,40 +0,0 @@
#!/bin/sh
set -e
case "$1" in
configure)
if [ -d /usr/share/freecad/Mod/Robot/Lib/Kuka ]; then
echo "resource files installed..."
else
echo "getting resource files ..."
wgetoptions="--tries=2 --timeout=60"
downloadurl="http://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk"
downloaddir="--directory-prefix=/usr/share/freecad/Mod/Robot/Lib/Kuka"
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr16.wrl
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr125_3.wrl
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr210.WRL
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr500_1.csv
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr500_1.wrl
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr_16.csv
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr_125.csv
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/kr_210_2.csv
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/testprog.dat
wget $wgetoptions $downloaddir $downloadurl/src/Mod/Robot/Lib/Kuka/testprog.src
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
-33
View File
@@ -1,33 +0,0 @@
#!/bin/sh
set -e
case "$1" in
remove|upgrade|deconfigure)
downloaddir="/usr/share/freecad/Mod/Robot/Lib/Kuka"
rm -f $downloaddir/kr16.wrl
rm -f $downloaddir/kr125_3.wrl
rm -f $downloaddir/kr210.WRL
rm -f $downloaddir/kr500_1.csv
rm -f $downloaddir/kr500_1.wrl
rm -f $downloaddir/kr_16.csv
rm -f $downloaddir/kr_125.csv
rm -f $downloaddir/kr_210_2.csv
rm -f $downloaddir/testprog.dat
rm -f $downloaddir/testprog.src
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
-41
View File
@@ -1,41 +0,0 @@
#!/usr/bin/make -f
%:
dh $@ --buildsystem=cmake --parallel --with python2
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
extra_flags += \
-DFREECAD_BUILD_DEBIAN=ON \
-DBUILD_FEM_NETGEN=ON \
-DCMAKE_CXX_FLAGS="-Wall -DHAVE_SWIG=1 -fpermissive $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \
-DCMAKE_C_FLAGS="-Wall -fpermissive $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \
-DCMAKE_SHARED_LINKER_FLAGS="$(shell dpkg-buildflags --get LDFLAGS)" \
-DLIB_SUFFIX="" \
-DOCC_INCLUDE_DIR="/usr/include/oce" \
-DCMAKE_INSTALL_PREFIX="/usr/lib/freecad" \
-DCMAKE_INSTALL_DATADIR="/usr/share/freecad"
override_dh_auto_configure:
dh_auto_configure -- $(extra_flags)
cp -f src/Build/Version.h obj-$(DEB_BUILD_GNU_TYPE)/src/Build/Version.h
override_dh_compress:
dh_compress -X.qch -X.qhc
override_dh_installchangelogs:
dh_installchangelogs ChangeLog.txt
override_dh_installmime:
dh_installmime
dh_install debian/mime/freecad-thumbnailer usr/bin
dh_install debian/mime/freecad.thumbnailer usr/share/thumbnailers
dh_install debian/mime/freecad.schemas etc/gconf/schemas
override_dh_icons:
install -m 644 debian/freecad/usr/share/freecad/freecad-icon-16.png debian/freecad/usr/share/icons/hicolor/16x16/apps/freecad.png
install -m 644 debian/freecad/usr/share/freecad/freecad-icon-32.png debian/freecad/usr/share/icons/hicolor/32x32/apps/freecad.png
install -m 644 debian/freecad/usr/share/freecad/freecad-icon-32.png debian/freecad/usr/share/icons/hicolor/48x48/apps/freecad.png
install -m 644 debian/freecad/usr/share/freecad/freecad-icon-64.png debian/freecad/usr/share/icons/hicolor/64x64/apps/freecad.png
install -m 644 debian/freecad/usr/share/freecad/freecad.svg debian/freecad/usr/share/icons/hicolor/scalable/apps/freecad.svg
install -m 644 debian/freecad/usr/share/freecad/freecad-doc.png debian/freecad/usr/share/icons/hicolor/64x64/mimetypes/application-x-extension-fcstd.png
@@ -1,47 +0,0 @@
#!/bin/bash
# The script creates a tar.xz tarball from git-repository of freecad-project
# ./get_orig_src.sh commitID - creates a tarball of specified commit
# ./get_orig_src.sh - creates a tarball of the latest version
# Packages, that needs to be installed to use the script:
# atool, git-core
set -e
git clone git://free-cad.git.sourceforge.net/gitroot/free-cad/free-cad git_temp_packaging
cd git_temp_packaging
if [ $1 ]
then
echo 'Checking out the revision ' $1
git checkout -b newvers $1
else
echo 'Using the latest revision'
fi
GIT_CMT_COUNT=$(git rev-list HEAD | wc -l)
DEB_VER=0.13.$GIT_CMT_COUNT-dfsg
FOLDER_NAME=freecad-$DEB_VER
TARBALL_NAME=freecad_$DEB_VER.orig.tar.xz
echo $DEB_VER
echo $FOLDER_NAME
echo $TARBALL_NAME
python src/Tools/SubWCRev.py
cd ..
rm -fr $FOLDER_NAME
mv git_temp_packaging $FOLDER_NAME
rm -rf $FOLDER_NAME/.git
rm -rf $FOLDER_NAME/src/3rdParty/CxImage
rm -rf $FOLDER_NAME/src/3rdParty/Pivy
rm -rf $FOLDER_NAME/src/3rdParty/Pivy-0.5
tar Jcvf $TARBALL_NAME $FOLDER_NAME
rm -fr $FOLDER_NAME
-1
View File
@@ -1 +0,0 @@
1.0
-3
View File
@@ -1,3 +0,0 @@
# Lintian thinks uploader Adam Powell's name violates policy
freecad source: uploader-address-missing "Adam C. Powell
freecad source: uploader-not-full-name IV"
-2
View File
@@ -1,2 +0,0 @@
version=3
http://sf.net/free-cad/freecad_(.+)\.orig\.tar\.gz
+257
View File
@@ -0,0 +1,257 @@
# Maintainers: keep this list of plugins up to date
# List plugins in %%{_libdir}/%{name}/lib, less '.so' and 'Gui.so', here
%global plugins Drawing Fem FreeCAD Image Import Inspection Mesh MeshPart Part Points QtUnit Raytracing ReverseEngineering Robot Sketcher Start Web PartDesignGui _PartDesign Path PathGui Spreadsheet SpreadsheetGui area DraftUtils DraftUtils libDriver libDriverDAT libDriverSTL libDriverUNV libMEFISTO2 libSMDS libSMESH libSMESHDS libStdMeshers Measure TechDraw TechDrawGui libarea-native Surface SurfaceGui PathSimulator
# Some plugins go in the Mod folder instead of lib. Deal with those here:
%global mod_plugins Mod/PartDesign
%define name freecad
%define github_name FreeCAD
%define branch master
Name: %{name}
Epoch: 1
Version: 0.18_pre
Release: {{{ git_commits_no }}}
Summary: A general purpose 3D CAD modeler
Group: Applications/Engineering
License: GPLv2+
URL: http://sourceforge.net/apps/mediawiki/free-cad/
Source0: https://github.com/%{github_name}/FreeCAD/archive/%{branch}.tar.gz
BuildRequires: Coin3
BuildRequires: Coin3-devel
BuildRequires: Inventor-devel
BuildRequires: OCE-devel
BuildRequires: OCE-draw
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: dos2unix
BuildRequires: doxygen
BuildRequires: eigen3
BuildRequires: eigen3-devel
BuildRequires: freeimage-devel
BuildRequires: gettext
BuildRequires: git
BuildRequires: graphviz
BuildRequires: libicu-devel
BuildRequires: libspnav
BuildRequires: libspnav-devel
BuildRequires: med
BuildRequires: med-devel
BuildRequires: mesa-libGLU-devel
BuildRequires: netgen-mesher-devel
BuildRequires: netgen-mesher-devel-private
BuildRequires: pyside-tools
BuildRequires: python
BuildRequires: python-matplotlib
BuildRequires: python-pivy
BuildRequires: python-pyside
BuildRequires: python-pyside-devel
BuildRequires: python2-devel
BuildRequires: qt-devel
BuildRequires: qt-webkit-devel
BuildRequires: shiboken
BuildRequires: shiboken-devel
BuildRequires: smesh
BuildRequires: smesh-devel
BuildRequires: swig
BuildRequires: tbb-devel
BuildRequires: vtk-devel
BuildRequires: xerces-c
BuildRequires: xerces-c-devel
BuildRequires: zlib-devel
%if 0%{?fedora} > 28
BuildRequires: boost-python2
BuildRequires: boost-python2-devel
BuildRequires: boost-python3
BuildRequires: boost-python3-devel
BuildRequires: mesa-libEGL-devel
BuildRequires: python3-matplotlib
%endif
# For appdata
%if 0%{?fedora}
BuildRequires: libappstream-glib
%endif
# Packages separated because they are noarch, but not optional so require them
# here.
Requires: %{name}-data = %{epoch}:%{version}-%{release}
# Obsolete old doc package since it's required for functionality.
Obsoletes: %{name}-doc < 0.13-5
# Needed for plugin support and is not a soname dependency.
%if ! 0%{?rhel} <= 6 && "%{_arch}" != "ppc64"
# python-pivy does not build on EPEL 6 ppc64.
Requires: python-pivy
%endif
Requires: hicolor-icon-theme
Requires: python-matplotlib
Requires: python-collada
Requires: python-pyside
# plugins and private shared libs in %%{_libdir}/freecad/lib are private;
# prevent private capabilities being advertised in Provides/Requires
%define plugin_regexp /^\\\(libFreeCAD.*%(for i in %{plugins}; do echo -n "\\\|$i\\\|$iGui"; done)\\\)\\\(\\\|Gui\\\)\\.so/d
%{?filter_setup:
%filter_provides_in %{_libdir}/%{name}/lib
%filter_from_requires %{plugin_regexp}
%filter_from_provides %{plugin_regexp}
%filter_provides_in %{_libdir}/%{name}/Mod
%filter_requires_in %{_libdir}/%{name}/Mod
%filter_setup
}
%description
FreeCAD is a general purpose Open Source 3D CAD/MCAD/CAx/CAE/PLM modeler, aimed
directly at mechanical engineering and product design but also fits a wider
range of uses in engineering, such as architecture or other engineering
specialties. It is a feature-based parametric modeler with a modular software
architecture which makes it easy to provide additional functionality without
modifying the core system.
%package data
Summary: Data files for FreeCAD
BuildArch: noarch
Requires: %{name} = %{epoch}:%{version}-%{release}
%description data
Data files for FreeCAD
%prep
%autosetup -n FreeCAD-%{branch}
# Fix encodings
dos2unix -k src/Mod/Test/unittestgui.py \
ChangeLog.txt \
data/License.txt
# Removed bundled libraries
%build
rm -rf build && mkdir build && cd build
# Deal with cmake projects that tend to link excessively.
#LDFLAGS='-Wl,--as-needed'; export LDFLAGS
%if 0%{?fedora} > 27
%define MEDFILE_INCLUDE_DIRS %{_includedir}/med/
%else
%define MEDFILE_INCLUDE_DIRS %{_includedir}/
%endif
%cmake -DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \
-DCMAKE_INSTALL_DATADIR=%{_datadir}/%{name} \
-DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
-DRESOURCEDIR=%{_datadir}/%{name} \
-DFREECAD_USE_EXTERNAL_PIVY=TRUE \
-DMEDFILE_INCLUDE_DIRS=%{MEDFILE_INCLUDE_DIRS} \
../
sed -i 's,FCRevision \"Unknown\",FCRevision \"%{release} (Git)\",' src/Build/Version.h
sed -i 's,FCRepositoryURL \"Unknown\",FCRepositoryURL \"git://github.com/FreeCAD/FreeCAD.git master\",' src/Build/Version.h
make %{?_smp_mflags}
%install
cd build
%make_install
# Symlink binaries to /usr/bin
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
ln -s ../%{_lib}/%{name}/bin/FreeCAD .
ln -s ../%{_lib}/%{name}/bin/FreeCADCmd .
popd
mkdir %{buildroot}%{_datadir}/appdata/
mv %{buildroot}%{_libdir}/%{name}/share/metainfo/* %{buildroot}%{_datadir}/appdata/
mkdir %{buildroot}%{_datadir}/applications/
mv %{buildroot}%{_libdir}/%{name}/share/applications/* %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
mv %{buildroot}%{_libdir}/%{name}/share/icons/hicolor/scalable/apps/* %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/
mkdir -p %{buildroot}%{_datadir}/mime/packages/
mv %{buildroot}%{_libdir}/%{name}/share/mime/packages/* %{buildroot}%{_datadir}/mime/packages/
pushd %{buildroot}%{_libdir}/%{name}/share/
rmdir metainfo/
rmdir applications/
rmdir -p mime/packages/
rmdir -p icons/hicolor/scalable/apps/
popd
# Bug maintainers to keep %%{plugins} macro up to date.
#
# Make sure there are no plugins that need to be added to plugins macro
new_plugins=`ls %{buildroot}%{_libdir}/%{name}/lib | sed -e '%{plugin_regexp}'`
if [ -n "$new_plugins" ]; then
echo -e "\n\n\n**** ERROR:\n" \
"\nPlugins not caught by regexp: " $new_plugins \
"\n\nPlugins in %{_libdir}/%{name}/lib do not exist in" \
"\nspecfile %%{plugins} macro. Please add these to" \
"\n%%{plugins} macro at top of specfile and rebuild.\n****\n" 1>&2
exit 1
fi
# Make sure there are no entries in the plugins macro that don't match plugins
for p in %{plugins}; do
if [ -z "`ls %{buildroot}%{_libdir}/%{name}/lib/$p*.so`" ]; then
set +x
echo -e "\n\n\n**** ERROR:\n" \
"\nExtra entry in %%{plugins} macro with no matching plugin:" \
"'$p'.\n\nPlease remove from %%{plugins} macro at top of" \
"\nspecfile and rebuild.\n****\n" 1>&2
exit 1
fi
done
%check
%{?fedora:appstream-util validate-relax --nonet \
%{buildroot}/%{_datadir}/appdata/*.appdata.xml}
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
/usr/bin/update-desktop-database &> /dev/null || :
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor/scalable/apps &>/dev/null || :
%files
%license data/License.txt
%doc ChangeLog.txt
%exclude %{_docdir}/%{name}/%{name}.*
%exclude %{_docdir}/%{name}/ThirdPartyLibraries.html
%{_bindir}/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/bin/
%{_libdir}/%{name}/lib/
%{_libdir}/%{name}/Mod/
%{_libdir}/%{name}/Ext/
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/scalable/apps/*
%{_datadir}/appdata/*
%{_datadir}/mime/packages/*
%files data
%{_datadir}/%{name}/
%{_docdir}/%{name}/%{name}.q*
+2
View File
@@ -0,0 +1,2 @@
[rpkg]
auto_pack = False
+4
View File
@@ -0,0 +1,4 @@
function git_commits_no {
commits=$(curl -s 'https://api.github.com/repos/FreeCAD/FreeCAD/compare/120ca87015...master' | grep "ahead_by" | sed -s 's/ //g' | sed -s 's/"ahead_by"://' | sed -s 's/,//')
echo $((commits + 1))
}
-66
View File
@@ -1,66 +0,0 @@
#!/bin/sh
# (c) 2009 Werner Mayer GPL
# This script creates a new source tarball and extracts it in the build
# directory. The source directory and tarball are renamed to Debian-
# conform names.
# Then the debian directory is created from a diff file and prepared for
# the new build. For this the following steps are executed:
#
# 1. cd freecad-X.Y.xyz
# 2. patch -p1 < .../debian/diff/freecad_hardy.diff
# 3. dch -v X.Y.xyz-1hardy1 "New release for Ubuntu 8.04 (Hardy Heron)"
# 4. debuild
#
# Example how to work with sed can be found here:
# http://www.grymoire.com/Unix/Sed.html
# global settings
TMP_PATH=/tmp
MAJ=0
MIN=13
# go to root directory
CUR_DIR=$PWD
verz=`dirname $(readlink -f ${0})`
cd $verz && cd ..
# http://blog.marcingil.com/2011/11/creating-build-numbers-using-git-commits/
if git log -1 >/dev/null 2>&1; then
REV=`git rev-list HEAD | wc -l | sed -e 's/ *//g' | xargs -n1 printf %04d`
else
REV=0
fi
SRC_DIR=$PWD
# Prepare source tarball and unpack it in build directory
cd $CUR_DIR
make dist-git
cd $verz && cd ..
rm -rf $TMP_PATH/freecad-$REV
mkdir $TMP_PATH/freecad-$REV
mv freecad-$MAJ.$MIN.$REV.tar.gz $TMP_PATH/freecad-$REV/freecad_$MAJ.$MIN.$REV.orig.tar.gz
cd $TMP_PATH/freecad-$REV
tar -xzf freecad_$MAJ.$MIN.$REV.orig.tar.gz
cd freecad-$MAJ.$MIN.$REV
#rm -rf src/CXX
#rm -rf src/zipios++
# Prepare debian folder and set the revision number in debian/changelog
# for package versioning
LSB_RELS=`lsb_release -r | cut -f2`
LSB_DESC=`lsb_release -d | cut -f2`
LSB_CODE=`lsb_release -c | cut -f2`
patch -p1 < $SRC_DIR/package/debian/diff/freecad_$LSB_CODE.diff
DEBEMAIL="wmayer@users.sourceforge.net"
export DEBEMAIL
dch -v $MAJ.$MIN.$REV-1"$LSB_CODE"1 "New release for $LSB_DESC ($LSB_CODE)"
debuild
cd ..
gunzip freecad_$MAJ.$MIN.$REV-1"$LSB_CODE"1.diff.gz
mv freecad_$MAJ.$MIN.$REV-1"$LSB_CODE"1.diff $SRC_DIR/package/debian/freecad_$LSB_CODE.diff
exit 0
+6
View File
@@ -0,0 +1,6 @@
matplotlib==2.2.3; python_version < '3.0'
matplotlib==3.0.2; python_version >= '3.0'
PySide==1.2.4
# PySide2==5.12.0
Shiboken==1.2.2
six==1.12.0
@@ -6,6 +6,11 @@ import unittest
from kdtree import KDTree_2Int, KDTree_4Int, KDTree_3Float, KDTree_4Float, KDTree_6Float
try:
long
except NameError:
long = int
class KDTree_2IntTestCase(unittest.TestCase):
def test_empty(self):
+9 -5
View File
@@ -1,10 +1,10 @@
# SGEOM cmake build file
#PROJECT(SMESH Fortran CXX)
SET(SMESH_VERSION_MAJOR 5)
SET(SMESH_VERSION_MINOR 1)
SET(SMESH_VERSION_PATCH 2)
SET(SMESH_VERSION_TWEAK 2)
SET(SMESH_VERSION_MAJOR 7) # see main CMakeLists.txt of FreeCAD
SET(SMESH_VERSION_MINOR 7)
SET(SMESH_VERSION_PATCH 1)
SET(SMESH_VERSION_TWEAK 0)
if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS " ${CMAKE_CXX_FLAGS} -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment -Wno-unused-parameter")
@@ -382,10 +382,14 @@ TARGET_LINK_LIBRARIES(NETGENPlugin SMDS SMESHDS SMESH StdMeshers ${SMESH_LIBS} )
SET_BIN_DIR(NETGENPlugin NETGENPlugin)
if(WIN32)
set_target_properties(NETGENPlugin PROPERTIES COMPILE_FLAGS "-DNETGENPLUGIN_EXPORTS -DNO_PARALLEL_THREADS -DOCCGEOMETRY -DNETGEN_VERSION=${NETGEN_VERSION}")
set_target_properties(NETGENPlugin PROPERTIES COMPILE_FLAGS "-DNETGENPLUGIN_EXPORTS -DNO_PARALLEL_THREADS -DOCCGEOMETRY -DNETGEN_VERSION=${NETGEN_VERSION_C}")
else()
set_target_properties(NETGENPlugin PROPERTIES COMPILE_FLAGS "${NETGEN_CXX_FLAGS}")
endif(WIN32)
IF(NOT NETGEN_VERSION_C LESS NETGEN_VERSION_62) # Version >= 6.2
set_target_properties(NETGENPlugin PROPERTIES CXX_STANDARD_REQUIRED ON)
set_target_properties(NETGENPlugin PROPERTIES CXX_STANDARD 14) # Standard std=c++1y could work aswell
ENDIF()
endif (BUILD_FEM_NETGEN)
+4 -6
View File
@@ -27,12 +27,10 @@
#ifndef _SMDSAbs_ElementType_HeaderFile
#define _SMDSAbs_ElementType_HeaderFile
#include <cstddef>
///////////////////////////////////////////////////////////////////////////////
/// Type (node, edge, face or volume) of elements
///////////////////////////////////////////////////////////////////////////////
enum SMDSAbs_ElementType : size_t
enum SMDSAbs_ElementType
{
SMDSAbs_All,
SMDSAbs_Node,
@@ -45,7 +43,7 @@ enum SMDSAbs_ElementType : size_t
};
/*! enumeration for element geometry type */
enum SMDSAbs_GeometryType : size_t
enum SMDSAbs_GeometryType
{
// 0D element
SMDSGeom_POINT,
@@ -69,7 +67,7 @@ enum SMDSAbs_GeometryType : size_t
};
enum SMDSAbs_ElementOrder : size_t
enum SMDSAbs_ElementOrder
{
ORDER_ANY, /*! entities of any order */
ORDER_LINEAR, /*! entities of 1st order */
@@ -79,7 +77,7 @@ enum SMDSAbs_ElementOrder : size_t
/*!
* Enumeration of entity type used in mesh info array
*/
enum SMDSAbs_EntityType : size_t
enum SMDSAbs_EntityType
{
SMDSEntity_Node,
SMDSEntity_0D,
+1 -1
View File
@@ -30,6 +30,7 @@
#include "SMESH_SMESH.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMDSAbs_ElementType.hxx"
#include "SMESH_Comment.hxx"
#include "SMESH_ComputeError.hxx"
@@ -45,7 +46,6 @@
#include <map>
#include <set>
class SMDS_MeshNode;
class SMESHDS_Mesh;
class SMESHDS_SubMesh;
class SMESH_Gen;
+2 -8
View File
@@ -60,8 +60,8 @@ typedef std::set<int> TSetOfInt;
class SMESH_EXPORT SMESH_Gen
{
public:
static SMESH_Gen* get();
SMESH_Gen();
~SMESH_Gen();
SMESH_Mesh* CreateMesh(int theStudyId, bool theIsEmbeddedMode);
@@ -158,12 +158,6 @@ public:
// std::map < int, SMESH_2D_Algo * >_map2D_Algo;
// std::map < int, SMESH_3D_Algo * >_map3D_Algo;
protected:
//Generator is designed to be a singleton, hence constructor and destructor are not allowed to be used
SMESH_Gen();
~SMESH_Gen();
static SMESH_Gen* generator;
private:
int _localId; // unique Id of created objects, within SMESH_Gen entity
@@ -30,7 +30,7 @@
#include "SMESH_StdMeshers.hxx"
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#include <TopTools_DataMapOfShapeShape.hxx>
#include <TopTools_IndexedDataMapOfShapeListOfShape.hxx>
@@ -291,7 +291,7 @@ namespace
try {
axes = gp_Ax2( p0, normal, v01 );
}
catch ( Standard_Failure ) {
catch ( Standard_Failure &) {
return false;
}
for ( size_t i = 0; i < nbNodes; ++i )
+3 -3
View File
@@ -79,8 +79,8 @@ bool SMESH_File::open()
if ( !_map && length > 0 )
{
#ifdef WIN32
_file = CreateFile(_name.data(), GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
_file = CreateFileA(_name.data(), GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
bool ok = ( _file != INVALID_HANDLE_VALUE );
#else
_file = ::open(_name.data(), O_RDONLY );
@@ -292,7 +292,7 @@ bool SMESH_File::openForWriting()
{
#ifdef WIN32
_file = CreateFile( _name.c_str(), // name of the write
_file = CreateFileA(_name.c_str(), // name of the write
GENERIC_WRITE, // open for writing
0, // do not share
NULL, // default security
@@ -64,7 +64,7 @@ namespace nglib {
#include <occgeom.hpp>
#include <meshing.hpp>
//#include <meshtype.hpp>
//#include <meshing/meshtype.hpp>
namespace netgen {
#if NETGEN_VERSION >= NETGEN_VERSION_STRING(6,2)
DLL_HEADER extern int OCCGenerateMesh (OCCGeometry&, shared_ptr<Mesh>&, MeshingParameters&);
+4
View File
@@ -263,6 +263,7 @@ int SMDS_MeshNode::NbNodes() const
double* SMDS_MeshNode::getCoord() const
{
#if 0
double coord[3];
double *coord2;
vtkUnstructuredGrid *grid;
@@ -288,6 +289,9 @@ double* SMDS_MeshNode::getCoord() const
return coord2;
}
return 0;
#else
return SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetPoint(myVtkID);
#endif
}
double SMDS_MeshNode::X() const
+3 -1
View File
@@ -68,8 +68,10 @@ SMDS_VtkCellIteratorToUNV::SMDS_VtkCellIteratorToUNV(SMDS_Mesh* mesh, int vtkCel
_vtkIdList = vtkIdList::New();
vtkIdType* pts;
vtkIdType npts;
vtkUnstructuredGrid* grid = _mesh->getGrid();
grid->GetCellPoints((vtkIdType)_cellId, (vtkIdType&)_nbNodes, pts);
grid->GetCellPoints((vtkIdType)_cellId, npts, pts);
_nbNodes = static_cast<int>(npts);
_vtkIdList->SetNumberOfIds(_nbNodes);
const int *ids = 0;
switch (_type)
+1 -1
View File
@@ -522,7 +522,7 @@ GeomAbs_Shape SMESH_Algo::Continuity(TopoDS_Edge E1,
OCC_CATCH_SIGNALS;
return BRepLProp::Continuity(C1, C2, u1, u2, tol, angTol);
}
catch (Standard_Failure) {
catch (Standard_Failure&) {
}
return GeomAbs_C0;
}
+1 -11
View File
@@ -55,7 +55,6 @@ using namespace std;
//#include <vtkDebugLeaks.h>
SMESH_Gen* SMESH_Gen::generator = nullptr;
//=============================================================================
/*!
@@ -75,15 +74,6 @@ SMESH_Gen::SMESH_Gen()
//vtkDebugLeaks::SetExitError(0);
}
SMESH_Gen* SMESH_Gen::get() {
if(!generator)
generator = new SMESH_Gen();
return generator;
}
//=============================================================================
/*!
* Destructor
@@ -1037,7 +1027,7 @@ std::vector< std::string > SMESH_Gen::GetPluginXMLPaths()
xmlPath += sep + plugin + ".xml";
bool fileOK;
#ifdef WIN32
fileOK = (GetFileAttributes(xmlPath.c_str()) != INVALID_FILE_ATTRIBUTES);
fileOK = (GetFileAttributesA(xmlPath.c_str()) != INVALID_FILE_ATTRIBUTES);
#else
fileOK = (access(xmlPath.c_str(), F_OK) == 0);
#endif
+1 -1
View File
@@ -1371,7 +1371,7 @@ double SMESH_MeshAlgos::GetDistance( const SMDS_MeshFace* face,
try {
tgtCS = gp_Ax3( xyz[0], OZ, OX );
}
catch ( Standard_Failure ) {
catch ( Standard_Failure &) {
return badDistance;
}
trsf.SetTransformation( tgtCS );
+1 -1
View File
@@ -11178,7 +11178,7 @@ double SMESH_MeshEditor::OrientedAngle(const gp_Pnt& p0, const gp_Pnt& p1, const
try {
return n2.AngleWithRef(n1, vref);
}
catch ( Standard_Failure ) {
catch ( Standard_Failure &) {
}
return Max( v1.Magnitude(), v2.Magnitude() );
}
+3 -3
View File
@@ -4445,7 +4445,7 @@ namespace { // Structures used by FixQuadraticElements()
if ( curvNorm * D2 > 0 )
continue; // convex edge
}
catch ( Standard_Failure )
catch ( Standard_Failure &)
{
continue;
}
@@ -4558,7 +4558,7 @@ namespace { // Structures used by FixQuadraticElements()
if ( concaveU || concaveV )
concaveFaces.push_back( face );
}
catch ( Standard_Failure )
catch ( Standard_Failure &)
{
concaveFaces.push_back( face );
}
@@ -5081,7 +5081,7 @@ void SMESH_MesherHelper::FixQuadraticElements(SMESH_ComputeErrorPtr& compError,
try {
gp_Vec x = x01.Normalized() + x12.Normalized();
trsf.SetTransformation( gp_Ax3( gp::Origin(), link1->Normal(), x), gp_Ax3() );
} catch ( Standard_Failure ) {
} catch ( Standard_Failure &) {
trsf.Invert();
}
move.Transform(trsf);
+1 -1
View File
@@ -1377,7 +1377,7 @@ const TopoDS_Shape& SMESHDS_Mesh::IndexToShape(int ShapeIndex) const
if ( ShapeIndex > 0 )
return myIndexToShape.FindKey(ShapeIndex);
}
catch ( Standard_OutOfRange )
catch ( Standard_OutOfRange &)
{
}
static TopoDS_Shape nullShape;
@@ -1466,7 +1466,7 @@ bool _QuadFaceGrid::GetNormal( const TopoDS_Vertex& v, gp_Vec& n ) const
n = d1u.Crossed( d1v );
return true;
}
catch (Standard_Failure) {
catch (Standard_Failure&) {
return false;
}
}
@@ -64,7 +64,7 @@ bool Function::value( const double, double& f ) const
OCC_CATCH_SIGNALS;
#endif
f = pow( 10., f );
} catch(Standard_Failure) {
} catch(Standard_Failure&) {
f = 0.0;
ok = false;
}
@@ -196,7 +196,7 @@ FunctionExpr::FunctionExpr( const char* str, const int conv )
#endif
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( ( Standard_CString )str );
} catch(Standard_Failure) {
} catch(Standard_Failure&) {
ok = false;
}
@@ -230,7 +230,7 @@ bool FunctionExpr::value( const double t, double& f ) const
OCC_CATCH_SIGNALS;
#endif
f = myExpr->Expression()->Evaluate( myVars, myValues );
} catch(Standard_Failure) {
} catch(Standard_Failure&) {
f = 0.0;
ok = false;
}
@@ -250,7 +250,7 @@ double FunctionExpr::integral( const double a, const double b ) const
( *static_cast<math_Function*>( const_cast<FunctionExpr*> (this) ), a, b, 20 );
if( _int.IsDone() )
res = _int.Value();
} catch(Standard_Failure) {
} catch(Standard_Failure&) {
res = 0.0;
MESSAGE( "Exception in integral calculating" );
}
@@ -232,7 +232,7 @@ void StdMeshers_NumberOfSegments::SetTableFunction(const vector<double>& table)
OCC_CATCH_SIGNALS;
#endif
val = pow( 10.0, val );
} catch(Standard_Failure) {
} catch(Standard_Failure&) {
throw SALOME_Exception( LOCALIZED( "invalid value"));
return;
}
@@ -327,7 +327,7 @@ bool process( const TCollection_AsciiString& str, int convMode,
#endif
myExpr = ExprIntrp_GenExp::Create();
myExpr->Process( str.ToCString() );
} catch(Standard_Failure) {
} catch(Standard_Failure&) {
parsed_ok = false;
}
+197 -60
View File
@@ -77,6 +77,7 @@
#include <Base/RotationPy.h>
#include <Base/Sequencer.h>
#include <Base/Tools.h>
#include <Base/Translate.h>
#include <Base/UnitsApi.h>
#include <Base/QuantityPy.h>
#include <Base/UnitPy.h>
@@ -120,7 +121,6 @@
#include <boost/tokenizer.hpp>
#include <boost/token_functions.hpp>
#include <boost/signals.hpp>
#include <boost/bind.hpp>
#include <boost/version.hpp>
#include <QDir>
@@ -138,6 +138,10 @@ using namespace boost::program_options;
#include <App/CMakeScript.h>
#ifdef _MSC_VER // New handler for Microsoft Visual C++ compiler
# if !defined(_DEBUG) && defined(HAVE_SEH)
# define FC_SE_TRANSLATOR
# endif
# include <new.h>
# include <eh.h> // VC exception handling
#else // Ansi C/C++ new handler
@@ -206,12 +210,43 @@ PyDoc_STRVAR(FreeCAD_doc,
PyDoc_STRVAR(Console_doc,
"FreeCAD Console\n"
);
PyDoc_STRVAR(Base_doc,
"The Base module contains the classes for the geometric basics\n"
"like vector, matrix, bounding box, placement, rotation, axis, ...\n"
);
#if PY_MAJOR_VERSION >= 3
// This is called via the PyImport_AppendInittab mechanism called
// during initialization, to make the built-in __FreeCADBase__
// module known to Python.
PyMODINIT_FUNC
init_freecad_base_module(void)
{
static struct PyModuleDef BaseModuleDef = {
PyModuleDef_HEAD_INIT,
"__FreeCADBase__", Base_doc, -1,
NULL, NULL, NULL, NULL, NULL
};
return PyModule_Create(&BaseModuleDef);
}
// Set in inside Application
static PyMethodDef* __AppMethods = nullptr;
PyMODINIT_FUNC
init_freecad_module(void)
{
static struct PyModuleDef FreeCADModuleDef = {
PyModuleDef_HEAD_INIT,
"FreeCAD", FreeCAD_doc, -1,
__AppMethods,
NULL, NULL, NULL, NULL
};
return PyModule_Create(&FreeCADModuleDef);
}
#endif
Application::Application(std::map<std::string,std::string> &mConfig)
: _mConfig(mConfig), _pActiveDoc(0)
{
@@ -223,14 +258,15 @@ Application::Application(std::map<std::string,std::string> &mConfig)
// setting up Python binding
Base::PyGILStateLocker lock;
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef FreeCADModuleDef = {
PyModuleDef_HEAD_INIT,
"FreeCAD", FreeCAD_doc, -1,
Application::Methods,
NULL, NULL, NULL, NULL
};
PyObject* pAppModule = PyModule_Create(&FreeCADModuleDef);
_PyImport_FixupBuiltin(pAppModule, "FreeCAD");
PyObject* modules = PyImport_GetModuleDict();
__AppMethods = Application::Methods;
PyObject* pAppModule = PyImport_ImportModule ("FreeCAD");
if (!pAppModule) {
PyErr_Clear();
pAppModule = init_freecad_module();
PyDict_SetItemString(modules, "FreeCAD", pAppModule);
}
#else
PyObject* pAppModule = Py_InitModule3("FreeCAD", Application::Methods, FreeCAD_doc);
#endif
@@ -265,13 +301,12 @@ Application::Application(std::map<std::string,std::string> &mConfig)
// remove these types from the FreeCAD module.
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef BaseModuleDef = {
PyModuleDef_HEAD_INIT,
"__FreeCADBase__", Base_doc, -1,
NULL, NULL, NULL, NULL, NULL
};
PyObject* pBaseModule = PyModule_Create(&BaseModuleDef);
_PyImport_FixupBuiltin(pBaseModule, "__FreeCADBase__");
PyObject* pBaseModule = PyImport_ImportModule ("__FreeCADBase__");
if (!pBaseModule) {
PyErr_Clear();
pBaseModule = init_freecad_base_module();
PyDict_SetItemString(modules, "__FreeCADBase__", pBaseModule);
}
#else
PyObject* pBaseModule = Py_InitModule3("__FreeCADBase__", NULL, Base_doc);
#endif
@@ -296,6 +331,11 @@ Application::Application(std::map<std::string,std::string> &mConfig)
Py_INCREF(pConsoleModule);
PyModule_AddObject(pAppModule, "Console", pConsoleModule);
// Translate module
PyObject* pTranslateModule = (new Base::Translate)->module().ptr();
Py_INCREF(pTranslateModule);
PyModule_AddObject(pAppModule, "Qt", pTranslateModule);
//insert Units module
#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef UnitsModuleDef = {
@@ -385,13 +425,23 @@ Document* Application::newDocument(const char * Name, const char * UserName)
// connect the signals to the application for the new document
_pActiveDoc->signalBeforeChange.connect(boost::bind(&App::Application::slotBeforeChangeDocument, this, _1, _2));
_pActiveDoc->signalChanged.connect(boost::bind(&App::Application::slotChangedDocument, this, _1, _2));
_pActiveDoc->signalNewObject.connect(boost::bind(&App::Application::slotNewObject, this, _1));
_pActiveDoc->signalDeletedObject.connect(boost::bind(&App::Application::slotDeletedObject, this, _1));
_pActiveDoc->signalBeforeChangeObject.connect(boost::bind(&App::Application::slotBeforeChangeObject, this, _1, _2));
_pActiveDoc->signalChangedObject.connect(boost::bind(&App::Application::slotChangedObject, this, _1, _2));
_pActiveDoc->signalRelabelObject.connect(boost::bind(&App::Application::slotRelabelObject, this, _1));
_pActiveDoc->signalActivatedObject.connect(boost::bind(&App::Application::slotActivatedObject, this, _1));
_pActiveDoc->signalUndo.connect(boost::bind(&App::Application::slotUndoDocument, this, _1));
_pActiveDoc->signalRedo.connect(boost::bind(&App::Application::slotRedoDocument, this, _1));
_pActiveDoc->signalRecomputedObject.connect(boost::bind(&App::Application::slotRecomputedObject, this, _1));
_pActiveDoc->signalRecomputed.connect(boost::bind(&App::Application::slotRecomputed, this, _1));
_pActiveDoc->signalOpenTransaction.connect(boost::bind(&App::Application::slotOpenTransaction, this, _1, _2));
_pActiveDoc->signalCommitTransaction.connect(boost::bind(&App::Application::slotCommitTransaction, this, _1));
_pActiveDoc->signalAbortTransaction.connect(boost::bind(&App::Application::slotAbortTransaction, this, _1));
_pActiveDoc->signalStartSave.connect(boost::bind(&App::Application::slotStartSaveDocument, this, _1, _2));
_pActiveDoc->signalFinishSave.connect(boost::bind(&App::Application::slotFinishSaveDocument, this, _1, _2));
// make sure that the active document is set in case no GUI is up
{
@@ -941,6 +991,16 @@ std::map<std::string, std::string> Application::getExportFilters(void) const
//**************************************************************************
// signaling
void Application::slotBeforeChangeDocument(const App::Document& doc, const Property& prop)
{
this->signalBeforeChangeDocument(doc, prop);
}
void Application::slotChangedDocument(const App::Document& doc, const Property& prop)
{
this->signalChangedDocument(doc, prop);
}
void Application::slotNewObject(const App::DocumentObject&O)
{
this->signalNewObject(O);
@@ -951,6 +1011,11 @@ void Application::slotDeletedObject(const App::DocumentObject&O)
this->signalDeletedObject(O);
}
void Application::slotBeforeChangeObject(const DocumentObject& O, const Property& Prop)
{
this->signalBeforeChangeObject(O, Prop);
}
void Application::slotChangedObject(const App::DocumentObject&O, const App::Property& P)
{
this->signalChangedObject(O,P);
@@ -976,6 +1041,41 @@ void Application::slotRedoDocument(const App::Document& d)
this->signalRedoDocument(d);
}
void Application::slotRecomputedObject(const DocumentObject& obj)
{
this->signalObjectRecomputed(obj);
}
void Application::slotRecomputed(const Document& doc)
{
this->signalRecomputed(doc);
}
void Application::slotOpenTransaction(const Document& d, string s)
{
this->signalOpenTransaction(d, s);
}
void Application::slotCommitTransaction(const Document& d)
{
this->signalCommitTransaction(d);
}
void Application::slotAbortTransaction(const Document& d)
{
this->signalAbortTransaction(d);
}
void Application::slotStartSaveDocument(const App::Document& doc, const std::string& filename)
{
this->signalStartSaveDocument(doc, filename);
}
void Application::slotFinishSaveDocument(const App::Document& doc, const std::string& filename)
{
this->signalFinishSaveDocument(doc, filename);
}
//**************************************************************************
// Init, Destruct and singleton
@@ -1015,7 +1115,7 @@ void Application::destruct(void)
_pcSysParamMngr = 0;
_pcUserParamMngr = 0;
// not initialized or doubel destruct!
// not initialized or double destruct!
assert(_pcSingleton);
delete _pcSingleton;
@@ -1111,11 +1211,11 @@ void printBacktrace(size_t skip=0)
void segmentation_fault_handler(int sig)
{
#if defined(FC_OS_LINUX)
(void)sig;
std::cerr << "Program received signal SIGSEGV, Segmentation fault.\n";
printBacktrace(2);
exit(1);
#endif
#else
switch (sig) {
case SIGSEGV:
std::cerr << "Illegal storage access..." << std::endl;
@@ -1133,9 +1233,10 @@ void segmentation_fault_handler(int sig)
std::cerr << "Unknown error occurred..." << std::endl;
break;
}
#endif // FC_OS_LINUX
}
void my_terminate_handler()
void unhandled_exception_handler()
{
std::cerr << "Terminating..." << std::endl;
}
@@ -1151,23 +1252,28 @@ void unexpection_error_handler()
#endif
}
#ifdef _MSC_VER // Microsoft compiler
void my_trans_func( unsigned int code, EXCEPTION_POINTERS* pExp )
#if defined(FC_SE_TRANSLATOR) // Microsoft compiler
void my_se_translator_filter(unsigned int code, EXCEPTION_POINTERS* pExp)
{
Q_UNUSED(pExp)
switch (code)
{
case EXCEPTION_ACCESS_VIOLATION:
throw Base::AccessViolation();
break;
case EXCEPTION_FLT_DIVIDE_BY_ZERO:
case EXCEPTION_INT_DIVIDE_BY_ZERO:
throw Base::DivisionByZeroError("Division by zero!");
break;
}
//switch (code)
//{
// case FLT_DIVIDE_BY_ZERO :
// //throw CMyFunkyDivideByZeroException(code, pExp);
// throw Base::DivisionByZeroError("Devision by zero!");
// break;
//}
// general C++ SEH exception for things we don't need to handle separately....
throw Base::RuntimeError("my_trans_func()");
std::stringstream str;
str << "SEH exception of type: " << code;
// general C++ SEH exception for things we don't need to handle separately....
throw Base::RuntimeError(str.str());
}
#endif
void Application::init(int argc, char ** argv)
{
try {
@@ -1183,13 +1289,14 @@ void Application::init(int argc, char ** argv)
#if defined (_MSC_VER) // Microsoft compiler
std::signal(SIGSEGV,segmentation_fault_handler);
std::signal(SIGABRT,segmentation_fault_handler);
std::set_terminate(my_terminate_handler);
std::set_terminate(unhandled_exception_handler);
std::set_unexpected(unexpection_error_handler);
// _set_se_translator(my_trans_func);
#elif defined(FC_OS_LINUX)
std::signal(SIGSEGV,segmentation_fault_handler);
#endif
#if defined(FC_SE_TRANSLATOR)
_set_se_translator(my_se_translator_filter);
#endif
initTypes();
#if (BOOST_VERSION < 104600) || (BOOST_FILESYSTEM_VERSION == 2)
@@ -1342,11 +1449,11 @@ void Application::initTypes(void)
new ExceptionProducer<Base::AbortException>;
new ExceptionProducer<Base::XMLBaseException>;
new ExceptionProducer<Base::XMLParseException>;
new ExceptionProducer<Base::XMLAttributeError>;
new ExceptionProducer<Base::FileException>;
new ExceptionProducer<Base::FileSystemError>;
new ExceptionProducer<Base::BadFormatError>;
new ExceptionProducer<Base::MemoryException>;
new ExceptionProducer<Base::MemoryException>;
new ExceptionProducer<Base::AccessViolation>;
new ExceptionProducer<Base::AbnormalProgramTermination>;
new ExceptionProducer<Base::UnknownProgramOption>;
@@ -1356,6 +1463,7 @@ void Application::initTypes(void)
new ExceptionProducer<Base::IndexError>;
new ExceptionProducer<Base::AttributeError>;
new ExceptionProducer<Base::RuntimeError>;
new ExceptionProducer<Base::BadGraphError>;
new ExceptionProducer<Base::NotImplementedError>;
new ExceptionProducer<Base::DivisionByZeroError>;
new ExceptionProducer<Base::ReferencesError>;
@@ -1366,6 +1474,7 @@ void Application::initTypes(void)
new ExceptionProducer<Base::UnderflowError>;
new ExceptionProducer<Base::UnitsMismatchError>;
new ExceptionProducer<Base::CADKernelError>;
new ExceptionProducer<Base::RestoreError>;
}
void Application::initConfig(int argc, char ** argv)
@@ -1416,6 +1525,10 @@ void Application::initConfig(int argc, char ** argv)
# endif
// init python
#if PY_MAJOR_VERSION >= 3
PyImport_AppendInittab ("FreeCAD", init_freecad_module);
PyImport_AppendInittab ("__FreeCADBase__", init_freecad_base_module);
#endif
mConfig["PythonSearchPath"] = Interpreter().init(argc,argv);
// Parse the options that have impact on the init process
@@ -1426,7 +1539,7 @@ void Application::initConfig(int argc, char ** argv)
_pConsoleObserverStd = new ConsoleObserverStd();
Console().AttachObserver(_pConsoleObserverStd);
if (mConfig["Verbose"] == "Strict")
Console().SetMode(ConsoleSingleton::Verbose);
Console().UnsetConsoleMode(ConsoleSingleton::Verbose);
// file logging Init ===========================================================
if (mConfig["LoggingFile"] == "1") {
@@ -1456,29 +1569,33 @@ void Application::initConfig(int argc, char ** argv)
auto loglevelParam = _pcUserParamMngr->GetGroup("BaseApp/LogLevels");
const auto &loglevels = loglevelParam->GetIntMap();
bool hasDefault = false;
for(const auto &v : loglevels) {
if(v.first == "Default") {
for (const auto &v : loglevels) {
if (v.first == "Default") {
#ifndef FC_DEBUG
if(v.second>=0) {
if (v.second>=0) {
hasDefault = true;
Base::Console().SetDefaultLogLevel(v.second);
}
#endif
}else if(v.first == "DebugDefault") {
}
else if (v.first == "DebugDefault") {
#ifdef FC_DEBUG
if(v.second>=0) {
if (v.second>=0) {
hasDefault = true;
Base::Console().SetDefaultLogLevel(v.second);
}
#endif
}else
}
else {
*Base::Console().GetLogLevel(v.first.c_str()) = v.second;
}
}
if(!hasDefault) {
if (!hasDefault) {
#ifdef FC_DEBUG
loglevelParam->SetInt("DebugDefault",Base::Console().LogLevel(-1));
loglevelParam->SetInt("DebugDefault", Base::Console().LogLevel(-1));
#else
loglevelParam->SetInt("Default",Base::Console().LogLevel(-1));
loglevelParam->SetInt("Default", Base::Console().LogLevel(-1));
#endif
}
@@ -1539,6 +1656,12 @@ void Application::initApplication(void)
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Units");
UnitsApi::setSchema((UnitSystem)hGrp->GetInt("UserSchema",0));
UnitsApi::setDecimals(hGrp->GetInt("Decimals", Base::UnitsApi::getDecimals()));
// In case we are using fractional inches, get user setting for min unit
int denom = hGrp->GetInt("FracInch", Base::QuantityFormat::getDefaultDenominator());
Base::QuantityFormat::setDefaultDenominator(denom);
#if defined (_DEBUG)
Console().Log("Application is built with debug information\n");
@@ -1552,7 +1675,7 @@ void Application::initApplication(void)
ObjectLabelObserver::instance();
}
catch (const Base::Exception& e) {
Base::Console().Error("%s\n", e.what());
e.ReportException();
}
}
@@ -1619,7 +1742,7 @@ std::list<std::string> Application::processFiles(const std::list<std::string>& f
processed.push_back(*it);
Base::Console().Log("Command line open: %s.open(u\"%s\")\n",mods.front().c_str(),escapedstr.c_str());
}
else {
else if (file.exists()) {
Console().Warning("File format not supported: %s \n", file.filePath().c_str());
}
}
@@ -1642,12 +1765,21 @@ void Application::processCmdLineFiles(void)
{
// process files passed to command line
std::list<std::string> files = getCmdLineFiles();
processFiles(files);
std::list<std::string> processed = processFiles(files);
if (files.empty()) {
if (mConfig["RunMode"] == "Exit")
mConfig["RunMode"] = "Cmd";
}
else if (processed.empty() && files.size() == 1 && mConfig["RunMode"] == "Cmd") {
// In case we are in console mode and the argument is not a file but Python code
// then execute it. This is to behave like the standard Python executable.
Base::FileInfo file(files.front());
if (!file.exists()) {
Interpreter().runString(files.front().c_str());
mConfig["RunMode"] = "Exit";
}
}
const std::map<std::string,std::string>& cfg = Application::Config();
std::map<std::string,std::string>::const_iterator it = cfg.find("SaveFile");
@@ -2261,7 +2393,7 @@ void Application::ExtractUserPath()
#elif defined(FC_OS_WIN32)
WCHAR szPath[MAX_PATH];
TCHAR dest[MAX_PATH*3];
char dest[MAX_PATH*3];
// Get the default path where we can save our documents. It seems that
// 'CSIDL_MYDOCUMENTS' doesn't work on all machines, so we use 'CSIDL_PERSONAL'
// which does the same.
@@ -2365,8 +2497,8 @@ std::string Application::FindHomePath(const char* sCall)
absPath = path;
}
else {
// Find the path of the executable. Theoretically, there could occur a
// race condition when using readlink, but we only use this method to
// Find the path of the executable. Theoretically, there could occur a
// race condition when using readlink, but we only use this method to
// get the absolute path of the executable to compute the actual home
// path. In the worst case we simply get q wrong path and FreeCAD is not
// able to load its modules.
@@ -2385,7 +2517,7 @@ std::string Application::FindHomePath(const char* sCall)
#endif
if (nchars < 0 || nchars >= PATH_MAX)
throw Base::FileSystemError("Cannot determine the absolute path of the executable");
resolved[nchars] = '\0'; // enfore null termination
resolved[nchars] = '\0'; // enforce null termination
absPath = resolved;
}
@@ -2440,12 +2572,17 @@ std::string Application::FindHomePath(const char* call)
#elif defined (FC_OS_WIN32)
std::string Application::FindHomePath(const char* sCall)
{
// We have three ways to start this application either use one of the two executables or
// import the FreeCAD.pyd module from a running Python session. In the latter case the
// Python interpreter is already initialized.
// We have several ways to start this application:
// * use one of the two executables
// * import the FreeCAD.pyd module from a running Python session. In this case the
// Python interpreter is already initialized.
// * use a custom dll that links FreeCAD core dlls and that is loaded by its host application
// In this case the calling name should be set to FreeCADBase.dll or FreeCADApp.dll in order
// to locate the correct home directory
wchar_t szFileName [MAX_PATH];
if (Py_IsInitialized()) {
GetModuleFileNameW(GetModuleHandle(sCall),szFileName, MAX_PATH-1);
QString dll(QString::fromUtf8(sCall));
if (Py_IsInitialized() || dll.endsWith(QLatin1String(".dll"))) {
GetModuleFileNameW(GetModuleHandleA(sCall),szFileName, MAX_PATH-1);
}
else {
GetModuleFileNameW(0, szFileName, MAX_PATH-1);
+93 -68
View File
@@ -1,5 +1,5 @@
/***************************************************************************
* (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
* (c) Jürgen Riegel (juergen.riegel@web.de) 2002 *
* *
* This file is part of the FreeCAD CAx development system. *
* *
@@ -10,7 +10,7 @@
* for detail see the LICENCE text file. *
* *
* FreeCAD is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Library General Public License for more details. *
* *
@@ -25,7 +25,7 @@
#ifndef APP_APPLICATION_H
#define APP_APPLICATION_H
#include <boost/signal.hpp>
#include <boost/signals2.hpp>
#include <vector>
@@ -34,9 +34,9 @@
#include <Base/Observer.h>
namespace Base
namespace Base
{
class ConsoleObserverStd;
class ConsoleObserverStd;
class ConsoleObserverFile;
}
@@ -71,7 +71,7 @@ public:
* spaces and not starting with a number. This name gets also forced to be unique
* in this Application. You can avoid the renaming by using getUniqueDocumentName()
* to get a unique name before calling newDoucument().
* The second name is a UTF8 name of any kind. It's that name normally shown to
* The second name is a UTF8 name of any kind. It's that name normally shown to
* the user and stored in the App::Document::Name property.
*/
App::Document* newDocument(const char * Name=0l, const char * UserName=0l);
@@ -99,46 +99,66 @@ public:
/** @name Signals of the Application */
//@{
/// signal on new Document
boost::signal<void (const Document&)> signalNewDocument;
boost::signals2::signal<void (const Document&)> signalNewDocument;
/// signal on document getting deleted
boost::signal<void (const Document&)> signalDeleteDocument;
boost::signals2::signal<void (const Document&)> signalDeleteDocument;
/// signal on already deleted Document
boost::signal<void ()> signalDeletedDocument;
boost::signals2::signal<void ()> signalDeletedDocument;
/// signal on relabeling Document (user name)
boost::signal<void (const Document&)> signalRelabelDocument;
boost::signals2::signal<void (const Document&)> signalRelabelDocument;
/// signal on renaming Document (internal name)
boost::signal<void (const Document&)> signalRenameDocument;
boost::signals2::signal<void (const Document&)> signalRenameDocument;
/// signal on activating Document
boost::signal<void (const Document&)> signalActiveDocument;
boost::signals2::signal<void (const Document&)> signalActiveDocument;
/// signal on saving Document
boost::signal<void (const Document&)> signalSaveDocument;
boost::signals2::signal<void (const Document&)> signalSaveDocument;
/// signal on starting to restore Document
boost::signal<void (const Document&)> signalStartRestoreDocument;
boost::signals2::signal<void (const Document&)> signalStartRestoreDocument;
/// signal on restoring Document
boost::signal<void (const Document&)> signalFinishRestoreDocument;
boost::signals2::signal<void (const Document&)> signalFinishRestoreDocument;
/// signal on starting to save Document
boost::signals2::signal<void (const Document&, const std::string&)> signalStartSaveDocument;
/// signal on saved Document
boost::signals2::signal<void (const Document&, const std::string&)> signalFinishSaveDocument;
/// signal on undo in document
boost::signal<void (const Document&)> signalUndoDocument;
boost::signals2::signal<void (const Document&)> signalUndoDocument;
/// signal on redo in document
boost::signal<void (const Document&)> signalRedoDocument;
boost::signals2::signal<void (const Document&)> signalRedoDocument;
//@}
/** @name Signals of the document
* This signals are an aggregation of all document. If you only
* This signals are an aggregation of all document. If you only
* the signal of a special document connect to the document itself
*/
//@{
/// signal before change of doc property
boost::signals2::signal<void (const App::Document&, const App::Property&)> signalBeforeChangeDocument;
/// signal on changed doc property
boost::signals2::signal<void (const App::Document&, const App::Property&)> signalChangedDocument;
/// signal on new Object
boost::signal<void (const App::DocumentObject&)> signalNewObject;
//boost::signal<void (const App::DocumentObject&)> m_sig;
boost::signals2::signal<void (const App::DocumentObject&)> signalNewObject;
//boost::signals2::signal<void (const App::DocumentObject&)> m_sig;
/// signal on deleted Object
boost::signal<void (const App::DocumentObject&)> signalDeletedObject;
boost::signals2::signal<void (const App::DocumentObject&)> signalDeletedObject;
/// signal on changed Object
boost::signal<void (const App::DocumentObject&, const App::Property&)> signalChangedObject;
boost::signals2::signal<void (const App::DocumentObject&, const App::Property&)> signalBeforeChangeObject;
/// signal on changed Object
boost::signals2::signal<void (const App::DocumentObject&, const App::Property&)> signalChangedObject;
/// signal on relabeled Object
boost::signal<void (const App::DocumentObject&)> signalRelabelObject;
boost::signals2::signal<void (const App::DocumentObject&)> signalRelabelObject;
/// signal on activated Object
boost::signal<void (const App::DocumentObject&)> signalActivatedObject;
boost::signals2::signal<void (const App::DocumentObject&)> signalActivatedObject;
/// signal on recomputed document
boost::signals2::signal<void (const App::Document&)> signalRecomputed;
/// signal on recomputed document object
boost::signals2::signal<void (const App::DocumentObject&)> signalObjectRecomputed;
// signal on opened transaction
boost::signals2::signal<void (const App::Document&, std::string)> signalOpenTransaction;
// signal a committed transaction
boost::signals2::signal<void (const App::Document&)> signalCommitTransaction;
// signal an aborted transaction
boost::signals2::signal<void (const App::Document&)> signalAbortTransaction;
//@}
/** @name Signals of property changes
@@ -147,11 +167,11 @@ public:
*/
//@{
/// signal on adding a dynamic property
boost::signal<void (const App::Property&)> signalAppendDynamicProperty;
boost::signals2::signal<void (const App::Property&)> signalAppendDynamicProperty;
/// signal on about removing a dynamic property
boost::signal<void (const App::Property&)> signalRemoveDynamicProperty;
boost::signals2::signal<void (const App::Property&)> signalRemoveDynamicProperty;
/// signal on about changing the editor mode of a property
boost::signal<void (const App::Property&)> signalChangePropertyEditor;
boost::signals2::signal<void (const App::Property&)> signalChangePropertyEditor;
//@}
@@ -178,12 +198,12 @@ public:
void RemoveParameterSet(const char* sName);
//@}
/** @name methods for the open handler
* With this facility a Application module can register
* a ending (filetype) which he can handle to open.
/** @name methods for the open handler
* With this facility a Application module can register
* a ending (filetype) which he can handle to open.
* The ending and the module name are stored and if the file
* type is opened the module get loaded and need to register a
* OpenHandler class in the OpenHandlerFactorySingleton.
* OpenHandler class in the OpenHandlerFactorySingleton.
* After the module is loaded a OpenHandler of this type is created
* and the file get loaded.
* @see OpenHandler
@@ -260,17 +280,27 @@ protected:
/// get called by the document when the name is changing
void renameDocument(const char *OldName, const char *NewName);
/** @name I/O of the document
/** @name I/O of the document
* This slot get connected to all App::Documents created
*/
//@{
void slotBeforeChangeDocument(const App::Document&, const App::Property&);
void slotChangedDocument(const App::Document&, const App::Property&);
void slotNewObject(const App::DocumentObject&);
void slotDeletedObject(const App::DocumentObject&);
void slotBeforeChangeObject(const App::DocumentObject&, const App::Property& Prop);
void slotChangedObject(const App::DocumentObject&, const App::Property& Prop);
void slotRelabelObject(const App::DocumentObject&);
void slotActivatedObject(const App::DocumentObject&);
void slotUndoDocument(const App::Document&);
void slotRedoDocument(const App::Document&);
void slotRecomputedObject(const App::DocumentObject&);
void slotRecomputed(const App::Document&);
void slotOpenTransaction(const App::Document&, std::string);
void slotCommitTransaction(const App::Document&);
void slotAbortTransaction(const App::Document&);
void slotStartSaveDocument(const App::Document&, const std::string&);
void slotFinishSaveDocument(const App::Document&, const std::string&);
//@}
private:
@@ -291,43 +321,39 @@ private:
//---------------------------------------------------------------------
// static python wrapper of the exported functions
static PyObject* sGetParam (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sSaveParameter (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetVersion (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetConfig (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sSetConfig (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sDumpConfig (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sTemplateAdd (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sTemplateDelete (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sTemplateGet (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sAddImportType (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetImportType (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sAddExportType (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetExportType (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetResourceDir (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetUserAppDataDir (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetUserMacroDir (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetHelpDir (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetHomePath (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetParam (PyObject *self,PyObject *args);
static PyObject* sSaveParameter (PyObject *self,PyObject *args);
static PyObject* sGetVersion (PyObject *self,PyObject *args);
static PyObject* sGetConfig (PyObject *self,PyObject *args);
static PyObject* sSetConfig (PyObject *self,PyObject *args);
static PyObject* sDumpConfig (PyObject *self,PyObject *args);
static PyObject* sAddImportType (PyObject *self,PyObject *args);
static PyObject* sGetImportType (PyObject *self,PyObject *args);
static PyObject* sAddExportType (PyObject *self,PyObject *args);
static PyObject* sGetExportType (PyObject *self,PyObject *args);
static PyObject* sGetResourceDir (PyObject *self,PyObject *args);
static PyObject* sGetUserAppDataDir (PyObject *self,PyObject *args);
static PyObject* sGetUserMacroDir (PyObject *self,PyObject *args);
static PyObject* sGetHelpDir (PyObject *self,PyObject *args);
static PyObject* sGetHomePath (PyObject *self,PyObject *args);
static PyObject* sLoadFile (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sOpenDocument (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sSaveDocument (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sSaveDocumentAs (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sNewDocument (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sCloseDocument (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sActiveDocument (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sSetActiveDocument (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sGetDocument (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sListDocuments (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sAddDocObserver (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sRemoveDocObserver (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sTranslateUnit (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject* sLoadFile (PyObject *self,PyObject *args);
static PyObject* sOpenDocument (PyObject *self,PyObject *args);
static PyObject* sSaveDocument (PyObject *self,PyObject *args);
static PyObject* sSaveDocumentAs (PyObject *self,PyObject *args);
static PyObject* sNewDocument (PyObject *self,PyObject *args);
static PyObject* sCloseDocument (PyObject *self,PyObject *args);
static PyObject* sActiveDocument (PyObject *self,PyObject *args);
static PyObject* sSetActiveDocument (PyObject *self,PyObject *args);
static PyObject* sGetDocument (PyObject *self,PyObject *args);
static PyObject* sListDocuments (PyObject *self,PyObject *args);
static PyObject* sAddDocObserver (PyObject *self,PyObject *args);
static PyObject* sRemoveDocObserver (PyObject *self,PyObject *args);
static PyObject *sSetLogLevel (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject *sGetLogLevel (PyObject *self,PyObject *args,PyObject *kwd);
static PyObject *sSetLogLevel (PyObject *self,PyObject *args);
static PyObject *sGetLogLevel (PyObject *self,PyObject *args);
static PyMethodDef Methods[];
static PyMethodDef Methods[];
friend class ApplicationObserver;
@@ -379,7 +405,7 @@ private:
static Base::ConsoleObserverFile *_pConsoleObserverFile;
};
/// Singleton getter of the Applicaton
/// Singleton getter of the Application
inline App::Application &GetApplication(void){
return *App::Application::_pcSingleton;
}
@@ -388,4 +414,3 @@ inline App::Application &GetApplication(void){
#endif // APP_APPLICATION_H
+77 -66
View File
@@ -56,97 +56,100 @@ using namespace App;
// Application Methods // Methods structure
PyMethodDef Application::Methods[] = {
{"ParamGet", (PyCFunction) Application::sGetParam, 1,
{"ParamGet", (PyCFunction) Application::sGetParam, METH_VARARGS,
"Get parameters by path"},
{"saveParameter", (PyCFunction) Application::sSaveParameter, 1,
{"saveParameter", (PyCFunction) Application::sSaveParameter, METH_VARARGS,
"saveParameter(config='User parameter') -> None\n"
"Save parameter set to file. The default set is 'User parameter'"},
{"Version", (PyCFunction) Application::sGetVersion, 1,
{"Version", (PyCFunction) Application::sGetVersion, METH_VARARGS,
"Print the version to the output."},
{"ConfigGet", (PyCFunction) Application::sGetConfig, 1,
{"ConfigGet", (PyCFunction) Application::sGetConfig, METH_VARARGS,
"ConfigGet(string) -- Get the value for the given key."},
{"ConfigSet", (PyCFunction) Application::sSetConfig, 1,
{"ConfigSet", (PyCFunction) Application::sSetConfig, METH_VARARGS,
"ConfigSet(string, string) -- Set the given key to the given value."},
{"ConfigDump", (PyCFunction) Application::sDumpConfig, 1,
{"ConfigDump", (PyCFunction) Application::sDumpConfig, METH_VARARGS,
"Dump the configuration to the output."},
{"addImportType", (PyCFunction) Application::sAddImportType, 1,
{"addImportType", (PyCFunction) Application::sAddImportType, METH_VARARGS,
"Register filetype for import"},
{"getImportType", (PyCFunction) Application::sGetImportType, 1,
{"getImportType", (PyCFunction) Application::sGetImportType, METH_VARARGS,
"Get the name of the module that can import the filetype"},
{"EndingAdd", (PyCFunction) Application::sAddImportType ,1, // deprecated
{"EndingAdd", (PyCFunction) Application::sAddImportType, METH_VARARGS, // deprecated
"deprecated -- use addImportType"},
{"EndingGet", (PyCFunction) Application::sGetImportType ,1, // deprecated
{"EndingGet", (PyCFunction) Application::sGetImportType, METH_VARARGS, // deprecated
"deprecated -- use getImportType"},
{"addExportType", (PyCFunction) Application::sAddExportType ,1,
{"addExportType", (PyCFunction) Application::sAddExportType, METH_VARARGS,
"Register filetype for export"},
{"getExportType", (PyCFunction) Application::sGetExportType ,1,
{"getExportType", (PyCFunction) Application::sGetExportType, METH_VARARGS,
"Get the name of the module that can export the filetype"},
{"getResourceDir", (PyCFunction) Application::sGetResourceDir ,1,
{"getResourceDir", (PyCFunction) Application::sGetResourceDir, METH_VARARGS,
"Get the root directory of all resources"},
{"getUserAppDataDir", (PyCFunction) Application::sGetUserAppDataDir ,1,
{"getUserAppDataDir", (PyCFunction) Application::sGetUserAppDataDir, METH_VARARGS,
"Get the root directory of user settings"},
{"getUserMacroDir", (PyCFunction) Application::sGetUserMacroDir ,1,
"Get the directory of the user's macro directory"},
{"getHelpDir", (PyCFunction) Application::sGetHelpDir ,1,
{"getUserMacroDir", (PyCFunction) Application::sGetUserMacroDir, METH_VARARGS,
"getUserMacroDir(bool=False) -> string"
"Get the directory of the user's macro directory\n"
"If parameter is False (the default) it returns the standard path in the"
"user's home directory, otherwise it returns the user-defined path."},
{"getHelpDir", (PyCFunction) Application::sGetHelpDir, METH_VARARGS,
"Get the directory of the documentation"},
{"getHomePath", (PyCFunction) Application::sGetHomePath ,1,
{"getHomePath", (PyCFunction) Application::sGetHomePath, METH_VARARGS,
"Get the home path, i.e. the parent directory of the executable"},
{"loadFile", (PyCFunction) Application::sLoadFile, 1,
{"loadFile", (PyCFunction) Application::sLoadFile, METH_VARARGS,
"loadFile(string=filename,[string=module]) -> None\n\n"
"Loads an arbitrary file by delegating to the given Python module:\n"
"* If no module is given it will be determined by the file extension.\n"
"* If more than one module can load a file the first one one will be taken.\n"
"* If no module exists to load the file an exception will be raised."},
{"open", (PyCFunction) Application::sOpenDocument, 1,
{"open", (PyCFunction) Application::sOpenDocument, METH_VARARGS,
"See openDocument(string)"},
{"openDocument", (PyCFunction) Application::sOpenDocument, 1,
{"openDocument", (PyCFunction) Application::sOpenDocument, METH_VARARGS,
"openDocument(string) -> object\n\n"
"Create a document and load the project file into the document.\n"
"The string argument must point to an existing file. If the file doesn't exist\n"
"or the file cannot be loaded an I/O exception is thrown. In this case the\n"
"document is kept alive."},
// {"saveDocument", (PyCFunction) Application::sSaveDocument, 1,
// {"saveDocument", (PyCFunction) Application::sSaveDocument, METH_VARARGS,
// "saveDocument(string) -- Save the document to a file."},
// {"saveDocumentAs", (PyCFunction) Application::sSaveDocumentAs, 1},
{"newDocument", (PyCFunction) Application::sNewDocument, 1,
// {"saveDocumentAs", (PyCFunction) Application::sSaveDocumentAs, METH_VARARGS},
{"newDocument", (PyCFunction) Application::sNewDocument, METH_VARARGS,
"newDocument([string]) -> object\n\n"
"Create a new document with a given name.\n"
"The document name must be unique which\n"
"is checked automatically."},
{"closeDocument", (PyCFunction) Application::sCloseDocument, 1,
{"closeDocument", (PyCFunction) Application::sCloseDocument, METH_VARARGS,
"closeDocument(string) -> None\n\n"
"Close the document with a given name."},
{"activeDocument", (PyCFunction) Application::sActiveDocument, 1,
{"activeDocument", (PyCFunction) Application::sActiveDocument, METH_VARARGS,
"activeDocument() -> object or None\n\n"
"Return the active document or None if there is no one."},
{"setActiveDocument",(PyCFunction) Application::sSetActiveDocument, 1,
{"setActiveDocument",(PyCFunction) Application::sSetActiveDocument, METH_VARARGS,
"setActiveDocement(string) -> None\n\n"
"Set the active document by its name."},
{"getDocument", (PyCFunction) Application::sGetDocument, 1,
{"getDocument", (PyCFunction) Application::sGetDocument, METH_VARARGS,
"getDocument(string) -> object\n\n"
"Get a document by its name or raise an exception\n"
"if there is no document with the given name."},
{"listDocuments", (PyCFunction) Application::sListDocuments ,1,
{"listDocuments", (PyCFunction) Application::sListDocuments, METH_VARARGS,
"listDocuments() -> list\n\n"
"Return a list of names of all documents."},
{"addDocumentObserver", (PyCFunction) Application::sAddDocObserver ,1,
{"addDocumentObserver", (PyCFunction) Application::sAddDocObserver, METH_VARARGS,
"addDocumentObserver() -> None\n\n"
"Add an observer to get notified about changes on documents."},
{"removeDocumentObserver", (PyCFunction) Application::sRemoveDocObserver ,1,
{"removeDocumentObserver", (PyCFunction) Application::sRemoveDocObserver, METH_VARARGS,
"removeDocumentObserver() -> None\n\n"
"Remove an added document observer."},
{"setLogLevel", (PyCFunction) Application::sSetLogLevel, 1,
{"setLogLevel", (PyCFunction) Application::sSetLogLevel, METH_VARARGS,
"setLogLevel(tag, level) -- Set the log level for a string tag.\n"
"'level' can either be string 'Log', 'Msg', 'Wrn', 'Error', or an integer value"},
{"getLogLevel", (PyCFunction) Application::sGetLogLevel, 1,
{"getLogLevel", (PyCFunction) Application::sGetLogLevel, METH_VARARGS,
"getLogLevel(tag) -- Get the log level of a string tag"},
{NULL, NULL, 0, NULL} /* Sentinel */
};
PyObject* Application::sLoadFile(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sLoadFile(PyObject * /*self*/, PyObject *args)
{
char *path, *doc="",*mod="";
if (!PyArg_ParseTuple(args, "s|ss", &path, &doc, &mod)) // convert args: Python->C
@@ -191,7 +194,7 @@ PyObject* Application::sLoadFile(PyObject * /*self*/, PyObject *args,PyObject *
}
}
PyObject* Application::sOpenDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sOpenDocument(PyObject * /*self*/, PyObject *args)
{
char* Name;
if (!PyArg_ParseTuple(args, "et","utf-8",&Name))
@@ -213,7 +216,7 @@ PyObject* Application::sOpenDocument(PyObject * /*self*/, PyObject *args,PyObjec
}
}
PyObject* Application::sNewDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sNewDocument(PyObject * /*self*/, PyObject *args)
{
char *docName = 0;
char *usrName = 0;
@@ -228,7 +231,7 @@ PyObject* Application::sNewDocument(PyObject * /*self*/, PyObject *args,PyObject
}PY_CATCH;
}
PyObject* Application::sSetActiveDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSetActiveDocument(PyObject * /*self*/, PyObject *args)
{
char *pstr = 0;
if (!PyArg_ParseTuple(args, "s", &pstr)) // convert args: Python->C
@@ -245,7 +248,7 @@ PyObject* Application::sSetActiveDocument(PyObject * /*self*/, PyObject *args,Py
Py_Return;
}
PyObject* Application::sCloseDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sCloseDocument(PyObject * /*self*/, PyObject *args)
{
char *pstr = 0;
if (!PyArg_ParseTuple(args, "s", &pstr)) // convert args: Python->C
@@ -269,7 +272,7 @@ PyObject* Application::sCloseDocument(PyObject * /*self*/, PyObject *args,PyObje
Py_Return;
}
PyObject* Application::sSaveDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSaveDocument(PyObject * /*self*/, PyObject *args)
{
char *pDoc;
if (!PyArg_ParseTuple(args, "s", &pDoc)) // convert args: Python->C
@@ -290,7 +293,7 @@ PyObject* Application::sSaveDocument(PyObject * /*self*/, PyObject *args,PyObjec
Py_Return;
}
#if 0
PyObject* Application::sSaveDocumentAs(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSaveDocumentAs(PyObject * /*self*/, PyObject *args)
{
char *pDoc, *pFileName;
if (!PyArg_ParseTuple(args, "ss", &pDoc, &pFileName)) // convert args: Python->C
@@ -308,7 +311,7 @@ PyObject* Application::sSaveDocumentAs(PyObject * /*self*/, PyObject *args,PyObj
Py_Return;
}
#endif
PyObject* Application::sActiveDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sActiveDocument(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -323,7 +326,7 @@ PyObject* Application::sActiveDocument(PyObject * /*self*/, PyObject *args,PyObj
}
}
PyObject* Application::sGetDocument(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetDocument(PyObject * /*self*/, PyObject *args)
{
char *pstr=0;
if (!PyArg_ParseTuple(args, "s", &pstr)) // convert args: Python->C
@@ -338,7 +341,7 @@ PyObject* Application::sGetDocument(PyObject * /*self*/, PyObject *args,PyObject
return doc->getPyObject();
}
PyObject* Application::sGetParam(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetParam(PyObject * /*self*/, PyObject *args)
{
char *pstr=0;
if (!PyArg_ParseTuple(args, "s", &pstr)) // convert args: Python->C
@@ -349,7 +352,7 @@ PyObject* Application::sGetParam(PyObject * /*self*/, PyObject *args,PyObject *
}PY_CATCH;
}
PyObject* Application::sSaveParameter(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSaveParameter(PyObject * /*self*/, PyObject *args)
{
char *pstr = "User parameter";
if (!PyArg_ParseTuple(args, "|s", &pstr))
@@ -377,7 +380,7 @@ PyObject* Application::sSaveParameter(PyObject * /*self*/, PyObject *args,PyObje
}
PyObject* Application::sGetConfig(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetConfig(PyObject * /*self*/, PyObject *args)
{
char *pstr;
@@ -399,7 +402,7 @@ PyObject* Application::sGetConfig(PyObject * /*self*/, PyObject *args,PyObject *
}
}
PyObject* Application::sDumpConfig(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sDumpConfig(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "") ) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -416,7 +419,7 @@ PyObject* Application::sDumpConfig(PyObject * /*self*/, PyObject *args,PyObject
return dict;
}
PyObject* Application::sSetConfig(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sSetConfig(PyObject * /*self*/, PyObject *args)
{
char *pstr,*pstr2;
@@ -429,7 +432,7 @@ PyObject* Application::sSetConfig(PyObject * /*self*/, PyObject *args,PyObject *
return Py_None;
}
PyObject* Application::sGetVersion(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetVersion(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -464,7 +467,7 @@ PyObject* Application::sGetVersion(PyObject * /*self*/, PyObject *args,PyObject
return Py::new_reference_to(list);
}
PyObject* Application::sAddImportType(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddImportType(PyObject * /*self*/, PyObject *args)
{
char *psKey,*psMod;
@@ -476,7 +479,7 @@ PyObject* Application::sAddImportType(PyObject * /*self*/, PyObject *args,PyObje
Py_Return;
}
PyObject* Application::sGetImportType(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetImportType(PyObject * /*self*/, PyObject *args)
{
char* psKey=0;
@@ -516,7 +519,7 @@ PyObject* Application::sGetImportType(PyObject * /*self*/, PyObject *args,PyObje
}
}
PyObject* Application::sAddExportType(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddExportType(PyObject * /*self*/, PyObject *args)
{
char *psKey,*psMod;
@@ -528,7 +531,7 @@ PyObject* Application::sAddExportType(PyObject * /*self*/, PyObject *args,PyObje
Py_Return;
}
PyObject* Application::sGetExportType(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetExportType(PyObject * /*self*/, PyObject *args)
{
char* psKey=0;
@@ -568,7 +571,7 @@ PyObject* Application::sGetExportType(PyObject * /*self*/, PyObject *args,PyObje
}
}
PyObject* Application::sGetResourceDir(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetResourceDir(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -577,7 +580,7 @@ PyObject* Application::sGetResourceDir(PyObject * /*self*/, PyObject *args,PyObj
return Py::new_reference_to(datadir);
}
PyObject* Application::sGetUserAppDataDir(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetUserAppDataDir(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -586,16 +589,24 @@ PyObject* Application::sGetUserAppDataDir(PyObject * /*self*/, PyObject *args,Py
return Py::new_reference_to(user_data_dir);
}
PyObject* Application::sGetUserMacroDir(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetUserMacroDir(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
PyObject *actual = Py_False;
if (!PyArg_ParseTuple(args, "|O!", &PyBool_Type, &actual))
return NULL;
Py::String user_macro_dir(Application::getUserMacroDir(),"utf-8");
std::string macroDir = Application::getUserMacroDir();
if (PyObject_IsTrue(actual)) {
macroDir = App::GetApplication().
GetParameterGroupByPath("User parameter:BaseApp/Preferences/Macro")
->GetASCII("MacroPath",macroDir.c_str());
}
Py::String user_macro_dir(macroDir,"utf-8");
return Py::new_reference_to(user_macro_dir);
}
PyObject* Application::sGetHelpDir(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetHelpDir(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -604,7 +615,7 @@ PyObject* Application::sGetHelpDir(PyObject * /*self*/, PyObject *args,PyObject
return Py::new_reference_to(user_macro_dir);
}
PyObject* Application::sGetHomePath(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sGetHomePath(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -613,7 +624,7 @@ PyObject* Application::sGetHomePath(PyObject * /*self*/, PyObject *args,PyObject
return Py::new_reference_to(homedir);
}
PyObject* Application::sListDocuments(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sListDocuments(PyObject * /*self*/, PyObject *args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
@@ -640,7 +651,7 @@ PyObject* Application::sListDocuments(PyObject * /*self*/, PyObject *args,PyObje
} PY_CATCH;
}
PyObject* Application::sAddDocObserver(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sAddDocObserver(PyObject * /*self*/, PyObject *args)
{
PyObject* o;
if (!PyArg_ParseTuple(args, "O",&o))
@@ -651,7 +662,7 @@ PyObject* Application::sAddDocObserver(PyObject * /*self*/, PyObject *args,PyObj
} PY_CATCH;
}
PyObject* Application::sRemoveDocObserver(PyObject * /*self*/, PyObject *args,PyObject * /*kwd*/)
PyObject* Application::sRemoveDocObserver(PyObject * /*self*/, PyObject *args)
{
PyObject* o;
if (!PyArg_ParseTuple(args, "O",&o))
@@ -662,7 +673,7 @@ PyObject* Application::sRemoveDocObserver(PyObject * /*self*/, PyObject *args,Py
} PY_CATCH;
}
PyObject *Application::sSetLogLevel(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject *Application::sSetLogLevel(PyObject * /*self*/, PyObject *args)
{
char *tag;
PyObject *pcObj;
@@ -694,7 +705,7 @@ PyObject *Application::sSetLogLevel(PyObject * /*self*/, PyObject *args, PyObjec
"Unknown Log Level (use 'Default', 'Error', 'Warning', 'Message', 'Log', 'Trace' or an integer)");
return NULL;
}
}else
}else
l = PyLong_AsLong(pcObj);
GetApplication().GetParameterGroupByPath("User parameter:BaseApp/LogLevels")->SetInt(tag,l);
if(strcmp(tag,"Default") == 0) {
@@ -712,7 +723,7 @@ PyObject *Application::sSetLogLevel(PyObject * /*self*/, PyObject *args, PyObjec
}PY_CATCH;
}
PyObject *Application::sGetLogLevel(PyObject * /*self*/, PyObject *args, PyObject * /*kwd*/)
PyObject *Application::sGetLogLevel(PyObject * /*self*/, PyObject *args)
{
char *tag;
if (!PyArg_ParseTuple(args, "s", &tag))
+20 -7
View File
@@ -3,6 +3,10 @@ if(WIN32)
add_definitions(-DBOOST_DYN_LINK)
endif(WIN32)
if(FREECAD_RELEASE_SEH)
add_definitions(-DHAVE_SEH)
endif(FREECAD_RELEASE_SEH)
# This causes some problems with the resource files to be found, especially with the StartPage
IF(RESOURCEDIR)
add_definitions(-DRESOURCEDIR="${RESOURCEDIR}")
@@ -17,15 +21,17 @@ add_definitions(-DBOOST_${Boost_VERSION})
#if you want to use the old DAG structure uncomment this line
#add_definitions(-DUSE_OLD_DAG)
#write relevant cmake variables to a file for later access with python. Exportet are all variables
#starting with BUILD. As the variable only exists if the user set it to ON a dict is useless, we
#use a python list for export.
# -----------------------------------------------------------------------------
#write relevant cmake variables to a file for later access with python. Exported are all variables
#starting with BUILD. As the variable only exists if the user set it to ON a dict is useless, we
#use a python list for export.
set(_vars "const char CMakeVariables[] =\"cmake = [")
set(_delim "")
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
if (${_variableName})
STRING(REGEX MATCH "^[_]?[^_]*" _prefix "${_variableName}_")
STRING(REGEX MATCH "^[_]?[^_]*" _prefix "${_variableName}_")
if(${_prefix} STREQUAL "BUILD")
STRING(REPLACE "\\" "\\\\" _name ${_variableName})
set(_vars "${_vars}${_delim}\\n\"\n\"\\\"${_name}\\\"")
@@ -34,7 +40,14 @@ foreach (_variableName ${_variableNames})
endif ()
endforeach()
set(_vars "${_vars}]\\n\" \n;")
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/CMakeScript.h "${_vars}" )
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/CMakeScript.hh "${_vars}" )
fc_copy_file_if_different(
"${CMAKE_CURRENT_BINARY_DIR}/CMakeScript.hh"
"${CMAKE_CURRENT_BINARY_DIR}/CMakeScript.h"
)
# -----------------------------------------------------------------------------
include_directories(
${CMAKE_BINARY_DIR}/src
@@ -266,10 +279,10 @@ SET(FreeCADApp_SRCS
PreCompiled.h
)
if(MSVC)
if(BUILD_USE_PCH)
add_definitions(-D_PreComp_)
ADD_MSVC_PRECOMPILED_HEADER(FreeCADApp PreCompiled.h PreCompiled.cpp FreeCADApp_CPP_SRCS)
endif(MSVC)
endif(BUILD_USE_PCH)
add_library(FreeCADApp SHARED ${FreeCADApp_SRCS})
+1
View File
@@ -26,6 +26,7 @@
#include "Material.h"
#include <algorithm>
#include <deque>
#include <string>
#include <vector>
+179 -77
View File
@@ -324,7 +324,7 @@ void Document::exportGraphviz(std::ostream& out) const
}
/**
* @brief setPropertyVertexAttributes Set vertex attributes for a Porperty node in a graph.
* @brief setPropertyVertexAttributes Set vertex attributes for a Property node in a graph.
* @param g Graph
* @param vertex Property node
* @param name Name of node
@@ -525,13 +525,22 @@ void Document::exportGraphviz(std::ostream& out) const
setGraphLabel(sub, cs);
for(auto obj : cs->getOutList()) {
if(obj->hasExtension(GeoFeatureGroupExtension::getExtensionClassTypeId()))
recursiveCSSubgraphs(obj, cs);
if (obj->hasExtension(GeoFeatureGroupExtension::getExtensionClassTypeId())) {
// in case of dependencies loops check if obj is already part of the
// map to avoid infinite recursions
auto it = GraphList.find(obj);
if (it == GraphList.end())
recursiveCSSubgraphs(obj, cs);
}
}
//setup the origin if available
if(cs->hasExtension(App::OriginGroupExtension::getExtensionClassTypeId())) {
auto origin = cs->getExtensionByType<OriginGroupExtension>()->Origin.getValue();
if (!origin) {
std::cerr << "Origin feature not found" << std::endl;
return;
}
auto& osub = sub.create_subgraph();
GraphList[origin] = &osub;
get_property(osub, graph_name) = getClusterName(origin);
@@ -548,7 +557,8 @@ void Document::exportGraphviz(std::ostream& out) const
if(CSSubgraphs) {
//first build up the coordinate system subgraphs
for (auto objectIt : d->objectArray) {
if (objectIt->hasExtension(GeoFeatureGroupExtension::getExtensionClassTypeId()) && objectIt->getInList().empty())
// do not require an empty inlist (#0003465: Groups breaking dependency graph)
if (objectIt->hasExtension(GeoFeatureGroupExtension::getExtensionClassTypeId()))
recursiveCSSubgraphs(objectIt, nullptr);
}
}
@@ -955,6 +965,8 @@ void Document::openTransaction(const char* name)
d->activeUndoTransaction->Name = name;
else
d->activeUndoTransaction->Name = "<empty>";
signalOpenTransaction(*this, d->activeUndoTransaction->Name);
}
}
@@ -994,6 +1006,7 @@ void Document::commitTransaction()
delete mUndoTransactions.front();
mUndoTransactions.pop_front();
}
signalCommitTransaction(*this);
}
}
@@ -1008,6 +1021,7 @@ void Document::abortTransaction()
// destroy the undo
delete d->activeUndoTransaction;
d->activeUndoTransaction = 0;
signalAbortTransaction(*this);
}
}
@@ -1019,6 +1033,15 @@ bool Document::hasPendingTransaction() const
return false;
}
bool Document::isTransactionEmpty() const
{
if (d->activeUndoTransaction) {
return d->activeUndoTransaction->isEmpty();
}
return true;
}
void Document::clearUndos()
{
if (d->activeUndoTransaction)
@@ -1088,8 +1111,15 @@ unsigned int Document::getMaxUndoStackSize(void)const
return d->UndoMaxStackSize;
}
void Document::onBeforeChange(const Property* prop)
{
signalBeforeChange(*this, *prop);
}
void Document::onChanged(const Property* prop)
{
signalChanged(*this, *prop);
// the Name property is a label for display purposes
if (prop == &Label) {
App::GetApplication().signalRelabelDocument(*this);
@@ -1130,6 +1160,9 @@ void Document::onChanged(const Property* prop)
void Document::onBeforeChangeProperty(const TransactionalObject *Who, const Property *What)
{
if(Who->isDerivedFrom(App::DocumentObject::getClassTypeId()))
signalBeforeChangeObject(*static_cast<const App::DocumentObject*>(Who), *What);
if (d->activeUndoTransaction && !d->rollback)
d->activeUndoTransaction->addObjectChange(Who,What);
}
@@ -1254,7 +1287,11 @@ Document::~Document()
Console().Log("-App::Document: %s %p\n",getName(), this);
#endif
clearUndos();
try {
clearUndos();
}
catch (const boost::exception&) {
}
std::map<std::string,DocumentObject*>::iterator it;
@@ -1273,6 +1310,7 @@ Document::~Document()
// not to dec'ref the Python object any more.
// But we must still invalidate the Python object because it doesn't need to be
// destructed right now because the interpreter can own several references to it.
Base::PyGILStateLocker lock;
Base::PyObjectBase* doc = (Base::PyObjectBase*)DocumentPythonObject.ptr();
// Call before decrementing the reference counter, otherwise a heap error can occur
doc->setInvalid();
@@ -1307,11 +1345,6 @@ std::string Document::getTransientDirectoryName(const std::string& uuid, const s
void Document::Save (Base::Writer &writer) const
{
writer.Stream() << "<?xml version='1.0' encoding='utf-8'?>" << endl
<< "<!--" << endl
<< " FreeCAD Document, see http://www.freecadweb.org for more information..." << endl
<< "-->" << endl;
writer.Stream() << "<Document SchemaVersion=\"4\" ProgramVersion=\""
<< App::Application::Config()["BuildVersionMajor"] << "."
<< App::Application::Config()["BuildVersionMinor"] << "R"
@@ -1522,16 +1555,40 @@ Document::readObjects(Base::XMLReader& reader)
setStatus(Document::KeepTrailingDigits, keepDigits);
// read the features itself
reader.clearPartialRestoreDocumentObject();
reader.readElement("ObjectData");
Cnt = reader.getAttributeAsInteger("Count");
for (int i=0 ;i<Cnt ;i++) {
reader.readElement("Object");
std::string name = reader.getName(reader.getAttribute("name"));
DocumentObject* pObj = getObject(name.c_str());
if (pObj) { // check if this feature has been registered
pObj->setStatus(ObjectStatus::Restore, true);
pObj->Restore(reader);
try {
pObj->Restore(reader);
}
// Try to continue only for certain exception types if not handled
// by the feature type. For all other exception types abort the process.
catch (const Base::UnicodeError &e) {
e.ReportException();
}
catch (const Base::ValueError &e) {
e.ReportException();
}
catch (const Base::IndexError &e) {
e.ReportException();
}
catch (const Base::RuntimeError &e) {
e.ReportException();
}
pObj->setStatus(ObjectStatus::Restore, false);
if (reader.testStatus(Base::XMLReader::ReaderStatus::PartialRestoreInDocumentObject)) {
Base::Console().Error("Object \"%s\" was subject to a partial restore. As a result geometry may have changed or be incomplete.\n",name.c_str());
reader.clearPartialRestoreDocumentObject();
}
}
reader.readEndElement("Object");
}
@@ -1604,19 +1661,10 @@ bool Document::saveAs(const char* file)
return save();
}
bool Document::saveCopy(const char* file)
bool Document::saveCopy(const char* file) const
{
std::string originalFileName = this->FileName.getStrValue();
std::string originalLabel = this->Label.getStrValue();
Base::FileInfo fi(file);
if (this->FileName.getStrValue() != file) {
this->FileName.setValue(file);
this->Label.setValue(fi.fileNamePure());
this->Uid.touch(); // this forces a rename of the transient directory
bool result = save();
this->FileName.setValue(originalFileName);
this->Label.setValue(originalLabel);
this->Uid.touch();
bool result = saveToFile(file);
return result;
}
return false;
@@ -1625,13 +1673,9 @@ bool Document::saveCopy(const char* file)
// Save the document under the name it has been opened
bool Document::save (void)
{
int compression = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetInt("CompressionLevel",3);
compression = Base::clamp<int>(compression, Z_NO_COMPRESSION, Z_BEST_COMPRESSION);
if (*(FileName.getValue()) != '\0') {
// Save the name of the tip object in order to handle in Restore()
if(Tip.getValue()) {
if (Tip.getValue()) {
TipName.setValue(Tip.getValue()->getNameInDocument());
}
@@ -1645,40 +1689,72 @@ bool Document::save (void)
("User parameter:BaseApp/Preferences/Document")->GetASCII("prefAuthor","");
LastModifiedBy.setValue(Author.c_str());
}
// make a tmp. file where to save the project data first and then rename to
// the actual file name. This may be useful if overwriting an existing file
// fails so that the data of the work up to now isn't lost.
std::string uuid = Base::Uuid::createUuid();
std::string fn = FileName.getValue();
fn += "."; fn += uuid;
Base::FileInfo tmp(fn);
// open extra scope to close ZipWriter properly
{
Base::ofstream file(tmp, std::ios::out | std::ios::binary);
Base::ZipWriter writer(file);
return saveToFile(FileName.getValue());
}
writer.setComment("FreeCAD Document");
writer.setLevel(compression);
writer.putNextEntry("Document.xml");
return false;
}
Document::Save(writer);
bool Document::saveToFile(const char* filename) const
{
signalStartSave(*this, filename);
// Special handling for Gui document.
signalSaveDocument(writer);
auto hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Document");
int compression = hGrp->GetInt("CompressionLevel",3);
compression = Base::clamp<int>(compression, Z_NO_COMPRESSION, Z_BEST_COMPRESSION);
// write additional files
writer.writeFiles();
bool policy = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetBool("BackupPolicy",true);
if (writer.hasErrors()) {
throw Base::FileException("Failed to write all data to file", tmp);
}
// make a tmp. file where to save the project data first and then rename to
// the actual file name. This may be useful if overwriting an existing file
// fails so that the data of the work up to now isn't lost.
std::string uuid = Base::Uuid::createUuid();
std::string fn = filename;
if (policy) {
fn += ".";
fn += uuid;
}
Base::FileInfo tmp(fn);
GetApplication().signalSaveDocument(*this);
// open extra scope to close ZipWriter properly
{
Base::ofstream file(tmp, std::ios::out | std::ios::binary);
Base::ZipWriter writer(file);
if (!file.is_open()) {
throw Base::FileException("Failed to open file", tmp);
}
writer.setComment("FreeCAD Document");
writer.setLevel(compression);
writer.putNextEntry("Document.xml");
if (hGrp->GetBool("SaveBinaryBrep", false))
writer.setMode("BinaryBrep");
writer.Stream() << "<?xml version='1.0' encoding='utf-8'?>" << endl
<< "<!--" << endl
<< " FreeCAD Document, see http://www.freecadweb.org for more information..." << endl
<< "-->" << endl;
Document::Save(writer);
// Special handling for Gui document.
signalSaveDocument(writer);
// write additional files
writer.writeFiles();
if (writer.hasErrors()) {
throw Base::FileException("Failed to write all data to file", tmp);
}
GetApplication().signalSaveDocument(*this);
}
if (policy) {
// if saving the project data succeeded rename to the actual file name
Base::FileInfo fi(FileName.getValue());
Base::FileInfo fi(filename);
if (fi.exists()) {
bool backup = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/Document")->GetBool("CreateBackupFiles",true);
@@ -1731,14 +1807,15 @@ bool Document::save (void)
fi.deleteFile();
}
}
if (tmp.renameFile(FileName.getValue()) == false)
if (tmp.renameFile(filename) == false) {
Base::Console().Warning("Cannot rename file from '%s' to '%s'\n",
fn.c_str(), FileName.getValue());
return true;
fn.c_str(), filename);
}
}
return false;
signalFinishSave(*this, filename);
return true;
}
// Open the document
@@ -1755,6 +1832,7 @@ void Document::restore (void)
signalTransactionRemove(*(*obj), 0);
}
for (std::vector<DocumentObject*>::iterator obj = d->objectArray.begin(); obj != d->objectArray.end(); ++obj) {
(*obj)->setStatus(ObjectStatus::Destroy, true);
delete *obj;
}
d->objectArray.clear();
@@ -1807,6 +1885,11 @@ void Document::restore (void)
GetApplication().signalFinishRestoreDocument(*this);
setStatus(Document::Restoring, false);
if (reader.testStatus(Base::XMLReader::ReaderStatus::PartialRestore)) {
setStatus(Document::PartialRestore, true);
Base::Console().Error("There were errors while loading the file. Some data might have been modified or not recovered at all. Look above for more specific information about the objects involved.\n");
}
}
bool Document::isSaved() const
@@ -1957,7 +2040,7 @@ Document::getDependencyList(const std::vector<App::DocumentObject*>& objs) const
std::stringstream ss;
ss << "Gathering all dependencies failed, probably due to circular dependencies. Error: ";
ss << e.what();
throw Base::RuntimeError(ss.str().c_str());
throw Base::BadGraphError(ss.str().c_str());
}
std::set<Vertex> out;
@@ -2075,7 +2158,7 @@ int Document::recompute()
if (skip)
return 0;
ObjectStatusLocker<Document::Status, Document> exe(Document::Recomputing, this);
Base::ObjectStatusLocker<Document::Status, Document> exe(Document::Recomputing, this);
// delete recompute log
for (std::vector<App::DocumentObjectExecReturn*>::iterator it=_RecomputeLog.begin();it!=_RecomputeLog.end();++it)
@@ -2088,7 +2171,6 @@ int Document::recompute()
std::list<Vertex> make_order;
DependencyList::out_edge_iterator j, jend;
try {
// this sort gives the execute
boost::topological_sort(d->DepList, std::front_inserter(make_order));
@@ -2171,6 +2253,7 @@ int Document::recompute()
d->vertexMap.clear();
return -1;
}
signalRecomputedObject(*Cur);
++objectCount;
}
}
@@ -2225,27 +2308,33 @@ int Document::recompute()
for (auto objIt = topoSortedObjects.rbegin(); objIt != topoSortedObjects.rend(); ++objIt){
// ask the object if it should be recomputed
if ((*objIt)->isTouched() || (*objIt)->mustExecute() == 1){
bool doRecompute = false;
if ((*objIt)->mustRecompute()) {
doRecompute = true;
objectCount++;
if (_recomputeFeature(*objIt)) {
// if something happened break execution of recompute
return -1;
}
else{
(*objIt)->purgeTouched();
// set all dependent object touched to force recompute
for (auto inObjIt : (*objIt)->getInList())
inObjIt->touch();
}
signalRecomputedObject(*(*objIt));
}
if ((*objIt)->isTouched() || doRecompute) {
(*objIt)->purgeTouched();
// force recompute of all dependent objects
for (auto inObjIt : (*objIt)->getInList())
inObjIt->enforceRecompute();
}
}
#ifdef FC_DEBUG
// check if all objects are recalculated which were thouched
// check if all objects are recalculated which were touched
for (auto objectIt : d->objectArray) {
if (objectIt->isTouched())
cerr << "Document::recompute(): " << objectIt->getNameInDocument() << " still touched after recompute" << endl;
if (objectIt->isTouched()) {
Base::Console().Warning("Document::recompute(): %s still touched after recompute\n",
objectIt->getNameInDocument());
}
}
#endif
signalRecomputed(*this);
@@ -2398,7 +2487,8 @@ std::vector<App::DocumentObject*> DocumentP::topologicalSort(const std::vector<A
for (auto outListIt : out) {
auto outListMapIt = countMap.find(outListIt);
outListMapIt->second = outListMapIt->second - 1;
if (outListMapIt != countMap.end())
outListMapIt->second = outListMapIt->second - 1;
}
ret.push_back(rootObjeIt->first);
@@ -2437,7 +2527,7 @@ bool Document::_recomputeFeature(DocumentObject* Feat)
returnCode->Which = Feat;
_RecomputeLog.push_back(returnCode);
#ifdef FC_DEBUG
Base::Console().Error("%s\n",returnCode->Why.c_str());
Base::Console().Error("Error in feature: %s\n%s\n",Feat->getNameInDocument(),returnCode->Why.c_str());
#endif
Feat->setError();
return true;
@@ -2486,7 +2576,7 @@ bool Document::_recomputeFeature(DocumentObject* Feat)
returnCode->Which = Feat;
_RecomputeLog.push_back(returnCode);
#ifdef FC_DEBUG
Base::Console().Error("%s\n",returnCode->Why.c_str());
Base::Console().Error("Error in feature: %s\n%s\n",Feat->getNameInDocument(),returnCode->Why.c_str());
#endif
Feat->setError();
}
@@ -2501,8 +2591,10 @@ void Document::recomputeFeature(DocumentObject* Feat)
_RecomputeLog.clear();
// verify that the feature is (active) part of the document
if (Feat->getNameInDocument())
if (Feat->getNameInDocument()) {
_recomputeFeature(Feat);
signalRecomputedObject(*Feat);
}
}
DocumentObject * Document::addObject(const char* sType, const char* pObjectName, bool isNew)
@@ -2819,7 +2911,6 @@ void Document::_removeObject(DocumentObject* pcObject)
std::map<std::string,DocumentObject*>::iterator pos = d->objectMap.find(pcObject->getNameInDocument());
if (d->activeObject == pcObject)
d->activeObject = 0;
@@ -2940,7 +3031,13 @@ void Document::breakDependency(DocumentObject* pcObject, bool clear)
std::vector<App::ObjectIdentifier> paths;
pcObject->ExpressionEngine.getPathsToDocumentObject(it->second, paths);
for (std::vector<App::ObjectIdentifier>::iterator jt = paths.begin(); jt != paths.end(); ++jt) {
pcObject->ExpressionEngine.setValue(*jt, nullptr);
// When nullifying the expression handle case where an identifier lacks of the property
try {
pcObject->ExpressionEngine.setValue(*jt, nullptr);
}
catch (const Base::Exception& e) {
e.ReportException();
}
}
}
}
@@ -2956,6 +3053,11 @@ DocumentObject* Document::copyObject(DocumentObject* obj, bool recursive)
md.setVerbose(recursive);
if (recursive) {
objs = obj->getDocument()->getDependencyList(objs);
auto it = std::find(objs.begin(), objs.end(), obj);
if (it != objs.end()) {
auto index = std::distance(objs.begin(), it);
std::swap(objs[index], objs.back());
}
}
unsigned int memsize=1000; // ~ for the meta-information
+50 -27
View File
@@ -37,7 +37,7 @@
#include <stack>
#include <functional>
#include <boost/signals.hpp>
#include <boost/signals2.hpp>
namespace Base {
class Writer;
@@ -68,7 +68,8 @@ public:
KeepTrailingDigits = 1,
Closable = 2,
Restoring = 3,
Recomputing = 4
Recomputing = 4,
PartialRestore = 5
};
/** @name Properties */
@@ -112,41 +113,58 @@ public:
/** @name Signals of the document */
//@{
/// signal before changing an doc property
boost::signals2::signal<void (const App::Document&, const App::Property&)> signalBeforeChange;
/// signal on changed doc property
boost::signals2::signal<void (const App::Document&, const App::Property&)> signalChanged;
/// signal on new Object
boost::signal<void (const App::DocumentObject&)> signalNewObject;
//boost::signal<void (const App::DocumentObject&)> m_sig;
boost::signals2::signal<void (const App::DocumentObject&)> signalNewObject;
//boost::signals2::signal<void (const App::DocumentObject&)> m_sig;
/// signal on deleted Object
boost::signal<void (const App::DocumentObject&)> signalDeletedObject;
boost::signals2::signal<void (const App::DocumentObject&)> signalDeletedObject;
/// signal before changing an Object
boost::signals2::signal<void (const App::DocumentObject&, const App::Property&)> signalBeforeChangeObject;
/// signal on changed Object
boost::signal<void (const App::DocumentObject&, const App::Property&)> signalChangedObject;
boost::signals2::signal<void (const App::DocumentObject&, const App::Property&)> signalChangedObject;
/// signal on relabeled Object
boost::signal<void (const App::DocumentObject&)> signalRelabelObject;
boost::signals2::signal<void (const App::DocumentObject&)> signalRelabelObject;
/// signal on activated Object
boost::signal<void (const App::DocumentObject&)> signalActivatedObject;
boost::signals2::signal<void (const App::DocumentObject&)> signalActivatedObject;
/// signal on created object
boost::signal<void (const App::DocumentObject&, Transaction*)> signalTransactionAppend;
boost::signals2::signal<void (const App::DocumentObject&, Transaction*)> signalTransactionAppend;
/// signal on removed object
boost::signal<void (const App::DocumentObject&, Transaction*)> signalTransactionRemove;
boost::signals2::signal<void (const App::DocumentObject&, Transaction*)> signalTransactionRemove;
/// signal on undo
boost::signal<void (const App::Document&)> signalUndo;
boost::signals2::signal<void (const App::Document&)> signalUndo;
/// signal on redo
boost::signal<void (const App::Document&)> signalRedo;
boost::signals2::signal<void (const App::Document&)> signalRedo;
/** signal on load/save document
* this signal is given when the document gets streamed.
* you can use this hook to write additional information in
* the file (like the Gui::Document it does).
* the file (like the Gui::Document does).
*/
boost::signal<void (Base::Writer &)> signalSaveDocument;
boost::signal<void (Base::XMLReader&)> signalRestoreDocument;
boost::signal<void (const std::vector<App::DocumentObject*>&,
Base::Writer &)> signalExportObjects;
boost::signal<void (const std::vector<App::DocumentObject*>&,
Base::Writer &)> signalExportViewObjects;
boost::signal<void (const std::vector<App::DocumentObject*>&,
Base::XMLReader&)> signalImportObjects;
boost::signal<void (const std::vector<App::DocumentObject*>&, Base::Reader&,
const std::map<std::string, std::string>&)> signalImportViewObjects;
boost::signal<void (const App::Document&)> signalRecomputed;
boost::signals2::signal<void (Base::Writer &)> signalSaveDocument;
boost::signals2::signal<void (Base::XMLReader&)> signalRestoreDocument;
boost::signals2::signal<void (const std::vector<App::DocumentObject*>&,
Base::Writer &)> signalExportObjects;
boost::signals2::signal<void (const std::vector<App::DocumentObject*>&,
Base::Writer &)> signalExportViewObjects;
boost::signals2::signal<void (const std::vector<App::DocumentObject*>&,
Base::XMLReader&)> signalImportObjects;
boost::signals2::signal<void (const std::vector<App::DocumentObject*>&, Base::Reader&,
const std::map<std::string, std::string>&)> signalImportViewObjects;
//signal starting a save action to a file
boost::signals2::signal<void (const App::Document&, const std::string&)> signalStartSave;
//signal finishing a save action to a file
boost::signals2::signal<void (const App::Document&, const std::string&)> signalFinishSave;
boost::signals2::signal<void (const App::Document&)> signalRecomputed;
boost::signals2::signal<void (const App::DocumentObject&)> signalRecomputedObject;
//signal a new opened transaction
boost::signals2::signal<void (const App::Document&, std::string)> signalOpenTransaction;
// signal a committed transaction
boost::signals2::signal<void (const App::Document&)> signalCommitTransaction;
// signal an aborted transaction
boost::signals2::signal<void (const App::Document&)> signalAbortTransaction;
//@}
/** @name File handling of the document */
@@ -156,7 +174,7 @@ public:
/// Save the document to the file in Property Path
bool save (void);
bool saveAs(const char* file);
bool saveCopy(const char* file);
bool saveCopy(const char* file) const;
/// Restore the document from the file in Property Path
void restore (void);
void exportObjects(const std::vector<App::DocumentObject*>&, std::ostream&);
@@ -202,7 +220,7 @@ public:
* is raised.
*/
void addObject(DocumentObject*, const char* pObjectName=0);
/** Copy an object from another document to this document
* If \a recursive is true then all objects this object depends on
@@ -255,7 +273,7 @@ public:
void setClosable(bool);
/// check whether the document can be closed
bool isClosable() const;
/// Recompute all touched features and return the amount of recalculated features
/// Recompute all touched features and return the number of recalculated features
int recompute();
/// Recompute only one feature
void recomputeFeature(DocumentObject* Feat);
@@ -286,6 +304,9 @@ public:
void abortTransaction();
/// Check if a transaction is open
bool hasPendingTransaction() const;
/// Check if a transaction is open and its list is empty.
/// If no transaction is open true is returned.
bool isTransactionEmpty() const;
/// Set the Undo limit in Byte!
void setUndoLimit(unsigned int UndoMemSize=0);
/// Returns the actual memory consumption of the Undo redo stuff.
@@ -364,7 +385,9 @@ protected:
void breakDependency(DocumentObject* pcObject, bool clear);
std::vector<App::DocumentObject*> readObjects(Base::XMLReader& reader);
void writeObjects(const std::vector<App::DocumentObject*>&, Base::Writer &writer) const;
bool saveToFile(const char* filename) const;
void onBeforeChange(const Property* prop);
void onChanged(const Property* prop);
/// callback from the Document objects before property will be changed
void onBeforeChangeProperty(const TransactionalObject *Who, const Property *What);
+175 -127
View File
@@ -38,7 +38,6 @@
#include "DocumentObjectExtension.h"
#include "GeoFeatureGroupExtension.h"
#include <App/DocumentObjectPy.h>
#include <boost/signals/connection.hpp>
#include <boost/bind.hpp>
using namespace App;
@@ -63,6 +62,7 @@ DocumentObject::DocumentObject(void)
DocumentObject::~DocumentObject(void)
{
if (!PythonObject.is(Py::_None())){
Base::PyGILStateLocker lock;
// Remark: The API of Py::Object has been changed to set whether the wrapper owns the passed
// Python object or not. In the constructor we forced the wrapper to own the object so we need
// not to dec'ref the Python object any more.
@@ -77,12 +77,13 @@ DocumentObject::~DocumentObject(void)
App::DocumentObjectExecReturn *DocumentObject::recompute(void)
{
//check if the links are valid before making the recompute
if(!GeoFeatureGroupExtension::areLinksValid(this))
if(!GeoFeatureGroupExtension::areLinksValid(this)) {
#if 1
Base::Console().Warning("%s: Links go out of the allowed scope\n", getTypeId().getName());
Base::Console().Warning("%s / %s: Links go out of the allowed scope\n", getTypeId().getName(), getNameInDocument());
#else
return new App::DocumentObjectExecReturn("Links go out of the allowed scope", this);
#endif
}
// set/unset the execution bit
Base::ObjectStatusLocker<ObjectStatus, DocumentObject> exe(App::Recompute, this);
@@ -110,19 +111,65 @@ bool DocumentObject::recomputeFeature()
return isValid();
}
/**
* @brief Set this document object touched.
* Touching a document object does not mean to recompute it, it only means that
* other document objects that link it (i.e. its InList) will be recomputed.
* If it should be forced to recompute a document object then use
* \ref enforceRecompute() instead.
*/
void DocumentObject::touch(void)
{
StatusBits.set(ObjectStatus::Touch);
}
/**
* @brief Check whether the document object is touched or not.
* @return true if document object is touched, false if not.
*/
bool DocumentObject::isTouched() const
{
return ExpressionEngine.isTouched() || StatusBits.test(ObjectStatus::Touch);
}
/**
* @brief Enforces this document object to be recomputed.
* This can be useful to recompute the feature without
* having to change one of its input properties.
*/
void DocumentObject::enforceRecompute(void)
{
StatusBits.set(ObjectStatus::Enforce);
StatusBits.set(ObjectStatus::Touch);
}
/**
* @brief Check whether the document object must be recomputed or not.
* This means that the 'Enforce' flag is set or that \ref mustExecute()
* returns a value > 0.
* @return true if document object must be recomputed, false if not.
*/
bool DocumentObject::mustRecompute(void) const
{
if (StatusBits.test(ObjectStatus::Enforce))
return true;
return mustExecute() > 0;
}
short DocumentObject::mustExecute(void) const
{
if(isTouched())
if (ExpressionEngine.isTouched())
return 1;
//ask all extensions
auto vector = getExtensionsDerivedFromType<App::DocumentObjectExtension>();
for(auto ext : vector) {
if(ext->extensionMustExecute())
if (ext->extensionMustExecute())
return 1;
}
return 0;
}
const char* DocumentObject::getStatusString(void) const
@@ -251,45 +298,45 @@ std::vector<App::DocumentObject*> DocumentObject::getInList(void) const
#endif // if USE_OLD_DAG
void _getInListRecursive(std::vector<DocumentObject*>& objSet, const DocumentObject* obj, const DocumentObject* checkObj, int depth)
void _getInListRecursive(std::set<DocumentObject*>& objSet,
const DocumentObject* obj,
const DocumentObject* checkObj, int depth)
{
for (const auto objIt : obj->getInList()){
for (const auto objIt : obj->getInList()) {
// if the check object is in the recursive inList we have a cycle!
if (objIt == checkObj || depth <= 0){
std::cerr << "DocumentObject::getInListRecursive(): cyclic dependency detected!"<<std::endl;
throw Base::RuntimeError("DocumentObject::getInListRecursive(): cyclic dependency detected!");
if (objIt == checkObj || depth <= 0) {
throw Base::BadGraphError("DocumentObject::getInListRecursive(): cyclic dependency detected!");
}
objSet.push_back(objIt);
_getInListRecursive(objSet, objIt, checkObj,depth-1);
// if the element was already in the set then there is no need to process it again
auto pair = objSet.insert(objIt);
if (pair.second)
_getInListRecursive(objSet, objIt, checkObj, depth-1);
}
}
std::vector<App::DocumentObject*> DocumentObject::getInListRecursive(void) const
{
// number of objects in document is a good estimate in result size
int maxDepth = getDocument()->countObjects() +2;
std::vector<App::DocumentObject*> result;
result.reserve(maxDepth);
int maxDepth = getDocument()->countObjects() + 2;
std::set<App::DocumentObject*> result;
// using a rcursie helper to collect all InLists
_getInListRecursive(result, this, this, maxDepth);
// remove duplicate entries and resize the vector
std::sort(result.begin(), result.end());
auto newEnd = std::unique(result.begin(), result.end());
result.resize(std::distance(result.begin(), newEnd));
return result;
std::vector<App::DocumentObject*> array;
array.insert(array.begin(), result.begin(), result.end());
return array;
}
void _getOutListRecursive(std::set<DocumentObject*>& objSet, const DocumentObject* obj, const DocumentObject* checkObj, int depth)
void _getOutListRecursive(std::set<DocumentObject*>& objSet,
const DocumentObject* obj,
const DocumentObject* checkObj, int depth)
{
for (const auto objIt : obj->getOutList()){
for (const auto objIt : obj->getOutList()) {
// if the check object is in the recursive inList we have a cycle!
if (objIt == checkObj || depth <= 0){
std::cerr << "DocumentObject::getOutListRecursive(): cyclic dependency detected!" << std::endl;
throw Base::RuntimeError("DocumentObject::getOutListRecursive(): cyclic dependency detected!");
if (objIt == checkObj || depth <= 0) {
throw Base::BadGraphError("DocumentObject::getOutListRecursive(): cyclic dependency detected!");
}
// if the element was already in the set then there is no need to process it again
@@ -313,6 +360,81 @@ std::vector<App::DocumentObject*> DocumentObject::getOutListRecursive(void) cons
return array;
}
// helper for isInInListRecursive()
bool _isInInListRecursive(const DocumentObject* act,
const DocumentObject* checkObj, int depth)
{
#ifndef USE_OLD_DAG
for (auto obj : act->getInList()) {
if (obj == checkObj)
return true;
// if we reach the depth limit we have a cycle!
if (depth <= 0) {
throw Base::BadGraphError("DocumentObject::isInInListRecursive(): cyclic dependency detected!");
}
if (_isInInListRecursive(obj, checkObj, depth - 1))
return true;
}
#else
(void)act;
(void)checkObj;
(void)depth;
#endif
return false;
}
bool DocumentObject::isInInListRecursive(DocumentObject *linkTo) const
{
int maxDepth = getDocument()->countObjects() + 2;
return _isInInListRecursive(this, linkTo, maxDepth);
}
bool DocumentObject::isInInList(DocumentObject *linkTo) const
{
#ifndef USE_OLD_DAG
if (std::find(_inList.begin(), _inList.end(), linkTo) != _inList.end())
return true;
else
return false;
#else
(void)linkTo;
return false;
#endif
}
// helper for isInOutListRecursive()
bool _isInOutListRecursive(const DocumentObject* act,
const DocumentObject* checkObj, int depth)
{
#ifndef USE_OLD_DAG
for (auto obj : act->getOutList()) {
if (obj == checkObj)
return true;
// if we reach the depth limit we have a cycle!
if (depth <= 0) {
throw Base::BadGraphError("DocumentObject::isInOutListRecursive(): cyclic dependency detected!");
}
if (_isInOutListRecursive(obj, checkObj, depth - 1))
return true;
}
#else
(void)act;
(void)checkObj;
(void)depth;
#endif
return false;
}
bool DocumentObject::isInOutListRecursive(DocumentObject *linkTo) const
{
int maxDepth = getDocument()->countObjects() + 2;
return _isInOutListRecursive(this, linkTo, maxDepth);
}
std::vector<std::list<App::DocumentObject*> >
DocumentObject::getPathsByOutList(App::DocumentObject* to) const
{
@@ -358,86 +480,6 @@ bool DocumentObject::testIfLinkDAGCompatible(PropertyLinkSub &linkTo) const
return this->testIfLinkDAGCompatible(linkTo_in_vector);
}
bool DocumentObject::_isInInListRecursive(const DocumentObject* /*act*/,
const DocumentObject* test,
const DocumentObject* checkObj, int depth) const
{
#ifndef USE_OLD_DAG
if (std::find(_inList.begin(), _inList.end(), test) != _inList.end())
return true;
for (auto obj : _inList){
// if the check object is in the recursive inList we have a cycle!
if (obj == checkObj || depth <= 0){
std::cerr << "DocumentObject::getOutListRecursive(): cyclic dependency detected!" << std::endl;
throw Base::RuntimeError("DocumentObject::getOutListRecursive(): cyclic dependency detected!");
}
if (_isInInListRecursive(obj, test, checkObj, depth - 1))
return true;
}
#else
(void)test;
(void)checkObj;
(void)depth;
#endif
return false;
}
bool DocumentObject::isInInListRecursive(DocumentObject *linkTo) const
{
return _isInInListRecursive(this, linkTo, this, getDocument()->countObjects());
}
bool DocumentObject::isInInList(DocumentObject *linkTo) const
{
#ifndef USE_OLD_DAG
if (std::find(_inList.begin(), _inList.end(), linkTo) != _inList.end())
return true;
else
return false;
#else
(void)linkTo;
return false;
#endif
}
bool DocumentObject::_isInOutListRecursive(const DocumentObject* act,
const DocumentObject* test,
const DocumentObject* checkObj, int depth) const
{
#ifndef USE_OLD_DAG
std::vector <DocumentObject*> outList = act->getOutList();
if (std::find(outList.begin(), outList.end(), test) != outList.end())
return true;
for (auto obj : outList){
// if the check object is in the recursive inList we have a cycle!
if (obj == checkObj || depth <= 0){
std::cerr << "DocumentObject::isInOutListRecursive(): cyclic dependency detected!" << std::endl;
throw Base::RuntimeError("DocumentObject::isInOutListRecursive(): cyclic dependency detected!");
}
if (_isInOutListRecursive(obj, test, checkObj, depth - 1))
return true;
}
#else
(void)act;
(void)test;
(void)checkObj;
(void)depth;
#endif
return false;
}
bool DocumentObject::isInOutListRecursive(DocumentObject *linkTo) const
{
return _isInOutListRecursive(this, linkTo, this, getDocument()->countObjects());
}
void DocumentObject::onLostLinkToObject(DocumentObject*)
{
@@ -454,10 +496,27 @@ void DocumentObject::setDocument(App::Document* doc)
onSettingDocument();
}
void DocumentObject::onAboutToRemoveProperty(const char* prop)
void DocumentObject::onAboutToRemoveProperty(const char* name)
{
if (_pDoc)
_pDoc->removePropertyOfObject(this, prop);
if (_pDoc) {
_pDoc->removePropertyOfObject(this, name);
Property* prop = getDynamicPropertyByName(name);
if (prop) {
auto expressions = ExpressionEngine.getExpressions();
std::vector<App::ObjectIdentifier> removeExpr;
for (auto it : expressions) {
if (it.first.getProperty() == prop) {
removeExpr.push_back(it.first);
}
}
for (auto it : removeExpr) {
ExpressionEngine.setValue(it, boost::shared_ptr<Expression>());
}
}
}
}
void DocumentObject::onBeforeChange(const Property* prop)
@@ -481,9 +540,13 @@ void DocumentObject::onChanged(const Property* prop)
_pDoc->signalRelabelObject(*this);
// set object touched if it is an input property
if (!(prop->getType() & Prop_Output))
if (!(prop->getType() & Prop_Output)) {
StatusBits.set(ObjectStatus::Touch);
// must execute on document recompute
if (!(prop->getType() & Prop_NoRecompute))
StatusBits.set(ObjectStatus::Enforce);
}
//call the parent for appropriate handling
TransactionalObject::onChanged(prop);
}
@@ -503,21 +566,6 @@ std::vector<PyObject *> DocumentObject::getPySubObjects(const std::vector<std::s
return std::vector<PyObject *>();
}
void DocumentObject::touch(void)
{
StatusBits.set(ObjectStatus::Touch);
}
/**
* @brief Check whether the document object is touched or not.
* @return true if document object is touched, false if not.
*/
bool DocumentObject::isTouched() const
{
return ExpressionEngine.isTouched() || StatusBits.test(ObjectStatus::Touch);
}
void DocumentObject::Save (Base::Writer &writer) const
{
if (this->getNameInDocument())
+25 -20
View File
@@ -33,7 +33,7 @@
#include <CXX/Objects.hxx>
#include <bitset>
#include <boost/signals.hpp>
#include <boost/signals2.hpp>
namespace App
{
@@ -51,6 +51,7 @@ enum ObjectStatus {
Remove = 5,
PythonCall = 6,
Destroy = 7,
Enforce = 8,
Expand = 16
};
@@ -105,13 +106,18 @@ public:
/** Set the property touched -> changed, cause recomputation in Update()
*/
//@{
/// set this feature touched (cause recomputation on depndend features)
/// set this document object touched (cause recomputation on dependent features)
void touch(void);
/// test if this feature is touched
/// test if this document object is touched
bool isTouched(void) const;
/// reset this feature touched
/// Enforce this document object to be recomputed
void enforceRecompute();
/// Test if this document object must be recomputed
bool mustRecompute(void) const;
/// reset this document object touched
void purgeTouched(void) {
StatusBits.reset(ObjectStatus::Touch);
StatusBits.reset(ObjectStatus::Enforce);
setPropertyStatus(0,false);
}
/// set this feature to error
@@ -133,7 +139,7 @@ public:
/** DAG handling
This part of the interface deals with viewing the document as
an DAG (directed acyclic graph).
a DAG (directed acyclic graph).
*/
//@{
/// returns a list of objects this object is pointing to by Links
@@ -146,7 +152,7 @@ public:
std::vector<std::list<App::DocumentObject*> > getPathsByOutList(App::DocumentObject* to) const;
/// get all objects link to this object
std::vector<App::DocumentObject*> getInList(void) const;
/// get all objects link directly or indirectly to this object
/// get all objects link directly or indirectly to this object
std::vector<App::DocumentObject*> getInListRecursive(void) const;
/// get group if object is part of a group, otherwise 0 is returned
DocumentObjectGroup* getGroup() const;
@@ -185,9 +191,12 @@ public:
* We call this method to check if the object was modified to
* be invoked. If the object label or an argument is modified.
* If we must recompute the object - to call the method execute().
* 0: no recompution is needed
* 1: recompution needed
* -1: the document examine all links of this object and if one is touched -> recompute
* 0: no recomputation is needed
* 1: recomputation needed
*
* @remark If an object is marked as 'touched' then this does not
* necessarily mean that it will be recomputed. It only means that all
* objects that link it (i.e. its InList) will be recomputed.
*/
virtual short mustExecute(void) const;
@@ -234,7 +243,7 @@ protected:
/** get called by the document to recompute this feature
* Normally this method get called in the processing of
* Document::recompute().
* In execute() the outpupt properties get recomputed
* In execute() the output properties get recomputed
* with the data from linked objects and objects own
* properties.
*/
@@ -242,7 +251,7 @@ protected:
/** Status bits of the document object
* The first 8 bits are used for the base system the rest can be used in
* descendent classes to to mark special stati on the objects.
* descendent classes to mark special statuses on the objects.
* The bits and their meaning are listed below:
* 0 - object is marked as 'touched'
* 1 - object is marked as 'erroneous'
@@ -275,31 +284,27 @@ protected:
/// get called when object is going to be removed from the document
virtual void unsetupObject();
/// python object of this class and all descendend
/// python object of this class and all descendent
protected: // attributes
Py::Object PythonObject;
/// pointer to the document this object belongs to
App::Document* _pDoc;
// Connections to track relabeling of document and document objects
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onRelabledDocumentConnection;
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onRelabledObjectConnection;
boost::BOOST_SIGNALS_NAMESPACE::scoped_connection onDeletedObjectConnection;
boost::signals2::scoped_connection onRelabledDocumentConnection;
boost::signals2::scoped_connection onRelabledObjectConnection;
boost::signals2::scoped_connection onDeletedObjectConnection;
/// Old label; used for renaming expressions
std::string oldLabel;
// pointer to the document name string (for performance)
const std::string *pcNameInDocument;
private:
// Back pointer to all the fathers in a DAG of the document
// this is used by the document (via friend) to have a effective DAG handling
std::vector<App::DocumentObject*> _inList;
// helper for isInInListRecursive()
bool _isInInListRecursive(const DocumentObject *act, const DocumentObject* test, const DocumentObject* checkObj, int depth) const;
// helper for isInOutListRecursive()
bool _isInOutListRecursive(const DocumentObject *act, const DocumentObject* test, const DocumentObject* checkObj, int depth) const;
};
} //namespace App
+5
View File
@@ -45,6 +45,11 @@
<UserDocu>Mark the object as unchanged</UserDocu>
</Documentation>
</Methode>
<Methode Name="enforceRecompute">
<Documentation>
<UserDocu>Mark the object for recompute</UserDocu>
</Documentation>
</Methode>
<Methode Name="setExpression">
<Documentation>
<UserDocu>Register an expression for a property</UserDocu>
+8
View File
@@ -146,6 +146,14 @@ PyObject* DocumentObjectPy::purgeTouched(PyObject * args)
Py_Return;
}
PyObject* DocumentObjectPy::enforceRecompute(PyObject * args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
getDocumentObjectPtr()->enforceRecompute();
Py_Return;
}
Py::List DocumentObjectPy::getState(void) const
{
DocumentObject* object = this->getDocumentObjectPtr();
+31 -7
View File
@@ -27,7 +27,6 @@
# include <sstream>
#endif
#include <boost/signals.hpp>
#include <boost/bind.hpp>
#include "Application.h"
@@ -47,6 +46,11 @@ DocumentT::DocumentT(Document* doc)
document = doc->getName();
}
DocumentT::DocumentT(const std::string& name)
{
document = name;
}
DocumentT::~DocumentT()
{
}
@@ -63,6 +67,11 @@ void DocumentT::operator=(const Document* doc)
document = doc->getName();
}
void DocumentT::operator=(const std::string& name)
{
document = name;
}
Document* DocumentT::getDocument() const
{
return GetApplication().getDocument(document.c_str());
@@ -78,10 +87,10 @@ std::string DocumentT::getDocumentPython() const
std::stringstream str;
Document* doc = GetApplication().getActiveDocument();
if (doc && document == doc->getName()) {
str << "FreeCAD.ActiveDocument";
str << "App.ActiveDocument";
}
else {
str << "FreeCAD.getDocument(\""
str << "App.getDocument(\""
<< document
<< "\")";
}
@@ -136,10 +145,10 @@ std::string DocumentObjectT::getDocumentPython() const
std::stringstream str;
Document* doc = GetApplication().getActiveDocument();
if (doc && document == doc->getName()) {
str << "FreeCAD.ActiveDocument";
str << "App.ActiveDocument";
}
else {
str << "FreeCAD.getDocument(\""
str << "App.getDocument(\""
<< document
<< "\")";
}
@@ -171,10 +180,10 @@ std::string DocumentObjectT::getObjectPython() const
std::stringstream str;
Document* doc = GetApplication().getActiveDocument();
if (doc && document == doc->getName()) {
str << "FreeCAD.ActiveDocument.";
str << "App.ActiveDocument.";
}
else {
str << "FreeCAD.getDocument(\""
str << "App.getDocument(\""
<< document
<< "\").";
}
@@ -228,6 +237,10 @@ void DocumentObserver::attachDocument(Document* doc)
(&DocumentObserver::slotDeletedObject, this, _1));
this->connectDocumentChangedObject = _document->signalChangedObject.connect(boost::bind
(&DocumentObserver::slotChangedObject, this, _1, _2));
this->connectDocumentRecomputedObject = _document->signalRecomputedObject.connect(boost::bind
(&DocumentObserver::slotRecomputedObject, this, _1));
this->connectDocumentRecomputed = _document->signalRecomputed.connect(boost::bind
(&DocumentObserver::slotRecomputedDocument, this, _1));
}
}
@@ -238,6 +251,8 @@ void DocumentObserver::detachDocument()
this->connectDocumentCreatedObject.disconnect();
this->connectDocumentDeletedObject.disconnect();
this->connectDocumentChangedObject.disconnect();
this->connectDocumentRecomputedObject.disconnect();
this->connectDocumentRecomputed.disconnect();
}
}
@@ -261,6 +276,15 @@ void DocumentObserver::slotChangedObject(const App::DocumentObject& /*Obj*/, con
{
}
void DocumentObserver::slotRecomputedObject(const DocumentObject& /*Obj*/)
{
}
void DocumentObserver::slotRecomputedDocument(const Document& /*doc*/)
{
}
// -----------------------------------------------------------------------------
DocumentObjectObserver::DocumentObjectObserver()
+12 -2
View File
@@ -25,7 +25,7 @@
#define APP_DOCUMENTOBSERVER_H
#include <Base/BaseClass.h>
#include <boost/signals.hpp>
#include <boost/signals2.hpp>
#include <set>
namespace App
@@ -48,12 +48,16 @@ public:
DocumentT();
/*! Constructor */
DocumentT(Document*);
/*! Constructor */
DocumentT(const std::string&);
/*! Destructor */
~DocumentT();
/*! Assignment operator */
void operator=(const DocumentT&);
/*! Assignment operator */
void operator=(const Document*);
/*! Assignment operator */
void operator=(const std::string&);
/*! Get a pointer to the document or 0 if it doesn't exist any more. */
Document* getDocument() const;
@@ -151,18 +155,24 @@ private:
virtual void slotDeletedObject(const App::DocumentObject& Obj);
/** The property of an observed object has changed */
virtual void slotChangedObject(const App::DocumentObject& Obj, const App::Property& Prop);
/** Called when a given object is recomputed */
virtual void slotRecomputedObject(const App::DocumentObject& Obj);
/** Called when a observed document is recomputed */
virtual void slotRecomputedDocument(const App::Document& Doc);
protected:
Document* getDocument() const;
private:
App::Document* _document;
typedef boost::signals::connection Connection;
typedef boost::signals2::connection Connection;
Connection connectApplicationCreatedDocument;
Connection connectApplicationDeletedDocument;
Connection connectDocumentCreatedObject;
Connection connectDocumentDeletedObject;
Connection connectDocumentChangedObject;
Connection connectDocumentRecomputedObject;
Connection connectDocumentRecomputed;
};
/**

Some files were not shown because too many files have changed in this diff Show More