wmayer
0f86afa019
App: GroupExtension::getGroupOfObject considers App::GroupExtension or App::GroupExtensionPython
2020-03-17 16:43:05 +01:00
wmayer
8401b563da
App: [skip ci] extend Python wrapper of hasExtension() to have full control over calling the C++ function
2020-03-17 14:03:14 +01:00
Bernd Hahnebach
381269a0c8
small code formating in application
2020-03-16 15:45:24 +01:00
wmayer
949110d73d
App: [skip ci] implement WekPtrT to simplify using DocumentObjectWeakPtrT
2020-03-16 15:11:11 +01:00
Zheng, Lei
d2d27e9e79
App: change Link array behavior
...
Do not behave as group when Link array is collapsed (i.e. ShowElement
is false)
2020-03-15 10:57:19 +01:00
wmayer
338bf2ca3a
App: [skip ci] reduce number of digits by 1 to display a NumberExpression
...
See also: https://forum.freecadweb.org/viewtopic.php?f=3&t=44057
2020-03-11 10:31:28 +01:00
wmayer
75b9dd8a0e
[skip ci] App: print affected Python type if serializing via JSON fails
...
FemGui: add default implementations of __getstate__/__setstate__ to _ViewProviderFemResultMechanical
2020-03-10 16:32:31 +01:00
Zheng, Lei
d4e07199e9
App: fix missing transformation in Link::getTrueLinkedObject()
2020-03-09 16:22:56 +01:00
luz.paz
180805c55e
Fix typos
...
Found via
```
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-03-06 14:50:35 +01:00
Zheng, Lei
27eb8bebeb
App: fix Link appLinkExecute
...
Call hasAttr() first before getAttr().
2020-03-02 12:01:56 -03:00
wmayer
549b424e1f
App: [skip ci] add further constructor to SubObjectT
2020-02-28 21:14:34 +01:00
plgarcia
d222f7b55f
Change backup policy
...
1 - Reports the error to the user in a popup.
2 - Names of the backups include the timstamp instead of a number. Names have more sense and the files can be sorted by names what is also the age order.
3 - Behaviors when changing configuration improved, the number of files present on the system was not reduced when reducing the number of backups or backups deactivated.
2020-02-24 23:06:26 +01:00
wmayer
9466fdff9e
App: refactor code to support various backup policies
2020-02-24 23:06:26 +01:00
wmayer
b34f0aef34
App/Gui: implement a lightweight weak_ptr like class to work with Document, DocumentObject and ViewProvider
2020-02-19 19:58:34 +01:00
Zheng, Lei
27771fc6ee
App: restore external linked documents in dependency order
2020-02-14 19:46:56 +01:00
Zheng, Lei
5eb15e4219
App: do not save external dependency
2020-02-14 19:46:47 +01:00
Zheng, Lei
0a608e9413
App: fix Link document restore
...
This fixes issue #0004224
2020-02-14 19:46:36 +01:00
Zheng, Lei
e97336f214
App: add proxy execute support to Link
...
While executing, Link will look for a special Python callable defined in
the linked proxy object, and run it. This allows for customized link
behavior without defining a specialized Link.
2020-02-14 14:17:14 +01:00
Stefan Tröger
52c64d8a85
Implement and test extension events
2020-02-13 14:39:46 +01:00
Zheng, Lei
c4be6c8b23
App: add class TransactionLocker
...
To protect some critical transaction from being closed prematurely. It
is currently used to protect transaction of object deletion.
2020-02-11 15:40:27 -05:00
Zheng, Lei
0633abb70d
Gui: refactor link property editor
...
PropertyLinkItem now support all major types of link property.
PropertyLinkListItem is no longer necessary, but kept for backward
compatible, which is now identical to PropertyLinkItem.
DlgPropertyLink, the link selection dialog, is now made modeless, so
that that user can select geometry sub-element directory from 3D view.
2020-02-11 15:40:27 -05:00
Zheng, Lei
3364911d6d
App: add PropertyXLinkList
...
PropertyXLinkList is derived from PropertyXLinkSubList, which is
modified to provide APIs compatible to PropertyLinkList.
The only difference between the two class is in their getPyObject() to
make PropertyXLinkList output similar to PropertyLinkList in Python. In
C++, both class can accept mix of objects link with or without subname,
depending on which set of APIs are used.
2020-02-11 15:40:27 -05:00
Zheng, Lei
e4a2d9fc42
App: fix PropertyXLink invalid external link
2020-02-11 15:40:27 -05:00
Zheng, Lei
e707ba8348
App: fix PropertyLinkSub(List) unicode handling
2020-02-11 15:40:27 -05:00
Zheng, Lei
c182425ecd
App: remove unncessary exception catch
...
This allows exception to propagate to generated C++ python extension
class code.
2020-02-11 15:40:27 -05:00
Zheng, Lei
39959f9500
App: add new convenient class SubObjectT
...
Derived from App::DocumentObjectT to add support of sub object
Also some minor changes to App::DocumentObjectT
Changed Gui::SelectionChanges to make use of SubObjectT
2020-02-11 15:40:27 -05:00
Zheng, Lei
992dc49ece
Do not throw error when open an already opened document
2020-02-05 11:12:00 +01:00
wmayer
120b69c74f
App: add methods to change import/export module of a registered filetype
2020-01-18 15:29:44 +01:00
wmayer
6866397c14
Py2: [skip ci] provide time._process_time
2020-01-18 12:21:00 +01:00
wmayer
09727b9f11
fix const correctness
2020-01-13 02:30:39 +01:00
wandererfan
60c1855d12
[App]add isEmpty method to PropertyFileIncluded
...
- for consistency with PropertyFile
2020-01-12 11:38:53 -05:00
donovaly
66354b3c58
add units Gauss, Weber and Oersted
2020-01-07 07:36:22 -03:00
donovaly
ca07b05fab
ExpressionParser.l: fix a typo
2020-01-05 15:00:46 +01:00
donovaly
05dadb4c75
add the units Ohm and Siemens
2020-01-05 15:00:46 +01:00
Zheng, Lei
d5a4996d25
App: fix Expression _moveCells()
...
The problem is caused by not refreshing ObjectIdentifier internal cache
after change.
2019-12-31 15:23:03 +01:00
luz.paz
4f308dc03c
src/App: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all `src/App` files
2019-12-25 11:38:43 +01:00
wmayer
72065b0d39
[skip ci] MPH already defined
2019-12-24 13:33:38 +01:00
donovaly
6aeb0910b8
cosmetics to keep the overview
2019-12-24 13:31:00 +01:00
donovaly
cd8b63028c
missing parts from from commit d9d903faea
...
- also add keV and MeV since these are the units used in practice
2019-12-24 13:31:00 +01:00
donovaly
9c707479a6
also add unit THz as requested
2019-12-23 16:49:45 +01:00
donovaly
63bc9c5683
add units Mpsi, cal and kcal
...
- also ass missing parts from commit d7ca604c
2019-12-23 16:49:45 +01:00
wmayer
d969581ff8
Gui: allow to set font family and size and syntax highlighting
2019-12-19 23:17:46 +01:00
donovaly
2949afb55b
add mJ and kW
...
- also some fixes
- add conversions for forces
2019-12-19 13:31:12 +01:00
donovaly
82dc8e88f5
add the following units:
...
- mmol
- ml
- bar
- mbar
- kJ
- kWh
- eV
- C
- T
- F (p, n, u, m)
- H (n, u, m)
2019-12-19 13:31:12 +01:00
luz.paz
a00769bebf
LGTM: remove unnecessary 'pass' statements
...
Issue: A pass statement is only necessary when it is the only statement in a block (the list of statements forming part of a compound statement). This is because the purpose of the pass statement is to allow empty blocks where they would otherwise be syntactically invalid. If the block already contains other statements then the pass statement is unnecessary.
Recommendation: Remove the pass statement.
Relevant links:
1a82a5e136/files/src/Mod/Import/stepZ.py (x78f479c31a062553) :1
1a82a5e136/files/src/Mod/OpenSCAD/OpenSCADCommands.py (xad4868ffcdf82498) :1
1a82a5e136/files/src/App/FreeCADInit.py (x9034ec6815c48e38) :1
2019-12-17 15:15:53 -03:00
luz.paz
06cf1d5b70
Fix various typos [skip ci]
...
Fixed via
```
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,currenty,dof,doubleclick,dum,eiter,elemente,feld,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
```
2019-12-17 15:13:48 -03:00
wmayer
13db5b0560
Add GUI command to insert a text document into the active document
2019-12-11 16:01:31 +01:00
wmayer
4a0ddd0a9e
handle possibly set Python error flag in DocumentPy::recompute() to avoid crash in debug mode
2019-12-09 12:29:07 +01:00
wmayer
fd741e4338
check returned value of PyUnicode_AsUTF8() before passing to a std::string to avoid possible segfaults
2019-12-09 12:23:58 +01:00
Zheng, Lei
13fd54a42f
App: fix pyObjectToAny() in Python3
2019-12-09 00:37:34 +00:00