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
wmayer
19c7fbd096
LGTM: [skip ci] fix: Inconsistent definition of copy constructor and assignment ('Rule of Two')
2020-07-27 14:39:14 +02:00
wmayer
45e0673645
LGTM: [skip ci] fix: Declaration hides parameter
...
A local variable hides a parameter. This may be confusing. Consider renaming one of them.
2020-07-27 10:57:34 +02:00
wmayer
e9ce75d544
LGTM: [skip ci] fix: Empty branch of conditional
...
An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
2020-07-26 15:49:14 +02:00
Jean-Marie Verdun
7883aad3ab
Add App::Link support to Cloud module
...
ONLY enabled if the Cloud Module is compiled into FreeCAD
ALL files must be saved into a Cloud Based storage
Add a Signal to the PropertyLink to enable support of external storage
Put the Assembly Document as active document
Signed-off-by: Jean-Marie Verdun <jmverdun3@gmail.com >
2020-07-23 13:47:21 +02:00
wmayer
983939b32d
Coverity: Uninitialized scalar/pointer field
2020-07-20 17:34:30 +02:00
wmayer
e6b6fa627e
Coverity: Not restoring ostream format
2020-07-20 17:34:29 +02:00
wmayer
f9ef60d063
Coverity: Empty virtual destructor
2020-07-20 17:34:27 +02:00
wmayer
1a34d3da1f
Coverity: Uncaught exception
2020-07-20 17:34:26 +02:00
wmayer
0a6929a122
Coverity: Dereference after null check
2020-07-20 17:34:25 +02:00
wmayer
7eeb35b869
Coverity: Big parameter passed by value
2020-07-20 17:34:25 +02:00
wmayer
89f997a289
Coverity: Use after free (_removeObject may delete the DocumentObject)
2020-07-20 17:34:24 +02:00
wmayer
cba06a2ed5
PVS: V571 Recurring check. A condition was already verified in previous line
2020-07-18 10:59:28 +02:00
wmayer
70c3cc7c03
PVS: V646 Consider inspecting the application's logic. It's possible that 'else' keyword is missing.
2020-07-18 10:59:28 +02:00
wmayer
05d4496d96
PVS: V688 The local variable possesses the same name as one of the class members, which can result in a confusion
2020-07-18 10:59:28 +02:00
wmayer
9424395afc
PVS: V1004 A pointer was used unsafely after it was verified against nullptr
2020-07-18 10:59:27 +02:00
wmayer
02f45721d6
PVS: V529 Odd semicolon ';' after 'for' operator.
2020-07-18 10:59:27 +02:00
wmayer
2ebd1c3518
PVS: V501 There are identical sub-expressions to the left and to the right
2020-07-18 10:59:27 +02:00
wmayer
4807fd3b33
PVS: V730 Not all members of a class are initialized inside the constructor
2020-07-18 10:59:27 +02:00
wmayer
d8b85f7c88
fix docstring and segmentation fault in Application::sNewDocument
2020-07-14 19:46:17 +02:00
Zheng, Lei
36d046d489
App/Gui: introduce temporary document
...
Add new argument to Application::newDocument() to create a temporary
document. Also exposed to Python API App.newDocument() with a named
argument 'temp'.
The temporary document is marked with status bit 'TempDoc'. The user
will not be prompt for saving when closing. The undo/redo is disabled.
The AutoSaver skips it. And the tree view will not show it.
PropertyXLink allows linking to/from object within a temporary document
without saving.
2020-07-14 19:36:05 +02:00
luz paz
ac76f16aa3
Fix Crowdin typos and various other typos/grammar [skip ci]
...
Found via codespell v2.0.dev0
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,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-07-12 11:42:27 +02:00
Zheng, Lei
4c51082b4b
App: fix Material comparison operator
2020-07-05 16:25:17 +02:00
luz.paz
ef37cc3930
Fix typos [skip-ci]
...
Found via codespell v1.18.0.dev0
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,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-06-29 20:52:23 +02:00
wmayer
842aa9f69c
App: [skip ci] extend doc string of Document.findObjects
2020-06-29 18:51:01 +02:00