Commit Graph

48 Commits

Author SHA1 Message Date
wmayer
1ee3d79d7c Qt5: 'int QFontMetrics::width' is deprecated since Qt 5.11: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
3f212ad8ac Porting Py3.8/Py3.9:
Since Py3.3: 'Py_ssize_t PyUnicode_GetSize(PyObject*)' is deprecated [-Wdeprecated-declarations]
Since Py3.9: 'PyObject* PyEval_CallObjectWithKeywords(PyObject*, PyObject*, PyObject*)' is deprecated [-Wdeprecated-declarations]
Since Py3.9: 'void PyEval_InitThreads()' is deprecated [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
c814eb1a50 Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02: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
wmayer
250906d530 move Save history action to the correct position in the context-menu, do some minor optimizations 2019-09-07 15:48:16 +02:00
Yorik van Havre
1d0849f521 Python Console - only save max 100 history items 2019-09-07 15:27:04 +02:00
Yorik van Havre
164409cee9 Add Python console option to save history across sessions 2019-09-07 15:26:45 +02:00
wmayer
de44a747f6 fix crash when checking an empty error message of an exception 2019-03-31 17:34:35 +02:00
wmayer
1daa0aa79c improve Copy&Paste handling in Python console 2019-03-05 10:20:50 +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
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
wmayer
64fa8cb855 improve handling of (raw) input in Python console 2019-01-04 14:16:50 +01:00
wmayer
7dc13bd2d6 Replace Base::Exception with appropriate subclass 2018-11-14 23:17:42 +01:00
wmayer
31cee58df6 fix crash when entering quit() in Python console for Py3 2018-04-28 12:13:42 +02:00
luz.paz
8690d870a5 Misc. typos
+ stepcode typo submitted upsream https://github.com/stepcode/stepcode/pull/372
2018-01-07 18:41:29 -02:00
wmayer
34b40f23a1 fixes #0002923: Python console history misbehaves with word-wrapped lines 2017-12-02 15:39:39 +01:00
wmayer
3b957a12b5 various minor changes:
+ whitespace improvement
+ code cleanup
2017-11-21 17:51:22 +01:00
wmayer
1b2b964c35 extend error text set in Python console by additional information if present 2017-05-17 19:59:17 +02:00
wmayer
f3e722c6de in Python console check if exception is dict and set more readable text 2017-05-17 19:37:34 +02:00
Yorik van Havre
aa3f9288d6 py3: Gui: files A-P ported to python3 2017-05-06 17:23:27 +02:00
wmayer
1673ab801e use specialized exception classes 2017-04-28 18:49:11 +02:00
Kurt Kremitzki
f2467d7044 Add persistence to Python console word wrap 2017-02-07 10:58:38 -02:00
wmayer
f19d424d8b fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
0824c5fd3c fix Coverity issues 2016-08-21 14:03:02 +02:00
Abdullah Tahiri
7fc7bdc302 Gui Enhancement: Support for macros in AppUserHome/Macro
=====================================================

What?
It was suggested that the macros should be moved to AppUserHome/Macro
http://forum.freecadweb.org/viewtopic.php?f=10&t=13433

Solution:
The solution is backwards compatible in the sense that if you have a running
configuration, updating should not change anything.

For new installations the macro directory will default to AppUserHome/Macro. However
this would break all the installation scripts (probably also ME's plugin manager).

Conflicts:
	src/Mod/Path/Gui/AppPathGuiPy.cpp
2016-01-11 19:24:22 +01:00
Mateusz Skowroński
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
d5c074f80d QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
Mateusz Skowroński
9aa3cfb4f9 Add missing QMimeData.h includes.
This change is Qt4/Qt5 neutral.
2015-12-24 13:36:46 +01:00
wmayer
967eead27a + split file extension from descriptive text of file format to avoid that invalid translation breaks file dialog
+ add method to make image view unclosable for user
+ fix possible crash in MeshAlgorithm::GetMeshBorder
+ fix possible crash in MeshAlgorithm::ConnectLines
2015-10-06 17:28:52 +02:00
wmayer
d927d0bcb9 + improve handling of default colors of report view and Python console when using style sheets 2014-01-31 11:34:30 +01:00
wmayer
b1a1be6f4e + workaround for strange behaviour of Qt 4.8 regarding period/colon 2014-01-14 13:50:13 +01:00
wmayer
ea943e0d7c 0001121: IndentationError in Python Console 2013-05-14 17:28:44 +02:00
wmayer
81045486fd 0000826: reading from the python console for using pdb -- code cleanup 2013-05-14 15:20:00 +02:00
wmayer
946bd02df4 Improve reporting of Python exceptions 2013-05-04 14:23:53 +02:00
wmayer
25c0afbb80 0000826: reading from the python console for using pdb 2012-09-12 15:01:41 +02:00
wmayer
3958c53cb3 Fix issue with Python debugger when leaving application 2012-09-11 11:12:02 +02:00
wmayer
7a999faa06 0000826: reading from the python console for using pdb 2012-09-11 10:42:44 +02:00
wmayer
fa7a8528c0 0000826: reading from the python console for using pdb 2012-09-08 13:01:02 +02:00
wmayer
3140c13baf 0000822: Two little tweaks for the python console 2012-09-05 16:01:39 +02:00
wmayer
0d351e98e2 Proper handling of SystemExitException in Python 2012-08-11 10:58:54 +02:00
wmayer
08bfdc4875 Automatically create actions for each template 2012-07-22 14:56:25 +02:00
wmayer
857454aad5 0000777: Shared libraries call exit 2012-07-05 15:24:28 +02:00
wmayer
e67a6e518c Fix a couple of minor issues 2012-03-01 15:47:40 +01:00
wmayer
fa12664f87 Improve sys.stdin redirection mechanism 2012-02-28 13:20:34 +01:00
wmayer
0b0f55e8f8 + fix problems with call tips window if text after dot is not a word
+ fix problems with history in python console

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5356 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-29 11:20:49 +00:00
wmayer
0748b1fa77 0000530: Python Console allows editing of history
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5258 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-10 18:40:03 +00:00
wmayer
6ed7ad3a15 0000489: python console: "RFC"s for even more "rapid" prototyping :-)
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5253 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-10 14:40:44 +00:00
wmayer
120ca87015 + unify DLL export defines to namespace names
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00