Commit Graph

55 Commits

Author SHA1 Message Date
bofdahof
ba2c2ca5ad Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
wmayer
0e21776494 Main: Apply clang-format 2024-06-03 12:51:36 +02:00
wmayer
445fa5c758 Increment year in copyright notice 2024-03-09 16:18:57 +01:00
wmayer
f085a602bd Gui: refactor Application::runApplication 2024-02-26 11:21:38 -06:00
wmayer
64a91968a3 MSVC: fix compiler warnings 2024-02-25 00:12:34 +01:00
bdieterm
3c44c842f7 Gui: unite init code for FreeCAD GUI (normal and via Gui.showMainWindow()) 2024-02-19 10:48:00 -06:00
wmayer
054a0997e8 Base: modernize C++: use override 2023-08-04 17:09:53 +02:00
bdieterm
1a3a170818 set toolbar icon size when starting FreeCAD GUI from Python import 2023-07-08 22:45:38 +02:00
wmayer
d7174ae2b8 Core: do not override sys.stdin when using FreeCAD as Python module 2023-05-02 09:44:09 +02:00
luzpaz
dc42b1f942 Increment year in copyright notice (2023) (#8156)
* Increment year in copyright notice
2023-01-09 14:59:37 +01:00
wmayer
ab6c75fad9 Core: replace PyObject_IsTrue with Base::asBoolean 2022-07-16 14:04:05 +02:00
wmayer
fb3ad48c20 GuiPy: allow to call setupWithoutGUI more than once 2022-07-06 10:54:29 +02:00
marioalexis
80492e81fa Main: Use PyObject_IsTrue in combination with conditional ternary operator 2022-06-22 19:50:03 -04:00
wmayer
1178df06b4 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
e4d1ed8366 Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
5e0cfc64ee App: use forward declarations 2022-03-04 21:09:46 +01:00
Uwe
23beff7e2c [Main] remove unused includes 2022-03-04 03:53:09 +01:00
luz paz
8a0d24abde Update 'About' info to reflect new year 2022 2022-01-05 13:20:48 +01:00
luz paz
a213071c87 Gui: remove Py2 code from several src/Gui .cpp files 2021-04-14 14:56:02 +02:00
Chris Hennes
d959bf1582 [Main] Remove deprecated Qt < 5.9 code 2021-04-01 19:29:44 +02:00
wmayer
f9a54c3385 Py3: fixes #0004081: Abillity to show console output when running under Python 2021-04-01 17:51:10 +02:00
luz paz
c52df25cf4 Main: fix header uniformity + trailing whitespace
[skip ci]
2020-12-12 08:17:58 +01:00
wmayer
8834e91502 [skip ci] do not set attribute WA_DeleteOnClose when loading FreeCAD GUI from Python 2020-06-26 13:52:55 +02:00
wmayer
3971c85130 [skip ci] make Jupyter notebook integration working again 2020-06-21 01:39:39 +02:00
wmayer
4b8cf63c14 [skip ci] improve possibility to create a QApplication in a thread 2020-06-21 00:07:21 +02:00
wmayer
278202eb6f GuiPy: [skip ci] handle some Qt warnings when using GUI from Python
+ avoid warning: QEventLoop: Cannot be used without QApplication
+ avoid warning: QObject::startTimer: Timers can only be used with threads started with QThread
2020-06-20 11:43:59 +02:00
wmayer
0f5d81872f Main: [skip ci] replace QThread with std::thread as it won't start without an event loop 2020-06-19 18:52:26 +02:00
triplus
f66f18c459 Update copyright information [skip ci] 2020-02-03 08:16:12 -05:00
howetuft
11008e9ae2 Increment year in copyright notice 2020-01-13 15:19:51 +01:00
Markus Lampert
d5820329c5 Added <last> as an option to the workbench selection. 2019-11-01 17:42:14 -03:00
wmayer
e23db2e313 PVS: V773 A memory leak is possible 2019-02-17 18:40:06 +01:00
wmayer
d27c884c71 Update copyright notice 2019-01-03 15:37:02 +01:00
wmayer
25ad0148ae adjust copyright text 2018-01-27 12:13:44 +01:00
wmayer
dbc777012f avoid to eventually try to init Gui twice 2017-07-10 20:51:30 +02:00
wmayer
729cfd8155 py3: fox compiler warnings
issue 0000995
2017-06-04 00:17:57 +02:00
wmayer
956b6ed08f py3: port external FreeCAD module to Python3
whitespace improvement
2017-06-02 10:18:41 +02:00
wmayer
d40d68d0cb py3: port external FreeCAD module to Python3
issue 0000995
2017-06-02 06:43:18 +02:00
wmayer
cc2199db51 Increment year in copyright info 2017-02-15 21:32:23 +01:00
wmayer
a34c441373 Qt4/Qt5 neutral changes:
+ replace Q_WS_WIN with Q_OS_WIN
+ replace Q_WS_X11 with Q_OS_LINUX
+ replace Q_WS_MACX with Q_OS_MACX
+ set explicit cast to HWND
2016-12-12 14:09:21 +01:00
wmayer
4a35f1662a fix -Wextra in Main & Complete 2016-09-22 14:24:38 +02:00
Mateusz Skowroński
c275b35d48 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
9f053d72c9 + when using FreeCAD GUI as Python module handle attempt to re-create main window 2015-12-12 20:14:37 +01:00
wmayer
93a3dc0cdd + fix warnings with Win32 build 2015-12-01 00:51:57 +01:00
wmayer
788c78df68 + change copyright notice 2015-01-15 00:36:27 +01:00
wmayer
398546aecb + fix build problems with Python & MacOSX 2014-10-13 22:02:57 +02:00
wmayer
4449d1abdc + fixes #0001762: Update 'About FreeCAD' Screen 2014-09-23 19:31:37 +02:00
Stefan Tröger
512a2b94d2 Adaption of FreeCAD to QuarterWidget
-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer  interface
2014-09-23 10:11:11 +02:00
Sebastian Hoogen
d49528b27e issue #1700 replace PyExc_Exception 2014-09-17 11:15:57 +02:00
Sebastian Hoogen
af50cbf964 fixes #0001422: Subclass Exception
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
wmayer
bda933a1ca + add further log messages at startup for better troubleshooting, fix possible crash, fix typos 2014-07-01 11:03:55 +02:00