Commit Graph

52 Commits

Author SHA1 Message Date
Chris Hennes
a429931abd Core: Record module failure information during startup 2025-09-01 18:10:04 +02:00
Max Wilfinger
6692dacc0a Gui: Update UI strings for consistency
Closes: #22135
2025-08-04 20:14:45 +02:00
Kacper Donat
aa47949f80 Gui: Add support for hints in status bar 2025-05-21 17:42:45 +02:00
Pieter Hijma
0d5481e448 [Core] Add visibility toggling to ViewProvider
With this extension of the API, view providers can indicate whether
document objects should be able to be toggled for visibility.  There is
both a C++ and Python interface, idiomatic for FreeCAD code.
2025-04-05 15:57:09 +02:00
Benjamin Nauck
518e6b2c51 Add two options to disable addons
Addons can be disabled in two ways:
 * by adding a command line argument `--disable-addon <addon>`
 * and by creating a `ALL_ADDONS_DISABLED` file in the mod root of the addons to disable
2024-11-25 12:16:43 -05:00
Benjamin Bræstrup Sayoc
139cd7866e [Gui] Fix isBad asserts, by removing old monkey patch
Multiple places in code, asserts for bad types would trigger SIGABRT. This is not just limited to #16316 with SoZoomTranslation, but multiple more places, not described in issue, but I experienced myself. Fixes #16316
2024-10-14 18:16:23 +02:00
Victor Predko
e1206a3fac File formats: Uppercase file types when importing a file. (#10977)
* Added uppercase extensions for supported formats

In the file App\Application.cpp

* Added file types in upper case

* Adds uppercase file types to the file import filter.

Fixes #10879

* Added filter for *.fcmacro *.fcscript
2023-10-16 14:40:46 -03:00
Paddle
346d0d7231 Core: Selection : Add possibility to set the style of selection between normal and greedy 2023-09-19 00:08:39 +02:00
bdieterm
c9a802418a Core, Gui: allow breakpoints in Init.py and InitGui.py of mods 2023-09-18 10:27:51 +02:00
wmayer
10758b02f5 [skip ci] Gui: PrintWarning has been moved to Console module 2023-05-15 15:58:48 +02:00
wmayer
03b58bb289 Core: make the init scripts more robust against invalid package.xml files
See also: https://forum.freecad.org/viewtopic.php?t=77170
2023-03-28 10:49:21 +02:00
mosfet80
bed7b76524 remove Python2 code 2023-03-04 17:51:43 -06:00
Uwe
1eb6bc8cf1 [Gui] FreeCADGuiInit.py: address some GH action reports
- superfluous parens and loo long lines
2023-01-30 18:14:27 -07:00
luzpaz
3c9f48e696 Gui: fix trailing whitespace 2023-01-25 15:23:47 +01:00
wmayer
6f2167e0f2 Gui: add enum class to Selection Python API 2022-04-09 18:03:45 +02:00
wmayer
1a62c2024d lgtm: removes unused imports in Python scripts 2022-03-20 23:00:55 +01:00
Chris Hennes
0c85c16932 Core: Support disabling Addon by FreeCAD version
If package.xml metadata file exists, it is scanned for FreeCAD version
compatibility before the Addon is loaded. If the Addon specifies that it is
explicitly not compatible with the current version of FreeCAD, the Addon is
not loaded.
2022-03-08 23:19:04 -06:00
Chris Hennes
ec90b7f954 Core: Add mechanism to disable addon 2022-02-20 22:09:57 -06:00
Chris Hennes
2dea71ab94 Gui: Clean up mod init error messages 2022-02-18 17:40:05 -06:00
wmayer
35fd97a8ae Gui: add method to reload active workbench 2022-02-16 17:33:29 +01:00
Chris Hennes
c172ab1be6 Addon Manager: Convert dev startup warning to log 2021-12-30 20:13:24 -06:00
Chris Hennes
f9a6310332 GUI: Tweak verbosity of InitGui startup sequence 2021-12-18 20:29:42 -06:00
Chris Hennes
12e3f9f222 Core: Fix installation conflict with pkgutils 2021-12-18 20:29:42 -06:00
Chris Hennes
3aebf0aead GUI: Handle packaged Workbenches and their icons 2021-12-18 20:29:42 -06:00
luz paz
38815b9550 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
a0de713ca2 Py2: do not open Init[Gui].py files with utf-8 encoding 2020-11-26 00:48:28 +01:00
wmayer
c3b147a5c9 Init: [skip ci] do explicitly open Init[Gui].py files with utf-8 encoding 2020-11-24 14:15:26 +01:00
wmayer
e75834321b Gui: [skip ci] add an alias for Gui.isCommandActive 2020-10-01 16:03:08 +02:00
wmayer
eec776584e Gui: [skip ci] add x3d and xhtml format to export dialog 2020-09-07 16:27:21 +02:00
wmayer
449b8a2f18 Gui: [skip ci] set Gui.listCommands to keep old code working 2020-08-03 18:58:00 +02:00
wmayer
aac7392740 Gui: move functions to list menus and toolbars from sub-class to base Workbench class
implement new function to list all toolbars and their used commands
2020-04-04 11:46:45 +02:00
wmayer
ef303c766e Gui: [skip ci] replace tabs with spaces in GUI init script 2020-04-04 09:42:30 +02:00
luz.paz
04ba2872f0 src/Gui: [skip ci] fix header uniformity
This PR fixes header uniformity across all `src/Gui` files
2019-12-25 11:39:17 +01:00
Zheng, Lei
ebd60c8595 App/Gui: Changes to application Python init script
* Better module import error handling

* Allow co-installation of Python2 and Python3 version of FreeCAD

* Add FreeCAD.Logger class for convenient logging in Python. See class
  document for more details.
2019-08-17 15:08:34 +02:00
Zheng, Lei
5214f5b7ce Gui: add coinRemoveAllChildren to work around Coin3D bug
See bug description:
https://bitbucket.org/Coin3D/coin/pull-requests/119/fix-sochildlist-auditing/diff

Because of path based rendering (SoFCPathAnnotation) in mouse over
highlight, this bug causes crash more frequently here comparing to
upstream.

All C++ calling of SoGroup::removeAllChildren() is replaced by
Gui::coinRemoveAllChildren(), and python code is fixed by monkey
patching SoGroup.removeAllChildren() in FreeCADGuiInit.py.
2019-08-17 14:52:11 +02:00
looooo
acb5fb83af reduce line-length to 80 characters 2018-09-05 11:06:26 +02:00
looooo
4d82b87c20 new style modules: print traceback as error and as log. 2018-09-05 11:06:12 +02:00
wmayer
6ed21609e4 issue #0002973: Path to FreeCAD.app can't contain unicode 2017-12-02 19:37:05 +01:00
wmayer
d7aabc1a80 don't exit FreeCAD when Ext directory doesn't exist 2017-09-22 10:37:11 +02:00
looooo
c7a4541722 new-style-modules: adding the possebility to import from "freecad"
(this mostly aims at new modules and extension modules which want to use pip)
- any module having problems with nameclashes can use this syntax (from freecad import module)
- current imports still work (backward cobatibility)
- python extension moduels can be installed (pip) to python std path (eg.: site-packages)

- adding app, gui to the new freecad package:
```
from freecad import app
from freecad import gui
```

- syntax for importing c++ extension will not change
```
import FreeCAD as App
import FreeCADGui as Gui
```
2017-09-20 23:25:12 +02:00
Yorik van Havre
7e39fed862 py3: Gui: files A-P ported to python3 2017-05-06 17:23:27 +02:00
looooo
6e8c18754f use __ModDirs__ for module directories and set the search path of FreeCAD to the base directories, which contain all the modules 2017-03-18 18:20:59 +01:00
looooo
9e23a2086c py3: Gui: FreeCADGuiInit.py 2017-03-18 18:20:59 +01:00
wmayer
991394dc76 + improve exception handling in initialization scripts 2015-12-29 23:42:29 +01:00
wmayer
5427fad693 + Add Python example of embedding FreeCAD 2015-11-20 22:35:26 +01:00
wmayer
b1b76dea66 + disable SVG and IDTF export for 3d view 2015-08-26 22:11:53 +02:00
wmayer
7ade19fde2 + support of home path with non-ASCII chars 2014-10-19 17:27:02 +02:00
wmayer
055dcb0512 + fix warnings with clang 2014-09-24 15:55:36 +02:00
wmayer
9891701106 + Use application icon as default workbench name 2014-01-22 17:35:10 +01:00
wmayer
3590e6fc7b +Relicense from GPL to LGPL 2013-09-19 11:21:03 +02:00