Commit Graph

1205 Commits

Author SHA1 Message Date
Abdullah Tahiri
05ccc95cde App/Gui: New restoreError Document status and Gui pop-up
========================================================

If the restore of Document.xml results in invalid Document.xml (because unhandled exceptions occurred), the
document status Document::restoreError is set. The GUI or Mod/Web if a link was clicked, show a pop-up indicating
this situation.

This commit also shows an appropriate pop-up for the partialRestore when opening from the menu, that before only
appeared when opening by clicking a link.
2021-01-24 16:43:20 +01:00
Zheng, Lei
aa88c10465 App: auto create Origin in OriginGroup if copied without dependency 2021-01-24 11:56:10 +01:00
Yorik van Havre
5e800499af Merge pull request #4275 from realthunder/FixGetPartOf
App: fix Part::getPartOfObject()
2021-01-14 12:53:20 +01:00
Zheng, Lei
6b527baf6a App: fix Part::getPartOfObject()
Exclude link broght in by expressions
2021-01-12 09:45:59 +08:00
Markus Lampert
5ba83fc393 Expose PropertyEnumeration values list to python. 2020-12-31 20:06:02 -08:00
wmayer
eac4062b3f Boost: [skip ci] Fix build warnings from deprecated Boost headers (v1.75) 2020-12-29 15:34:25 +01:00
Mateusz Skowroński
98f63ba60f Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint. 2020-12-29 10:20:53 +01:00
luz paz
f497f09238 Fix typos [skip ci]
Typos ffound via `codespell v2.1.dev0`  
Also includes fixes in deprecated code of `src/Mod/Assembly`
2020-12-28 23:14:04 +01:00
luz paz
a8c3b239b8 Fix various typos [skip ci]
Found via `codespell v2.1.dev0`  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-12-12 08:07:47 +01:00
wmayer
628fcedb11 App: [skip ci] in addition to PR4104 pop the diagnostic 2020-12-04 17:11:22 +01:00
Mark O'Donovan
976c7f5346 Suppress gcc warnings also in FeaturePythonPyImp.h
Clang warnings are already disabled.
2020-12-04 17:09:06 +01:00
wmayer
0e5cbf5298 Py2/Qt4: fix build failures and warnings 2020-11-30 19:05:37 +01:00
wmayer
a0de713ca2 Py2: do not open Init[Gui].py files with utf-8 encoding 2020-11-26 00:48:28 +01:00
wmayer
23059c13d3 PyCXX: [skip ci] fix compiler warnings due to changes on PyCXX 2020-11-25 16:52:46 +01:00
donovaly
a6720045d0 [App] get rid of MSCV compiler warning
the same as in https://github.com/FreeCAD/FreeCAD/pull/4053
2020-11-25 09:51:40 +01:00
wmayer
c3b147a5c9 Init: [skip ci] do explicitly open Init[Gui].py files with utf-8 encoding 2020-11-24 14:15:26 +01:00
Zheng, Lei
810a8dc643 App: fix ObjectIdentifier::relativeTo()
Fixes realthunder/FreeCAD_Assembly3#328
2020-11-22 18:07:12 +01:00
luz paz
84553bf191 App: Fix header uniformity, trailing whitespace, and doxygen headers 2020-11-19 13:38:37 +01:00
wmayer
25b1f21d2d App: simplify the logic in PropertyLinkList::getPyValue 2020-11-18 18:21:15 +01:00
Chris Hennes
e222461e85 Modify PropertyLinkList to accept None from Python. 2020-11-18 18:11:11 +01:00
wmayer
7a3097586d Win32: [skip ci] DLL resolution in Python 3.8 on Windows has changed 2020-11-14 16:38:02 +01:00
wmayer
85c1fa1739 App: [skip ci] expose functions to Python to get status string of a feature and whether it's valid 2020-11-12 15:46:40 +01:00
wmayer
56c608932f Win: [skip ci] check if NOMINMAX is already defined before setting it 2020-11-11 13:34:42 +01:00
wmayer
f0aba7a561 MSVC: [skip ci] make working with C++17 compiler 2020-11-09 16:13:34 +01:00
M G Berberich
7f328ac376 [PartDesign] Dynamic hole cut-types
‣ Make countersink and counterbore on metric holes freely definable by user.

‣ Fixed the Naming of M1.6, M2, M2.5 and M3.5

‣ Added constructor for custom enums from Enums to PropertyEnumeration

‣ Put definitions of cut-types (counterbore/countersink) for
  screwtypes into json-files for easy modification.

‣ Allow users to put its own definitions in json-files in
  [UserDir]/Mod/PartDesign/Resources/Hole

