Chris Hennes
a27115410b
[Start] Add missing files to translation script
2021-03-10 15:21:40 +01:00
Chris Hennes
e814172116
Fix regex in translation extraction script
2021-03-04 19:18:23 +01:00
Benjamin Nauck
085846db24
Tools: Remove super old DistTools module
...
Back in 2004 the "new" build tools was introduced 2668c74b58
which are located in `src/Tools/fcbt/`. The new tools split up this file
into `src/Tools/fcbt/DistTools.py` and `src/Tools/fcbt/FilesTools.py`
which is why the both `DistTools.py` doesn't match up 1:1.
I've found no references in the repo to the version in `src/Tools/` so
I think it's safe to remove.
2021-03-03 21:53:02 +01:00
Chris Hennes
0332ba1e20
[Offline Docs] Fix static analysis issues
...
LGTM identified a number of minor issues (mostly unused imports) in the
offline docs code. This commit addresses those, plus tweaks some output
formatting to include missing spaces, makes a regex more rigorously safe
by escaping some periods, and updates the use of a get() function which
appears to have changed since it was first written.
2021-02-28 17:53:58 +01:00
Chris Hennes
62bfb44a0d
[Tools] Fix static analyis issues
...
This commit addresses issues identified by LGTM for the various
independent (and mostly-independent) files in the Tools subdirectory.
The vast majority of the issues are trivial, and are things like unused
imports or catching BaseException. There was one true bug identified, a
global variable being changed in a function where it was not marked
global, but it only affected output quantity (the variable is named
"VERBOSE"). A couple of other issues identified variables that appear to
represent no-longer-existing options in the code. The options were left,
but a deprecation printout replaces the variable in the event the option
is provided.
2021-02-28 17:53:04 +01:00
Chris Hennes
648ae39f50
Clean up various LGTM-flagged items
...
Static analysis showed some unused variables and imports, and running
the code in Python 3.9 revealed a few invalid escapes (previous versions
of Python silently "fixed" these, so the code change here will not
affect the results).
2021-02-27 18:23:15 +01:00
Yorik van Havre
11b84ea87d
Tools: Added link fix tool to offlinedoc tools
2021-02-22 22:05:51 +01:00
Yorik van Havre
a01703d280
Tools: Updated offline doc scripts
2021-02-22 14:07:33 +01:00
Yorik van Havre
2352474ede
Tools: Updated offline wiki fetching script
2021-02-19 16:41:46 +01:00
Yorik van Havre
4232b2120d
Tools: Detect and use pyside2-lupdate in ts tools
2021-02-12 14:45:41 +01:00
tomate44
05dfa5ccc0
fcinfo: support FCBak backup files
2020-12-20 09:59:43 +01:00
tomate44
d320c7bb8d
fcinfo: support backup files
2020-12-20 09:25:36 +01:00
Mitch Roote
ea5d2efabe
Update fcinfo script for py3 compatibility
2020-12-15 11:10:40 -05:00
wmayer
91e52cc1b9
Tools: [skip ci] extend doc string of FreeCAD thumbnailer
2020-12-14 11:22:12 +01:00
wmayer
23273c42db
Py3: [skip ci] make FreeCAD thumbnailer working with Py3 by opening PNG icon in binary mode
2020-12-03 16:50:45 +01:00
Rafael Villar Burke
e0c3237d6c
Fix thumbnailing
...
This fixes thumbnailing for XDG desktops. The new script doesn't depend on GNOME libs and works either with python3 or python2.
Also, a thumbnailer config file is added to the installation in CMakeList.txt
2020-11-24 17:47:40 +01:00
Yorik van Havre
4129a4d6b5
Tools: Made updatets delete temporary json files
2020-10-28 10:45:44 +01:00
wmayer
2f7e432051
Py3: suppress warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
...
If the tp_print slot is not set the warning -Wmissing-field-initializers is raised. If it's set then -Wdeprecated-declarations is raised.
So, the only way is to suppress it.
2020-10-15 17:07:39 +02:00
wmayer
c6374bc102
Py3: fix warning: missing field 'tp_print' initializer [-Wmissing-field-initializers]
...
This warning is only specific to Py3.8. See https://docs.python.org/3/c-api/typeobj.html
2020-10-15 10:35:47 +02:00
wmayer
f246d811eb
plugin: [skip ci] add custom widgets Gui::IntSpinBox and Gui::DoubleSpinBox
2020-08-12 11:38:31 +02:00
wmayer
6b83aa7ed2
plugin: [skip ci] fix of QuantitySpinBox to not remove value property from existing files
2020-08-09 17:07:08 +02:00
wmayer
22bfd76efd
plugin: [skip ci] add new signal textChanged() to QuantitySpinBox
2020-08-09 11:22:47 +02:00
wmayer
24f93f94ed
plugin: [skip ci] fix warnings
2020-08-09 08:16:59 +02:00
wmayer
314e0ca49c
plugin: [skip ci] make QuantitySpinBox inside plugin functioning
2020-08-08 20:04:45 +02:00
donovaly
1e124d86d6
[Tools] add PrefQuantitySpinBox to designer plugins/widget/FreeCAD_widgets.vcxproj
...
as discussed here: https://forum.freecadweb.org/viewtopic.php?f=10&t=49315&p=422648#p422648
2020-08-08 17:48:21 +02:00
Mark Ganson TheMarkster
f0ea5d9de9
coverity cid 192591 (fix typo)
2020-07-23 13:55:58 +02:00
wmayer
b3d292865f
Coverity: [skip ci] Bad use of null-like value
2020-07-21 12:23:10 +02:00
wmayer
0b1a2bf223
Py3.8: missing initializer for member '_typeobject::tp_vectorcall' [-Wmissing-field-initializers]
2020-06-08 14:32:21 +02:00
wmayer
8e7d521db7
PySide: [skip ci] add minimal example of embedding
2020-05-20 13:23:18 +02:00
wmayer
288aac462d
[skip ci] Port glib embedding example to Py3 and Gtk3
2020-05-20 12:47:17 +02:00
wmayer
f6e61ab410
[skip ci] part Qt embedding test application to Py3 and implement workaround for Qt5
2020-04-30 21:03:53 +02:00
luz.paz
244639c2bf
[skip-ci] Fix typos in Draft, Mesh, and src/Tools
...
Found via codespell v1.17.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-04-30 11:40:38 +02:00
wmayer
5cfe5eacca
Tools: [skip ci] move import of requests module into try/except block
2020-04-15 10:39:46 +02:00
wmayer
43d1a76758
[skip ci]: make SubWCRef not to fail if internet connection is blocked
2020-04-14 12:38:53 +02:00
wmayer
752272a8cb
Tools: [skip ci] implement method to get commit number, date and branch name from sha
2020-04-13 13:32:32 +02:00
donovaly
adf61b25d4
[Tools] remove ThumbnailProvider.sln
...
This single files does not help anything, one would also need the *.vcxproj files. But whatever I try, unless you run not CMake prior to compiling, it will try to build a Win32 DLL and fails.
So since I cannot find a way to provide .sln and .vcxproj files that can be used out of the box, the single .sln file is just senseless alone.
2020-04-01 13:29:39 +02:00
donovaly
c031d970e6
[Tools] add Visual Studio project files
...
see: https://forum.freecadweb.org/viewtopic.php?f=10&t=44609&start=10#p381463
One needs all 4 files. It works on difference PCs since all paths are relative.
2020-03-31 12:05:45 +02:00
donovaly
0584604b93
[Tools] extend ThumbNail Provider for .FCBak
...
- as requested in the forum, the thumbnail provider should also work for *.FCBak file, see
https://forum.freecadweb.org/viewtopic.php?f=4&t=10775&p=381936#p378680
2020-03-31 12:01:53 +02:00
luz.paz
97e11fadac
Fix typo in templateClassPyExport.py [skip ci]
2019-12-23 16:50:23 +01:00
luz.paz
9e0507c0bc
Templates: fix header uniformity
...
This PR fixes header uniformity across all template files.
2019-12-21 16:12:54 +01:00
wmayer
065356281d
Python: change generation of callback functions for class or static methods
2019-12-19 17:55:12 +01:00
luz.paz
cc97145e9d
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
7f7a573ace
handle nested name spaces in Python generation script
2019-11-20 22:57:58 +01:00
wmayer
76f76f02dd
add support of static and class methods in Python wrappers
2019-11-12 23:24:42 +01:00
wmayer
e4a7349947
make PythpnToCPP script Py2 compliant
2019-11-05 21:11:10 +01:00
Huang, Zhaoquan
c00f842a8f
Explicitly specify encoding in PythonToCPP.py
...
On Windows, the python script opens a file with the default ANSI
encoding. This causes UnicodeDecodeError in some region. The encoding
should be set explicitly to match the files.
2019-11-05 09:28:44 -03:00
donovaly
7a0d4dfd7f
ThumbnailProvider: update MSVC solution file
...
Now ThumbnailProvider can be compiled easily using MSVC 2017
2019-11-05 10:15:20 +01:00
wmayer
fa8263ccb4
fix building of thumbnail dll for msvc 2017 or higher
2019-11-04 19:08:54 +01:00
luz.paz
30d2e29e0c
LGTM: various fixes for using string operator instead of numeric
2019-10-25 10:33:12 -03:00
wmayer
eff400620c
add new CMake macro generate_from_any and extend PythonToCPP script to create source file from any text file
2019-10-14 22:20:59 +02:00