‣ Contains several examples of cut-type definition json-files that are
  propably not production-ready.

This uses a local copy of nlohmann::json¹ to read json-files.

__________
¹ This is a very nice,header-only C++ library under the MIT License
  (https://github.com/nlohmann/json). I copied the single-file-version
  and the forward-declaration-header into …/PartDesign/App/ so no new
  dependencies arise.
2020-10-31 12:49:00 +01:00
wmayer
cd0dfe1e87 App: [skip ci] fix printing warning for recursive calls of Document::_commitTransaction 2020-10-23 20:50:23 +02:00
wmayer
fbcf8dfa5d App: [skip ci] fix possible segmentation fault when performing a transaction after an undo 2020-10-23 19:47:33 +02:00
wmayer
d60f75b3b0 App: [skip ci] fix PropertyEnumeration::setEnums to avoid to produce index values out of range 2020-10-19 16:09:57 +02:00
wmayer
409ceb6ec5 macOS: [skip ci] suppress some more Py3.8 warnings, suppress warnings about deprecated OpenGL API 2020-10-17 23:53:47 +02:00
Priit Laes
d6b8725b34 build: boost: Drop branches requiring boost-1.46 2020-10-13 12:56:28 +02:00
Priit Laes
6cc4d8aec2 build: boost: Drop boost-1.44-specific checks 2020-10-13 12:56:28 +02:00
Priit Laes
5f92194a8c build: Bump boost requirement to 1.55 and drop bundled boost::any
Based on the information from bunch of the latest supported distros:
Debian Jessie: 1.55
Debian Stretch: 1.62
Ubuntu 16.04: 1.58
Ubuntu 18.04: 1.65
Fedora 31 and 32: 1.69
Redhat Enterprise Linux 8: 1.66 (1.53 for EL-7, though)
openSuse Leap 15.1: 1.66
2020-10-13 12:56:28 +02:00
Chrismettal
a33a1f184d Seed randomizer on application init 2020-10-12 19:10:06 +02:00
Zheng, Lei
b2624c08a1 App: fix recursive App::getLinksTo() 2020-09-27 12:59:38 +02:00
wmayer
f55f7f040a Python: [skip ci] expose Python types in their corresponding modules 2020-09-21 15:04:26 +02:00
wmayer
92cd08cf21 App: [skip ci] Coverity: 'Constant' variable guards dead code 2020-09-14 19:06:27 +02:00
wmayer
a0ac281684 App: [skip ci] add GeoFeaturePy::getPropertyOfGeometry 2020-09-13 13:14:21 +02:00
wmayer
5394731dcc App: [skip ci] move execution of extensions to its own method 2020-09-12 18:14:09 +02:00
wmayer
6c2c84df4f App: [skip ci] improve whitespaces 2020-09-12 17:43:01 +02:00
Zheng, Lei
f66b2953b7 App: fix GeoFeatureGroupExtension::extensionGetSubObject() 2020-09-12 17:30:56 +02:00
Zheng, Lei
f67d960146 App: record transaction on non DocumentObject
Related #0004265
2020-09-04 16:01:21 +02:00
Zheng, Lei
dcae039c52 App/Gui: warn when loading/saving file with identical physical path 2020-08-31 14:05:14 +02:00
Zheng, Lei
d321ed9f0e App: fix PropertyXLink handling on symlink file path 2020-08-31 14:05:14 +02:00
wmayer
5b1343f5a9 typos: [skip ci] 2020-08-30 14:51:55 +02:00
Zheng, Lei
73dcb6128c App: report error on copying OriginGroup without dependency 2020-08-30 11:58:54 +02:00
wmayer
98e936689e App: fix crash due to incorrect usage of std::mismatch 2020-08-22 20:25:10 +02:00
wmayer
b161bdb78f Base: [skip ci] add an enum for unit schemes in Python to avoid to work with numbers 2020-08-07 23:02:25 +02:00
wmayer
5cc5ac3e9a App: improve support of portable version of FreeCAD 2020-08-05 15:47:50 +02:00
wmayer
a7738cec07 App: [skip ci] for a recompute do not report every exception as error
There are a lof of scenarios where it's not possible to perform an operation without throwing an exception. Reporting an exception as error is not only annoying but often confusing because the user assumes he did something wrong.
So, for the moment many of these exceptions are reported as log messages but serious things like memory exception, std. C++ exceptions or unknown C++ exceptions are still reported as errors
2020-07-31 13:59:40 +02:00
donovaly
b7d9bbba04 [App/Gui] improve coding style
inspired by the changes made with https://github.com/FreeCAD/FreeCAD/commit/33148684955a
2020-07-30 12:05:22 +02:00